diff --git a/.agents/skills/cli-admin/references/app-achievement.md b/.agents/skills/cli-admin/references/app-achievement.md deleted file mode 100644 index fb54901dd4..0000000000 --- a/.agents/skills/cli-admin/references/app-achievement.md +++ /dev/null @@ -1,68 +0,0 @@ -# appAchievement - - - -CRUD operations for AppAchievement records via csdk CLI - -## Usage - -```bash -csdk app-achievement list -csdk app-achievement list --where.. --orderBy -csdk app-achievement list --limit 10 --after -csdk app-achievement find-first --where.. -csdk app-achievement get --id -csdk app-achievement create --name [--actorId ] [--count ] -csdk app-achievement update --id [--actorId ] [--name ] [--count ] -csdk app-achievement delete --id -``` - -## Examples - -### List appAchievement records - -```bash -csdk app-achievement list -``` - -### List appAchievement records with pagination - -```bash -csdk app-achievement list --limit 10 --offset 0 -``` - -### List appAchievement records with cursor pagination - -```bash -csdk app-achievement list --limit 10 --after -``` - -### Find first matching appAchievement - -```bash -csdk app-achievement find-first --where.id.equalTo -``` - -### List appAchievement records with field selection - -```bash -csdk app-achievement list --select id,id -``` - -### List appAchievement records with filtering and ordering - -```bash -csdk app-achievement list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a appAchievement - -```bash -csdk app-achievement create --name [--actorId ] [--count ] -``` - -### Get a appAchievement by id - -```bash -csdk app-achievement get --id -``` diff --git a/.agents/skills/cli-admin/references/app-level-requirement.md b/.agents/skills/cli-admin/references/app-level-requirement.md deleted file mode 100644 index 42bf8c1897..0000000000 --- a/.agents/skills/cli-admin/references/app-level-requirement.md +++ /dev/null @@ -1,68 +0,0 @@ -# appLevelRequirement - - - -CRUD operations for AppLevelRequirement records via csdk CLI - -## Usage - -```bash -csdk app-level-requirement list -csdk app-level-requirement list --where.. --orderBy -csdk app-level-requirement list --limit 10 --after -csdk app-level-requirement find-first --where.. -csdk app-level-requirement get --id -csdk app-level-requirement create --name --level [--description ] [--requiredCount ] [--priority ] -csdk app-level-requirement update --id [--name ] [--level ] [--description ] [--requiredCount ] [--priority ] -csdk app-level-requirement delete --id -``` - -## Examples - -### List appLevelRequirement records - -```bash -csdk app-level-requirement list -``` - -### List appLevelRequirement records with pagination - -```bash -csdk app-level-requirement list --limit 10 --offset 0 -``` - -### List appLevelRequirement records with cursor pagination - -```bash -csdk app-level-requirement list --limit 10 --after -``` - -### Find first matching appLevelRequirement - -```bash -csdk app-level-requirement find-first --where.id.equalTo -``` - -### List appLevelRequirement records with field selection - -```bash -csdk app-level-requirement list --select id,id -``` - -### List appLevelRequirement records with filtering and ordering - -```bash -csdk app-level-requirement list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a appLevelRequirement - -```bash -csdk app-level-requirement create --name --level [--description ] [--requiredCount ] [--priority ] -``` - -### Get a appLevelRequirement by id - -```bash -csdk app-level-requirement get --id -``` diff --git a/.agents/skills/cli-admin/references/app-level.md b/.agents/skills/cli-admin/references/app-level.md deleted file mode 100644 index 8c44edf921..0000000000 --- a/.agents/skills/cli-admin/references/app-level.md +++ /dev/null @@ -1,68 +0,0 @@ -# appLevel - - - -CRUD operations for AppLevel records via csdk CLI - -## Usage - -```bash -csdk app-level list -csdk app-level list --where.. --orderBy -csdk app-level list --limit 10 --after -csdk app-level find-first --where.. -csdk app-level get --id -csdk app-level create --name [--description ] [--image ] [--ownerId ] -csdk app-level update --id [--name ] [--description ] [--image ] [--ownerId ] -csdk app-level delete --id -``` - -## Examples - -### List appLevel records - -```bash -csdk app-level list -``` - -### List appLevel records with pagination - -```bash -csdk app-level list --limit 10 --offset 0 -``` - -### List appLevel records with cursor pagination - -```bash -csdk app-level list --limit 10 --after -``` - -### Find first matching appLevel - -```bash -csdk app-level find-first --where.id.equalTo -``` - -### List appLevel records with field selection - -```bash -csdk app-level list --select id,id -``` - -### List appLevel records with filtering and ordering - -```bash -csdk app-level list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a appLevel - -```bash -csdk app-level create --name [--description ] [--image ] [--ownerId ] -``` - -### Get a appLevel by id - -```bash -csdk app-level get --id -``` diff --git a/.agents/skills/cli-admin/references/app-limit-cap.md b/.agents/skills/cli-admin/references/app-limit-cap.md deleted file mode 100644 index f9ffb5b50f..0000000000 --- a/.agents/skills/cli-admin/references/app-limit-cap.md +++ /dev/null @@ -1,68 +0,0 @@ -# appLimitCap - - - -CRUD operations for AppLimitCap records via csdk CLI - -## Usage - -```bash -csdk app-limit-cap list -csdk app-limit-cap list --where.. --orderBy -csdk app-limit-cap list --limit 10 --after -csdk app-limit-cap find-first --where.. -csdk app-limit-cap get --id -csdk app-limit-cap create --name --entityId [--max ] -csdk app-limit-cap update --id [--name ] [--entityId ] [--max ] -csdk app-limit-cap delete --id -``` - -## Examples - -### List appLimitCap records - -```bash -csdk app-limit-cap list -``` - -### List appLimitCap records with pagination - -```bash -csdk app-limit-cap list --limit 10 --offset 0 -``` - -### List appLimitCap records with cursor pagination - -```bash -csdk app-limit-cap list --limit 10 --after -``` - -### Find first matching appLimitCap - -```bash -csdk app-limit-cap find-first --where.id.equalTo -``` - -### List appLimitCap records with field selection - -```bash -csdk app-limit-cap list --select id,id -``` - -### List appLimitCap records with filtering and ordering - -```bash -csdk app-limit-cap list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a appLimitCap - -```bash -csdk app-limit-cap create --name --entityId [--max ] -``` - -### Get a appLimitCap by id - -```bash -csdk app-limit-cap get --id -``` diff --git a/.agents/skills/cli-admin/references/app-limit-caps-default.md b/.agents/skills/cli-admin/references/app-limit-caps-default.md deleted file mode 100644 index 2c1bbca484..0000000000 --- a/.agents/skills/cli-admin/references/app-limit-caps-default.md +++ /dev/null @@ -1,68 +0,0 @@ -# appLimitCapsDefault - - - -CRUD operations for AppLimitCapsDefault records via csdk CLI - -## Usage - -```bash -csdk app-limit-caps-default list -csdk app-limit-caps-default list --where.. --orderBy -csdk app-limit-caps-default list --limit 10 --after -csdk app-limit-caps-default find-first --where.. -csdk app-limit-caps-default get --id -csdk app-limit-caps-default create --name [--max ] -csdk app-limit-caps-default update --id [--name ] [--max ] -csdk app-limit-caps-default delete --id -``` - -## Examples - -### List appLimitCapsDefault records - -```bash -csdk app-limit-caps-default list -``` - -### List appLimitCapsDefault records with pagination - -```bash -csdk app-limit-caps-default list --limit 10 --offset 0 -``` - -### List appLimitCapsDefault records with cursor pagination - -```bash -csdk app-limit-caps-default list --limit 10 --after -``` - -### Find first matching appLimitCapsDefault - -```bash -csdk app-limit-caps-default find-first --where.id.equalTo -``` - -### List appLimitCapsDefault records with field selection - -```bash -csdk app-limit-caps-default list --select id,id -``` - -### List appLimitCapsDefault records with filtering and ordering - -```bash -csdk app-limit-caps-default list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a appLimitCapsDefault - -```bash -csdk app-limit-caps-default create --name [--max ] -``` - -### Get a appLimitCapsDefault by id - -```bash -csdk app-limit-caps-default get --id -``` diff --git a/.agents/skills/cli-admin/references/app-limit-credit-code-item.md b/.agents/skills/cli-admin/references/app-limit-credit-code-item.md deleted file mode 100644 index 5b7fc35676..0000000000 --- a/.agents/skills/cli-admin/references/app-limit-credit-code-item.md +++ /dev/null @@ -1,68 +0,0 @@ -# appLimitCreditCodeItem - - - -CRUD operations for AppLimitCreditCodeItem records via csdk CLI - -## Usage - -```bash -csdk app-limit-credit-code-item list -csdk app-limit-credit-code-item list --where.. --orderBy -csdk app-limit-credit-code-item list --limit 10 --after -csdk app-limit-credit-code-item find-first --where.. -csdk app-limit-credit-code-item get --id -csdk app-limit-credit-code-item create --creditCodeId --defaultLimitId --amount [--creditType ] -csdk app-limit-credit-code-item update --id [--creditCodeId ] [--defaultLimitId ] [--amount ] [--creditType ] -csdk app-limit-credit-code-item delete --id -``` - -## Examples - -### List appLimitCreditCodeItem records - -```bash -csdk app-limit-credit-code-item list -``` - -### List appLimitCreditCodeItem records with pagination - -```bash -csdk app-limit-credit-code-item list --limit 10 --offset 0 -``` - -### List appLimitCreditCodeItem records with cursor pagination - -```bash -csdk app-limit-credit-code-item list --limit 10 --after -``` - -### Find first matching appLimitCreditCodeItem - -```bash -csdk app-limit-credit-code-item find-first --where.id.equalTo -``` - -### List appLimitCreditCodeItem records with field selection - -```bash -csdk app-limit-credit-code-item list --select id,id -``` - -### List appLimitCreditCodeItem records with filtering and ordering - -```bash -csdk app-limit-credit-code-item list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a appLimitCreditCodeItem - -```bash -csdk app-limit-credit-code-item create --creditCodeId --defaultLimitId --amount [--creditType ] -``` - -### Get a appLimitCreditCodeItem by id - -```bash -csdk app-limit-credit-code-item get --id -``` diff --git a/.agents/skills/cli-admin/references/app-limit-credit-code.md b/.agents/skills/cli-admin/references/app-limit-credit-code.md deleted file mode 100644 index 018821c303..0000000000 --- a/.agents/skills/cli-admin/references/app-limit-credit-code.md +++ /dev/null @@ -1,68 +0,0 @@ -# appLimitCreditCode - - - -CRUD operations for AppLimitCreditCode records via csdk CLI - -## Usage - -```bash -csdk app-limit-credit-code list -csdk app-limit-credit-code list --where.. --orderBy -csdk app-limit-credit-code list --limit 10 --after -csdk app-limit-credit-code find-first --where.. -csdk app-limit-credit-code get --id -csdk app-limit-credit-code create --code [--maxRedemptions ] [--currentRedemptions ] [--expiresAt ] -csdk app-limit-credit-code update --id [--code ] [--maxRedemptions ] [--currentRedemptions ] [--expiresAt ] -csdk app-limit-credit-code delete --id -``` - -## Examples - -### List appLimitCreditCode records - -```bash -csdk app-limit-credit-code list -``` - -### List appLimitCreditCode records with pagination - -```bash -csdk app-limit-credit-code list --limit 10 --offset 0 -``` - -### List appLimitCreditCode records with cursor pagination - -```bash -csdk app-limit-credit-code list --limit 10 --after -``` - -### Find first matching appLimitCreditCode - -```bash -csdk app-limit-credit-code find-first --where.id.equalTo -``` - -### List appLimitCreditCode records with field selection - -```bash -csdk app-limit-credit-code list --select id,id -``` - -### List appLimitCreditCode records with filtering and ordering - -```bash -csdk app-limit-credit-code list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a appLimitCreditCode - -```bash -csdk app-limit-credit-code create --code [--maxRedemptions ] [--currentRedemptions ] [--expiresAt ] -``` - -### Get a appLimitCreditCode by id - -```bash -csdk app-limit-credit-code get --id -``` diff --git a/.agents/skills/cli-admin/references/app-limit-credit-redemption.md b/.agents/skills/cli-admin/references/app-limit-credit-redemption.md deleted file mode 100644 index cc48d2e049..0000000000 --- a/.agents/skills/cli-admin/references/app-limit-credit-redemption.md +++ /dev/null @@ -1,68 +0,0 @@ -# appLimitCreditRedemption - - - -CRUD operations for AppLimitCreditRedemption records via csdk CLI - -## Usage - -```bash -csdk app-limit-credit-redemption list -csdk app-limit-credit-redemption list --where.. --orderBy -csdk app-limit-credit-redemption list --limit 10 --after -csdk app-limit-credit-redemption find-first --where.. -csdk app-limit-credit-redemption get --id -csdk app-limit-credit-redemption create --creditCodeId --entityId -csdk app-limit-credit-redemption update --id [--creditCodeId ] [--entityId ] -csdk app-limit-credit-redemption delete --id -``` - -## Examples - -### List appLimitCreditRedemption records - -```bash -csdk app-limit-credit-redemption list -``` - -### List appLimitCreditRedemption records with pagination - -```bash -csdk app-limit-credit-redemption list --limit 10 --offset 0 -``` - -### List appLimitCreditRedemption records with cursor pagination - -```bash -csdk app-limit-credit-redemption list --limit 10 --after -``` - -### Find first matching appLimitCreditRedemption - -```bash -csdk app-limit-credit-redemption find-first --where.id.equalTo -``` - -### List appLimitCreditRedemption records with field selection - -```bash -csdk app-limit-credit-redemption list --select id,id -``` - -### List appLimitCreditRedemption records with filtering and ordering - -```bash -csdk app-limit-credit-redemption list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a appLimitCreditRedemption - -```bash -csdk app-limit-credit-redemption create --creditCodeId --entityId -``` - -### Get a appLimitCreditRedemption by id - -```bash -csdk app-limit-credit-redemption get --id -``` diff --git a/.agents/skills/cli-admin/references/app-limit-credit.md b/.agents/skills/cli-admin/references/app-limit-credit.md deleted file mode 100644 index cbcd84184a..0000000000 --- a/.agents/skills/cli-admin/references/app-limit-credit.md +++ /dev/null @@ -1,68 +0,0 @@ -# appLimitCredit - - - -CRUD operations for AppLimitCredit records via csdk CLI - -## Usage - -```bash -csdk app-limit-credit list -csdk app-limit-credit list --where.. --orderBy -csdk app-limit-credit list --limit 10 --after -csdk app-limit-credit find-first --where.. -csdk app-limit-credit get --id -csdk app-limit-credit create --defaultLimitId --amount [--actorId ] [--creditType ] [--reason ] -csdk app-limit-credit update --id [--defaultLimitId ] [--actorId ] [--amount ] [--creditType ] [--reason ] -csdk app-limit-credit delete --id -``` - -## Examples - -### List appLimitCredit records - -```bash -csdk app-limit-credit list -``` - -### List appLimitCredit records with pagination - -```bash -csdk app-limit-credit list --limit 10 --offset 0 -``` - -### List appLimitCredit records with cursor pagination - -```bash -csdk app-limit-credit list --limit 10 --after -``` - -### Find first matching appLimitCredit - -```bash -csdk app-limit-credit find-first --where.id.equalTo -``` - -### List appLimitCredit records with field selection - -```bash -csdk app-limit-credit list --select id,id -``` - -### List appLimitCredit records with filtering and ordering - -```bash -csdk app-limit-credit list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a appLimitCredit - -```bash -csdk app-limit-credit create --defaultLimitId --amount [--actorId ] [--creditType ] [--reason ] -``` - -### Get a appLimitCredit by id - -```bash -csdk app-limit-credit get --id -``` diff --git a/.agents/skills/cli-admin/references/app-limit-default.md b/.agents/skills/cli-admin/references/app-limit-default.md deleted file mode 100644 index 365d73b586..0000000000 --- a/.agents/skills/cli-admin/references/app-limit-default.md +++ /dev/null @@ -1,68 +0,0 @@ -# appLimitDefault - - - -CRUD operations for AppLimitDefault records via csdk CLI - -## Usage - -```bash -csdk app-limit-default list -csdk app-limit-default list --where.. --orderBy -csdk app-limit-default list --limit 10 --after -csdk app-limit-default find-first --where.. -csdk app-limit-default get --id -csdk app-limit-default create --name [--max ] [--softMax ] -csdk app-limit-default update --id [--name ] [--max ] [--softMax ] -csdk app-limit-default delete --id -``` - -## Examples - -### List appLimitDefault records - -```bash -csdk app-limit-default list -``` - -### List appLimitDefault records with pagination - -```bash -csdk app-limit-default list --limit 10 --offset 0 -``` - -### List appLimitDefault records with cursor pagination - -```bash -csdk app-limit-default list --limit 10 --after -``` - -### Find first matching appLimitDefault - -```bash -csdk app-limit-default find-first --where.id.equalTo -``` - -### List appLimitDefault records with field selection - -```bash -csdk app-limit-default list --select id,id -``` - -### List appLimitDefault records with filtering and ordering - -```bash -csdk app-limit-default list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a appLimitDefault - -```bash -csdk app-limit-default create --name [--max ] [--softMax ] -``` - -### Get a appLimitDefault by id - -```bash -csdk app-limit-default get --id -``` diff --git a/.agents/skills/cli-admin/references/app-limit-event.md b/.agents/skills/cli-admin/references/app-limit-event.md deleted file mode 100644 index dabcac3d1b..0000000000 --- a/.agents/skills/cli-admin/references/app-limit-event.md +++ /dev/null @@ -1,68 +0,0 @@ -# appLimitEvent - - - -CRUD operations for AppLimitEvent records via csdk CLI - -## Usage - -```bash -csdk app-limit-event list -csdk app-limit-event list --where.. --orderBy -csdk app-limit-event list --limit 10 --after -csdk app-limit-event find-first --where.. -csdk app-limit-event get --id -csdk app-limit-event create [--name ] [--actorId ] [--entityId ] [--organizationId ] [--entityType ] [--eventType ] [--delta ] [--numBefore ] [--numAfter ] [--maxAtEvent ] [--reason ] -csdk app-limit-event update --id [--name ] [--actorId ] [--entityId ] [--organizationId ] [--entityType ] [--eventType ] [--delta ] [--numBefore ] [--numAfter ] [--maxAtEvent ] [--reason ] -csdk app-limit-event delete --id -``` - -## Examples - -### List appLimitEvent records - -```bash -csdk app-limit-event list -``` - -### List appLimitEvent records with pagination - -```bash -csdk app-limit-event list --limit 10 --offset 0 -``` - -### List appLimitEvent records with cursor pagination - -```bash -csdk app-limit-event list --limit 10 --after -``` - -### Find first matching appLimitEvent - -```bash -csdk app-limit-event find-first --where.id.equalTo -``` - -### List appLimitEvent records with field selection - -```bash -csdk app-limit-event list --select id,id -``` - -### List appLimitEvent records with filtering and ordering - -```bash -csdk app-limit-event list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a appLimitEvent - -```bash -csdk app-limit-event create [--name ] [--actorId ] [--entityId ] [--organizationId ] [--entityType ] [--eventType ] [--delta ] [--numBefore ] [--numAfter ] [--maxAtEvent ] [--reason ] -``` - -### Get a appLimitEvent by id - -```bash -csdk app-limit-event get --id -``` diff --git a/.agents/skills/cli-admin/references/app-limit-warning.md b/.agents/skills/cli-admin/references/app-limit-warning.md deleted file mode 100644 index d9bbefd2c7..0000000000 --- a/.agents/skills/cli-admin/references/app-limit-warning.md +++ /dev/null @@ -1,68 +0,0 @@ -# appLimitWarning - - - -CRUD operations for AppLimitWarning records via csdk CLI - -## Usage - -```bash -csdk app-limit-warning list -csdk app-limit-warning list --where.. --orderBy -csdk app-limit-warning list --limit 10 --after -csdk app-limit-warning find-first --where.. -csdk app-limit-warning get --id -csdk app-limit-warning create --name --warningType --thresholdValue --taskIdentifier -csdk app-limit-warning update --id [--name ] [--warningType ] [--thresholdValue ] [--taskIdentifier ] -csdk app-limit-warning delete --id -``` - -## Examples - -### List appLimitWarning records - -```bash -csdk app-limit-warning list -``` - -### List appLimitWarning records with pagination - -```bash -csdk app-limit-warning list --limit 10 --offset 0 -``` - -### List appLimitWarning records with cursor pagination - -```bash -csdk app-limit-warning list --limit 10 --after -``` - -### Find first matching appLimitWarning - -```bash -csdk app-limit-warning find-first --where.id.equalTo -``` - -### List appLimitWarning records with field selection - -```bash -csdk app-limit-warning list --select id,id -``` - -### List appLimitWarning records with filtering and ordering - -```bash -csdk app-limit-warning list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a appLimitWarning - -```bash -csdk app-limit-warning create --name --warningType --thresholdValue --taskIdentifier -``` - -### Get a appLimitWarning by id - -```bash -csdk app-limit-warning get --id -``` diff --git a/.agents/skills/cli-admin/references/app-limit.md b/.agents/skills/cli-admin/references/app-limit.md deleted file mode 100644 index 101544e504..0000000000 --- a/.agents/skills/cli-admin/references/app-limit.md +++ /dev/null @@ -1,68 +0,0 @@ -# appLimit - - - -CRUD operations for AppLimit records via csdk CLI - -## Usage - -```bash -csdk app-limit list -csdk app-limit list --where.. --orderBy -csdk app-limit list --limit 10 --after -csdk app-limit find-first --where.. -csdk app-limit get --id -csdk app-limit create --actorId [--name ] [--num ] [--max ] [--softMax ] [--windowStart ] [--windowDuration ] [--planMax ] [--purchasedCredits ] [--periodCredits ] [--organizationId ] [--entityType ] -csdk app-limit update --id [--name ] [--actorId ] [--num ] [--max ] [--softMax ] [--windowStart ] [--windowDuration ] [--planMax ] [--purchasedCredits ] [--periodCredits ] [--organizationId ] [--entityType ] -csdk app-limit delete --id -``` - -## Examples - -### List appLimit records - -```bash -csdk app-limit list -``` - -### List appLimit records with pagination - -```bash -csdk app-limit list --limit 10 --offset 0 -``` - -### List appLimit records with cursor pagination - -```bash -csdk app-limit list --limit 10 --after -``` - -### Find first matching appLimit - -```bash -csdk app-limit find-first --where.id.equalTo -``` - -### List appLimit records with field selection - -```bash -csdk app-limit list --select id,id -``` - -### List appLimit records with filtering and ordering - -```bash -csdk app-limit list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a appLimit - -```bash -csdk app-limit create --actorId [--name ] [--num ] [--max ] [--softMax ] [--windowStart ] [--windowDuration ] [--planMax ] [--purchasedCredits ] [--periodCredits ] [--organizationId ] [--entityType ] -``` - -### Get a appLimit by id - -```bash -csdk app-limit get --id -``` diff --git a/.agents/skills/cli-admin/references/app-permission-default-grant.md b/.agents/skills/cli-admin/references/app-permission-default-grant.md deleted file mode 100644 index 67b402c01c..0000000000 --- a/.agents/skills/cli-admin/references/app-permission-default-grant.md +++ /dev/null @@ -1,68 +0,0 @@ -# appPermissionDefaultGrant - - - -CRUD operations for AppPermissionDefaultGrant records via csdk CLI - -## Usage - -```bash -csdk app-permission-default-grant list -csdk app-permission-default-grant list --where.. --orderBy -csdk app-permission-default-grant list --limit 10 --after -csdk app-permission-default-grant find-first --where.. -csdk app-permission-default-grant get --id -csdk app-permission-default-grant create --permissionId [--grantorId ] [--isGrant ] -csdk app-permission-default-grant update --id [--grantorId ] [--isGrant ] [--permissionId ] -csdk app-permission-default-grant delete --id -``` - -## Examples - -### List appPermissionDefaultGrant records - -```bash -csdk app-permission-default-grant list -``` - -### List appPermissionDefaultGrant records with pagination - -```bash -csdk app-permission-default-grant list --limit 10 --offset 0 -``` - -### List appPermissionDefaultGrant records with cursor pagination - -```bash -csdk app-permission-default-grant list --limit 10 --after -``` - -### Find first matching appPermissionDefaultGrant - -```bash -csdk app-permission-default-grant find-first --where.id.equalTo -``` - -### List appPermissionDefaultGrant records with field selection - -```bash -csdk app-permission-default-grant list --select id,id -``` - -### List appPermissionDefaultGrant records with filtering and ordering - -```bash -csdk app-permission-default-grant list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a appPermissionDefaultGrant - -```bash -csdk app-permission-default-grant create --permissionId [--grantorId ] [--isGrant ] -``` - -### Get a appPermissionDefaultGrant by id - -```bash -csdk app-permission-default-grant get --id -``` diff --git a/.agents/skills/cli-admin/references/app-permission-default-permission.md b/.agents/skills/cli-admin/references/app-permission-default-permission.md deleted file mode 100644 index c85737e9ae..0000000000 --- a/.agents/skills/cli-admin/references/app-permission-default-permission.md +++ /dev/null @@ -1,68 +0,0 @@ -# appPermissionDefaultPermission - - - -CRUD operations for AppPermissionDefaultPermission records via csdk CLI - -## Usage - -```bash -csdk app-permission-default-permission list -csdk app-permission-default-permission list --where.. --orderBy -csdk app-permission-default-permission list --limit 10 --after -csdk app-permission-default-permission find-first --where.. -csdk app-permission-default-permission get --id -csdk app-permission-default-permission create --permissionId -csdk app-permission-default-permission update --id [--permissionId ] -csdk app-permission-default-permission delete --id -``` - -## Examples - -### List appPermissionDefaultPermission records - -```bash -csdk app-permission-default-permission list -``` - -### List appPermissionDefaultPermission records with pagination - -```bash -csdk app-permission-default-permission list --limit 10 --offset 0 -``` - -### List appPermissionDefaultPermission records with cursor pagination - -```bash -csdk app-permission-default-permission list --limit 10 --after -``` - -### Find first matching appPermissionDefaultPermission - -```bash -csdk app-permission-default-permission find-first --where.id.equalTo -``` - -### List appPermissionDefaultPermission records with field selection - -```bash -csdk app-permission-default-permission list --select id,id -``` - -### List appPermissionDefaultPermission records with filtering and ordering - -```bash -csdk app-permission-default-permission list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a appPermissionDefaultPermission - -```bash -csdk app-permission-default-permission create --permissionId -``` - -### Get a appPermissionDefaultPermission by id - -```bash -csdk app-permission-default-permission get --id -``` diff --git a/.agents/skills/cli-admin/references/app-permission-default.md b/.agents/skills/cli-admin/references/app-permission-default.md deleted file mode 100644 index 86ef245035..0000000000 --- a/.agents/skills/cli-admin/references/app-permission-default.md +++ /dev/null @@ -1,68 +0,0 @@ -# appPermissionDefault - - - -CRUD operations for AppPermissionDefault records via csdk CLI - -## Usage - -```bash -csdk app-permission-default list -csdk app-permission-default list --where.. --orderBy -csdk app-permission-default list --limit 10 --after -csdk app-permission-default find-first --where.. -csdk app-permission-default get --id -csdk app-permission-default create [--permissions ] -csdk app-permission-default update --id [--permissions ] -csdk app-permission-default delete --id -``` - -## Examples - -### List appPermissionDefault records - -```bash -csdk app-permission-default list -``` - -### List appPermissionDefault records with pagination - -```bash -csdk app-permission-default list --limit 10 --offset 0 -``` - -### List appPermissionDefault records with cursor pagination - -```bash -csdk app-permission-default list --limit 10 --after -``` - -### Find first matching appPermissionDefault - -```bash -csdk app-permission-default find-first --where.id.equalTo -``` - -### List appPermissionDefault records with field selection - -```bash -csdk app-permission-default list --select id,id -``` - -### List appPermissionDefault records with filtering and ordering - -```bash -csdk app-permission-default list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a appPermissionDefault - -```bash -csdk app-permission-default create [--permissions ] -``` - -### Get a appPermissionDefault by id - -```bash -csdk app-permission-default get --id -``` diff --git a/.agents/skills/cli-admin/references/app-permission.md b/.agents/skills/cli-admin/references/app-permission.md deleted file mode 100644 index c5ade01cbd..0000000000 --- a/.agents/skills/cli-admin/references/app-permission.md +++ /dev/null @@ -1,68 +0,0 @@ -# appPermission - - - -CRUD operations for AppPermission records via csdk CLI - -## Usage - -```bash -csdk app-permission list -csdk app-permission list --where.. --orderBy -csdk app-permission list --limit 10 --after -csdk app-permission find-first --where.. -csdk app-permission get --id -csdk app-permission create [--bitnum ] [--bitstr ] [--description ] [--name ] -csdk app-permission update --id [--bitnum ] [--bitstr ] [--description ] [--name ] -csdk app-permission delete --id -``` - -## Examples - -### List appPermission records - -```bash -csdk app-permission list -``` - -### List appPermission records with pagination - -```bash -csdk app-permission list --limit 10 --offset 0 -``` - -### List appPermission records with cursor pagination - -```bash -csdk app-permission list --limit 10 --after -``` - -### Find first matching appPermission - -```bash -csdk app-permission find-first --where.id.equalTo -``` - -### List appPermission records with field selection - -```bash -csdk app-permission list --select id,id -``` - -### List appPermission records with filtering and ordering - -```bash -csdk app-permission list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a appPermission - -```bash -csdk app-permission create [--bitnum ] [--bitstr ] [--description ] [--name ] -``` - -### Get a appPermission by id - -```bash -csdk app-permission get --id -``` diff --git a/.agents/skills/cli-admin/references/app-permissions-get-by-mask.md b/.agents/skills/cli-admin/references/app-permissions-get-by-mask.md deleted file mode 100644 index 197b9a37c1..0000000000 --- a/.agents/skills/cli-admin/references/app-permissions-get-by-mask.md +++ /dev/null @@ -1,19 +0,0 @@ -# appPermissionsGetByMask - - - -Reads and enables pagination through a set of `AppPermission`. - -## Usage - -```bash -csdk app-permissions-get-by-mask --after --first --mask --offset -``` - -## Examples - -### Run appPermissionsGetByMask - -```bash -csdk app-permissions-get-by-mask --after --first --mask --offset -``` diff --git a/.agents/skills/cli-admin/references/app-permissions-get-mask-by-names.md b/.agents/skills/cli-admin/references/app-permissions-get-mask-by-names.md deleted file mode 100644 index 1d89a114c9..0000000000 --- a/.agents/skills/cli-admin/references/app-permissions-get-mask-by-names.md +++ /dev/null @@ -1,19 +0,0 @@ -# appPermissionsGetMaskByNames - - - -Execute the appPermissionsGetMaskByNames query - -## Usage - -```bash -csdk app-permissions-get-mask-by-names --names -``` - -## Examples - -### Run appPermissionsGetMaskByNames - -```bash -csdk app-permissions-get-mask-by-names --names -``` diff --git a/.agents/skills/cli-admin/references/app-permissions-get-mask.md b/.agents/skills/cli-admin/references/app-permissions-get-mask.md deleted file mode 100644 index b9220c3c91..0000000000 --- a/.agents/skills/cli-admin/references/app-permissions-get-mask.md +++ /dev/null @@ -1,19 +0,0 @@ -# appPermissionsGetMask - - - -Execute the appPermissionsGetMask query - -## Usage - -```bash -csdk app-permissions-get-mask --ids -``` - -## Examples - -### Run appPermissionsGetMask - -```bash -csdk app-permissions-get-mask --ids -``` diff --git a/.agents/skills/cli-admin/references/app-permissions-get-padded-mask.md b/.agents/skills/cli-admin/references/app-permissions-get-padded-mask.md deleted file mode 100644 index b1aef577dc..0000000000 --- a/.agents/skills/cli-admin/references/app-permissions-get-padded-mask.md +++ /dev/null @@ -1,19 +0,0 @@ -# appPermissionsGetPaddedMask - - - -Execute the appPermissionsGetPaddedMask query - -## Usage - -```bash -csdk app-permissions-get-padded-mask --mask -``` - -## Examples - -### Run appPermissionsGetPaddedMask - -```bash -csdk app-permissions-get-padded-mask --mask -``` diff --git a/.agents/skills/cli-admin/references/app-step.md b/.agents/skills/cli-admin/references/app-step.md deleted file mode 100644 index 7495cb26bb..0000000000 --- a/.agents/skills/cli-admin/references/app-step.md +++ /dev/null @@ -1,68 +0,0 @@ -# appStep - - - -CRUD operations for AppStep records via csdk CLI - -## Usage - -```bash -csdk app-step list -csdk app-step list --where.. --orderBy -csdk app-step list --limit 10 --after -csdk app-step find-first --where.. -csdk app-step get --id -csdk app-step create --name [--actorId ] [--count ] -csdk app-step update --id [--actorId ] [--name ] [--count ] -csdk app-step delete --id -``` - -## Examples - -### List appStep records - -```bash -csdk app-step list -``` - -### List appStep records with pagination - -```bash -csdk app-step list --limit 10 --offset 0 -``` - -### List appStep records with cursor pagination - -```bash -csdk app-step list --limit 10 --after -``` - -### Find first matching appStep - -```bash -csdk app-step find-first --where.id.equalTo -``` - -### List appStep records with field selection - -```bash -csdk app-step list --select id,id -``` - -### List appStep records with filtering and ordering - -```bash -csdk app-step list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a appStep - -```bash -csdk app-step create --name [--actorId ] [--count ] -``` - -### Get a appStep by id - -```bash -csdk app-step get --id -``` diff --git a/.agents/skills/cli-admin/references/claimed-invite.md b/.agents/skills/cli-admin/references/claimed-invite.md deleted file mode 100644 index 104b1753c7..0000000000 --- a/.agents/skills/cli-admin/references/claimed-invite.md +++ /dev/null @@ -1,68 +0,0 @@ -# claimedInvite - - - -CRUD operations for ClaimedInvite records via csdk CLI - -## Usage - -```bash -csdk claimed-invite list -csdk claimed-invite list --where.. --orderBy -csdk claimed-invite list --limit 10 --after -csdk claimed-invite find-first --where.. -csdk claimed-invite get --id -csdk claimed-invite create [--data ] [--senderId ] [--receiverId ] -csdk claimed-invite update --id [--data ] [--senderId ] [--receiverId ] -csdk claimed-invite delete --id -``` - -## Examples - -### List claimedInvite records - -```bash -csdk claimed-invite list -``` - -### List claimedInvite records with pagination - -```bash -csdk claimed-invite list --limit 10 --offset 0 -``` - -### List claimedInvite records with cursor pagination - -```bash -csdk claimed-invite list --limit 10 --after -``` - -### Find first matching claimedInvite - -```bash -csdk claimed-invite find-first --where.id.equalTo -``` - -### List claimedInvite records with field selection - -```bash -csdk claimed-invite list --select id,id -``` - -### List claimedInvite records with filtering and ordering - -```bash -csdk claimed-invite list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a claimedInvite - -```bash -csdk claimed-invite create [--data ] [--senderId ] [--receiverId ] -``` - -### Get a claimedInvite by id - -```bash -csdk claimed-invite get --id -``` diff --git a/.agents/skills/cli-admin/references/confirm-upload.md b/.agents/skills/cli-admin/references/confirm-upload.md deleted file mode 100644 index a9f4915b99..0000000000 --- a/.agents/skills/cli-admin/references/confirm-upload.md +++ /dev/null @@ -1,21 +0,0 @@ -# confirmUpload - - - -Confirm that a file has been uploaded to S3. -Verifies the object exists in S3, checks content-type, -and transitions the file status from 'pending' to 'ready'. - -## Usage - -```bash -csdk confirm-upload --input.fileId -``` - -## Examples - -### Run confirmUpload - -```bash -csdk confirm-upload --input.fileId -``` diff --git a/.agents/skills/cli-admin/references/invite.md b/.agents/skills/cli-admin/references/invite.md deleted file mode 100644 index 640c18bd1f..0000000000 --- a/.agents/skills/cli-admin/references/invite.md +++ /dev/null @@ -1,68 +0,0 @@ -# invite - - - -CRUD operations for Invite records via csdk CLI - -## Usage - -```bash -csdk invite list -csdk invite list --where.. --orderBy -csdk invite list --limit 10 --after -csdk invite find-first --where.. -csdk invite get --id -csdk invite create [--email ] [--senderId ] [--inviteToken ] [--inviteValid ] [--inviteLimit ] [--inviteCount ] [--multiple ] [--data ] [--expiresAt ] -csdk invite update --id [--email ] [--senderId ] [--inviteToken ] [--inviteValid ] [--inviteLimit ] [--inviteCount ] [--multiple ] [--data ] [--expiresAt ] -csdk invite delete --id -``` - -## Examples - -### List invite records - -```bash -csdk invite list -``` - -### List invite records with pagination - -```bash -csdk invite list --limit 10 --offset 0 -``` - -### List invite records with cursor pagination - -```bash -csdk invite list --limit 10 --after -``` - -### Find first matching invite - -```bash -csdk invite find-first --where.id.equalTo -``` - -### List invite records with field selection - -```bash -csdk invite list --select id,id -``` - -### List invite records with filtering and ordering - -```bash -csdk invite list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a invite - -```bash -csdk invite create [--email ] [--senderId ] [--inviteToken ] [--inviteValid ] [--inviteLimit ] [--inviteCount ] [--multiple ] [--data ] [--expiresAt ] -``` - -### Get a invite by id - -```bash -csdk invite get --id -``` diff --git a/.agents/skills/cli-admin/references/my-pending-app-invites-record.md b/.agents/skills/cli-admin/references/my-pending-app-invites-record.md index 06b80adddb..6612385e76 100644 --- a/.agents/skills/cli-admin/references/my-pending-app-invites-record.md +++ b/.agents/skills/cli-admin/references/my-pending-app-invites-record.md @@ -12,7 +12,6 @@ csdk my-pending-app-invites-record list --where.. --orderBy < csdk my-pending-app-invites-record list --limit 10 --after csdk my-pending-app-invites-record find-first --where.. csdk my-pending-app-invites-record get --id -csdk my-pending-app-invites-record create --channel --expiresAt --senderId csdk my-pending-app-invites-record update --id [--channel ] [--expiresAt ] [--senderId ] csdk my-pending-app-invites-record delete --id ``` @@ -55,12 +54,6 @@ csdk my-pending-app-invites-record list --select id,id csdk my-pending-app-invites-record list --where.id.equalTo --orderBy ID_ASC ``` -### Create a myPendingAppInvitesRecord - -```bash -csdk my-pending-app-invites-record create --channel --expiresAt --senderId -``` - ### Get a myPendingAppInvitesRecord by id ```bash diff --git a/.agents/skills/cli-admin/references/my-pending-org-invites-record.md b/.agents/skills/cli-admin/references/my-pending-org-invites-record.md index b58f10b26a..96f2a4a834 100644 --- a/.agents/skills/cli-admin/references/my-pending-org-invites-record.md +++ b/.agents/skills/cli-admin/references/my-pending-org-invites-record.md @@ -12,7 +12,6 @@ csdk my-pending-org-invites-record list --where.. --orderBy < csdk my-pending-org-invites-record list --limit 10 --after csdk my-pending-org-invites-record find-first --where.. csdk my-pending-org-invites-record get --id -csdk my-pending-org-invites-record create --channel --entityId --expiresAt --senderId csdk my-pending-org-invites-record update --id [--channel ] [--entityId ] [--expiresAt ] [--senderId ] csdk my-pending-org-invites-record delete --id ``` @@ -55,12 +54,6 @@ csdk my-pending-org-invites-record list --select id,id csdk my-pending-org-invites-record list --where.id.equalTo --orderBy ID_ASC ``` -### Create a myPendingOrgInvitesRecord - -```bash -csdk my-pending-org-invites-record create --channel --entityId --expiresAt --senderId -``` - ### Get a myPendingOrgInvitesRecord by id ```bash diff --git a/.agents/skills/cli-admin/references/org-get-managers-record.md b/.agents/skills/cli-admin/references/org-get-managers-record.md index 92560d77bd..563e9f6634 100644 --- a/.agents/skills/cli-admin/references/org-get-managers-record.md +++ b/.agents/skills/cli-admin/references/org-get-managers-record.md @@ -12,7 +12,6 @@ csdk org-get-managers-record list --where.. --orderBy csdk org-get-managers-record find-first --where.. csdk org-get-managers-record get --id -csdk org-get-managers-record create --depth --userId csdk org-get-managers-record update --id [--depth ] [--userId ] csdk org-get-managers-record delete --id ``` @@ -55,12 +54,6 @@ csdk org-get-managers-record list --select id,id csdk org-get-managers-record list --where.id.equalTo --orderBy ID_ASC ``` -### Create a orgGetManagersRecord - -```bash -csdk org-get-managers-record create --depth --userId -``` - ### Get a orgGetManagersRecord by id ```bash diff --git a/.agents/skills/cli-admin/references/org-get-subordinates-record.md b/.agents/skills/cli-admin/references/org-get-subordinates-record.md index 316fba7e86..bcbea758d5 100644 --- a/.agents/skills/cli-admin/references/org-get-subordinates-record.md +++ b/.agents/skills/cli-admin/references/org-get-subordinates-record.md @@ -12,7 +12,6 @@ csdk org-get-subordinates-record list --where.. --orderBy csdk org-get-subordinates-record find-first --where.. csdk org-get-subordinates-record get --id -csdk org-get-subordinates-record create --depth --userId csdk org-get-subordinates-record update --id [--depth ] [--userId ] csdk org-get-subordinates-record delete --id ``` @@ -55,12 +54,6 @@ csdk org-get-subordinates-record list --select id,id csdk org-get-subordinates-record list --where.id.equalTo --orderBy ID_ASC ``` -### Create a orgGetSubordinatesRecord - -```bash -csdk org-get-subordinates-record create --depth --userId -``` - ### Get a orgGetSubordinatesRecord by id ```bash diff --git a/.agents/skills/cli-admin/references/org-limit-aggregate.md b/.agents/skills/cli-admin/references/org-limit-aggregate.md deleted file mode 100644 index b9a899e208..0000000000 --- a/.agents/skills/cli-admin/references/org-limit-aggregate.md +++ /dev/null @@ -1,68 +0,0 @@ -# orgLimitAggregate - - - -CRUD operations for OrgLimitAggregate records via csdk CLI - -## Usage - -```bash -csdk org-limit-aggregate list -csdk org-limit-aggregate list --where.. --orderBy -csdk org-limit-aggregate list --limit 10 --after -csdk org-limit-aggregate find-first --where.. -csdk org-limit-aggregate get --id -csdk org-limit-aggregate create --entityId [--name ] [--num ] [--max ] [--softMax ] [--windowStart ] [--windowDuration ] [--planMax ] [--purchasedCredits ] [--periodCredits ] [--reserved ] [--organizationId ] [--entityType ] -csdk org-limit-aggregate update --id [--name ] [--entityId ] [--num ] [--max ] [--softMax ] [--windowStart ] [--windowDuration ] [--planMax ] [--purchasedCredits ] [--periodCredits ] [--reserved ] [--organizationId ] [--entityType ] -csdk org-limit-aggregate delete --id -``` - -## Examples - -### List orgLimitAggregate records - -```bash -csdk org-limit-aggregate list -``` - -### List orgLimitAggregate records with pagination - -```bash -csdk org-limit-aggregate list --limit 10 --offset 0 -``` - -### List orgLimitAggregate records with cursor pagination - -```bash -csdk org-limit-aggregate list --limit 10 --after -``` - -### Find first matching orgLimitAggregate - -```bash -csdk org-limit-aggregate find-first --where.id.equalTo -``` - -### List orgLimitAggregate records with field selection - -```bash -csdk org-limit-aggregate list --select id,id -``` - -### List orgLimitAggregate records with filtering and ordering - -```bash -csdk org-limit-aggregate list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a orgLimitAggregate - -```bash -csdk org-limit-aggregate create --entityId [--name ] [--num ] [--max ] [--softMax ] [--windowStart ] [--windowDuration ] [--planMax ] [--purchasedCredits ] [--periodCredits ] [--reserved ] [--organizationId ] [--entityType ] -``` - -### Get a orgLimitAggregate by id - -```bash -csdk org-limit-aggregate get --id -``` diff --git a/.agents/skills/cli-admin/references/org-limit-cap.md b/.agents/skills/cli-admin/references/org-limit-cap.md deleted file mode 100644 index 793babf73a..0000000000 --- a/.agents/skills/cli-admin/references/org-limit-cap.md +++ /dev/null @@ -1,68 +0,0 @@ -# orgLimitCap - - - -CRUD operations for OrgLimitCap records via csdk CLI - -## Usage - -```bash -csdk org-limit-cap list -csdk org-limit-cap list --where.. --orderBy -csdk org-limit-cap list --limit 10 --after -csdk org-limit-cap find-first --where.. -csdk org-limit-cap get --id -csdk org-limit-cap create --name --entityId [--max ] -csdk org-limit-cap update --id [--name ] [--entityId ] [--max ] -csdk org-limit-cap delete --id -``` - -## Examples - -### List orgLimitCap records - -```bash -csdk org-limit-cap list -``` - -### List orgLimitCap records with pagination - -```bash -csdk org-limit-cap list --limit 10 --offset 0 -``` - -### List orgLimitCap records with cursor pagination - -```bash -csdk org-limit-cap list --limit 10 --after -``` - -### Find first matching orgLimitCap - -```bash -csdk org-limit-cap find-first --where.id.equalTo -``` - -### List orgLimitCap records with field selection - -```bash -csdk org-limit-cap list --select id,id -``` - -### List orgLimitCap records with filtering and ordering - -```bash -csdk org-limit-cap list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a orgLimitCap - -```bash -csdk org-limit-cap create --name --entityId [--max ] -``` - -### Get a orgLimitCap by id - -```bash -csdk org-limit-cap get --id -``` diff --git a/.agents/skills/cli-admin/references/org-limit-caps-default.md b/.agents/skills/cli-admin/references/org-limit-caps-default.md deleted file mode 100644 index cfc6561a16..0000000000 --- a/.agents/skills/cli-admin/references/org-limit-caps-default.md +++ /dev/null @@ -1,68 +0,0 @@ -# orgLimitCapsDefault - - - -CRUD operations for OrgLimitCapsDefault records via csdk CLI - -## Usage - -```bash -csdk org-limit-caps-default list -csdk org-limit-caps-default list --where.. --orderBy -csdk org-limit-caps-default list --limit 10 --after -csdk org-limit-caps-default find-first --where.. -csdk org-limit-caps-default get --id -csdk org-limit-caps-default create --name [--max ] -csdk org-limit-caps-default update --id [--name ] [--max ] -csdk org-limit-caps-default delete --id -``` - -## Examples - -### List orgLimitCapsDefault records - -```bash -csdk org-limit-caps-default list -``` - -### List orgLimitCapsDefault records with pagination - -```bash -csdk org-limit-caps-default list --limit 10 --offset 0 -``` - -### List orgLimitCapsDefault records with cursor pagination - -```bash -csdk org-limit-caps-default list --limit 10 --after -``` - -### Find first matching orgLimitCapsDefault - -```bash -csdk org-limit-caps-default find-first --where.id.equalTo -``` - -### List orgLimitCapsDefault records with field selection - -```bash -csdk org-limit-caps-default list --select id,id -``` - -### List orgLimitCapsDefault records with filtering and ordering - -```bash -csdk org-limit-caps-default list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a orgLimitCapsDefault - -```bash -csdk org-limit-caps-default create --name [--max ] -``` - -### Get a orgLimitCapsDefault by id - -```bash -csdk org-limit-caps-default get --id -``` diff --git a/.agents/skills/cli-admin/references/org-limit-credit.md b/.agents/skills/cli-admin/references/org-limit-credit.md deleted file mode 100644 index 260ff03a3d..0000000000 --- a/.agents/skills/cli-admin/references/org-limit-credit.md +++ /dev/null @@ -1,68 +0,0 @@ -# orgLimitCredit - - - -CRUD operations for OrgLimitCredit records via csdk CLI - -## Usage - -```bash -csdk org-limit-credit list -csdk org-limit-credit list --where.. --orderBy -csdk org-limit-credit list --limit 10 --after -csdk org-limit-credit find-first --where.. -csdk org-limit-credit get --id -csdk org-limit-credit create --defaultLimitId --amount [--actorId ] [--entityId ] [--creditType ] [--reason ] -csdk org-limit-credit update --id [--defaultLimitId ] [--actorId ] [--entityId ] [--amount ] [--creditType ] [--reason ] -csdk org-limit-credit delete --id -``` - -## Examples - -### List orgLimitCredit records - -```bash -csdk org-limit-credit list -``` - -### List orgLimitCredit records with pagination - -```bash -csdk org-limit-credit list --limit 10 --offset 0 -``` - -### List orgLimitCredit records with cursor pagination - -```bash -csdk org-limit-credit list --limit 10 --after -``` - -### Find first matching orgLimitCredit - -```bash -csdk org-limit-credit find-first --where.id.equalTo -``` - -### List orgLimitCredit records with field selection - -```bash -csdk org-limit-credit list --select id,id -``` - -### List orgLimitCredit records with filtering and ordering - -```bash -csdk org-limit-credit list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a orgLimitCredit - -```bash -csdk org-limit-credit create --defaultLimitId --amount [--actorId ] [--entityId ] [--creditType ] [--reason ] -``` - -### Get a orgLimitCredit by id - -```bash -csdk org-limit-credit get --id -``` diff --git a/.agents/skills/cli-admin/references/org-limit-default.md b/.agents/skills/cli-admin/references/org-limit-default.md deleted file mode 100644 index 2a1be2a459..0000000000 --- a/.agents/skills/cli-admin/references/org-limit-default.md +++ /dev/null @@ -1,68 +0,0 @@ -# orgLimitDefault - - - -CRUD operations for OrgLimitDefault records via csdk CLI - -## Usage - -```bash -csdk org-limit-default list -csdk org-limit-default list --where.. --orderBy -csdk org-limit-default list --limit 10 --after -csdk org-limit-default find-first --where.. -csdk org-limit-default get --id -csdk org-limit-default create --name [--max ] [--softMax ] -csdk org-limit-default update --id [--name ] [--max ] [--softMax ] -csdk org-limit-default delete --id -``` - -## Examples - -### List orgLimitDefault records - -```bash -csdk org-limit-default list -``` - -### List orgLimitDefault records with pagination - -```bash -csdk org-limit-default list --limit 10 --offset 0 -``` - -### List orgLimitDefault records with cursor pagination - -```bash -csdk org-limit-default list --limit 10 --after -``` - -### Find first matching orgLimitDefault - -```bash -csdk org-limit-default find-first --where.id.equalTo -``` - -### List orgLimitDefault records with field selection - -```bash -csdk org-limit-default list --select id,id -``` - -### List orgLimitDefault records with filtering and ordering - -```bash -csdk org-limit-default list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a orgLimitDefault - -```bash -csdk org-limit-default create --name [--max ] [--softMax ] -``` - -### Get a orgLimitDefault by id - -```bash -csdk org-limit-default get --id -``` diff --git a/.agents/skills/cli-admin/references/org-limit-event.md b/.agents/skills/cli-admin/references/org-limit-event.md deleted file mode 100644 index 971b708c73..0000000000 --- a/.agents/skills/cli-admin/references/org-limit-event.md +++ /dev/null @@ -1,68 +0,0 @@ -# orgLimitEvent - - - -CRUD operations for OrgLimitEvent records via csdk CLI - -## Usage - -```bash -csdk org-limit-event list -csdk org-limit-event list --where.. --orderBy -csdk org-limit-event list --limit 10 --after -csdk org-limit-event find-first --where.. -csdk org-limit-event get --id -csdk org-limit-event create [--name ] [--actorId ] [--entityId ] [--organizationId ] [--entityType ] [--eventType ] [--delta ] [--numBefore ] [--numAfter ] [--maxAtEvent ] [--reason ] -csdk org-limit-event update --id [--name ] [--actorId ] [--entityId ] [--organizationId ] [--entityType ] [--eventType ] [--delta ] [--numBefore ] [--numAfter ] [--maxAtEvent ] [--reason ] -csdk org-limit-event delete --id -``` - -## Examples - -### List orgLimitEvent records - -```bash -csdk org-limit-event list -``` - -### List orgLimitEvent records with pagination - -```bash -csdk org-limit-event list --limit 10 --offset 0 -``` - -### List orgLimitEvent records with cursor pagination - -```bash -csdk org-limit-event list --limit 10 --after -``` - -### Find first matching orgLimitEvent - -```bash -csdk org-limit-event find-first --where.id.equalTo -``` - -### List orgLimitEvent records with field selection - -```bash -csdk org-limit-event list --select id,id -``` - -### List orgLimitEvent records with filtering and ordering - -```bash -csdk org-limit-event list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a orgLimitEvent - -```bash -csdk org-limit-event create [--name ] [--actorId ] [--entityId ] [--organizationId ] [--entityType ] [--eventType ] [--delta ] [--numBefore ] [--numAfter ] [--maxAtEvent ] [--reason ] -``` - -### Get a orgLimitEvent by id - -```bash -csdk org-limit-event get --id -``` diff --git a/.agents/skills/cli-admin/references/org-limit-warning.md b/.agents/skills/cli-admin/references/org-limit-warning.md deleted file mode 100644 index d6e30c4c62..0000000000 --- a/.agents/skills/cli-admin/references/org-limit-warning.md +++ /dev/null @@ -1,68 +0,0 @@ -# orgLimitWarning - - - -CRUD operations for OrgLimitWarning records via csdk CLI - -## Usage - -```bash -csdk org-limit-warning list -csdk org-limit-warning list --where.. --orderBy -csdk org-limit-warning list --limit 10 --after -csdk org-limit-warning find-first --where.. -csdk org-limit-warning get --id -csdk org-limit-warning create --name --warningType --thresholdValue --taskIdentifier [--entityId ] -csdk org-limit-warning update --id [--name ] [--warningType ] [--thresholdValue ] [--taskIdentifier ] [--entityId ] -csdk org-limit-warning delete --id -``` - -## Examples - -### List orgLimitWarning records - -```bash -csdk org-limit-warning list -``` - -### List orgLimitWarning records with pagination - -```bash -csdk org-limit-warning list --limit 10 --offset 0 -``` - -### List orgLimitWarning records with cursor pagination - -```bash -csdk org-limit-warning list --limit 10 --after -``` - -### Find first matching orgLimitWarning - -```bash -csdk org-limit-warning find-first --where.id.equalTo -``` - -### List orgLimitWarning records with field selection - -```bash -csdk org-limit-warning list --select id,id -``` - -### List orgLimitWarning records with filtering and ordering - -```bash -csdk org-limit-warning list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a orgLimitWarning - -```bash -csdk org-limit-warning create --name --warningType --thresholdValue --taskIdentifier [--entityId ] -``` - -### Get a orgLimitWarning by id - -```bash -csdk org-limit-warning get --id -``` diff --git a/.agents/skills/cli-admin/references/org-limit.md b/.agents/skills/cli-admin/references/org-limit.md deleted file mode 100644 index a72ce6fe87..0000000000 --- a/.agents/skills/cli-admin/references/org-limit.md +++ /dev/null @@ -1,68 +0,0 @@ -# orgLimit - - - -CRUD operations for OrgLimit records via csdk CLI - -## Usage - -```bash -csdk org-limit list -csdk org-limit list --where.. --orderBy -csdk org-limit list --limit 10 --after -csdk org-limit find-first --where.. -csdk org-limit get --id -csdk org-limit create --actorId --entityId [--name ] [--num ] [--max ] [--softMax ] [--windowStart ] [--windowDuration ] [--planMax ] [--purchasedCredits ] [--periodCredits ] [--organizationId ] [--entityType ] -csdk org-limit update --id [--name ] [--actorId ] [--num ] [--max ] [--softMax ] [--windowStart ] [--windowDuration ] [--planMax ] [--purchasedCredits ] [--periodCredits ] [--entityId ] [--organizationId ] [--entityType ] -csdk org-limit delete --id -``` - -## Examples - -### List orgLimit records - -```bash -csdk org-limit list -``` - -### List orgLimit records with pagination - -```bash -csdk org-limit list --limit 10 --offset 0 -``` - -### List orgLimit records with cursor pagination - -```bash -csdk org-limit list --limit 10 --after -``` - -### Find first matching orgLimit - -```bash -csdk org-limit find-first --where.id.equalTo -``` - -### List orgLimit records with field selection - -```bash -csdk org-limit list --select id,id -``` - -### List orgLimit records with filtering and ordering - -```bash -csdk org-limit list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a orgLimit - -```bash -csdk org-limit create --actorId --entityId [--name ] [--num ] [--max ] [--softMax ] [--windowStart ] [--windowDuration ] [--planMax ] [--purchasedCredits ] [--periodCredits ] [--organizationId ] [--entityType ] -``` - -### Get a orgLimit by id - -```bash -csdk org-limit get --id -``` diff --git a/.agents/skills/cli-admin/references/org-permission-default-grant.md b/.agents/skills/cli-admin/references/org-permission-default-grant.md deleted file mode 100644 index 50039765a3..0000000000 --- a/.agents/skills/cli-admin/references/org-permission-default-grant.md +++ /dev/null @@ -1,68 +0,0 @@ -# orgPermissionDefaultGrant - - - -CRUD operations for OrgPermissionDefaultGrant records via csdk CLI - -## Usage - -```bash -csdk org-permission-default-grant list -csdk org-permission-default-grant list --where.. --orderBy -csdk org-permission-default-grant list --limit 10 --after -csdk org-permission-default-grant find-first --where.. -csdk org-permission-default-grant get --id -csdk org-permission-default-grant create --entityId --permissionId [--grantorId ] [--isGrant ] -csdk org-permission-default-grant update --id [--entityId ] [--grantorId ] [--isGrant ] [--permissionId ] -csdk org-permission-default-grant delete --id -``` - -## Examples - -### List orgPermissionDefaultGrant records - -```bash -csdk org-permission-default-grant list -``` - -### List orgPermissionDefaultGrant records with pagination - -```bash -csdk org-permission-default-grant list --limit 10 --offset 0 -``` - -### List orgPermissionDefaultGrant records with cursor pagination - -```bash -csdk org-permission-default-grant list --limit 10 --after -``` - -### Find first matching orgPermissionDefaultGrant - -```bash -csdk org-permission-default-grant find-first --where.id.equalTo -``` - -### List orgPermissionDefaultGrant records with field selection - -```bash -csdk org-permission-default-grant list --select id,id -``` - -### List orgPermissionDefaultGrant records with filtering and ordering - -```bash -csdk org-permission-default-grant list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a orgPermissionDefaultGrant - -```bash -csdk org-permission-default-grant create --entityId --permissionId [--grantorId ] [--isGrant ] -``` - -### Get a orgPermissionDefaultGrant by id - -```bash -csdk org-permission-default-grant get --id -``` diff --git a/.agents/skills/cli-admin/references/org-permission-default-permission.md b/.agents/skills/cli-admin/references/org-permission-default-permission.md deleted file mode 100644 index e54984130e..0000000000 --- a/.agents/skills/cli-admin/references/org-permission-default-permission.md +++ /dev/null @@ -1,68 +0,0 @@ -# orgPermissionDefaultPermission - - - -CRUD operations for OrgPermissionDefaultPermission records via csdk CLI - -## Usage - -```bash -csdk org-permission-default-permission list -csdk org-permission-default-permission list --where.. --orderBy -csdk org-permission-default-permission list --limit 10 --after -csdk org-permission-default-permission find-first --where.. -csdk org-permission-default-permission get --id -csdk org-permission-default-permission create --entityId --permissionId -csdk org-permission-default-permission update --id [--entityId ] [--permissionId ] -csdk org-permission-default-permission delete --id -``` - -## Examples - -### List orgPermissionDefaultPermission records - -```bash -csdk org-permission-default-permission list -``` - -### List orgPermissionDefaultPermission records with pagination - -```bash -csdk org-permission-default-permission list --limit 10 --offset 0 -``` - -### List orgPermissionDefaultPermission records with cursor pagination - -```bash -csdk org-permission-default-permission list --limit 10 --after -``` - -### Find first matching orgPermissionDefaultPermission - -```bash -csdk org-permission-default-permission find-first --where.id.equalTo -``` - -### List orgPermissionDefaultPermission records with field selection - -```bash -csdk org-permission-default-permission list --select id,id -``` - -### List orgPermissionDefaultPermission records with filtering and ordering - -```bash -csdk org-permission-default-permission list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a orgPermissionDefaultPermission - -```bash -csdk org-permission-default-permission create --entityId --permissionId -``` - -### Get a orgPermissionDefaultPermission by id - -```bash -csdk org-permission-default-permission get --id -``` diff --git a/.agents/skills/cli-admin/references/org-permission-default.md b/.agents/skills/cli-admin/references/org-permission-default.md deleted file mode 100644 index 61e6ac32ef..0000000000 --- a/.agents/skills/cli-admin/references/org-permission-default.md +++ /dev/null @@ -1,68 +0,0 @@ -# orgPermissionDefault - - - -CRUD operations for OrgPermissionDefault records via csdk CLI - -## Usage - -```bash -csdk org-permission-default list -csdk org-permission-default list --where.. --orderBy -csdk org-permission-default list --limit 10 --after -csdk org-permission-default find-first --where.. -csdk org-permission-default get --id -csdk org-permission-default create --entityId [--permissions ] -csdk org-permission-default update --id [--entityId ] [--permissions ] -csdk org-permission-default delete --id -``` - -## Examples - -### List orgPermissionDefault records - -```bash -csdk org-permission-default list -``` - -### List orgPermissionDefault records with pagination - -```bash -csdk org-permission-default list --limit 10 --offset 0 -``` - -### List orgPermissionDefault records with cursor pagination - -```bash -csdk org-permission-default list --limit 10 --after -``` - -### Find first matching orgPermissionDefault - -```bash -csdk org-permission-default find-first --where.id.equalTo -``` - -### List orgPermissionDefault records with field selection - -```bash -csdk org-permission-default list --select id,id -``` - -### List orgPermissionDefault records with filtering and ordering - -```bash -csdk org-permission-default list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a orgPermissionDefault - -```bash -csdk org-permission-default create --entityId [--permissions ] -``` - -### Get a orgPermissionDefault by id - -```bash -csdk org-permission-default get --id -``` diff --git a/.agents/skills/cli-admin/references/org-permission.md b/.agents/skills/cli-admin/references/org-permission.md deleted file mode 100644 index 6f07998415..0000000000 --- a/.agents/skills/cli-admin/references/org-permission.md +++ /dev/null @@ -1,68 +0,0 @@ -# orgPermission - - - -CRUD operations for OrgPermission records via csdk CLI - -## Usage - -```bash -csdk org-permission list -csdk org-permission list --where.. --orderBy -csdk org-permission list --limit 10 --after -csdk org-permission find-first --where.. -csdk org-permission get --id -csdk org-permission create [--bitnum ] [--bitstr ] [--description ] [--name ] -csdk org-permission update --id [--bitnum ] [--bitstr ] [--description ] [--name ] -csdk org-permission delete --id -``` - -## Examples - -### List orgPermission records - -```bash -csdk org-permission list -``` - -### List orgPermission records with pagination - -```bash -csdk org-permission list --limit 10 --offset 0 -``` - -### List orgPermission records with cursor pagination - -```bash -csdk org-permission list --limit 10 --after -``` - -### Find first matching orgPermission - -```bash -csdk org-permission find-first --where.id.equalTo -``` - -### List orgPermission records with field selection - -```bash -csdk org-permission list --select id,id -``` - -### List orgPermission records with filtering and ordering - -```bash -csdk org-permission list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a orgPermission - -```bash -csdk org-permission create [--bitnum ] [--bitstr ] [--description ] [--name ] -``` - -### Get a orgPermission by id - -```bash -csdk org-permission get --id -``` diff --git a/.agents/skills/cli-admin/references/org-permissions-get-by-mask.md b/.agents/skills/cli-admin/references/org-permissions-get-by-mask.md deleted file mode 100644 index 4657bad867..0000000000 --- a/.agents/skills/cli-admin/references/org-permissions-get-by-mask.md +++ /dev/null @@ -1,19 +0,0 @@ -# orgPermissionsGetByMask - - - -Reads and enables pagination through a set of `OrgPermission`. - -## Usage - -```bash -csdk org-permissions-get-by-mask --after --first --mask --offset -``` - -## Examples - -### Run orgPermissionsGetByMask - -```bash -csdk org-permissions-get-by-mask --after --first --mask --offset -``` diff --git a/.agents/skills/cli-admin/references/org-permissions-get-mask-by-names.md b/.agents/skills/cli-admin/references/org-permissions-get-mask-by-names.md deleted file mode 100644 index a01059cec0..0000000000 --- a/.agents/skills/cli-admin/references/org-permissions-get-mask-by-names.md +++ /dev/null @@ -1,19 +0,0 @@ -# orgPermissionsGetMaskByNames - - - -Execute the orgPermissionsGetMaskByNames query - -## Usage - -```bash -csdk org-permissions-get-mask-by-names --names -``` - -## Examples - -### Run orgPermissionsGetMaskByNames - -```bash -csdk org-permissions-get-mask-by-names --names -``` diff --git a/.agents/skills/cli-admin/references/org-permissions-get-mask.md b/.agents/skills/cli-admin/references/org-permissions-get-mask.md deleted file mode 100644 index 5aa97f8833..0000000000 --- a/.agents/skills/cli-admin/references/org-permissions-get-mask.md +++ /dev/null @@ -1,19 +0,0 @@ -# orgPermissionsGetMask - - - -Execute the orgPermissionsGetMask query - -## Usage - -```bash -csdk org-permissions-get-mask --ids -``` - -## Examples - -### Run orgPermissionsGetMask - -```bash -csdk org-permissions-get-mask --ids -``` diff --git a/.agents/skills/cli-admin/references/org-permissions-get-padded-mask.md b/.agents/skills/cli-admin/references/org-permissions-get-padded-mask.md deleted file mode 100644 index 299eb7df86..0000000000 --- a/.agents/skills/cli-admin/references/org-permissions-get-padded-mask.md +++ /dev/null @@ -1,19 +0,0 @@ -# orgPermissionsGetPaddedMask - - - -Execute the orgPermissionsGetPaddedMask query - -## Usage - -```bash -csdk org-permissions-get-padded-mask --mask -``` - -## Examples - -### Run orgPermissionsGetPaddedMask - -```bash -csdk org-permissions-get-padded-mask --mask -``` diff --git a/.agents/skills/cli-admin/references/request-upload-url.md b/.agents/skills/cli-admin/references/request-upload-url.md deleted file mode 100644 index 873dc3ee01..0000000000 --- a/.agents/skills/cli-admin/references/request-upload-url.md +++ /dev/null @@ -1,22 +0,0 @@ -# requestUploadUrl - - - -Request a presigned URL for uploading a file directly to S3. -Client computes SHA-256 of the file content and provides it here. -If a file with the same hash already exists (dedup), returns the -existing file ID and deduplicated=true with no uploadUrl. - -## Usage - -```bash -csdk request-upload-url --input.bucketKey --input.ownerId --input.contentHash --input.contentType --input.size --input.filename -``` - -## Examples - -### Run requestUploadUrl - -```bash -csdk request-upload-url --input.bucketKey --input.ownerId --input.contentHash --input.contentType --input.size --input.filename -``` diff --git a/.agents/skills/cli-admin/references/steps-achieved.md b/.agents/skills/cli-admin/references/steps-achieved.md deleted file mode 100644 index 7728a55a1f..0000000000 --- a/.agents/skills/cli-admin/references/steps-achieved.md +++ /dev/null @@ -1,19 +0,0 @@ -# stepsAchieved - - - -Execute the stepsAchieved query - -## Usage - -```bash -csdk steps-achieved --level --roleId -``` - -## Examples - -### Run stepsAchieved - -```bash -csdk steps-achieved --level --roleId -``` diff --git a/.agents/skills/cli-admin/references/steps-required.md b/.agents/skills/cli-admin/references/steps-required.md deleted file mode 100644 index 1ab25a7b3d..0000000000 --- a/.agents/skills/cli-admin/references/steps-required.md +++ /dev/null @@ -1,19 +0,0 @@ -# stepsRequired - - - -Reads and enables pagination through a set of `AppLevelRequirement`. - -## Usage - -```bash -csdk steps-required --level --roleId --first --offset --after -``` - -## Examples - -### Run stepsRequired - -```bash -csdk steps-required --level --roleId --first --offset --after -``` diff --git a/.agents/skills/cli-admin/references/submit-invite-code.md b/.agents/skills/cli-admin/references/submit-invite-code.md deleted file mode 100644 index 400fba274b..0000000000 --- a/.agents/skills/cli-admin/references/submit-invite-code.md +++ /dev/null @@ -1,19 +0,0 @@ -# submitInviteCode - - - -Execute the submitInviteCode mutation - -## Usage - -```bash -csdk submit-invite-code --input.clientMutationId --input.token -``` - -## Examples - -### Run submitInviteCode - -```bash -csdk submit-invite-code --input.clientMutationId --input.token -``` diff --git a/.agents/skills/cli-admin/references/usage-snapshot.md b/.agents/skills/cli-admin/references/usage-snapshot.md deleted file mode 100644 index 54320a25d2..0000000000 --- a/.agents/skills/cli-admin/references/usage-snapshot.md +++ /dev/null @@ -1,68 +0,0 @@ -# usageSnapshot - - - -CRUD operations for UsageSnapshot records via csdk CLI - -## Usage - -```bash -csdk usage-snapshot list -csdk usage-snapshot list --where.. --orderBy -csdk usage-snapshot list --limit 10 --after -csdk usage-snapshot find-first --where.. -csdk usage-snapshot get --id -csdk usage-snapshot create --databaseId --metricName [--metricValue ] [--dimensions ] [--capturedAt ] -csdk usage-snapshot update --id [--databaseId ] [--metricName ] [--metricValue ] [--dimensions ] [--capturedAt ] -csdk usage-snapshot delete --id -``` - -## Examples - -### List usageSnapshot records - -```bash -csdk usage-snapshot list -``` - -### List usageSnapshot records with pagination - -```bash -csdk usage-snapshot list --limit 10 --offset 0 -``` - -### List usageSnapshot records with cursor pagination - -```bash -csdk usage-snapshot list --limit 10 --after -``` - -### Find first matching usageSnapshot - -```bash -csdk usage-snapshot find-first --where.id.equalTo -``` - -### List usageSnapshot records with field selection - -```bash -csdk usage-snapshot list --select id,id -``` - -### List usageSnapshot records with filtering and ordering - -```bash -csdk usage-snapshot list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a usageSnapshot - -```bash -csdk usage-snapshot create --databaseId --metricName [--metricValue ] [--dimensions ] [--capturedAt ] -``` - -### Get a usageSnapshot by id - -```bash -csdk usage-snapshot get --id -``` diff --git a/.agents/skills/cli-agent/references/agent-event.md b/.agents/skills/cli-agent/references/agent-event.md index 7e10286b0c..1145c907fb 100644 --- a/.agents/skills/cli-agent/references/agent-event.md +++ b/.agents/skills/cli-agent/references/agent-event.md @@ -12,8 +12,8 @@ csdk agent-event list --where.. --orderBy csdk agent-event list --limit 10 --after csdk agent-event find-first --where.. csdk agent-event get --id -csdk agent-event create --entry --recordedAt --runId --seq --transcriptVersion [--transcriptFormat ] -csdk agent-event update --id [--entry ] [--recordedAt ] [--runId ] [--seq ] [--transcriptFormat ] [--transcriptVersion ] +csdk agent-event create --actorId --databaseId --entry --recordedAt --runId --seq --transcriptVersion --visibility [--transcriptFormat ] +csdk agent-event update --id [--actorId ] [--databaseId ] [--entry ] [--recordedAt ] [--runId ] [--seq ] [--transcriptFormat ] [--transcriptVersion ] [--visibility ] csdk agent-event delete --id ``` @@ -58,7 +58,7 @@ csdk agent-event list --where.id.equalTo --orderBy ID_ASC ### Create a agentEvent ```bash -csdk agent-event create --entry --recordedAt --runId --seq --transcriptVersion [--transcriptFormat ] +csdk agent-event create --actorId --databaseId --entry --recordedAt --runId --seq --transcriptVersion --visibility [--transcriptFormat ] ``` ### Get a agentEvent by id diff --git a/.agents/skills/cli-agent/references/agent-message.md b/.agents/skills/cli-agent/references/agent-message.md index c095581c58..c32fbea958 100644 --- a/.agents/skills/cli-agent/references/agent-message.md +++ b/.agents/skills/cli-agent/references/agent-message.md @@ -12,8 +12,8 @@ csdk agent-message list --where.. --orderBy csdk agent-message list --limit 10 --after csdk agent-message find-first --where.. csdk agent-message get --id -csdk agent-message create --authorRole --threadId [--actorId ] [--agentId ] [--deliveredRunId ] [--kind ] [--model ] [--parts ] -csdk agent-message update --id [--actorId ] [--agentId ] [--authorRole ] [--deliveredRunId ] [--kind ] [--model ] [--parts ] [--threadId ] +csdk agent-message create --authorRole --databaseId --threadId --visibility [--actorId ] [--agentId ] [--deliveredRunId ] [--kind ] [--model ] [--parts ] +csdk agent-message update --id [--actorId ] [--agentId ] [--authorRole ] [--databaseId ] [--deliveredRunId ] [--kind ] [--model ] [--parts ] [--threadId ] [--visibility ] csdk agent-message delete --id ``` @@ -58,7 +58,7 @@ csdk agent-message list --where.id.equalTo --orderBy ID_ASC ### Create a agentMessage ```bash -csdk agent-message create --authorRole --threadId [--actorId ] [--agentId ] [--deliveredRunId ] [--kind ] [--model ] [--parts ] +csdk agent-message create --authorRole --databaseId --threadId --visibility [--actorId ] [--agentId ] [--deliveredRunId ] [--kind ] [--model ] [--parts ] ``` ### Get a agentMessage by id diff --git a/.agents/skills/cli-agent/references/agent-plan.md b/.agents/skills/cli-agent/references/agent-plan.md index b0ad467ce9..3fd175f7c8 100644 --- a/.agents/skills/cli-agent/references/agent-plan.md +++ b/.agents/skills/cli-agent/references/agent-plan.md @@ -12,8 +12,8 @@ csdk agent-plan list --where.. --orderBy csdk agent-plan list --limit 10 --after csdk agent-plan find-first --where.. csdk agent-plan get --id -csdk agent-plan create --threadId --title [--description ] [--ownerId ] [--status ] -csdk agent-plan update --id [--description ] [--ownerId ] [--status ] [--threadId ] [--title ] +csdk agent-plan create --databaseId --threadId --title --visibility [--description ] [--ownerId ] [--status ] +csdk agent-plan update --id [--databaseId ] [--description ] [--ownerId ] [--status ] [--threadId ] [--title ] [--visibility ] csdk agent-plan delete --id ``` @@ -58,7 +58,7 @@ csdk agent-plan list --where.id.equalTo --orderBy ID_ASC ### Create a agentPlan ```bash -csdk agent-plan create --threadId --title [--description ] [--ownerId ] [--status ] +csdk agent-plan create --databaseId --threadId --title --visibility [--description ] [--ownerId ] [--status ] ``` ### Get a agentPlan by id diff --git a/.agents/skills/cli-agent/references/agent-resource-chunk.md b/.agents/skills/cli-agent/references/agent-resource-chunk.md index 569617f190..e8dbed1c95 100644 --- a/.agents/skills/cli-agent/references/agent-resource-chunk.md +++ b/.agents/skills/cli-agent/references/agent-resource-chunk.md @@ -66,15 +66,15 @@ csdk agent-resource-chunk list --where.id.equalTo --orderBy ID_ASC ```bash # Pass a pre-computed vector array via dot-notation -csdk agent-resource-chunk list --where.embedding.vector '[0.1,0.2,0.3]' --where.embedding.distance 1.0 --select title,embeddingVectorDistance +csdk agent-resource-chunk list --where.embedding.vector '[0.1,0.2,0.3]' --where.embedding.distance 1.0 --select body,embeddingVectorDistance ``` ### Vector semantic search via `embedding` with --auto-embed ```bash # --auto-embed converts text to vectors using the configured embedder (e.g. Ollama nomic-embed-text) -EMBEDDER_PROVIDER=ollama csdk agent-resource-chunk search "semantic query" --auto-embed --select title,embeddingVectorDistance -EMBEDDER_PROVIDER=ollama csdk agent-resource-chunk list --where.embedding.vector "semantic query" --auto-embed --select title,embeddingVectorDistance +EMBEDDER_PROVIDER=ollama csdk agent-resource-chunk search "semantic query" --auto-embed --select body,embeddingVectorDistance +EMBEDDER_PROVIDER=ollama csdk agent-resource-chunk list --where.embedding.vector "semantic query" --auto-embed --select body,embeddingVectorDistance ``` ### Create/update with auto-embedded `embedding` via --auto-embed @@ -88,8 +88,8 @@ EMBEDDER_PROVIDER=ollama csdk agent-resource-chunk update --embedding "new text ### Search with pagination and field projection ```bash -csdk agent-resource-chunk list --where.unifiedSearch "query" --limit 10 --select id,title,searchScore -csdk agent-resource-chunk search "query" --limit 10 --select id,title,searchScore +csdk agent-resource-chunk list --where.unifiedSearch "query" --limit 10 --select id,body,searchScore +csdk agent-resource-chunk search "query" --limit 10 --select id,body,searchScore ``` ### Create a agentResourceChunk diff --git a/.agents/skills/cli-agent/references/agent-resource.md b/.agents/skills/cli-agent/references/agent-resource.md index bceb942c3b..e567d5024e 100644 --- a/.agents/skills/cli-agent/references/agent-resource.md +++ b/.agents/skills/cli-agent/references/agent-resource.md @@ -7,7 +7,7 @@ CRUD operations for AgentResource records via csdk CLI **pgvector embedding fields:** `embedding` High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. Supports chunk-aware search: set `includeChunks: true` in VectorNearbyInput to transparently query across parent and chunk embeddings, returning the minimum distance. -**Unified Search API fields:** `bodyTrgmSimilarity`, `descriptionTrgmSimilarity`, `kindTrgmSimilarity`, `search`, `searchScore`, `titleTrgmSimilarity` +**Unified Search API fields:** `bodyTrgmSimilarity`, `descriptionTrgmSimilarity`, `embeddingModelTrgmSimilarity`, `kindTrgmSimilarity`, `search`, `searchScore`, `searchTsvRank`, `titleTrgmSimilarity` Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. ## Usage @@ -97,6 +97,12 @@ csdk agent-resource list --where.trgmBody.value "approximate query" --where.trgm csdk agent-resource list --where.trgmDescription.value "approximate query" --where.trgmDescription.threshold 0.3 --select title,descriptionTrgmSimilarity ``` +### Fuzzy search via trigram similarity (`trgmEmbeddingModel`) + +```bash +csdk agent-resource list --where.trgmEmbeddingModel.value "approximate query" --where.trgmEmbeddingModel.threshold 0.3 --select title,embeddingModelTrgmSimilarity +``` + ### Fuzzy search via trigram similarity (`trgmKind`) ```bash @@ -106,7 +112,7 @@ csdk agent-resource list --where.trgmKind.value "approximate query" --where.trgm ### Full-text search via tsvector (`search`) ```bash -csdk agent-resource list --where.search "search query" --select title,tsvRank +csdk agent-resource list --where.search "search query" --select title,searchTsvRank ``` ### Fuzzy search via trigram similarity (`trgmTitle`) @@ -118,7 +124,7 @@ csdk agent-resource list --where.trgmTitle.value "approximate query" --where.trg ### Composite search (unifiedSearch dispatches to all text adapters) ```bash -csdk agent-resource list --where.unifiedSearch "search query" --select title,bodyTrgmSimilarity,descriptionTrgmSimilarity,kindTrgmSimilarity,tsvRank,searchScore,titleTrgmSimilarity +csdk agent-resource list --where.unifiedSearch "search query" --select title,bodyTrgmSimilarity,descriptionTrgmSimilarity,embeddingModelTrgmSimilarity,kindTrgmSimilarity,searchTsvRank,searchScore,titleTrgmSimilarity ``` ### Search with pagination and field projection diff --git a/.agents/skills/cli-agent/references/agent-run-workspace.md b/.agents/skills/cli-agent/references/agent-run-workspace.md index da2fc755a8..22da607a36 100644 --- a/.agents/skills/cli-agent/references/agent-run-workspace.md +++ b/.agents/skills/cli-agent/references/agent-run-workspace.md @@ -12,8 +12,8 @@ csdk agent-run-workspace list --where.. --orderBy csdk agent-run-workspace list --limit 10 --after csdk agent-run-workspace find-first --where.. csdk agent-run-workspace get --id -csdk agent-run-workspace create --baseBranch --branch --provider --repo --runId [--artifacts ] [--baseCommit ] [--clonedAt ] [--headCommit ] [--lastUsedAt ] [--ordinal ] [--publication ] [--repositoryId ] [--state ] -csdk agent-run-workspace update --id [--artifacts ] [--baseBranch ] [--baseCommit ] [--branch ] [--clonedAt ] [--headCommit ] [--lastUsedAt ] [--ordinal ] [--provider ] [--publication ] [--repo ] [--repositoryId ] [--runId ] [--state ] +csdk agent-run-workspace create --actorId --baseBranch --branch --databaseId --provider --repo --runId --visibility [--artifacts ] [--baseCommit ] [--clonedAt ] [--headCommit ] [--lastUsedAt ] [--ordinal ] [--publication ] [--repositoryId ] [--state ] +csdk agent-run-workspace update --id [--actorId ] [--artifacts ] [--baseBranch ] [--baseCommit ] [--branch ] [--clonedAt ] [--databaseId ] [--headCommit ] [--lastUsedAt ] [--ordinal ] [--provider ] [--publication ] [--repo ] [--repositoryId ] [--runId ] [--state ] [--visibility ] csdk agent-run-workspace delete --id ``` @@ -58,7 +58,7 @@ csdk agent-run-workspace list --where.id.equalTo --orderBy ID_ASC ### Create a agentRunWorkspace ```bash -csdk agent-run-workspace create --baseBranch --branch --provider --repo --runId [--artifacts ] [--baseCommit ] [--clonedAt ] [--headCommit ] [--lastUsedAt ] [--ordinal ] [--publication ] [--repositoryId ] [--state ] +csdk agent-run-workspace create --actorId --baseBranch --branch --databaseId --provider --repo --runId --visibility [--artifacts ] [--baseCommit ] [--clonedAt ] [--headCommit ] [--lastUsedAt ] [--ordinal ] [--publication ] [--repositoryId ] [--state ] ``` ### Get a agentRunWorkspace by id diff --git a/.agents/skills/cli-agent/references/agent-run.md b/.agents/skills/cli-agent/references/agent-run.md index 8e04809eb7..c7d70600f1 100644 --- a/.agents/skills/cli-agent/references/agent-run.md +++ b/.agents/skills/cli-agent/references/agent-run.md @@ -12,8 +12,8 @@ csdk agent-run list --where.. --orderBy csdk agent-run list --limit 10 --after csdk agent-run find-first --where.. csdk agent-run get --id -csdk agent-run create --threadId [--actorId ] [--artifacts ] [--attempt ] [--baseCommit ] [--branch ] [--deadlineAt ] [--entityId ] [--error ] [--executionId ] [--finishedAt ] [--headCommit ] [--lastEventSeq ] [--parentRunId ] [--placement ] [--principalId ] [--repoUrl ] [--startedAt ] [--status ] [--tokenUsage ] [--totalCost ] -csdk agent-run update --id [--actorId ] [--artifacts ] [--attempt ] [--baseCommit ] [--branch ] [--deadlineAt ] [--entityId ] [--error ] [--executionId ] [--finishedAt ] [--headCommit ] [--lastEventSeq ] [--parentRunId ] [--placement ] [--principalId ] [--repoUrl ] [--startedAt ] [--status ] [--threadId ] [--tokenUsage ] [--totalCost ] +csdk agent-run create --databaseId --threadId --visibility [--actorId ] [--artifacts ] [--attempt ] [--baseCommit ] [--branch ] [--deadlineAt ] [--entityId ] [--error ] [--executionId ] [--finishedAt ] [--headCommit ] [--lastEventSeq ] [--parentRunId ] [--placement ] [--principalId ] [--repoUrl ] [--startedAt ] [--status ] [--tokenUsage ] [--totalCost ] +csdk agent-run update --id [--actorId ] [--artifacts ] [--attempt ] [--baseCommit ] [--branch ] [--databaseId ] [--deadlineAt ] [--entityId ] [--error ] [--executionId ] [--finishedAt ] [--headCommit ] [--lastEventSeq ] [--parentRunId ] [--placement ] [--principalId ] [--repoUrl ] [--startedAt ] [--status ] [--threadId ] [--tokenUsage ] [--totalCost ] [--visibility ] csdk agent-run delete --id ``` @@ -58,7 +58,7 @@ csdk agent-run list --where.id.equalTo --orderBy ID_ASC ### Create a agentRun ```bash -csdk agent-run create --threadId [--actorId ] [--artifacts ] [--attempt ] [--baseCommit ] [--branch ] [--deadlineAt ] [--entityId ] [--error ] [--executionId ] [--finishedAt ] [--headCommit ] [--lastEventSeq ] [--parentRunId ] [--placement ] [--principalId ] [--repoUrl ] [--startedAt ] [--status ] [--tokenUsage ] [--totalCost ] +csdk agent-run create --databaseId --threadId --visibility [--actorId ] [--artifacts ] [--attempt ] [--baseCommit ] [--branch ] [--deadlineAt ] [--entityId ] [--error ] [--executionId ] [--finishedAt ] [--headCommit ] [--lastEventSeq ] [--parentRunId ] [--placement ] [--principalId ] [--repoUrl ] [--startedAt ] [--status ] [--tokenUsage ] [--totalCost ] ``` ### Get a agentRun by id diff --git a/.agents/skills/cli-agent/references/agent-task.md b/.agents/skills/cli-agent/references/agent-task.md index 460ac6ed0d..03f24f6a2d 100644 --- a/.agents/skills/cli-agent/references/agent-task.md +++ b/.agents/skills/cli-agent/references/agent-task.md @@ -12,8 +12,8 @@ csdk agent-task list --where.. --orderBy csdk agent-task list --limit 10 --after csdk agent-task find-first --where.. csdk agent-task get --id -csdk agent-task create --description --planId [--actorId ] [--approvalFeedback ] [--approvalStatus ] [--approvedAt ] [--approvedBy ] [--error ] [--orderIndex ] [--requiresApproval ] [--source ] [--status ] -csdk agent-task update --id [--actorId ] [--approvalFeedback ] [--approvalStatus ] [--approvedAt ] [--approvedBy ] [--description ] [--error ] [--orderIndex ] [--planId ] [--requiresApproval ] [--source ] [--status ] +csdk agent-task create --databaseId --description --planId --visibility [--actorId ] [--approvalFeedback ] [--approvalStatus ] [--approvedAt ] [--approvedBy ] [--error ] [--orderIndex ] [--requiresApproval ] [--source ] [--status ] +csdk agent-task update --id [--actorId ] [--approvalFeedback ] [--approvalStatus ] [--approvedAt ] [--approvedBy ] [--databaseId ] [--description ] [--error ] [--orderIndex ] [--planId ] [--requiresApproval ] [--source ] [--status ] [--visibility ] csdk agent-task delete --id ``` @@ -58,7 +58,7 @@ csdk agent-task list --where.id.equalTo --orderBy ID_ASC ### Create a agentTask ```bash -csdk agent-task create --description --planId [--actorId ] [--approvalFeedback ] [--approvalStatus ] [--approvedAt ] [--approvedBy ] [--error ] [--orderIndex ] [--requiresApproval ] [--source ] [--status ] +csdk agent-task create --databaseId --description --planId --visibility [--actorId ] [--approvalFeedback ] [--approvalStatus ] [--approvedAt ] [--approvedBy ] [--error ] [--orderIndex ] [--requiresApproval ] [--source ] [--status ] ``` ### Get a agentTask by id diff --git a/.agents/skills/cli-agent/references/platform-agent-event.md b/.agents/skills/cli-agent/references/platform-agent-event.md index 74666a8783..4bcc2ec6bb 100644 --- a/.agents/skills/cli-agent/references/platform-agent-event.md +++ b/.agents/skills/cli-agent/references/platform-agent-event.md @@ -12,8 +12,8 @@ csdk platform-agent-event list --where.. --orderBy csdk platform-agent-event list --limit 10 --after csdk platform-agent-event find-first --where.. csdk platform-agent-event get --id -csdk platform-agent-event create --entry --recordedAt --runId --seq --transcriptVersion [--transcriptFormat ] -csdk platform-agent-event update --id [--entry ] [--recordedAt ] [--runId ] [--seq ] [--transcriptFormat ] [--transcriptVersion ] +csdk platform-agent-event create --actorId --entry --recordedAt --runId --seq --transcriptVersion --visibility [--transcriptFormat ] +csdk platform-agent-event update --id [--actorId ] [--entry ] [--recordedAt ] [--runId ] [--seq ] [--transcriptFormat ] [--transcriptVersion ] [--visibility ] csdk platform-agent-event delete --id ``` @@ -58,7 +58,7 @@ csdk platform-agent-event list --where.id.equalTo --orderBy ID_ASC ### Create a platformAgentEvent ```bash -csdk platform-agent-event create --entry --recordedAt --runId --seq --transcriptVersion [--transcriptFormat ] +csdk platform-agent-event create --actorId --entry --recordedAt --runId --seq --transcriptVersion --visibility [--transcriptFormat ] ``` ### Get a platformAgentEvent by id diff --git a/.agents/skills/cli-agent/references/platform-agent-message.md b/.agents/skills/cli-agent/references/platform-agent-message.md index dd8a8fefa2..465960272e 100644 --- a/.agents/skills/cli-agent/references/platform-agent-message.md +++ b/.agents/skills/cli-agent/references/platform-agent-message.md @@ -12,8 +12,8 @@ csdk platform-agent-message list --where.. --orderBy csdk platform-agent-message list --limit 10 --after csdk platform-agent-message find-first --where.. csdk platform-agent-message get --id -csdk platform-agent-message create --authorRole --threadId [--actorId ] [--agentId ] [--deliveredRunId ] [--kind ] [--model ] [--parts ] -csdk platform-agent-message update --id [--actorId ] [--agentId ] [--authorRole ] [--deliveredRunId ] [--kind ] [--model ] [--parts ] [--threadId ] +csdk platform-agent-message create --authorRole --threadId --visibility [--actorId ] [--agentId ] [--deliveredRunId ] [--kind ] [--model ] [--parts ] +csdk platform-agent-message update --id [--actorId ] [--agentId ] [--authorRole ] [--deliveredRunId ] [--kind ] [--model ] [--parts ] [--threadId ] [--visibility ] csdk platform-agent-message delete --id ``` @@ -58,7 +58,7 @@ csdk platform-agent-message list --where.id.equalTo --orderBy ID_ASC ### Create a platformAgentMessage ```bash -csdk platform-agent-message create --authorRole --threadId [--actorId ] [--agentId ] [--deliveredRunId ] [--kind ] [--model ] [--parts ] +csdk platform-agent-message create --authorRole --threadId --visibility [--actorId ] [--agentId ] [--deliveredRunId ] [--kind ] [--model ] [--parts ] ``` ### Get a platformAgentMessage by id diff --git a/.agents/skills/cli-agent/references/platform-agent-plan.md b/.agents/skills/cli-agent/references/platform-agent-plan.md index 7cb761a319..1c4b21fa92 100644 --- a/.agents/skills/cli-agent/references/platform-agent-plan.md +++ b/.agents/skills/cli-agent/references/platform-agent-plan.md @@ -12,8 +12,8 @@ csdk platform-agent-plan list --where.. --orderBy csdk platform-agent-plan list --limit 10 --after csdk platform-agent-plan find-first --where.. csdk platform-agent-plan get --id -csdk platform-agent-plan create --threadId --title [--description ] [--ownerId ] [--status ] -csdk platform-agent-plan update --id [--description ] [--ownerId ] [--status ] [--threadId ] [--title ] +csdk platform-agent-plan create --threadId --title --visibility [--description ] [--ownerId ] [--status ] +csdk platform-agent-plan update --id [--description ] [--ownerId ] [--status ] [--threadId ] [--title ] [--visibility ] csdk platform-agent-plan delete --id ``` @@ -58,7 +58,7 @@ csdk platform-agent-plan list --where.id.equalTo --orderBy ID_ASC ### Create a platformAgentPlan ```bash -csdk platform-agent-plan create --threadId --title [--description ] [--ownerId ] [--status ] +csdk platform-agent-plan create --threadId --title --visibility [--description ] [--ownerId ] [--status ] ``` ### Get a platformAgentPlan by id diff --git a/.agents/skills/cli-agent/references/platform-agent-resource-chunk.md b/.agents/skills/cli-agent/references/platform-agent-resource-chunk.md index 8fc3c6aab4..2306e229e8 100644 --- a/.agents/skills/cli-agent/references/platform-agent-resource-chunk.md +++ b/.agents/skills/cli-agent/references/platform-agent-resource-chunk.md @@ -66,15 +66,15 @@ csdk platform-agent-resource-chunk list --where.id.equalTo --orderBy ID_ ```bash # Pass a pre-computed vector array via dot-notation -csdk platform-agent-resource-chunk list --where.embedding.vector '[0.1,0.2,0.3]' --where.embedding.distance 1.0 --select title,embeddingVectorDistance +csdk platform-agent-resource-chunk list --where.embedding.vector '[0.1,0.2,0.3]' --where.embedding.distance 1.0 --select body,embeddingVectorDistance ``` ### Vector semantic search via `embedding` with --auto-embed ```bash # --auto-embed converts text to vectors using the configured embedder (e.g. Ollama nomic-embed-text) -EMBEDDER_PROVIDER=ollama csdk platform-agent-resource-chunk search "semantic query" --auto-embed --select title,embeddingVectorDistance -EMBEDDER_PROVIDER=ollama csdk platform-agent-resource-chunk list --where.embedding.vector "semantic query" --auto-embed --select title,embeddingVectorDistance +EMBEDDER_PROVIDER=ollama csdk platform-agent-resource-chunk search "semantic query" --auto-embed --select body,embeddingVectorDistance +EMBEDDER_PROVIDER=ollama csdk platform-agent-resource-chunk list --where.embedding.vector "semantic query" --auto-embed --select body,embeddingVectorDistance ``` ### Create/update with auto-embedded `embedding` via --auto-embed @@ -88,8 +88,8 @@ EMBEDDER_PROVIDER=ollama csdk platform-agent-resource-chunk update --embedding " ### Search with pagination and field projection ```bash -csdk platform-agent-resource-chunk list --where.unifiedSearch "query" --limit 10 --select id,title,searchScore -csdk platform-agent-resource-chunk search "query" --limit 10 --select id,title,searchScore +csdk platform-agent-resource-chunk list --where.unifiedSearch "query" --limit 10 --select id,body,searchScore +csdk platform-agent-resource-chunk search "query" --limit 10 --select id,body,searchScore ``` ### Create a platformAgentResourceChunk diff --git a/.agents/skills/cli-agent/references/platform-agent-resource.md b/.agents/skills/cli-agent/references/platform-agent-resource.md index a9f282704f..a0a4b7541a 100644 --- a/.agents/skills/cli-agent/references/platform-agent-resource.md +++ b/.agents/skills/cli-agent/references/platform-agent-resource.md @@ -7,7 +7,7 @@ CRUD operations for PlatformAgentResource records via csdk CLI **pgvector embedding fields:** `embedding` High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. Supports chunk-aware search: set `includeChunks: true` in VectorNearbyInput to transparently query across parent and chunk embeddings, returning the minimum distance. -**Unified Search API fields:** `bodyTrgmSimilarity`, `descriptionTrgmSimilarity`, `kindTrgmSimilarity`, `search`, `searchScore`, `titleTrgmSimilarity` +**Unified Search API fields:** `bodyTrgmSimilarity`, `descriptionTrgmSimilarity`, `embeddingModelTrgmSimilarity`, `kindTrgmSimilarity`, `search`, `searchScore`, `searchTsvRank`, `titleTrgmSimilarity` Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. ## Usage @@ -97,6 +97,12 @@ csdk platform-agent-resource list --where.trgmBody.value "approximate query" --w csdk platform-agent-resource list --where.trgmDescription.value "approximate query" --where.trgmDescription.threshold 0.3 --select title,descriptionTrgmSimilarity ``` +### Fuzzy search via trigram similarity (`trgmEmbeddingModel`) + +```bash +csdk platform-agent-resource list --where.trgmEmbeddingModel.value "approximate query" --where.trgmEmbeddingModel.threshold 0.3 --select title,embeddingModelTrgmSimilarity +``` + ### Fuzzy search via trigram similarity (`trgmKind`) ```bash @@ -106,7 +112,7 @@ csdk platform-agent-resource list --where.trgmKind.value "approximate query" --w ### Full-text search via tsvector (`search`) ```bash -csdk platform-agent-resource list --where.search "search query" --select title,tsvRank +csdk platform-agent-resource list --where.search "search query" --select title,searchTsvRank ``` ### Fuzzy search via trigram similarity (`trgmTitle`) @@ -118,7 +124,7 @@ csdk platform-agent-resource list --where.trgmTitle.value "approximate query" -- ### Composite search (unifiedSearch dispatches to all text adapters) ```bash -csdk platform-agent-resource list --where.unifiedSearch "search query" --select title,bodyTrgmSimilarity,descriptionTrgmSimilarity,kindTrgmSimilarity,tsvRank,searchScore,titleTrgmSimilarity +csdk platform-agent-resource list --where.unifiedSearch "search query" --select title,bodyTrgmSimilarity,descriptionTrgmSimilarity,embeddingModelTrgmSimilarity,kindTrgmSimilarity,searchTsvRank,searchScore,titleTrgmSimilarity ``` ### Search with pagination and field projection diff --git a/.agents/skills/cli-agent/references/platform-agent-run-workspace.md b/.agents/skills/cli-agent/references/platform-agent-run-workspace.md index a16d474f46..1c61148299 100644 --- a/.agents/skills/cli-agent/references/platform-agent-run-workspace.md +++ b/.agents/skills/cli-agent/references/platform-agent-run-workspace.md @@ -12,8 +12,8 @@ csdk platform-agent-run-workspace list --where.. --orderBy csdk platform-agent-run-workspace find-first --where.. csdk platform-agent-run-workspace get --id -csdk platform-agent-run-workspace create --baseBranch --branch --provider --repo --runId [--artifacts ] [--baseCommit ] [--clonedAt ] [--headCommit ] [--lastUsedAt ] [--ordinal ] [--publication ] [--repositoryId ] [--state ] -csdk platform-agent-run-workspace update --id [--artifacts ] [--baseBranch ] [--baseCommit ] [--branch ] [--clonedAt ] [--headCommit ] [--lastUsedAt ] [--ordinal ] [--provider ] [--publication ] [--repo ] [--repositoryId ] [--runId ] [--state ] +csdk platform-agent-run-workspace create --actorId --baseBranch --branch --provider --repo --runId --visibility [--artifacts ] [--baseCommit ] [--clonedAt ] [--headCommit ] [--lastUsedAt ] [--ordinal ] [--publication ] [--repositoryId ] [--state ] +csdk platform-agent-run-workspace update --id [--actorId ] [--artifacts ] [--baseBranch ] [--baseCommit ] [--branch ] [--clonedAt ] [--headCommit ] [--lastUsedAt ] [--ordinal ] [--provider ] [--publication ] [--repo ] [--repositoryId ] [--runId ] [--state ] [--visibility ] csdk platform-agent-run-workspace delete --id ``` @@ -58,7 +58,7 @@ csdk platform-agent-run-workspace list --where.id.equalTo --orderBy ID_A ### Create a platformAgentRunWorkspace ```bash -csdk platform-agent-run-workspace create --baseBranch --branch --provider --repo --runId [--artifacts ] [--baseCommit ] [--clonedAt ] [--headCommit ] [--lastUsedAt ] [--ordinal ] [--publication ] [--repositoryId ] [--state ] +csdk platform-agent-run-workspace create --actorId --baseBranch --branch --provider --repo --runId --visibility [--artifacts ] [--baseCommit ] [--clonedAt ] [--headCommit ] [--lastUsedAt ] [--ordinal ] [--publication ] [--repositoryId ] [--state ] ``` ### Get a platformAgentRunWorkspace by id diff --git a/.agents/skills/cli-agent/references/platform-agent-run.md b/.agents/skills/cli-agent/references/platform-agent-run.md index 1f5c36b0f5..dc41782fdd 100644 --- a/.agents/skills/cli-agent/references/platform-agent-run.md +++ b/.agents/skills/cli-agent/references/platform-agent-run.md @@ -12,8 +12,8 @@ csdk platform-agent-run list --where.. --orderBy csdk platform-agent-run list --limit 10 --after csdk platform-agent-run find-first --where.. csdk platform-agent-run get --id -csdk platform-agent-run create --threadId [--actorId ] [--artifacts ] [--attempt ] [--baseCommit ] [--branch ] [--databaseId ] [--deadlineAt ] [--entityId ] [--error ] [--executionId ] [--finishedAt ] [--headCommit ] [--lastEventSeq ] [--parentRunId ] [--placement ] [--principalId ] [--repoUrl ] [--startedAt ] [--status ] [--tokenUsage ] [--totalCost ] -csdk platform-agent-run update --id [--actorId ] [--artifacts ] [--attempt ] [--baseCommit ] [--branch ] [--databaseId ] [--deadlineAt ] [--entityId ] [--error ] [--executionId ] [--finishedAt ] [--headCommit ] [--lastEventSeq ] [--parentRunId ] [--placement ] [--principalId ] [--repoUrl ] [--startedAt ] [--status ] [--threadId ] [--tokenUsage ] [--totalCost ] +csdk platform-agent-run create --threadId --visibility [--actorId ] [--artifacts ] [--attempt ] [--baseCommit ] [--branch ] [--databaseId ] [--deadlineAt ] [--entityId ] [--error ] [--executionId ] [--finishedAt ] [--headCommit ] [--lastEventSeq ] [--parentRunId ] [--placement ] [--principalId ] [--repoUrl ] [--startedAt ] [--status ] [--tokenUsage ] [--totalCost ] +csdk platform-agent-run update --id [--actorId ] [--artifacts ] [--attempt ] [--baseCommit ] [--branch ] [--databaseId ] [--deadlineAt ] [--entityId ] [--error ] [--executionId ] [--finishedAt ] [--headCommit ] [--lastEventSeq ] [--parentRunId ] [--placement ] [--principalId ] [--repoUrl ] [--startedAt ] [--status ] [--threadId ] [--tokenUsage ] [--totalCost ] [--visibility ] csdk platform-agent-run delete --id ``` @@ -58,7 +58,7 @@ csdk platform-agent-run list --where.id.equalTo --orderBy ID_ASC ### Create a platformAgentRun ```bash -csdk platform-agent-run create --threadId [--actorId ] [--artifacts ] [--attempt ] [--baseCommit ] [--branch ] [--databaseId ] [--deadlineAt ] [--entityId ] [--error ] [--executionId ] [--finishedAt ] [--headCommit ] [--lastEventSeq ] [--parentRunId ] [--placement ] [--principalId ] [--repoUrl ] [--startedAt ] [--status ] [--tokenUsage ] [--totalCost ] +csdk platform-agent-run create --threadId --visibility [--actorId ] [--artifacts ] [--attempt ] [--baseCommit ] [--branch ] [--databaseId ] [--deadlineAt ] [--entityId ] [--error ] [--executionId ] [--finishedAt ] [--headCommit ] [--lastEventSeq ] [--parentRunId ] [--placement ] [--principalId ] [--repoUrl ] [--startedAt ] [--status ] [--tokenUsage ] [--totalCost ] ``` ### Get a platformAgentRun by id diff --git a/.agents/skills/cli-agent/references/platform-agent-task.md b/.agents/skills/cli-agent/references/platform-agent-task.md index 33a1f67a71..7b25748d50 100644 --- a/.agents/skills/cli-agent/references/platform-agent-task.md +++ b/.agents/skills/cli-agent/references/platform-agent-task.md @@ -12,8 +12,8 @@ csdk platform-agent-task list --where.. --orderBy csdk platform-agent-task list --limit 10 --after csdk platform-agent-task find-first --where.. csdk platform-agent-task get --id -csdk platform-agent-task create --description --planId [--actorId ] [--approvalFeedback ] [--approvalStatus ] [--approvedAt ] [--approvedBy ] [--error ] [--orderIndex ] [--requiresApproval ] [--source ] [--status ] -csdk platform-agent-task update --id [--actorId ] [--approvalFeedback ] [--approvalStatus ] [--approvedAt ] [--approvedBy ] [--description ] [--error ] [--orderIndex ] [--planId ] [--requiresApproval ] [--source ] [--status ] +csdk platform-agent-task create --description --planId --visibility [--actorId ] [--approvalFeedback ] [--approvalStatus ] [--approvedAt ] [--approvedBy ] [--error ] [--orderIndex ] [--requiresApproval ] [--source ] [--status ] +csdk platform-agent-task update --id [--actorId ] [--approvalFeedback ] [--approvalStatus ] [--approvedAt ] [--approvedBy ] [--description ] [--error ] [--orderIndex ] [--planId ] [--requiresApproval ] [--source ] [--status ] [--visibility ] csdk platform-agent-task delete --id ``` @@ -58,7 +58,7 @@ csdk platform-agent-task list --where.id.equalTo --orderBy ID_ASC ### Create a platformAgentTask ```bash -csdk platform-agent-task create --description --planId [--actorId ] [--approvalFeedback ] [--approvalStatus ] [--approvedAt ] [--approvedBy ] [--error ] [--orderIndex ] [--requiresApproval ] [--source ] [--status ] +csdk platform-agent-task create --description --planId --visibility [--actorId ] [--approvalFeedback ] [--approvalStatus ] [--approvedAt ] [--approvedBy ] [--error ] [--orderIndex ] [--requiresApproval ] [--source ] [--status ] ``` ### Get a platformAgentTask by id diff --git a/.agents/skills/cli-api/SKILL.md b/.agents/skills/cli-api/SKILL.md index a9fc2f456a..85f06a290e 100644 --- a/.agents/skills/cli-api/SKILL.md +++ b/.agents/skills/cli-api/SKILL.md @@ -1,13 +1,13 @@ --- name: cli-api -description: CLI tool (csdk) for the api API — provides CRUD commands for 90 tables and 49 custom operations +description: CLI tool (csdk) for the api API — provides CRUD commands for 91 tables and 45 custom operations --- # cli-api -CLI tool (csdk) for the api API — provides CRUD commands for 90 tables and 49 custom operations +CLI tool (csdk) for the api API — provides CRUD commands for 91 tables and 45 custom operations ## Usage @@ -105,6 +105,7 @@ See the `references/` directory for detailed per-entity API documentation: - [platform-get-site-previews-record](references/platform-get-site-previews-record.md) - [platform-managed-domain](references/platform-managed-domain.md) - [platform-page](references/platform-page.md) +- [platform-reserved-subdomain](references/platform-reserved-subdomain.md) - [platform-site-app-link](references/platform-site-app-link.md) - [platform-site](references/platform-site.md) - [platform-site-deep-link](references/platform-site-deep-link.md) @@ -146,7 +147,6 @@ See the `references/` directory for detailed per-entity API documentation: - [view-rule](references/view-rule.md) - [view-table](references/view-table.md) - [webauthn-setting](references/webauthn-setting.md) -- [api-schema-names](references/api-schema-names.md) - [apply-registry-defaults](references/apply-registry-defaults.md) - [email-shared-account](references/email-shared-account.md) - [get-site-preview-commit](references/get-site-preview-commit.md) @@ -158,9 +158,6 @@ See the `references/` directory for detailed per-entity API documentation: - [platform-sites-deep-link-url](references/platform-sites-deep-link-url.md) - [platform-sites-site-origin](references/platform-sites-site-origin.md) - [platform-verify-site-preview-token](references/platform-verify-site-preview-token.md) -- [resolve-deep-link](references/resolve-deep-link.md) -- [resolve-route](references/resolve-route.md) -- [resolve-site-app-links](references/resolve-site-app-links.md) - [sites-deep-link-url](references/sites-deep-link-url.md) - [sites-site-origin](references/sites-site-origin.md) - [verify-site-preview-token](references/verify-site-preview-token.md) diff --git a/.agents/skills/cli-api/references/api-module.md b/.agents/skills/cli-api/references/api-module.md deleted file mode 100644 index 4f88968198..0000000000 --- a/.agents/skills/cli-api/references/api-module.md +++ /dev/null @@ -1,68 +0,0 @@ -# apiModule - - - -CRUD operations for ApiModule records via csdk CLI - -## Usage - -```bash -csdk api-module list -csdk api-module list --where.. --orderBy -csdk api-module list --limit 10 --after -csdk api-module find-first --where.. -csdk api-module get --id -csdk api-module create --apiId --data --databaseId --name -csdk api-module update --id [--apiId ] [--data ] [--databaseId ] [--name ] -csdk api-module delete --id -``` - -## Examples - -### List apiModule records - -```bash -csdk api-module list -``` - -### List apiModule records with pagination - -```bash -csdk api-module list --limit 10 --offset 0 -``` - -### List apiModule records with cursor pagination - -```bash -csdk api-module list --limit 10 --after -``` - -### Find first matching apiModule - -```bash -csdk api-module find-first --where.id.equalTo -``` - -### List apiModule records with field selection - -```bash -csdk api-module list --select id,id -``` - -### List apiModule records with filtering and ordering - -```bash -csdk api-module list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a apiModule - -```bash -csdk api-module create --apiId --data --databaseId --name -``` - -### Get a apiModule by id - -```bash -csdk api-module get --id -``` diff --git a/.agents/skills/cli-api/references/api-schema-names.md b/.agents/skills/cli-api/references/api-schema-names.md deleted file mode 100644 index bd9773e5e0..0000000000 --- a/.agents/skills/cli-api/references/api-schema-names.md +++ /dev/null @@ -1,19 +0,0 @@ -# apiSchemaNames - - - -Execute the apiSchemaNames query - -## Usage - -```bash -csdk api-schema-names --targetApiId -``` - -## Examples - -### Run apiSchemaNames - -```bash -csdk api-schema-names --targetApiId -``` diff --git a/.agents/skills/cli-api/references/api-setting.md b/.agents/skills/cli-api/references/api-setting.md index eee61b53fc..bf20bd1161 100644 --- a/.agents/skills/cli-api/references/api-setting.md +++ b/.agents/skills/cli-api/references/api-setting.md @@ -12,8 +12,8 @@ csdk api-setting list --where.. --orderBy csdk api-setting list --limit 10 --after csdk api-setting find-first --where.. csdk api-setting get --id -csdk api-setting create --apiId --databaseId [--enableAggregates ] [--enableBulk ] [--enableConnectionFilter ] [--enableDirectUploads ] [--enableI18N ] [--enableIntrospection ] [--enableLlm ] [--enableLtree ] [--enableManyToMany ] [--enablePostgis ] [--enablePresignedUploads ] [--enableRealtime ] [--enableSearch ] [--idleInTransactionTimeoutMs ] [--lockTimeoutMs ] [--maxConcurrentRequests ] [--maxPageSize ] [--maxQueryCost ] [--maxQueryDepth ] [--maxQueueWaitMs ] [--maxRequestBytes ] [--options ] [--rateLimitBurst ] [--rateLimitRpm ] [--statementTimeoutMs ] -csdk api-setting update --id [--apiId ] [--databaseId ] [--enableAggregates ] [--enableBulk ] [--enableConnectionFilter ] [--enableDirectUploads ] [--enableI18N ] [--enableIntrospection ] [--enableLlm ] [--enableLtree ] [--enableManyToMany ] [--enablePostgis ] [--enablePresignedUploads ] [--enableRealtime ] [--enableSearch ] [--idleInTransactionTimeoutMs ] [--lockTimeoutMs ] [--maxConcurrentRequests ] [--maxPageSize ] [--maxQueryCost ] [--maxQueryDepth ] [--maxQueueWaitMs ] [--maxRequestBytes ] [--options ] [--rateLimitBurst ] [--rateLimitRpm ] [--statementTimeoutMs ] +csdk api-setting create --apiId --databaseId [--enableAggregates ] [--enableBulk ] [--enableConnectionFilter ] [--enableI18N ] [--enableIntrospection ] [--enableLlm ] [--enableLtree ] [--enableManyToMany ] [--enablePostgis ] [--enablePresignedUploads ] [--enableRealtime ] [--enableSearch ] [--idleInTransactionTimeoutMs ] [--lockTimeoutMs ] [--maxConcurrentRequests ] [--maxPageSize ] [--maxQueryCost ] [--maxQueryDepth ] [--maxQueueWaitMs ] [--maxRequestBytes ] [--options ] [--rateLimitBurst ] [--rateLimitRpm ] [--statementTimeoutMs ] +csdk api-setting update --id [--apiId ] [--databaseId ] [--enableAggregates ] [--enableBulk ] [--enableConnectionFilter ] [--enableI18N ] [--enableIntrospection ] [--enableLlm ] [--enableLtree ] [--enableManyToMany ] [--enablePostgis ] [--enablePresignedUploads ] [--enableRealtime ] [--enableSearch ] [--idleInTransactionTimeoutMs ] [--lockTimeoutMs ] [--maxConcurrentRequests ] [--maxPageSize ] [--maxQueryCost ] [--maxQueryDepth ] [--maxQueueWaitMs ] [--maxRequestBytes ] [--options ] [--rateLimitBurst ] [--rateLimitRpm ] [--statementTimeoutMs ] csdk api-setting delete --id ``` @@ -58,7 +58,7 @@ csdk api-setting list --where.id.equalTo --orderBy ID_ASC ### Create a apiSetting ```bash -csdk api-setting create --apiId --databaseId [--enableAggregates ] [--enableBulk ] [--enableConnectionFilter ] [--enableDirectUploads ] [--enableI18N ] [--enableIntrospection ] [--enableLlm ] [--enableLtree ] [--enableManyToMany ] [--enablePostgis ] [--enablePresignedUploads ] [--enableRealtime ] [--enableSearch ] [--idleInTransactionTimeoutMs ] [--lockTimeoutMs ] [--maxConcurrentRequests ] [--maxPageSize ] [--maxQueryCost ] [--maxQueryDepth ] [--maxQueueWaitMs ] [--maxRequestBytes ] [--options ] [--rateLimitBurst ] [--rateLimitRpm ] [--statementTimeoutMs ] +csdk api-setting create --apiId --databaseId [--enableAggregates ] [--enableBulk ] [--enableConnectionFilter ] [--enableI18N ] [--enableIntrospection ] [--enableLlm ] [--enableLtree ] [--enableManyToMany ] [--enablePostgis ] [--enablePresignedUploads ] [--enableRealtime ] [--enableSearch ] [--idleInTransactionTimeoutMs ] [--lockTimeoutMs ] [--maxConcurrentRequests ] [--maxPageSize ] [--maxQueryCost ] [--maxQueryDepth ] [--maxQueueWaitMs ] [--maxRequestBytes ] [--options ] [--rateLimitBurst ] [--rateLimitRpm ] [--statementTimeoutMs ] ``` ### Get a apiSetting by id diff --git a/.agents/skills/cli-api/references/api.md b/.agents/skills/cli-api/references/api.md index 8df212fb8f..5009b445ab 100644 --- a/.agents/skills/cli-api/references/api.md +++ b/.agents/skills/cli-api/references/api.md @@ -12,8 +12,8 @@ csdk api list --where.. --orderBy csdk api list --limit 10 --after csdk api find-first --where.. csdk api get --id -csdk api create --databaseId --name [--anonRole ] [--config ] [--dbname ] [--isPublished ] [--roleName ] -csdk api update --id [--anonRole ] [--config ] [--databaseId ] [--dbname ] [--isPublished ] [--name ] [--roleName ] +csdk api create --databaseId --name [--anonRole ] [--config ] [--isPublished ] [--roleName ] +csdk api update --id [--anonRole ] [--config ] [--databaseId ] [--isPublished ] [--name ] [--roleName ] csdk api delete --id ``` @@ -58,7 +58,7 @@ csdk api list --where.id.equalTo --orderBy ID_ASC ### Create a api ```bash -csdk api create --databaseId --name [--anonRole ] [--config ] [--dbname ] [--isPublished ] [--roleName ] +csdk api create --databaseId --name [--anonRole ] [--config ] [--isPublished ] [--roleName ] ``` ### Get a api by id diff --git a/.agents/skills/cli-api/references/apis.md b/.agents/skills/cli-api/references/apis.md deleted file mode 100644 index de6a926c39..0000000000 --- a/.agents/skills/cli-api/references/apis.md +++ /dev/null @@ -1,68 +0,0 @@ -# apis - - - -CRUD operations for Apis records via csdk CLI - -## Usage - -```bash -csdk apis list -csdk apis list --where.. --orderBy -csdk apis list --limit 10 --after -csdk apis find-first --where.. -csdk apis get --id -csdk apis create --databaseId --name [--anonRole ] [--config ] [--dbname ] [--isPublished ] [--roleName ] -csdk apis update --id [--anonRole ] [--config ] [--databaseId ] [--dbname ] [--isPublished ] [--name ] [--roleName ] -csdk apis delete --id -``` - -## Examples - -### List apis records - -```bash -csdk apis list -``` - -### List apis records with pagination - -```bash -csdk apis list --limit 10 --offset 0 -``` - -### List apis records with cursor pagination - -```bash -csdk apis list --limit 10 --after -``` - -### Find first matching apis - -```bash -csdk apis find-first --where.id.equalTo -``` - -### List apis records with field selection - -```bash -csdk apis list --select id,id -``` - -### List apis records with filtering and ordering - -```bash -csdk apis list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a apis - -```bash -csdk apis create --databaseId --name [--anonRole ] [--config ] [--dbname ] [--isPublished ] [--roleName ] -``` - -### Get a apis by id - -```bash -csdk apis get --id -``` diff --git a/.agents/skills/cli-api/references/app.md b/.agents/skills/cli-api/references/app.md deleted file mode 100644 index 03e59063f4..0000000000 --- a/.agents/skills/cli-api/references/app.md +++ /dev/null @@ -1,68 +0,0 @@ -# app - - - -CRUD operations for App records via csdk CLI - -## Usage - -```bash -csdk app list -csdk app list --where.. --orderBy -csdk app list --limit 10 --after -csdk app find-first --where.. -csdk app get --id -csdk app create --databaseId --siteId [--appIdPrefix ] [--appImage ] [--appStoreId ] [--appStoreLink ] [--name ] [--playStoreLink ] -csdk app update --id [--appIdPrefix ] [--appImage ] [--appStoreId ] [--appStoreLink ] [--databaseId ] [--name ] [--playStoreLink ] [--siteId ] -csdk app delete --id -``` - -## Examples - -### List app records - -```bash -csdk app list -``` - -### List app records with pagination - -```bash -csdk app list --limit 10 --offset 0 -``` - -### List app records with cursor pagination - -```bash -csdk app list --limit 10 --after -``` - -### Find first matching app - -```bash -csdk app find-first --where.id.equalTo -``` - -### List app records with field selection - -```bash -csdk app list --select id,id -``` - -### List app records with filtering and ordering - -```bash -csdk app list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a app - -```bash -csdk app create --databaseId --siteId [--appIdPrefix ] [--appImage ] [--appStoreId ] [--appStoreLink ] [--name ] [--playStoreLink ] -``` - -### Get a app by id - -```bash -csdk app get --id -``` diff --git a/.agents/skills/cli-api/references/ast-migration.md b/.agents/skills/cli-api/references/ast-migration.md index 5d9bf5e6d5..842b7e9421 100644 --- a/.agents/skills/cli-api/references/ast-migration.md +++ b/.agents/skills/cli-api/references/ast-migration.md @@ -12,7 +12,6 @@ csdk ast-migration list --where.. --orderBy csdk ast-migration list --limit 10 --after csdk ast-migration find-first --where.. csdk ast-migration get --id -csdk ast-migration create --actionId --actionName --actorId --databaseId --deploy --deploys --name --payload --requires --revert --verify csdk ast-migration update --id [--actionId ] [--actionName ] [--actorId ] [--databaseId ] [--deploy ] [--deploys ] [--name ] [--payload ] [--requires ] [--revert ] [--verify ] csdk ast-migration delete --id ``` @@ -55,12 +54,6 @@ csdk ast-migration list --select id,id csdk ast-migration list --where.id.equalTo --orderBy ID_ASC ``` -### Create a astMigration - -```bash -csdk ast-migration create --actionId --actionName --actorId --databaseId --deploy --deploys --name --payload --requires --revert --verify -``` - ### Get a astMigration by id ```bash diff --git a/.agents/skills/cli-api/references/bootstrap-user.md b/.agents/skills/cli-api/references/bootstrap-user.md deleted file mode 100644 index 0c882e38bc..0000000000 --- a/.agents/skills/cli-api/references/bootstrap-user.md +++ /dev/null @@ -1,19 +0,0 @@ -# bootstrapUser - - - -Execute the bootstrapUser mutation - -## Usage - -```bash -csdk bootstrap-user --input.clientMutationId --input.targetDatabaseId --input.password --input.isAdmin --input.isOwner --input.username --input.displayName --input.returnApiKey -``` - -## Examples - -### Run bootstrapUser - -```bash -csdk bootstrap-user --input.clientMutationId --input.targetDatabaseId --input.password --input.isAdmin --input.isOwner --input.username --input.displayName --input.returnApiKey -``` diff --git a/.agents/skills/cli-api/references/create-user-database.md b/.agents/skills/cli-api/references/create-user-database.md deleted file mode 100644 index a0b5ee7688..0000000000 --- a/.agents/skills/cli-api/references/create-user-database.md +++ /dev/null @@ -1,35 +0,0 @@ -# createUserDatabase - - - -Creates a new user database with all required modules, permissions, and RLS policies. - -Parameters: - - database_name: Name for the new database (required) - - owner_id: UUID of the owner user (required) - - include_invites: Include invite system (default: true) - - include_groups: Include group-level memberships (default: false) - - include_levels: Include events/analytics (default: false) - - bitlen: Bit length for permission masks (default: 64) - - tokens_expiration: Token expiration interval (default: 30 days) - -Returns the database_id UUID of the newly created database. - -Example usage: - SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid); - SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid, true, true); -- with invites and groups - - -## Usage - -```bash -csdk create-user-database --input.clientMutationId --input.databaseName --input.ownerId --input.includeInvites --input.includeGroups --input.includeLevels --input.bitlen --input.tokensExpiration -``` - -## Examples - -### Run createUserDatabase - -```bash -csdk create-user-database --input.clientMutationId --input.databaseName --input.ownerId --input.includeInvites --input.includeGroups --input.includeLevels --input.bitlen --input.tokensExpiration -``` diff --git a/.agents/skills/cli-api/references/database-setting.md b/.agents/skills/cli-api/references/database-setting.md index 214576ec5f..14f40d4a6b 100644 --- a/.agents/skills/cli-api/references/database-setting.md +++ b/.agents/skills/cli-api/references/database-setting.md @@ -12,8 +12,8 @@ csdk database-setting list --where.. --orderBy csdk database-setting list --limit 10 --after csdk database-setting find-first --where.. csdk database-setting get --id -csdk database-setting create --databaseId [--annotations ] [--creditsPerCent ] [--enableAggregates ] [--enableBilling ] [--enableBulk ] [--enableConnectionFilter ] [--enableDirectUploads ] [--enableI18N ] [--enableIntrospection ] [--enableLlm ] [--enableLtree ] [--enableManyToMany ] [--enablePostgis ] [--enablePresignedUploads ] [--enableRealtime ] [--enableSearch ] [--idleInTransactionTimeoutMs ] [--labels ] [--lockTimeoutMs ] [--maxConcurrentRequests ] [--maxPageSize ] [--maxQueryCost ] [--maxQueryDepth ] [--maxQueueWaitMs ] [--maxRequestBytes ] [--options ] [--rateLimitBurst ] [--rateLimitRpm ] [--statementTimeoutMs ] -csdk database-setting update --id [--annotations ] [--creditsPerCent ] [--databaseId ] [--enableAggregates ] [--enableBilling ] [--enableBulk ] [--enableConnectionFilter ] [--enableDirectUploads ] [--enableI18N ] [--enableIntrospection ] [--enableLlm ] [--enableLtree ] [--enableManyToMany ] [--enablePostgis ] [--enablePresignedUploads ] [--enableRealtime ] [--enableSearch ] [--idleInTransactionTimeoutMs ] [--labels ] [--lockTimeoutMs ] [--maxConcurrentRequests ] [--maxPageSize ] [--maxQueryCost ] [--maxQueryDepth ] [--maxQueueWaitMs ] [--maxRequestBytes ] [--options ] [--rateLimitBurst ] [--rateLimitRpm ] [--statementTimeoutMs ] +csdk database-setting create --databaseId [--annotations ] [--creditsPerCent ] [--enableAggregates ] [--enableBilling ] [--enableBulk ] [--enableConnectionFilter ] [--enableI18N ] [--enableIntrospection ] [--enableLlm ] [--enableLtree ] [--enableManyToMany ] [--enablePostgis ] [--enablePresignedUploads ] [--enableRealtime ] [--enableSearch ] [--idleInTransactionTimeoutMs ] [--labels ] [--lockTimeoutMs ] [--maxConcurrentRequests ] [--maxPageSize ] [--maxQueryCost ] [--maxQueryDepth ] [--maxQueueWaitMs ] [--maxRequestBytes ] [--options ] [--rateLimitBurst ] [--rateLimitRpm ] [--statementTimeoutMs ] +csdk database-setting update --id [--annotations ] [--creditsPerCent ] [--databaseId ] [--enableAggregates ] [--enableBilling ] [--enableBulk ] [--enableConnectionFilter ] [--enableI18N ] [--enableIntrospection ] [--enableLlm ] [--enableLtree ] [--enableManyToMany ] [--enablePostgis ] [--enablePresignedUploads ] [--enableRealtime ] [--enableSearch ] [--idleInTransactionTimeoutMs ] [--labels ] [--lockTimeoutMs ] [--maxConcurrentRequests ] [--maxPageSize ] [--maxQueryCost ] [--maxQueryDepth ] [--maxQueueWaitMs ] [--maxRequestBytes ] [--options ] [--rateLimitBurst ] [--rateLimitRpm ] [--statementTimeoutMs ] csdk database-setting delete --id ``` @@ -58,7 +58,7 @@ csdk database-setting list --where.id.equalTo --orderBy ID_ASC ### Create a databaseSetting ```bash -csdk database-setting create --databaseId [--annotations ] [--creditsPerCent ] [--enableAggregates ] [--enableBilling ] [--enableBulk ] [--enableConnectionFilter ] [--enableDirectUploads ] [--enableI18N ] [--enableIntrospection ] [--enableLlm ] [--enableLtree ] [--enableManyToMany ] [--enablePostgis ] [--enablePresignedUploads ] [--enableRealtime ] [--enableSearch ] [--idleInTransactionTimeoutMs ] [--labels ] [--lockTimeoutMs ] [--maxConcurrentRequests ] [--maxPageSize ] [--maxQueryCost ] [--maxQueryDepth ] [--maxQueueWaitMs ] [--maxRequestBytes ] [--options ] [--rateLimitBurst ] [--rateLimitRpm ] [--statementTimeoutMs ] +csdk database-setting create --databaseId [--annotations ] [--creditsPerCent ] [--enableAggregates ] [--enableBilling ] [--enableBulk ] [--enableConnectionFilter ] [--enableI18N ] [--enableIntrospection ] [--enableLlm ] [--enableLtree ] [--enableManyToMany ] [--enablePostgis ] [--enablePresignedUploads ] [--enableRealtime ] [--enableSearch ] [--idleInTransactionTimeoutMs ] [--labels ] [--lockTimeoutMs ] [--maxConcurrentRequests ] [--maxPageSize ] [--maxQueryCost ] [--maxQueryDepth ] [--maxQueueWaitMs ] [--maxRequestBytes ] [--options ] [--rateLimitBurst ] [--rateLimitRpm ] [--statementTimeoutMs ] ``` ### Get a databaseSetting by id diff --git a/.agents/skills/cli-api/references/get-site-previews-record.md b/.agents/skills/cli-api/references/get-site-previews-record.md index 3aae32349f..0fded732bd 100644 --- a/.agents/skills/cli-api/references/get-site-previews-record.md +++ b/.agents/skills/cli-api/references/get-site-previews-record.md @@ -12,7 +12,6 @@ csdk get-site-previews-record list --where.. --orderBy csdk get-site-previews-record find-first --where.. csdk get-site-previews-record get --id -csdk get-site-previews-record create --commitId --name csdk get-site-previews-record update --id [--commitId ] [--name ] csdk get-site-previews-record delete --id ``` @@ -55,12 +54,6 @@ csdk get-site-previews-record list --select id,id csdk get-site-previews-record list --where.id.equalTo --orderBy ID_ASC ``` -### Create a getSitePreviewsRecord - -```bash -csdk get-site-previews-record create --commitId --name -``` - ### Get a getSitePreviewsRecord by id ```bash diff --git a/.agents/skills/cli-api/references/hostname-binding.md b/.agents/skills/cli-api/references/hostname-binding.md deleted file mode 100644 index f37f991c65..0000000000 --- a/.agents/skills/cli-api/references/hostname-binding.md +++ /dev/null @@ -1,68 +0,0 @@ -# hostnameBinding - - - -CRUD operations for HostnameBinding records via csdk CLI - -## Usage - -```bash -csdk hostname-binding list -csdk hostname-binding list --where.. --orderBy -csdk hostname-binding list --limit 10 --after -csdk hostname-binding find-first --where.. -csdk hostname-binding get --id -csdk hostname-binding create --domainId --hostname [--isWildcard ] [--managed ] [--parentHostname ] [--tlsSecretName ] [--tlsStatus ] [--verificationStatus ] -csdk hostname-binding update --id [--domainId ] [--hostname ] [--isWildcard ] [--managed ] [--parentHostname ] [--tlsSecretName ] [--tlsStatus ] [--verificationStatus ] -csdk hostname-binding delete --id -``` - -## Examples - -### List hostnameBinding records - -```bash -csdk hostname-binding list -``` - -### List hostnameBinding records with pagination - -```bash -csdk hostname-binding list --limit 10 --offset 0 -``` - -### List hostnameBinding records with cursor pagination - -```bash -csdk hostname-binding list --limit 10 --after -``` - -### Find first matching hostnameBinding - -```bash -csdk hostname-binding find-first --where.id.equalTo -``` - -### List hostnameBinding records with field selection - -```bash -csdk hostname-binding list --select id,id -``` - -### List hostnameBinding records with filtering and ordering - -```bash -csdk hostname-binding list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a hostnameBinding - -```bash -csdk hostname-binding create --domainId --hostname [--isWildcard ] [--managed ] [--parentHostname ] [--tlsSecretName ] [--tlsStatus ] [--verificationStatus ] -``` - -### Get a hostnameBinding by id - -```bash -csdk hostname-binding get --id -``` diff --git a/.agents/skills/cli-api/references/http-route.md b/.agents/skills/cli-api/references/http-route.md deleted file mode 100644 index a37f09a460..0000000000 --- a/.agents/skills/cli-api/references/http-route.md +++ /dev/null @@ -1,68 +0,0 @@ -# httpRoute - - - -CRUD operations for HttpRoute records via csdk CLI - -## Usage - -```bash -csdk http-route list -csdk http-route list --where.. --orderBy -csdk http-route list --limit 10 --after -csdk http-route find-first --where.. -csdk http-route get --id -csdk http-route create --databaseId --domainId --targetId --targetKind [--createdBy ] [--isActive ] [--method ] [--path ] [--priority ] [--updatedBy ] -csdk http-route update --id [--createdBy ] [--databaseId ] [--domainId ] [--isActive ] [--method ] [--path ] [--priority ] [--targetId ] [--targetKind ] [--updatedBy ] -csdk http-route delete --id -``` - -## Examples - -### List httpRoute records - -```bash -csdk http-route list -``` - -### List httpRoute records with pagination - -```bash -csdk http-route list --limit 10 --offset 0 -``` - -### List httpRoute records with cursor pagination - -```bash -csdk http-route list --limit 10 --after -``` - -### Find first matching httpRoute - -```bash -csdk http-route find-first --where.id.equalTo -``` - -### List httpRoute records with field selection - -```bash -csdk http-route list --select id,id -``` - -### List httpRoute records with filtering and ordering - -```bash -csdk http-route list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a httpRoute - -```bash -csdk http-route create --databaseId --domainId --targetId --targetKind [--createdBy ] [--isActive ] [--method ] [--path ] [--priority ] [--updatedBy ] -``` - -### Get a httpRoute by id - -```bash -csdk http-route get --id -``` diff --git a/.agents/skills/cli-api/references/list-suspended-databases-record.md b/.agents/skills/cli-api/references/list-suspended-databases-record.md index 5ec3545edc..16e31fb381 100644 --- a/.agents/skills/cli-api/references/list-suspended-databases-record.md +++ b/.agents/skills/cli-api/references/list-suspended-databases-record.md @@ -12,7 +12,6 @@ csdk list-suspended-databases-record list --where.. --orderBy csdk list-suspended-databases-record list --limit 10 --after csdk list-suspended-databases-record find-first --where.. csdk list-suspended-databases-record get --id -csdk list-suspended-databases-record create --name --ownerId --suspendedAt --suspendedReason csdk list-suspended-databases-record update --id [--name ] [--ownerId ] [--suspendedAt ] [--suspendedReason ] csdk list-suspended-databases-record delete --id ``` @@ -55,12 +54,6 @@ csdk list-suspended-databases-record list --select id,id csdk list-suspended-databases-record list --where.id.equalTo --orderBy ID_ASC ``` -### Create a listSuspendedDatabasesRecord - -```bash -csdk list-suspended-databases-record create --name --ownerId --suspendedAt --suspendedReason -``` - ### Get a listSuspendedDatabasesRecord by id ```bash diff --git a/.agents/skills/cli-api/references/migrate-file.md b/.agents/skills/cli-api/references/migrate-file.md deleted file mode 100644 index 9c3d27ab6b..0000000000 --- a/.agents/skills/cli-api/references/migrate-file.md +++ /dev/null @@ -1,68 +0,0 @@ -# migrateFile - - - -CRUD operations for MigrateFile records via csdk CLI - -## Usage - -```bash -csdk migrate-file list -csdk migrate-file list --where.. --orderBy -csdk migrate-file list --limit 10 --after -csdk migrate-file find-first --where.. -csdk migrate-file get --id -csdk migrate-file create [--databaseId ] [--upload ] -csdk migrate-file update --id [--databaseId ] [--upload ] -csdk migrate-file delete --id -``` - -## Examples - -### List migrateFile records - -```bash -csdk migrate-file list -``` - -### List migrateFile records with pagination - -```bash -csdk migrate-file list --limit 10 --offset 0 -``` - -### List migrateFile records with cursor pagination - -```bash -csdk migrate-file list --limit 10 --after -``` - -### Find first matching migrateFile - -```bash -csdk migrate-file find-first --where.id.equalTo -``` - -### List migrateFile records with field selection - -```bash -csdk migrate-file list --select id,id -``` - -### List migrateFile records with filtering and ordering - -```bash -csdk migrate-file list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a migrateFile - -```bash -csdk migrate-file create [--databaseId ] [--upload ] -``` - -### Get a migrateFile by id - -```bash -csdk migrate-file get --id -``` diff --git a/.agents/skills/cli-api/references/platform-api-module.md b/.agents/skills/cli-api/references/platform-api-module.md deleted file mode 100644 index 115856c275..0000000000 --- a/.agents/skills/cli-api/references/platform-api-module.md +++ /dev/null @@ -1,68 +0,0 @@ -# platformApiModule - - - -CRUD operations for PlatformApiModule records via csdk CLI - -## Usage - -```bash -csdk platform-api-module list -csdk platform-api-module list --where.. --orderBy -csdk platform-api-module list --limit 10 --after -csdk platform-api-module find-first --where.. -csdk platform-api-module get --id -csdk platform-api-module create --apiId --data --name -csdk platform-api-module update --id [--apiId ] [--data ] [--name ] -csdk platform-api-module delete --id -``` - -## Examples - -### List platformApiModule records - -```bash -csdk platform-api-module list -``` - -### List platformApiModule records with pagination - -```bash -csdk platform-api-module list --limit 10 --offset 0 -``` - -### List platformApiModule records with cursor pagination - -```bash -csdk platform-api-module list --limit 10 --after -``` - -### Find first matching platformApiModule - -```bash -csdk platform-api-module find-first --where.id.equalTo -``` - -### List platformApiModule records with field selection - -```bash -csdk platform-api-module list --select id,id -``` - -### List platformApiModule records with filtering and ordering - -```bash -csdk platform-api-module list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a platformApiModule - -```bash -csdk platform-api-module create --apiId --data --name -``` - -### Get a platformApiModule by id - -```bash -csdk platform-api-module get --id -``` diff --git a/.agents/skills/cli-api/references/platform-api-setting.md b/.agents/skills/cli-api/references/platform-api-setting.md index aada14730f..7882c7f79d 100644 --- a/.agents/skills/cli-api/references/platform-api-setting.md +++ b/.agents/skills/cli-api/references/platform-api-setting.md @@ -12,8 +12,8 @@ csdk platform-api-setting list --where.. --orderBy csdk platform-api-setting list --limit 10 --after csdk platform-api-setting find-first --where.. csdk platform-api-setting get --id -csdk platform-api-setting create --apiId [--enableAggregates ] [--enableBulk ] [--enableConnectionFilter ] [--enableDirectUploads ] [--enableI18N ] [--enableIntrospection ] [--enableLlm ] [--enableLtree ] [--enableManyToMany ] [--enablePostgis ] [--enablePresignedUploads ] [--enableRealtime ] [--enableSearch ] [--idleInTransactionTimeoutMs ] [--lockTimeoutMs ] [--maxConcurrentRequests ] [--maxPageSize ] [--maxQueryCost ] [--maxQueryDepth ] [--maxQueueWaitMs ] [--maxRequestBytes ] [--options ] [--rateLimitBurst ] [--rateLimitRpm ] [--statementTimeoutMs ] -csdk platform-api-setting update --id [--apiId ] [--enableAggregates ] [--enableBulk ] [--enableConnectionFilter ] [--enableDirectUploads ] [--enableI18N ] [--enableIntrospection ] [--enableLlm ] [--enableLtree ] [--enableManyToMany ] [--enablePostgis ] [--enablePresignedUploads ] [--enableRealtime ] [--enableSearch ] [--idleInTransactionTimeoutMs ] [--lockTimeoutMs ] [--maxConcurrentRequests ] [--maxPageSize ] [--maxQueryCost ] [--maxQueryDepth ] [--maxQueueWaitMs ] [--maxRequestBytes ] [--options ] [--rateLimitBurst ] [--rateLimitRpm ] [--statementTimeoutMs ] +csdk platform-api-setting create --apiId [--enableAggregates ] [--enableBulk ] [--enableConnectionFilter ] [--enableI18N ] [--enableIntrospection ] [--enableLlm ] [--enableLtree ] [--enableManyToMany ] [--enablePostgis ] [--enablePresignedUploads ] [--enableRealtime ] [--enableSearch ] [--idleInTransactionTimeoutMs ] [--lockTimeoutMs ] [--maxConcurrentRequests ] [--maxPageSize ] [--maxQueryCost ] [--maxQueryDepth ] [--maxQueueWaitMs ] [--maxRequestBytes ] [--options ] [--rateLimitBurst ] [--rateLimitRpm ] [--statementTimeoutMs ] +csdk platform-api-setting update --id [--apiId ] [--enableAggregates ] [--enableBulk ] [--enableConnectionFilter ] [--enableI18N ] [--enableIntrospection ] [--enableLlm ] [--enableLtree ] [--enableManyToMany ] [--enablePostgis ] [--enablePresignedUploads ] [--enableRealtime ] [--enableSearch ] [--idleInTransactionTimeoutMs ] [--lockTimeoutMs ] [--maxConcurrentRequests ] [--maxPageSize ] [--maxQueryCost ] [--maxQueryDepth ] [--maxQueueWaitMs ] [--maxRequestBytes ] [--options ] [--rateLimitBurst ] [--rateLimitRpm ] [--statementTimeoutMs ] csdk platform-api-setting delete --id ``` @@ -58,7 +58,7 @@ csdk platform-api-setting list --where.id.equalTo --orderBy ID_ASC ### Create a platformApiSetting ```bash -csdk platform-api-setting create --apiId [--enableAggregates ] [--enableBulk ] [--enableConnectionFilter ] [--enableDirectUploads ] [--enableI18N ] [--enableIntrospection ] [--enableLlm ] [--enableLtree ] [--enableManyToMany ] [--enablePostgis ] [--enablePresignedUploads ] [--enableRealtime ] [--enableSearch ] [--idleInTransactionTimeoutMs ] [--lockTimeoutMs ] [--maxConcurrentRequests ] [--maxPageSize ] [--maxQueryCost ] [--maxQueryDepth ] [--maxQueueWaitMs ] [--maxRequestBytes ] [--options ] [--rateLimitBurst ] [--rateLimitRpm ] [--statementTimeoutMs ] +csdk platform-api-setting create --apiId [--enableAggregates ] [--enableBulk ] [--enableConnectionFilter ] [--enableI18N ] [--enableIntrospection ] [--enableLlm ] [--enableLtree ] [--enableManyToMany ] [--enablePostgis ] [--enablePresignedUploads ] [--enableRealtime ] [--enableSearch ] [--idleInTransactionTimeoutMs ] [--lockTimeoutMs ] [--maxConcurrentRequests ] [--maxPageSize ] [--maxQueryCost ] [--maxQueryDepth ] [--maxQueueWaitMs ] [--maxRequestBytes ] [--options ] [--rateLimitBurst ] [--rateLimitRpm ] [--statementTimeoutMs ] ``` ### Get a platformApiSetting by id diff --git a/.agents/skills/cli-api/references/platform-api.md b/.agents/skills/cli-api/references/platform-api.md index 19250b7e37..a6af782ef8 100644 --- a/.agents/skills/cli-api/references/platform-api.md +++ b/.agents/skills/cli-api/references/platform-api.md @@ -12,8 +12,8 @@ csdk platform-api list --where.. --orderBy csdk platform-api list --limit 10 --after csdk platform-api find-first --where.. csdk platform-api get --id -csdk platform-api create --name [--anonRole ] [--config ] [--dbname ] [--isPublished ] [--roleName ] -csdk platform-api update --id [--anonRole ] [--config ] [--dbname ] [--isPublished ] [--name ] [--roleName ] +csdk platform-api create --name [--anonRole ] [--config ] [--isPublished ] [--roleName ] +csdk platform-api update --id [--anonRole ] [--config ] [--isPublished ] [--name ] [--roleName ] csdk platform-api delete --id ``` @@ -58,7 +58,7 @@ csdk platform-api list --where.id.equalTo --orderBy ID_ASC ### Create a platformApi ```bash -csdk platform-api create --name [--anonRole ] [--config ] [--dbname ] [--isPublished ] [--roleName ] +csdk platform-api create --name [--anonRole ] [--config ] [--isPublished ] [--roleName ] ``` ### Get a platformApi by id diff --git a/.agents/skills/cli-api/references/platform-apis.md b/.agents/skills/cli-api/references/platform-apis.md deleted file mode 100644 index 582c2dc7c6..0000000000 --- a/.agents/skills/cli-api/references/platform-apis.md +++ /dev/null @@ -1,68 +0,0 @@ -# platformApis - - - -CRUD operations for PlatformApis records via csdk CLI - -## Usage - -```bash -csdk platform-apis list -csdk platform-apis list --where.. --orderBy -csdk platform-apis list --limit 10 --after -csdk platform-apis find-first --where.. -csdk platform-apis get --id -csdk platform-apis create --name [--anonRole ] [--config ] [--dbname ] [--isPublished ] [--roleName ] -csdk platform-apis update --id [--anonRole ] [--config ] [--dbname ] [--isPublished ] [--name ] [--roleName ] -csdk platform-apis delete --id -``` - -## Examples - -### List platformApis records - -```bash -csdk platform-apis list -``` - -### List platformApis records with pagination - -```bash -csdk platform-apis list --limit 10 --offset 0 -``` - -### List platformApis records with cursor pagination - -```bash -csdk platform-apis list --limit 10 --after -``` - -### Find first matching platformApis - -```bash -csdk platform-apis find-first --where.id.equalTo -``` - -### List platformApis records with field selection - -```bash -csdk platform-apis list --select id,id -``` - -### List platformApis records with filtering and ordering - -```bash -csdk platform-apis list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a platformApis - -```bash -csdk platform-apis create --name [--anonRole ] [--config ] [--dbname ] [--isPublished ] [--roleName ] -``` - -### Get a platformApis by id - -```bash -csdk platform-apis get --id -``` diff --git a/.agents/skills/cli-api/references/platform-get-site-previews-record.md b/.agents/skills/cli-api/references/platform-get-site-previews-record.md index 39e4208862..3bc42591b7 100644 --- a/.agents/skills/cli-api/references/platform-get-site-previews-record.md +++ b/.agents/skills/cli-api/references/platform-get-site-previews-record.md @@ -12,7 +12,6 @@ csdk platform-get-site-previews-record list --where.. --order csdk platform-get-site-previews-record list --limit 10 --after csdk platform-get-site-previews-record find-first --where.. csdk platform-get-site-previews-record get --id -csdk platform-get-site-previews-record create --commitId --name csdk platform-get-site-previews-record update --id [--commitId ] [--name ] csdk platform-get-site-previews-record delete --id ``` @@ -55,12 +54,6 @@ csdk platform-get-site-previews-record list --select id,id csdk platform-get-site-previews-record list --where.id.equalTo --orderBy ID_ASC ``` -### Create a platformGetSitePreviewsRecord - -```bash -csdk platform-get-site-previews-record create --commitId --name -``` - ### Get a platformGetSitePreviewsRecord by id ```bash diff --git a/.agents/skills/cli-api/references/platform-reserved-subdomain.md b/.agents/skills/cli-api/references/platform-reserved-subdomain.md new file mode 100644 index 0000000000..b074f84226 --- /dev/null +++ b/.agents/skills/cli-api/references/platform-reserved-subdomain.md @@ -0,0 +1,68 @@ +# platformReservedSubdomain + + + +CRUD operations for PlatformReservedSubdomain records via csdk CLI + +## Usage + +```bash +csdk platform-reserved-subdomain list +csdk platform-reserved-subdomain list --where.. --orderBy +csdk platform-reserved-subdomain list --limit 10 --after +csdk platform-reserved-subdomain find-first --where.. +csdk platform-reserved-subdomain get --id +csdk platform-reserved-subdomain create --label [--createdByPrincipal ] [--match ] [--reason ] [--updatedByPrincipal ] +csdk platform-reserved-subdomain update --id [--createdByPrincipal ] [--label ] [--match ] [--reason ] [--updatedByPrincipal ] +csdk platform-reserved-subdomain delete --id +``` + +## Examples + +### List platformReservedSubdomain records + +```bash +csdk platform-reserved-subdomain list +``` + +### List platformReservedSubdomain records with pagination + +```bash +csdk platform-reserved-subdomain list --limit 10 --offset 0 +``` + +### List platformReservedSubdomain records with cursor pagination + +```bash +csdk platform-reserved-subdomain list --limit 10 --after +``` + +### Find first matching platformReservedSubdomain + +```bash +csdk platform-reserved-subdomain find-first --where.id.equalTo +``` + +### List platformReservedSubdomain records with field selection + +```bash +csdk platform-reserved-subdomain list --select id,id +``` + +### List platformReservedSubdomain records with filtering and ordering + +```bash +csdk platform-reserved-subdomain list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a platformReservedSubdomain + +```bash +csdk platform-reserved-subdomain create --label [--createdByPrincipal ] [--match ] [--reason ] [--updatedByPrincipal ] +``` + +### Get a platformReservedSubdomain by id + +```bash +csdk platform-reserved-subdomain get --id +``` diff --git a/.agents/skills/cli-api/references/provision-database-with-user.md b/.agents/skills/cli-api/references/provision-database-with-user.md deleted file mode 100644 index d4cbb44f15..0000000000 --- a/.agents/skills/cli-api/references/provision-database-with-user.md +++ /dev/null @@ -1,19 +0,0 @@ -# provisionDatabaseWithUser - - - -Execute the provisionDatabaseWithUser mutation - -## Usage - -```bash -csdk provision-database-with-user --input.clientMutationId --input.pDatabaseName --input.pDomain --input.pSubdomain --input.pModules --input.pOptions -``` - -## Examples - -### Run provisionDatabaseWithUser - -```bash -csdk provision-database-with-user --input.clientMutationId --input.pDatabaseName --input.pDomain --input.pSubdomain --input.pModules --input.pOptions -``` diff --git a/.agents/skills/cli-api/references/resolve-deep-link.md b/.agents/skills/cli-api/references/resolve-deep-link.md deleted file mode 100644 index f0d4f25de8..0000000000 --- a/.agents/skills/cli-api/references/resolve-deep-link.md +++ /dev/null @@ -1,19 +0,0 @@ -# resolveDeepLink - - - -Execute the resolveDeepLink query - -## Usage - -```bash -csdk resolve-deep-link --linkSlug --targetSiteId -``` - -## Examples - -### Run resolveDeepLink - -```bash -csdk resolve-deep-link --linkSlug --targetSiteId -``` diff --git a/.agents/skills/cli-api/references/resolve-http-route.md b/.agents/skills/cli-api/references/resolve-http-route.md deleted file mode 100644 index fca7b70a22..0000000000 --- a/.agents/skills/cli-api/references/resolve-http-route.md +++ /dev/null @@ -1,19 +0,0 @@ -# resolveHttpRoute - - - -Execute the resolveHttpRoute query - -## Usage - -```bash -csdk resolve-http-route --requestHost --requestMethod --requestPath -``` - -## Examples - -### Run resolveHttpRoute - -```bash -csdk resolve-http-route --requestHost --requestMethod --requestPath -``` diff --git a/.agents/skills/cli-api/references/resolve-route.md b/.agents/skills/cli-api/references/resolve-route.md deleted file mode 100644 index cb3d90e36d..0000000000 --- a/.agents/skills/cli-api/references/resolve-route.md +++ /dev/null @@ -1,19 +0,0 @@ -# resolveRoute - - - -Execute the resolveRoute query - -## Usage - -```bash -csdk resolve-route --requestHost --requestMethod --requestPath -``` - -## Examples - -### Run resolveRoute - -```bash -csdk resolve-route --requestHost --requestMethod --requestPath -``` diff --git a/.agents/skills/cli-api/references/resolve-site-app-links.md b/.agents/skills/cli-api/references/resolve-site-app-links.md deleted file mode 100644 index ed61aed00d..0000000000 --- a/.agents/skills/cli-api/references/resolve-site-app-links.md +++ /dev/null @@ -1,19 +0,0 @@ -# resolveSiteAppLinks - - - -Execute the resolveSiteAppLinks query - -## Usage - -```bash -csdk resolve-site-app-links --targetSiteId -``` - -## Examples - -### Run resolveSiteAppLinks - -```bash -csdk resolve-site-app-links --targetSiteId -``` diff --git a/.agents/skills/cli-api/references/route-binding.md b/.agents/skills/cli-api/references/route-binding.md deleted file mode 100644 index bdf0da94f0..0000000000 --- a/.agents/skills/cli-api/references/route-binding.md +++ /dev/null @@ -1,68 +0,0 @@ -# routeBinding - - - -CRUD operations for RouteBinding records via csdk CLI - -## Usage - -```bash -csdk route-binding list -csdk route-binding list --where.. --orderBy -csdk route-binding list --limit 10 --after -csdk route-binding find-first --where.. -csdk route-binding get --id -csdk route-binding create --domainId --path [--isActive ] [--method ] [--priority ] [--servingSiteId ] [--targetApiId ] [--targetBucketId ] [--targetFunctionId ] [--targetRedirectId ] [--targetServiceId ] [--targetSiteId ] -csdk route-binding update --id [--domainId ] [--isActive ] [--method ] [--path ] [--priority ] [--servingSiteId ] [--targetApiId ] [--targetBucketId ] [--targetFunctionId ] [--targetRedirectId ] [--targetServiceId ] [--targetSiteId ] -csdk route-binding delete --id -``` - -## Examples - -### List routeBinding records - -```bash -csdk route-binding list -``` - -### List routeBinding records with pagination - -```bash -csdk route-binding list --limit 10 --offset 0 -``` - -### List routeBinding records with cursor pagination - -```bash -csdk route-binding list --limit 10 --after -``` - -### Find first matching routeBinding - -```bash -csdk route-binding find-first --where.id.equalTo -``` - -### List routeBinding records with field selection - -```bash -csdk route-binding list --select id,id -``` - -### List routeBinding records with filtering and ordering - -```bash -csdk route-binding list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a routeBinding - -```bash -csdk route-binding create --domainId --path [--isActive ] [--method ] [--priority ] [--servingSiteId ] [--targetApiId ] [--targetBucketId ] [--targetFunctionId ] [--targetRedirectId ] [--targetServiceId ] [--targetSiteId ] -``` - -### Get a routeBinding by id - -```bash -csdk route-binding get --id -``` diff --git a/.agents/skills/cli-api/references/sql-action.md b/.agents/skills/cli-api/references/sql-action.md index c772242c0c..ffbd464ab8 100644 --- a/.agents/skills/cli-api/references/sql-action.md +++ b/.agents/skills/cli-api/references/sql-action.md @@ -12,7 +12,6 @@ csdk sql-action list --where.. --orderBy csdk sql-action list --limit 10 --after csdk sql-action find-first --where.. csdk sql-action get --id -csdk sql-action create --actionId --actionName --actorId --content --databaseId --deploy --deps --name --payload --revert --verify csdk sql-action update --id [--actionId ] [--actionName ] [--actorId ] [--content ] [--databaseId ] [--deploy ] [--deps ] [--name ] [--payload ] [--revert ] [--verify ] csdk sql-action delete --id ``` @@ -55,12 +54,6 @@ csdk sql-action list --select id,id csdk sql-action list --where.id.equalTo --orderBy ID_ASC ``` -### Create a sqlAction - -```bash -csdk sql-action create --actionId --actionName --actorId --content --databaseId --deploy --deps --name --payload --revert --verify -``` - ### Get a sqlAction by id ```bash diff --git a/.agents/skills/cli-auth/SKILL.md b/.agents/skills/cli-auth/SKILL.md index e6cbdedc26..7b31e2ebd6 100644 --- a/.agents/skills/cli-auth/SKILL.md +++ b/.agents/skills/cli-auth/SKILL.md @@ -1,13 +1,13 @@ --- name: cli-auth -description: CLI tool (csdk) for the auth API — provides CRUD commands for 15 tables and 61 custom operations +description: CLI tool (csdk) for the auth API — provides CRUD commands for 15 tables and 66 custom operations --- # cli-auth -CLI tool (csdk) for the auth API — provides CRUD commands for 15 tables and 61 custom operations +CLI tool (csdk) for the auth API — provides CRUD commands for 15 tables and 66 custom operations ## Usage @@ -77,6 +77,7 @@ See the `references/` directory for detailed per-entity API documentation: - [current-user-id](references/current-user-id.md) - [get-mfa-status](references/get-mfa-status.md) - [require-step-up](references/require-step-up.md) +- [sign-in-options](references/sign-in-options.md) - [approve-device](references/approve-device.md) - [check-password](references/check-password.md) - [complete-mfa-challenge](references/complete-mfa-challenge.md) @@ -86,6 +87,7 @@ See the `references/` directory for detailed per-entity API documentation: - [create-child-principal](references/create-child-principal.md) - [create-org-api-key](references/create-org-api-key.md) - [create-org-principal](references/create-org-principal.md) +- [create-principal](references/create-principal.md) - [create-principal-from-preset](references/create-principal-from-preset.md) - [delete-org-principal](references/delete-org-principal.md) - [delete-principal](references/delete-principal.md) @@ -96,6 +98,8 @@ See the `references/` directory for detailed per-entity API documentation: - [enable-email-mfa](references/enable-email-mfa.md) - [enable-sms-mfa](references/enable-sms-mfa.md) - [enable-totp](references/enable-totp.md) +- [ensure-auth-csrf](references/ensure-auth-csrf.md) +- [exchange-native-handoff](references/exchange-native-handoff.md) - [extend-token-expires](references/extend-token-expires.md) - [forgot-password](references/forgot-password.md) - [generate-backup-codes](references/generate-backup-codes.md) @@ -104,6 +108,7 @@ See the `references/` directory for detailed per-entity API documentation: - [provision-bucket](references/provision-bucket.md) - [refresh-access-token](references/refresh-access-token.md) - [request-cross-origin-token](references/request-cross-origin-token.md) +- [request-device-approval](references/request-device-approval.md) - [request-magic-link](references/request-magic-link.md) - [reset-password](references/reset-password.md) - [revoke-api-key](references/revoke-api-key.md) diff --git a/.agents/skills/cli-auth/references/audit-log.md b/.agents/skills/cli-auth/references/audit-log.md deleted file mode 100644 index d61f67db29..0000000000 --- a/.agents/skills/cli-auth/references/audit-log.md +++ /dev/null @@ -1,68 +0,0 @@ -# auditLog - - - -CRUD operations for AuditLog records via csdk CLI - -## Usage - -```bash -csdk audit-log list -csdk audit-log list --where.. --orderBy -csdk audit-log list --limit 10 --after -csdk audit-log find-first --where.. -csdk audit-log get --id -csdk audit-log create --event --success [--actorId ] [--origin ] [--userAgent ] [--ipAddress ] -csdk audit-log update --id [--event ] [--actorId ] [--origin ] [--userAgent ] [--ipAddress ] [--success ] -csdk audit-log delete --id -``` - -## Examples - -### List auditLog records - -```bash -csdk audit-log list -``` - -### List auditLog records with pagination - -```bash -csdk audit-log list --limit 10 --offset 0 -``` - -### List auditLog records with cursor pagination - -```bash -csdk audit-log list --limit 10 --after -``` - -### Find first matching auditLog - -```bash -csdk audit-log find-first --where.id.equalTo -``` - -### List auditLog records with field selection - -```bash -csdk audit-log list --select id,id -``` - -### List auditLog records with filtering and ordering - -```bash -csdk audit-log list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a auditLog - -```bash -csdk audit-log create --event --success [--actorId ] [--origin ] [--userAgent ] [--ipAddress ] -``` - -### Get a auditLog by id - -```bash -csdk audit-log get --id -``` diff --git a/.agents/skills/cli-auth/references/confirm-upload.md b/.agents/skills/cli-auth/references/confirm-upload.md deleted file mode 100644 index a9f4915b99..0000000000 --- a/.agents/skills/cli-auth/references/confirm-upload.md +++ /dev/null @@ -1,21 +0,0 @@ -# confirmUpload - - - -Confirm that a file has been uploaded to S3. -Verifies the object exists in S3, checks content-type, -and transitions the file status from 'pending' to 'ready'. - -## Usage - -```bash -csdk confirm-upload --input.fileId -``` - -## Examples - -### Run confirmUpload - -```bash -csdk confirm-upload --input.fileId -``` diff --git a/.agents/skills/cli-auth/references/connected-account.md b/.agents/skills/cli-auth/references/connected-account.md deleted file mode 100644 index 866f6aaf11..0000000000 --- a/.agents/skills/cli-auth/references/connected-account.md +++ /dev/null @@ -1,68 +0,0 @@ -# connectedAccount - - - -CRUD operations for ConnectedAccount records via csdk CLI - -## Usage - -```bash -csdk connected-account list -csdk connected-account list --where.. --orderBy -csdk connected-account list --limit 10 --after -csdk connected-account find-first --where.. -csdk connected-account get --id -csdk connected-account create --service --identifier --details [--ownerId ] [--isVerified ] -csdk connected-account update --id [--ownerId ] [--service ] [--identifier ] [--details ] [--isVerified ] -csdk connected-account delete --id -``` - -## Examples - -### List connectedAccount records - -```bash -csdk connected-account list -``` - -### List connectedAccount records with pagination - -```bash -csdk connected-account list --limit 10 --offset 0 -``` - -### List connectedAccount records with cursor pagination - -```bash -csdk connected-account list --limit 10 --after -``` - -### Find first matching connectedAccount - -```bash -csdk connected-account find-first --where.id.equalTo -``` - -### List connectedAccount records with field selection - -```bash -csdk connected-account list --select id,id -``` - -### List connectedAccount records with filtering and ordering - -```bash -csdk connected-account list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a connectedAccount - -```bash -csdk connected-account create --service --identifier --details [--ownerId ] [--isVerified ] -``` - -### Get a connectedAccount by id - -```bash -csdk connected-account get --id -``` diff --git a/.agents/skills/cli-auth/references/create-api-key.md b/.agents/skills/cli-auth/references/create-api-key.md index 065a468e00..7c94c04b8c 100644 --- a/.agents/skills/cli-auth/references/create-api-key.md +++ b/.agents/skills/cli-auth/references/create-api-key.md @@ -2,7 +2,7 @@ -Execute the createApiKey mutation +Mint an API key for the current user; the plaintext key is returned once. access_level: full_access (default) or read_only. mfa_level: none (default) or verified; verified needs a fresh MFA proof on the calling session. A key minted while authenticated by another API key never outlives that key. ## Usage diff --git a/.agents/skills/cli-auth/references/create-principal.md b/.agents/skills/cli-auth/references/create-principal.md new file mode 100644 index 0000000000..1f44abdf3d --- /dev/null +++ b/.agents/skills/cli-auth/references/create-principal.md @@ -0,0 +1,19 @@ +# createPrincipal + + + +Execute the createPrincipal mutation + +## Usage + +```bash +csdk create-principal --input.bypassStepUp --input.clientMutationId --input.entityIds --input.isReadOnly --input.name --input.useAdminOwner +``` + +## Examples + +### Run createPrincipal + +```bash +csdk create-principal --input.bypassStepUp --input.clientMutationId --input.entityIds --input.isReadOnly --input.name --input.useAdminOwner +``` diff --git a/.agents/skills/cli-auth/references/ensure-auth-csrf.md b/.agents/skills/cli-auth/references/ensure-auth-csrf.md new file mode 100644 index 0000000000..7f59c76d73 --- /dev/null +++ b/.agents/skills/cli-auth/references/ensure-auth-csrf.md @@ -0,0 +1,19 @@ +# ensureAuthCsrf + + + +Execute the ensureAuthCsrf mutation + +## Usage + +```bash +csdk ensure-auth-csrf --input.clientMutationId --input.existingToken +``` + +## Examples + +### Run ensureAuthCsrf + +```bash +csdk ensure-auth-csrf --input.clientMutationId --input.existingToken +``` diff --git a/.agents/skills/cli-auth/references/exchange-native-handoff.md b/.agents/skills/cli-auth/references/exchange-native-handoff.md new file mode 100644 index 0000000000..c7f8bdce0b --- /dev/null +++ b/.agents/skills/cli-auth/references/exchange-native-handoff.md @@ -0,0 +1,19 @@ +# exchangeNativeHandoff + + + +Execute the exchangeNativeHandoff mutation + +## Usage + +```bash +csdk exchange-native-handoff --input.clientMutationId --input.code --input.codeVerifier --input.credentialKind +``` + +## Examples + +### Run exchangeNativeHandoff + +```bash +csdk exchange-native-handoff --input.clientMutationId --input.code --input.codeVerifier --input.credentialKind +``` diff --git a/.agents/skills/cli-auth/references/identity-provider.md b/.agents/skills/cli-auth/references/identity-provider.md index 25b9bc7ccb..796c97e64e 100644 --- a/.agents/skills/cli-auth/references/identity-provider.md +++ b/.agents/skills/cli-auth/references/identity-provider.md @@ -12,7 +12,6 @@ csdk identity-provider list --where.. --orderBy csdk identity-provider list --limit 10 --after csdk identity-provider find-first --where.. csdk identity-provider get --id -csdk identity-provider create --displayName --enabled --kind --slug csdk identity-provider update --id [--displayName ] [--enabled ] [--kind ] [--slug ] csdk identity-provider delete --id ``` @@ -55,12 +54,6 @@ csdk identity-provider list --select id,id csdk identity-provider list --where.id.equalTo --orderBy ID_ASC ``` -### Create a identityProvider - -```bash -csdk identity-provider create --displayName --enabled --kind --slug -``` - ### Get a identityProvider by id ```bash diff --git a/.agents/skills/cli-auth/references/one-time-token.md b/.agents/skills/cli-auth/references/one-time-token.md deleted file mode 100644 index 9d72ec608b..0000000000 --- a/.agents/skills/cli-auth/references/one-time-token.md +++ /dev/null @@ -1,19 +0,0 @@ -# oneTimeToken - - - -Execute the oneTimeToken mutation - -## Usage - -```bash -csdk one-time-token --input.clientMutationId --input.email --input.password --input.origin --input.rememberMe -``` - -## Examples - -### Run oneTimeToken - -```bash -csdk one-time-token --input.clientMutationId --input.email --input.password --input.origin --input.rememberMe -``` diff --git a/.agents/skills/cli-auth/references/org-api-key-list.md b/.agents/skills/cli-auth/references/org-api-key-list.md index 9ed324e519..999d45f75a 100644 --- a/.agents/skills/cli-auth/references/org-api-key-list.md +++ b/.agents/skills/cli-auth/references/org-api-key-list.md @@ -12,7 +12,6 @@ csdk org-api-key-list list --where.. --orderBy csdk org-api-key-list list --limit 10 --after csdk org-api-key-list find-first --where.. csdk org-api-key-list get --id -csdk org-api-key-list create --accessLevel --expiresAt --keyId --lastUsedAt --mfaLevel --name --orgId --principalId --revokedAt csdk org-api-key-list update --id [--accessLevel ] [--expiresAt ] [--keyId ] [--lastUsedAt ] [--mfaLevel ] [--name ] [--orgId ] [--principalId ] [--revokedAt ] csdk org-api-key-list delete --id ``` @@ -55,12 +54,6 @@ csdk org-api-key-list list --select id,id csdk org-api-key-list list --where.id.equalTo --orderBy ID_ASC ``` -### Create a orgApiKeyList - -```bash -csdk org-api-key-list create --accessLevel --expiresAt --keyId --lastUsedAt --mfaLevel --name --orgId --principalId --revokedAt -``` - ### Get a orgApiKeyList by id ```bash diff --git a/.agents/skills/cli-auth/references/principal-entity.md b/.agents/skills/cli-auth/references/principal-entity.md index b6da8bb066..cd2b402e5e 100644 --- a/.agents/skills/cli-auth/references/principal-entity.md +++ b/.agents/skills/cli-auth/references/principal-entity.md @@ -12,7 +12,6 @@ csdk principal-entity list --where.. --orderBy csdk principal-entity list --limit 10 --after csdk principal-entity find-first --where.. csdk principal-entity get --id -csdk principal-entity create --entityId --ownerId --principalId csdk principal-entity update --id [--entityId ] [--ownerId ] [--principalId ] csdk principal-entity delete --id ``` @@ -55,12 +54,6 @@ csdk principal-entity list --select id,id csdk principal-entity list --where.id.equalTo --orderBy ID_ASC ``` -### Create a principalEntity - -```bash -csdk principal-entity create --entityId --ownerId --principalId -``` - ### Get a principalEntity by id ```bash diff --git a/.agents/skills/cli-auth/references/principal-scope-override.md b/.agents/skills/cli-auth/references/principal-scope-override.md index 7b8505eb21..d59e2cc989 100644 --- a/.agents/skills/cli-auth/references/principal-scope-override.md +++ b/.agents/skills/cli-auth/references/principal-scope-override.md @@ -12,7 +12,6 @@ csdk principal-scope-override list --where.. --orderBy csdk principal-scope-override find-first --where.. csdk principal-scope-override get --id -csdk principal-scope-override create --allowedMask --isActive --isReadOnly --membershipType --principalId --useAdminOwner csdk principal-scope-override update --id [--allowedMask ] [--isActive ] [--isReadOnly ] [--membershipType ] [--principalId ] [--useAdminOwner ] csdk principal-scope-override delete --id ``` @@ -55,12 +54,6 @@ csdk principal-scope-override list --select id,id csdk principal-scope-override list --where.id.equalTo --orderBy ID_ASC ``` -### Create a principalScopeOverride - -```bash -csdk principal-scope-override create --allowedMask --isActive --isReadOnly --membershipType --principalId --useAdminOwner -``` - ### Get a principalScopeOverride by id ```bash diff --git a/.agents/skills/cli-auth/references/principal.md b/.agents/skills/cli-auth/references/principal.md index 6a7ffcf339..273df493ec 100644 --- a/.agents/skills/cli-auth/references/principal.md +++ b/.agents/skills/cli-auth/references/principal.md @@ -12,7 +12,6 @@ csdk principal list --where.. --orderBy csdk principal list --limit 10 --after csdk principal find-first --where.. csdk principal get --principalId -csdk principal create --apiKeyMaxDuration --bypassStepUp --createdBySessionId --depth --expiresAt --id --isReadOnly --name --ownerId --parentPrincipalId --useAdminOwner --userId csdk principal update --principalId [--apiKeyMaxDuration ] [--bypassStepUp ] [--createdBySessionId ] [--depth ] [--expiresAt ] [--id ] [--isReadOnly ] [--name ] [--ownerId ] [--parentPrincipalId ] [--useAdminOwner ] [--userId ] csdk principal delete --principalId ``` @@ -55,12 +54,6 @@ csdk principal list --select id,principalId csdk principal list --where.principalId.equalTo --orderBy PRINCIPAL_ID_ASC ``` -### Create a principal - -```bash -csdk principal create --apiKeyMaxDuration --bypassStepUp --createdBySessionId --depth --expiresAt --id --isReadOnly --name --ownerId --parentPrincipalId --useAdminOwner --userId -``` - ### Get a principal by principalId ```bash diff --git a/.agents/skills/cli-auth/references/provision-new-user.md b/.agents/skills/cli-auth/references/provision-new-user.md deleted file mode 100644 index 57823825e5..0000000000 --- a/.agents/skills/cli-auth/references/provision-new-user.md +++ /dev/null @@ -1,19 +0,0 @@ -# provisionNewUser - - - -Execute the provisionNewUser mutation - -## Usage - -```bash -csdk provision-new-user --input.clientMutationId --input.email --input.password -``` - -## Examples - -### Run provisionNewUser - -```bash -csdk provision-new-user --input.clientMutationId --input.email --input.password -``` diff --git a/.agents/skills/cli-auth/references/request-device-approval.md b/.agents/skills/cli-auth/references/request-device-approval.md new file mode 100644 index 0000000000..beedbae8db --- /dev/null +++ b/.agents/skills/cli-auth/references/request-device-approval.md @@ -0,0 +1,19 @@ +# requestDeviceApproval + + + +Execute the requestDeviceApproval mutation + +## Usage + +```bash +csdk request-device-approval --input.clientMutationId --input.deviceToken --input.next --input.userId +``` + +## Examples + +### Run requestDeviceApproval + +```bash +csdk request-device-approval --input.clientMutationId --input.deviceToken --input.next --input.userId +``` diff --git a/.agents/skills/cli-auth/references/request-magic-link.md b/.agents/skills/cli-auth/references/request-magic-link.md index b46352f88e..520de6ae3a 100644 --- a/.agents/skills/cli-auth/references/request-magic-link.md +++ b/.agents/skills/cli-auth/references/request-magic-link.md @@ -7,7 +7,7 @@ Execute the requestMagicLink mutation ## Usage ```bash -csdk request-magic-link --input.clientMutationId --input.email --input.next +csdk request-magic-link --input.clientMutationId --input.codeChallenge --input.email --input.nativeRedirectUri --input.next ``` ## Examples @@ -15,5 +15,5 @@ csdk request-magic-link --input.clientMutationId --input.email ### Run requestMagicLink ```bash -csdk request-magic-link --input.clientMutationId --input.email --input.next +csdk request-magic-link --input.clientMutationId --input.codeChallenge --input.email --input.nativeRedirectUri --input.next ``` diff --git a/.agents/skills/cli-auth/references/request-upload-url.md b/.agents/skills/cli-auth/references/request-upload-url.md deleted file mode 100644 index 873dc3ee01..0000000000 --- a/.agents/skills/cli-auth/references/request-upload-url.md +++ /dev/null @@ -1,22 +0,0 @@ -# requestUploadUrl - - - -Request a presigned URL for uploading a file directly to S3. -Client computes SHA-256 of the file content and provides it here. -If a file with the same hash already exists (dedup), returns the -existing file ID and deduplicated=true with no uploadUrl. - -## Usage - -```bash -csdk request-upload-url --input.bucketKey --input.ownerId --input.contentHash --input.contentType --input.size --input.filename -``` - -## Examples - -### Run requestUploadUrl - -```bash -csdk request-upload-url --input.bucketKey --input.ownerId --input.contentHash --input.contentType --input.size --input.filename -``` diff --git a/.agents/skills/cli-auth/references/set-password.md b/.agents/skills/cli-auth/references/set-password.md index a142c5366f..7ce0bbb271 100644 --- a/.agents/skills/cli-auth/references/set-password.md +++ b/.agents/skills/cli-auth/references/set-password.md @@ -7,7 +7,7 @@ Execute the setPassword mutation ## Usage ```bash -csdk set-password --input.clientMutationId --input.currentPassword --input.newPassword +csdk set-password --input.clientMutationId --input.currentPassword --input.newPassword --input.signOutOtherSessions ``` ## Examples @@ -15,5 +15,5 @@ csdk set-password --input.clientMutationId --input.currentPassword --input.currentPassword --input.newPassword +csdk set-password --input.clientMutationId --input.currentPassword --input.newPassword --input.signOutOtherSessions ``` diff --git a/.agents/skills/cli-auth/references/sign-in-one-time-token.md b/.agents/skills/cli-auth/references/sign-in-one-time-token.md deleted file mode 100644 index a0318bd85f..0000000000 --- a/.agents/skills/cli-auth/references/sign-in-one-time-token.md +++ /dev/null @@ -1,19 +0,0 @@ -# signInOneTimeToken - - - -Execute the signInOneTimeToken mutation - -## Usage - -```bash -csdk sign-in-one-time-token --input.clientMutationId --input.token --input.credentialKind -``` - -## Examples - -### Run signInOneTimeToken - -```bash -csdk sign-in-one-time-token --input.clientMutationId --input.token --input.credentialKind -``` diff --git a/.agents/skills/cli-auth/references/sign-in-options.md b/.agents/skills/cli-auth/references/sign-in-options.md new file mode 100644 index 0000000000..3817d2f2fd --- /dev/null +++ b/.agents/skills/cli-auth/references/sign-in-options.md @@ -0,0 +1,19 @@ +# signInOptions + + + +Execute the signInOptions query + +## Usage + +```bash +csdk sign-in-options +``` + +## Examples + +### Run signInOptions + +```bash +csdk sign-in-options +``` diff --git a/.agents/skills/cli-auth/references/user-connected-account.md b/.agents/skills/cli-auth/references/user-connected-account.md index d7d943ebd0..4456bbc264 100644 --- a/.agents/skills/cli-auth/references/user-connected-account.md +++ b/.agents/skills/cli-auth/references/user-connected-account.md @@ -12,7 +12,6 @@ csdk user-connected-account list --where.. --orderBy csdk user-connected-account list --limit 10 --after csdk user-connected-account find-first --where.. csdk user-connected-account get --id -csdk user-connected-account create --details --identifier --isVerified --ownerId --service csdk user-connected-account update --id [--details ] [--identifier ] [--isVerified ] [--ownerId ] [--service ] csdk user-connected-account delete --id ``` @@ -55,12 +54,6 @@ csdk user-connected-account list --select id,id csdk user-connected-account list --where.id.equalTo --orderBy ID_ASC ``` -### Create a userConnectedAccount - -```bash -csdk user-connected-account create --details --identifier --isVerified --ownerId --service -``` - ### Get a userConnectedAccount by id ```bash diff --git a/.agents/skills/cli-auth/references/user.md b/.agents/skills/cli-auth/references/user.md index a792fce3f2..33a65eb2af 100644 --- a/.agents/skills/cli-auth/references/user.md +++ b/.agents/skills/cli-auth/references/user.md @@ -4,7 +4,7 @@ CRUD operations for User records via csdk CLI -**Unified Search API fields:** `displayNameTrgmSimilarity`, `searchScore`, `searchTsv` +**Unified Search API fields:** `displayNameTrgmSimilarity`, `searchScore`, `searchTsv`, `searchTsvRank` Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. ## Usage @@ -62,26 +62,26 @@ csdk user list --where.id.equalTo --orderBy ID_ASC ### Fuzzy search via trigram similarity (`trgmDisplayName`) ```bash -csdk user list --where.trgmDisplayName.value "approximate query" --where.trgmDisplayName.threshold 0.3 --select title,displayNameTrgmSimilarity +csdk user list --where.trgmDisplayName.value "approximate query" --where.trgmDisplayName.threshold 0.3 --select displayName,displayNameTrgmSimilarity ``` ### Full-text search via tsvector (`searchTsv`) ```bash -csdk user list --where.searchTsv "search query" --select title,tsvRank +csdk user list --where.searchTsv "search query" --select displayName,searchTsvRank ``` ### Composite search (unifiedSearch dispatches to all text adapters) ```bash -csdk user list --where.unifiedSearch "search query" --select title,displayNameTrgmSimilarity,searchScore,tsvRank +csdk user list --where.unifiedSearch "search query" --select displayName,displayNameTrgmSimilarity,searchScore,searchTsvRank ``` ### Search with pagination and field projection ```bash -csdk user list --where.unifiedSearch "query" --limit 10 --select id,title,searchScore -csdk user search "query" --limit 10 --select id,title,searchScore +csdk user list --where.unifiedSearch "query" --limit 10 --select id,displayName,searchScore +csdk user search "query" --limit 10 --select id,displayName,searchScore ``` ### Create a user diff --git a/.agents/skills/cli-auth/references/verify-email.md b/.agents/skills/cli-auth/references/verify-email.md index 07f6bb5f40..c17644b830 100644 --- a/.agents/skills/cli-auth/references/verify-email.md +++ b/.agents/skills/cli-auth/references/verify-email.md @@ -7,7 +7,7 @@ Execute the verifyEmail mutation ## Usage ```bash -csdk verify-email --input.clientMutationId --input.emailId --input.token +csdk verify-email --input.clientMutationId --input.emailId --input.password --input.token ``` ## Examples @@ -15,5 +15,5 @@ csdk verify-email --input.clientMutationId --input.emailId --inp ### Run verifyEmail ```bash -csdk verify-email --input.clientMutationId --input.emailId --input.token +csdk verify-email --input.clientMutationId --input.emailId --input.password --input.token ``` diff --git a/.agents/skills/cli-compute/SKILL.md b/.agents/skills/cli-compute/SKILL.md index af0f7f1826..94069d0921 100644 --- a/.agents/skills/cli-compute/SKILL.md +++ b/.agents/skills/cli-compute/SKILL.md @@ -1,13 +1,13 @@ --- name: cli-compute -description: CLI tool (csdk) for the compute API — provides CRUD commands for 123 tables and 64 custom operations +description: CLI tool (csdk) for the compute API — provides CRUD commands for 123 tables and 65 custom operations --- # cli-compute -CLI tool (csdk) for the compute API — provides CRUD commands for 123 tables and 64 custom operations +CLI tool (csdk) for the compute API — provides CRUD commands for 123 tables and 65 custom operations ## Usage @@ -59,7 +59,6 @@ See the `references/` directory for detailed per-entity API documentation: - [embedder](references/embedder.md) - [build](references/build.md) - [build-step](references/build-step.md) -- [builder-binding](references/builder-binding.md) - [content-preset](references/content-preset.md) - [database-function-graph](references/database-function-graph.md) - [database-function-graph-execution-cancel-request](references/database-function-graph-execution-cancel-request.md) @@ -103,7 +102,6 @@ See the `references/` directory for detailed per-entity API documentation: - [namespace-event](references/namespace-event.md) - [platform-build](references/platform-build.md) - [platform-build-step](references/platform-build-step.md) -- [platform-builder-binding](references/platform-builder-binding.md) - [platform-function-api-binding](references/platform-function-api-binding.md) - [platform-function-capability-binding](references/platform-function-capability-binding.md) - [platform-function-definition](references/platform-function-definition.md) @@ -150,6 +148,7 @@ See the `references/` directory for detailed per-entity API documentation: - [platform-resources-health](references/platform-resources-health.md) - [platform-resources-requirements-state](references/platform-resources-requirements-state.md) - [platform-resources-resolved-requirement](references/platform-resources-resolved-requirement.md) +- [platform-service-binding](references/platform-service-binding.md) - [platform-webhook-endpoint](references/platform-webhook-endpoint.md) - [platform-webhook-event](references/platform-webhook-event.md) - [proposal-comment](references/proposal-comment.md) @@ -178,6 +177,7 @@ See the `references/` directory for detailed per-entity API documentation: - [resources-health](references/resources-health.md) - [resources-requirements-state](references/resources-requirements-state.md) - [resources-resolved-requirement](references/resources-resolved-requirement.md) +- [service-binding](references/service-binding.md) - [webhook-endpoint](references/webhook-endpoint.md) - [webhook-event](references/webhook-event.md) - [database-read-function-graph](references/database-read-function-graph.md) @@ -188,6 +188,7 @@ See the `references/` directory for detailed per-entity API documentation: - [add-node-and-save](references/add-node-and-save.md) - [approve-node](references/approve-node.md) - [copy-graph](references/copy-graph.md) +- [create-function-graph](references/create-function-graph.md) - [database-add-edge](references/database-add-edge.md) - [database-add-edge-and-save](references/database-add-edge-and-save.md) - [database-add-node](references/database-add-node.md) diff --git a/.agents/skills/cli-compute/references/build-step.md b/.agents/skills/cli-compute/references/build-step.md index 0a9b14e653..c686890ff1 100644 --- a/.agents/skills/cli-compute/references/build-step.md +++ b/.agents/skills/cli-compute/references/build-step.md @@ -12,8 +12,8 @@ csdk build-step list --where.. --orderBy csdk build-step list --limit 10 --after csdk build-step find-first --where.. csdk build-step get --id -csdk build-step create --buildId --name --seq [--createdByPrincipal ] [--exitCode ] [--finishedAt ] [--kind ] [--logBytes ] [--logOffset ] [--parentSeq ] [--recordedAt ] [--startedAt ] [--status ] [--summary ] -csdk build-step update --id [--buildId ] [--createdByPrincipal ] [--exitCode ] [--finishedAt ] [--kind ] [--logBytes ] [--logOffset ] [--name ] [--parentSeq ] [--recordedAt ] [--seq ] [--startedAt ] [--status ] [--summary ] +csdk build-step create --buildId --databaseId --name --seq [--createdByPrincipal ] [--exitCode ] [--finishedAt ] [--kind ] [--logBytes ] [--logOffset ] [--parentSeq ] [--recordedAt ] [--startedAt ] [--status ] [--summary ] +csdk build-step update --id [--buildId ] [--createdByPrincipal ] [--databaseId ] [--exitCode ] [--finishedAt ] [--kind ] [--logBytes ] [--logOffset ] [--name ] [--parentSeq ] [--recordedAt ] [--seq ] [--startedAt ] [--status ] [--summary ] csdk build-step delete --id ``` @@ -58,7 +58,7 @@ csdk build-step list --where.id.equalTo --orderBy ID_ASC ### Create a buildStep ```bash -csdk build-step create --buildId --name --seq [--createdByPrincipal ] [--exitCode ] [--finishedAt ] [--kind ] [--logBytes ] [--logOffset ] [--parentSeq ] [--recordedAt ] [--startedAt ] [--status ] [--summary ] +csdk build-step create --buildId --databaseId --name --seq [--createdByPrincipal ] [--exitCode ] [--finishedAt ] [--kind ] [--logBytes ] [--logOffset ] [--parentSeq ] [--recordedAt ] [--startedAt ] [--status ] [--summary ] ``` ### Get a buildStep by id diff --git a/.agents/skills/cli-compute/references/build.md b/.agents/skills/cli-compute/references/build.md index 0b6954d619..c53dadfffc 100644 --- a/.agents/skills/cli-compute/references/build.md +++ b/.agents/skills/cli-compute/references/build.md @@ -12,8 +12,8 @@ csdk build list --where.. --orderBy csdk build list --limit 10 --after csdk build find-first --where.. csdk build get --id -csdk build create --repositoryId [--actorId ] [--attempt ] [--commitSha ] [--conclusion ] [--createdByPrincipal ] [--eventId ] [--finishedAt ] [--imageRef ] [--jobId ] [--logs ] [--matrixKey ] [--metadata ] [--proposalId ] [--ref ] [--startedAt ] [--status ] [--updatedByPrincipal ] [--workflowId ] -csdk build update --id [--actorId ] [--attempt ] [--commitSha ] [--conclusion ] [--createdByPrincipal ] [--eventId ] [--finishedAt ] [--imageRef ] [--jobId ] [--logs ] [--matrixKey ] [--metadata ] [--proposalId ] [--ref ] [--repositoryId ] [--startedAt ] [--status ] [--updatedByPrincipal ] [--workflowId ] +csdk build create --databaseId --repositoryId [--actorId ] [--attempt ] [--commitSha ] [--conclusion ] [--createdByPrincipal ] [--eventId ] [--finishedAt ] [--imageRef ] [--jobId ] [--logs ] [--matrixKey ] [--metadata ] [--proposalId ] [--ref ] [--startedAt ] [--status ] [--updatedByPrincipal ] [--workflowId ] +csdk build update --id [--actorId ] [--attempt ] [--commitSha ] [--conclusion ] [--createdByPrincipal ] [--databaseId ] [--eventId ] [--finishedAt ] [--imageRef ] [--jobId ] [--logs ] [--matrixKey ] [--metadata ] [--proposalId ] [--ref ] [--repositoryId ] [--startedAt ] [--status ] [--updatedByPrincipal ] [--workflowId ] csdk build delete --id ``` @@ -58,7 +58,7 @@ csdk build list --where.id.equalTo --orderBy ID_ASC ### Create a build ```bash -csdk build create --repositoryId [--actorId ] [--attempt ] [--commitSha ] [--conclusion ] [--createdByPrincipal ] [--eventId ] [--finishedAt ] [--imageRef ] [--jobId ] [--logs ] [--matrixKey ] [--metadata ] [--proposalId ] [--ref ] [--startedAt ] [--status ] [--updatedByPrincipal ] [--workflowId ] +csdk build create --databaseId --repositoryId [--actorId ] [--attempt ] [--commitSha ] [--conclusion ] [--createdByPrincipal ] [--eventId ] [--finishedAt ] [--imageRef ] [--jobId ] [--logs ] [--matrixKey ] [--metadata ] [--proposalId ] [--ref ] [--startedAt ] [--status ] [--updatedByPrincipal ] [--workflowId ] ``` ### Get a build by id diff --git a/.agents/skills/cli-compute/references/builder-binding.md b/.agents/skills/cli-compute/references/builder-binding.md deleted file mode 100644 index 7c673f87b4..0000000000 --- a/.agents/skills/cli-compute/references/builder-binding.md +++ /dev/null @@ -1,68 +0,0 @@ -# builderBinding - - - -CRUD operations for BuilderBinding records via csdk CLI - -## Usage - -```bash -csdk builder-binding list -csdk builder-binding list --where.. --orderBy -csdk builder-binding list --limit 10 --after -csdk builder-binding find-first --where.. -csdk builder-binding get --id -csdk builder-binding create --databaseId --installationId --namespaceId [--createdBy ] [--createdByPrincipal ] [--lastError ] [--metadata ] [--observedHost ] [--realm ] [--status ] [--updatedBy ] [--updatedByPrincipal ] -csdk builder-binding update --id [--createdBy ] [--createdByPrincipal ] [--databaseId ] [--installationId ] [--lastError ] [--metadata ] [--namespaceId ] [--observedHost ] [--realm ] [--status ] [--updatedBy ] [--updatedByPrincipal ] -csdk builder-binding delete --id -``` - -## Examples - -### List builderBinding records - -```bash -csdk builder-binding list -``` - -### List builderBinding records with pagination - -```bash -csdk builder-binding list --limit 10 --offset 0 -``` - -### List builderBinding records with cursor pagination - -```bash -csdk builder-binding list --limit 10 --after -``` - -### Find first matching builderBinding - -```bash -csdk builder-binding find-first --where.id.equalTo -``` - -### List builderBinding records with field selection - -```bash -csdk builder-binding list --select id,id -``` - -### List builderBinding records with filtering and ordering - -```bash -csdk builder-binding list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a builderBinding - -```bash -csdk builder-binding create --databaseId --installationId --namespaceId [--createdBy ] [--createdByPrincipal ] [--lastError ] [--metadata ] [--observedHost ] [--realm ] [--status ] [--updatedBy ] [--updatedByPrincipal ] -``` - -### Get a builderBinding by id - -```bash -csdk builder-binding get --id -``` diff --git a/.agents/skills/cli-compute/references/create-function-graph.md b/.agents/skills/cli-compute/references/create-function-graph.md new file mode 100644 index 0000000000..e49c9d3432 --- /dev/null +++ b/.agents/skills/cli-compute/references/create-function-graph.md @@ -0,0 +1,19 @@ +# createFunctionGraph + + + +Execute the createFunctionGraph mutation + +## Usage + +```bash +csdk create-function-graph --input.clientMutationId --input.context --input.createdBy --input.definitionsCommitId --input.description --input.name --input.scopeId +``` + +## Examples + +### Run createFunctionGraph + +```bash +csdk create-function-graph --input.clientMutationId --input.context --input.createdBy --input.definitionsCommitId --input.description --input.name --input.scopeId +``` diff --git a/.agents/skills/cli-compute/references/database-function-graph.md b/.agents/skills/cli-compute/references/database-function-graph.md index 993a4f19ee..d3109b7e0a 100644 --- a/.agents/skills/cli-compute/references/database-function-graph.md +++ b/.agents/skills/cli-compute/references/database-function-graph.md @@ -12,7 +12,6 @@ csdk database-function-graph list --where.. --orderBy csdk database-function-graph find-first --where.. csdk database-function-graph get --id -csdk database-function-graph create --context --createdBy --databaseId --definitionsCommitId --description --isValid --name --storeId --validationErrors csdk database-function-graph update --id [--context ] [--createdBy ] [--databaseId ] [--definitionsCommitId ] [--description ] [--isValid ] [--name ] [--storeId ] [--validationErrors ] csdk database-function-graph delete --id ``` @@ -55,12 +54,6 @@ csdk database-function-graph list --select id,id csdk database-function-graph list --where.id.equalTo --orderBy ID_ASC ``` -### Create a databaseFunctionGraph - -```bash -csdk database-function-graph create --context --createdBy --databaseId --definitionsCommitId --description --isValid --name --storeId --validationErrors -``` - ### Get a databaseFunctionGraph by id ```bash diff --git a/.agents/skills/cli-compute/references/database-graph-get-all-tree-nodes-record.md b/.agents/skills/cli-compute/references/database-graph-get-all-tree-nodes-record.md index e8a15fc597..e60575b3c9 100644 --- a/.agents/skills/cli-compute/references/database-graph-get-all-tree-nodes-record.md +++ b/.agents/skills/cli-compute/references/database-graph-get-all-tree-nodes-record.md @@ -12,7 +12,6 @@ csdk database-graph-get-all-tree-nodes-record list --where.. csdk database-graph-get-all-tree-nodes-record list --limit 10 --after csdk database-graph-get-all-tree-nodes-record find-first --where.. csdk database-graph-get-all-tree-nodes-record get --id -csdk database-graph-get-all-tree-nodes-record create --data --path csdk database-graph-get-all-tree-nodes-record update --id [--data ] [--path ] csdk database-graph-get-all-tree-nodes-record delete --id ``` @@ -55,12 +54,6 @@ csdk database-graph-get-all-tree-nodes-record list --select id,id csdk database-graph-get-all-tree-nodes-record list --where.id.equalTo --orderBy ID_ASC ``` -### Create a databaseGraphGetAllTreeNodesRecord - -```bash -csdk database-graph-get-all-tree-nodes-record create --data --path -``` - ### Get a databaseGraphGetAllTreeNodesRecord by id ```bash diff --git a/.agents/skills/cli-compute/references/declared-capacity.md b/.agents/skills/cli-compute/references/declared-capacity.md deleted file mode 100644 index 4bd59f67a5..0000000000 --- a/.agents/skills/cli-compute/references/declared-capacity.md +++ /dev/null @@ -1,68 +0,0 @@ -# declaredCapacity - - - -CRUD operations for DeclaredCapacity records via csdk CLI - -## Usage - -```bash -csdk declared-capacity list -csdk declared-capacity list --where.. --orderBy -csdk declared-capacity list --limit 10 --after -csdk declared-capacity find-first --where.. -csdk declared-capacity get --id -csdk declared-capacity create --cpuLimitMillicores --cpuRequestMillicores --installationId --isTransient --kind --memoryLimitBytes --memoryRequestBytes --namespaceId --podCountMax --podCountMin --source --sourceId --storageSizeBytes -csdk declared-capacity update --id [--cpuLimitMillicores ] [--cpuRequestMillicores ] [--installationId ] [--isTransient ] [--kind ] [--memoryLimitBytes ] [--memoryRequestBytes ] [--namespaceId ] [--podCountMax ] [--podCountMin ] [--source ] [--sourceId ] [--storageSizeBytes ] -csdk declared-capacity delete --id -``` - -## Examples - -### List declaredCapacity records - -```bash -csdk declared-capacity list -``` - -### List declaredCapacity records with pagination - -```bash -csdk declared-capacity list --limit 10 --offset 0 -``` - -### List declaredCapacity records with cursor pagination - -```bash -csdk declared-capacity list --limit 10 --after -``` - -### Find first matching declaredCapacity - -```bash -csdk declared-capacity find-first --where.id.equalTo -``` - -### List declaredCapacity records with field selection - -```bash -csdk declared-capacity list --select id,id -``` - -### List declaredCapacity records with filtering and ordering - -```bash -csdk declared-capacity list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a declaredCapacity - -```bash -csdk declared-capacity create --cpuLimitMillicores --cpuRequestMillicores --installationId --isTransient --kind --memoryLimitBytes --memoryRequestBytes --namespaceId --podCountMax --podCountMin --source --sourceId --storageSizeBytes -``` - -### Get a declaredCapacity by id - -```bash -csdk declared-capacity get --id -``` diff --git a/.agents/skills/cli-compute/references/function-graph.md b/.agents/skills/cli-compute/references/function-graph.md index 7b47faaf05..3b66b799da 100644 --- a/.agents/skills/cli-compute/references/function-graph.md +++ b/.agents/skills/cli-compute/references/function-graph.md @@ -12,7 +12,6 @@ csdk function-graph list --where.. --orderBy csdk function-graph list --limit 10 --after csdk function-graph find-first --where.. csdk function-graph get --id -csdk function-graph create --context --createdBy --definitionsCommitId --description --isValid --name --scopeId --storeId --validationErrors csdk function-graph update --id [--context ] [--createdBy ] [--definitionsCommitId ] [--description ] [--isValid ] [--name ] [--scopeId ] [--storeId ] [--validationErrors ] csdk function-graph delete --id ``` @@ -55,12 +54,6 @@ csdk function-graph list --select id,id csdk function-graph list --where.id.equalTo --orderBy ID_ASC ``` -### Create a functionGraph - -```bash -csdk function-graph create --context --createdBy --definitionsCommitId --description --isValid --name --scopeId --storeId --validationErrors -``` - ### Get a functionGraph by id ```bash diff --git a/.agents/skills/cli-compute/references/get-all-record.md b/.agents/skills/cli-compute/references/get-all-record.md deleted file mode 100644 index afa03de648..0000000000 --- a/.agents/skills/cli-compute/references/get-all-record.md +++ /dev/null @@ -1,68 +0,0 @@ -# getAllRecord - - - -CRUD operations for GetAllRecord records via csdk CLI - -## Usage - -```bash -csdk get-all-record list -csdk get-all-record list --where.. --orderBy -csdk get-all-record list --limit 10 --after -csdk get-all-record find-first --where.. -csdk get-all-record get --id -csdk get-all-record create --data --path -csdk get-all-record update --id [--data ] [--path ] -csdk get-all-record delete --id -``` - -## Examples - -### List getAllRecord records - -```bash -csdk get-all-record list -``` - -### List getAllRecord records with pagination - -```bash -csdk get-all-record list --limit 10 --offset 0 -``` - -### List getAllRecord records with cursor pagination - -```bash -csdk get-all-record list --limit 10 --after -``` - -### Find first matching getAllRecord - -```bash -csdk get-all-record find-first --where.id.equalTo -``` - -### List getAllRecord records with field selection - -```bash -csdk get-all-record list --select id,id -``` - -### List getAllRecord records with filtering and ordering - -```bash -csdk get-all-record list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a getAllRecord - -```bash -csdk get-all-record create --data --path -``` - -### Get a getAllRecord by id - -```bash -csdk get-all-record get --id -``` diff --git a/.agents/skills/cli-compute/references/get-all-tree-nodes-record.md b/.agents/skills/cli-compute/references/get-all-tree-nodes-record.md index 716547df9a..c4bf91bf6a 100644 --- a/.agents/skills/cli-compute/references/get-all-tree-nodes-record.md +++ b/.agents/skills/cli-compute/references/get-all-tree-nodes-record.md @@ -12,7 +12,6 @@ csdk get-all-tree-nodes-record list --where.. --orderBy csdk get-all-tree-nodes-record find-first --where.. csdk get-all-tree-nodes-record get --id -csdk get-all-tree-nodes-record create --data --path csdk get-all-tree-nodes-record update --id [--data ] [--path ] csdk get-all-tree-nodes-record delete --id ``` @@ -55,12 +54,6 @@ csdk get-all-tree-nodes-record list --select id,id csdk get-all-tree-nodes-record list --where.id.equalTo --orderBy ID_ASC ``` -### Create a getAllTreeNodesRecord - -```bash -csdk get-all-tree-nodes-record create --data --path -``` - ### Get a getAllTreeNodesRecord by id ```bash diff --git a/.agents/skills/cli-compute/references/infra-get-all-record.md b/.agents/skills/cli-compute/references/infra-get-all-record.md deleted file mode 100644 index 804bae7bd2..0000000000 --- a/.agents/skills/cli-compute/references/infra-get-all-record.md +++ /dev/null @@ -1,68 +0,0 @@ -# infraGetAllRecord - - - -CRUD operations for InfraGetAllRecord records via csdk CLI - -## Usage - -```bash -csdk infra-get-all-record list -csdk infra-get-all-record list --where.. --orderBy -csdk infra-get-all-record list --limit 10 --after -csdk infra-get-all-record find-first --where.. -csdk infra-get-all-record get --id -csdk infra-get-all-record create --data --path -csdk infra-get-all-record update --id [--data ] [--path ] -csdk infra-get-all-record delete --id -``` - -## Examples - -### List infraGetAllRecord records - -```bash -csdk infra-get-all-record list -``` - -### List infraGetAllRecord records with pagination - -```bash -csdk infra-get-all-record list --limit 10 --offset 0 -``` - -### List infraGetAllRecord records with cursor pagination - -```bash -csdk infra-get-all-record list --limit 10 --after -``` - -### Find first matching infraGetAllRecord - -```bash -csdk infra-get-all-record find-first --where.id.equalTo -``` - -### List infraGetAllRecord records with field selection - -```bash -csdk infra-get-all-record list --select id,id -``` - -### List infraGetAllRecord records with filtering and ordering - -```bash -csdk infra-get-all-record list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a infraGetAllRecord - -```bash -csdk infra-get-all-record create --data --path -``` - -### Get a infraGetAllRecord by id - -```bash -csdk infra-get-all-record get --id -``` diff --git a/.agents/skills/cli-compute/references/infra-get-all-tree-nodes-record.md b/.agents/skills/cli-compute/references/infra-get-all-tree-nodes-record.md index 7a6a8404d2..fb0bb29b53 100644 --- a/.agents/skills/cli-compute/references/infra-get-all-tree-nodes-record.md +++ b/.agents/skills/cli-compute/references/infra-get-all-tree-nodes-record.md @@ -12,7 +12,6 @@ csdk infra-get-all-tree-nodes-record list --where.. --orderBy csdk infra-get-all-tree-nodes-record list --limit 10 --after csdk infra-get-all-tree-nodes-record find-first --where.. csdk infra-get-all-tree-nodes-record get --id -csdk infra-get-all-tree-nodes-record create --data --path csdk infra-get-all-tree-nodes-record update --id [--data ] [--path ] csdk infra-get-all-tree-nodes-record delete --id ``` @@ -55,12 +54,6 @@ csdk infra-get-all-tree-nodes-record list --select id,id csdk infra-get-all-tree-nodes-record list --where.id.equalTo --orderBy ID_ASC ``` -### Create a infraGetAllTreeNodesRecord - -```bash -csdk infra-get-all-tree-nodes-record create --data --path -``` - ### Get a infraGetAllTreeNodesRecord by id ```bash diff --git a/.agents/skills/cli-compute/references/org-function-execution-log.md b/.agents/skills/cli-compute/references/org-function-execution-log.md deleted file mode 100644 index 4450fc30ca..0000000000 --- a/.agents/skills/cli-compute/references/org-function-execution-log.md +++ /dev/null @@ -1,68 +0,0 @@ -# orgFunctionExecutionLog - - - -CRUD operations for OrgFunctionExecutionLog records via csdk CLI - -## Usage - -```bash -csdk org-function-execution-log list -csdk org-function-execution-log list --where.. --orderBy -csdk org-function-execution-log list --limit 10 --after -csdk org-function-execution-log find-first --where.. -csdk org-function-execution-log get --id -csdk org-function-execution-log create --message [--invocationId ] [--taskIdentifier ] [--logLevel ] [--metadata ] [--actorId ] -csdk org-function-execution-log update --id [--invocationId ] [--taskIdentifier ] [--logLevel ] [--message ] [--metadata ] [--actorId ] -csdk org-function-execution-log delete --id -``` - -## Examples - -### List orgFunctionExecutionLog records - -```bash -csdk org-function-execution-log list -``` - -### List orgFunctionExecutionLog records with pagination - -```bash -csdk org-function-execution-log list --limit 10 --offset 0 -``` - -### List orgFunctionExecutionLog records with cursor pagination - -```bash -csdk org-function-execution-log list --limit 10 --after -``` - -### Find first matching orgFunctionExecutionLog - -```bash -csdk org-function-execution-log find-first --where.id.equalTo -``` - -### List orgFunctionExecutionLog records with field selection - -```bash -csdk org-function-execution-log list --select id,id -``` - -### List orgFunctionExecutionLog records with filtering and ordering - -```bash -csdk org-function-execution-log list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a orgFunctionExecutionLog - -```bash -csdk org-function-execution-log create --message [--invocationId ] [--taskIdentifier ] [--logLevel ] [--metadata ] [--actorId ] -``` - -### Get a orgFunctionExecutionLog by id - -```bash -csdk org-function-execution-log get --id -``` diff --git a/.agents/skills/cli-compute/references/org-function-invocation.md b/.agents/skills/cli-compute/references/org-function-invocation.md deleted file mode 100644 index 084ef30c84..0000000000 --- a/.agents/skills/cli-compute/references/org-function-invocation.md +++ /dev/null @@ -1,68 +0,0 @@ -# orgFunctionInvocation - - - -CRUD operations for OrgFunctionInvocation records via csdk CLI - -## Usage - -```bash -csdk org-function-invocation list -csdk org-function-invocation list --where.. --orderBy -csdk org-function-invocation list --limit 10 --after -csdk org-function-invocation find-first --where.. -csdk org-function-invocation get --id -csdk org-function-invocation create --taskIdentifier [--actorId ] [--payload ] [--status ] [--result ] [--error ] [--durationMs ] [--jobId ] [--startedAt ] [--completedAt ] [--parentInvocationId ] [--graphExecutionId ] -csdk org-function-invocation update --id [--actorId ] [--taskIdentifier ] [--payload ] [--status ] [--result ] [--error ] [--durationMs ] [--jobId ] [--startedAt ] [--completedAt ] [--parentInvocationId ] [--graphExecutionId ] -csdk org-function-invocation delete --id -``` - -## Examples - -### List orgFunctionInvocation records - -```bash -csdk org-function-invocation list -``` - -### List orgFunctionInvocation records with pagination - -```bash -csdk org-function-invocation list --limit 10 --offset 0 -``` - -### List orgFunctionInvocation records with cursor pagination - -```bash -csdk org-function-invocation list --limit 10 --after -``` - -### Find first matching orgFunctionInvocation - -```bash -csdk org-function-invocation find-first --where.id.equalTo -``` - -### List orgFunctionInvocation records with field selection - -```bash -csdk org-function-invocation list --select id,id -``` - -### List orgFunctionInvocation records with filtering and ordering - -```bash -csdk org-function-invocation list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a orgFunctionInvocation - -```bash -csdk org-function-invocation create --taskIdentifier [--actorId ] [--payload ] [--status ] [--result ] [--error ] [--durationMs ] [--jobId ] [--startedAt ] [--completedAt ] [--parentInvocationId ] [--graphExecutionId ] -``` - -### Get a orgFunctionInvocation by id - -```bash -csdk org-function-invocation get --id -``` diff --git a/.agents/skills/cli-compute/references/platform-builder-binding.md b/.agents/skills/cli-compute/references/platform-builder-binding.md deleted file mode 100644 index aad819d23c..0000000000 --- a/.agents/skills/cli-compute/references/platform-builder-binding.md +++ /dev/null @@ -1,68 +0,0 @@ -# platformBuilderBinding - - - -CRUD operations for PlatformBuilderBinding records via csdk CLI - -## Usage - -```bash -csdk platform-builder-binding list -csdk platform-builder-binding list --where.. --orderBy -csdk platform-builder-binding list --limit 10 --after -csdk platform-builder-binding find-first --where.. -csdk platform-builder-binding get --id -csdk platform-builder-binding create --installationId --namespaceId [--createdBy ] [--createdByPrincipal ] [--lastError ] [--metadata ] [--observedHost ] [--realm ] [--status ] [--updatedBy ] [--updatedByPrincipal ] -csdk platform-builder-binding update --id [--createdBy ] [--createdByPrincipal ] [--installationId ] [--lastError ] [--metadata ] [--namespaceId ] [--observedHost ] [--realm ] [--status ] [--updatedBy ] [--updatedByPrincipal ] -csdk platform-builder-binding delete --id -``` - -## Examples - -### List platformBuilderBinding records - -```bash -csdk platform-builder-binding list -``` - -### List platformBuilderBinding records with pagination - -```bash -csdk platform-builder-binding list --limit 10 --offset 0 -``` - -### List platformBuilderBinding records with cursor pagination - -```bash -csdk platform-builder-binding list --limit 10 --after -``` - -### Find first matching platformBuilderBinding - -```bash -csdk platform-builder-binding find-first --where.id.equalTo -``` - -### List platformBuilderBinding records with field selection - -```bash -csdk platform-builder-binding list --select id,id -``` - -### List platformBuilderBinding records with filtering and ordering - -```bash -csdk platform-builder-binding list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a platformBuilderBinding - -```bash -csdk platform-builder-binding create --installationId --namespaceId [--createdBy ] [--createdByPrincipal ] [--lastError ] [--metadata ] [--observedHost ] [--realm ] [--status ] [--updatedBy ] [--updatedByPrincipal ] -``` - -### Get a platformBuilderBinding by id - -```bash -csdk platform-builder-binding get --id -``` diff --git a/.agents/skills/cli-compute/references/platform-declared-capacity.md b/.agents/skills/cli-compute/references/platform-declared-capacity.md deleted file mode 100644 index 416bcd10b2..0000000000 --- a/.agents/skills/cli-compute/references/platform-declared-capacity.md +++ /dev/null @@ -1,68 +0,0 @@ -# platformDeclaredCapacity - - - -CRUD operations for PlatformDeclaredCapacity records via csdk CLI - -## Usage - -```bash -csdk platform-declared-capacity list -csdk platform-declared-capacity list --where.. --orderBy -csdk platform-declared-capacity list --limit 10 --after -csdk platform-declared-capacity find-first --where.. -csdk platform-declared-capacity get --id -csdk platform-declared-capacity create --cpuLimitMillicores --cpuRequestMillicores --installationId --isTransient --kind --memoryLimitBytes --memoryRequestBytes --namespaceId --podCountMax --podCountMin --source --sourceId --storageSizeBytes -csdk platform-declared-capacity update --id [--cpuLimitMillicores ] [--cpuRequestMillicores ] [--installationId ] [--isTransient ] [--kind ] [--memoryLimitBytes ] [--memoryRequestBytes ] [--namespaceId ] [--podCountMax ] [--podCountMin ] [--source ] [--sourceId ] [--storageSizeBytes ] -csdk platform-declared-capacity delete --id -``` - -## Examples - -### List platformDeclaredCapacity records - -```bash -csdk platform-declared-capacity list -``` - -### List platformDeclaredCapacity records with pagination - -```bash -csdk platform-declared-capacity list --limit 10 --offset 0 -``` - -### List platformDeclaredCapacity records with cursor pagination - -```bash -csdk platform-declared-capacity list --limit 10 --after -``` - -### Find first matching platformDeclaredCapacity - -```bash -csdk platform-declared-capacity find-first --where.id.equalTo -``` - -### List platformDeclaredCapacity records with field selection - -```bash -csdk platform-declared-capacity list --select id,id -``` - -### List platformDeclaredCapacity records with filtering and ordering - -```bash -csdk platform-declared-capacity list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a platformDeclaredCapacity - -```bash -csdk platform-declared-capacity create --cpuLimitMillicores --cpuRequestMillicores --installationId --isTransient --kind --memoryLimitBytes --memoryRequestBytes --namespaceId --podCountMax --podCountMin --source --sourceId --storageSizeBytes -``` - -### Get a platformDeclaredCapacity by id - -```bash -csdk platform-declared-capacity get --id -``` diff --git a/.agents/skills/cli-compute/references/platform-infra-get-all-tree-nodes-record.md b/.agents/skills/cli-compute/references/platform-infra-get-all-tree-nodes-record.md index d39b53c3c8..58a6ee1c91 100644 --- a/.agents/skills/cli-compute/references/platform-infra-get-all-tree-nodes-record.md +++ b/.agents/skills/cli-compute/references/platform-infra-get-all-tree-nodes-record.md @@ -12,7 +12,6 @@ csdk platform-infra-get-all-tree-nodes-record list --where.. csdk platform-infra-get-all-tree-nodes-record list --limit 10 --after csdk platform-infra-get-all-tree-nodes-record find-first --where.. csdk platform-infra-get-all-tree-nodes-record get --id -csdk platform-infra-get-all-tree-nodes-record create --data --path csdk platform-infra-get-all-tree-nodes-record update --id [--data ] [--path ] csdk platform-infra-get-all-tree-nodes-record delete --id ``` @@ -55,12 +54,6 @@ csdk platform-infra-get-all-tree-nodes-record list --select id,id csdk platform-infra-get-all-tree-nodes-record list --where.id.equalTo --orderBy ID_ASC ``` -### Create a platformInfraGetAllTreeNodesRecord - -```bash -csdk platform-infra-get-all-tree-nodes-record create --data --path -``` - ### Get a platformInfraGetAllTreeNodesRecord by id ```bash diff --git a/.agents/skills/cli-compute/references/platform-proposal-comment.md b/.agents/skills/cli-compute/references/platform-proposal-comment.md index b0446a7d5b..66cc000826 100644 --- a/.agents/skills/cli-compute/references/platform-proposal-comment.md +++ b/.agents/skills/cli-compute/references/platform-proposal-comment.md @@ -7,7 +7,7 @@ CRUD operations for PlatformProposalComment records via csdk CLI **pgvector embedding fields:** `embedding` High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. Supports chunk-aware search: set `includeChunks: true` in VectorNearbyInput to transparently query across parent and chunk embeddings, returning the minimum distance. -**Unified Search API fields:** `bodyTrgmSimilarity`, `pathTrgmSimilarity`, `search`, `searchScore` +**Unified Search API fields:** `bodyTrgmSimilarity`, `embeddingModelTrgmSimilarity`, `pathTrgmSimilarity`, `search`, `searchScore`, `searchTsvRank` Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. ## Usage @@ -66,15 +66,15 @@ csdk platform-proposal-comment list --where.id.equalTo --orderBy ID_ASC ```bash # Pass a pre-computed vector array via dot-notation -csdk platform-proposal-comment list --where.embedding.vector '[0.1,0.2,0.3]' --where.embedding.distance 1.0 --select title,embeddingVectorDistance +csdk platform-proposal-comment list --where.embedding.vector '[0.1,0.2,0.3]' --where.embedding.distance 1.0 --select body,embeddingVectorDistance ``` ### Vector semantic search via `embedding` with --auto-embed ```bash # --auto-embed converts text to vectors using the configured embedder (e.g. Ollama nomic-embed-text) -EMBEDDER_PROVIDER=ollama csdk platform-proposal-comment search "semantic query" --auto-embed --select title,embeddingVectorDistance -EMBEDDER_PROVIDER=ollama csdk platform-proposal-comment list --where.embedding.vector "semantic query" --auto-embed --select title,embeddingVectorDistance +EMBEDDER_PROVIDER=ollama csdk platform-proposal-comment search "semantic query" --auto-embed --select body,embeddingVectorDistance +EMBEDDER_PROVIDER=ollama csdk platform-proposal-comment list --where.embedding.vector "semantic query" --auto-embed --select body,embeddingVectorDistance ``` ### Create/update with auto-embedded `embedding` via --auto-embed @@ -88,32 +88,38 @@ EMBEDDER_PROVIDER=ollama csdk platform-proposal-comment update --embedding "new ### Fuzzy search via trigram similarity (`trgmBody`) ```bash -csdk platform-proposal-comment list --where.trgmBody.value "approximate query" --where.trgmBody.threshold 0.3 --select title,bodyTrgmSimilarity +csdk platform-proposal-comment list --where.trgmBody.value "approximate query" --where.trgmBody.threshold 0.3 --select body,bodyTrgmSimilarity +``` + +### Fuzzy search via trigram similarity (`trgmEmbeddingModel`) + +```bash +csdk platform-proposal-comment list --where.trgmEmbeddingModel.value "approximate query" --where.trgmEmbeddingModel.threshold 0.3 --select body,embeddingModelTrgmSimilarity ``` ### Fuzzy search via trigram similarity (`trgmPath`) ```bash -csdk platform-proposal-comment list --where.trgmPath.value "approximate query" --where.trgmPath.threshold 0.3 --select title,pathTrgmSimilarity +csdk platform-proposal-comment list --where.trgmPath.value "approximate query" --where.trgmPath.threshold 0.3 --select body,pathTrgmSimilarity ``` ### Full-text search via tsvector (`search`) ```bash -csdk platform-proposal-comment list --where.search "search query" --select title,tsvRank +csdk platform-proposal-comment list --where.search "search query" --select body,searchTsvRank ``` ### Composite search (unifiedSearch dispatches to all text adapters) ```bash -csdk platform-proposal-comment list --where.unifiedSearch "search query" --select title,bodyTrgmSimilarity,pathTrgmSimilarity,tsvRank,searchScore +csdk platform-proposal-comment list --where.unifiedSearch "search query" --select body,bodyTrgmSimilarity,embeddingModelTrgmSimilarity,pathTrgmSimilarity,searchTsvRank,searchScore ``` ### Search with pagination and field projection ```bash -csdk platform-proposal-comment list --where.unifiedSearch "query" --limit 10 --select id,title,searchScore -csdk platform-proposal-comment search "query" --limit 10 --select id,title,searchScore +csdk platform-proposal-comment list --where.unifiedSearch "query" --limit 10 --select id,body,searchScore +csdk platform-proposal-comment search "query" --limit 10 --select id,body,searchScore ``` ### Create a platformProposalComment diff --git a/.agents/skills/cli-compute/references/platform-proposal-review.md b/.agents/skills/cli-compute/references/platform-proposal-review.md index f08da4866b..5364a53e14 100644 --- a/.agents/skills/cli-compute/references/platform-proposal-review.md +++ b/.agents/skills/cli-compute/references/platform-proposal-review.md @@ -4,7 +4,7 @@ CRUD operations for PlatformProposalReview records via csdk CLI -**Unified Search API fields:** `bodyTrgmSimilarity`, `commitShaTrgmSimilarity`, `search`, `searchScore`, `verdictTrgmSimilarity` +**Unified Search API fields:** `bodyTrgmSimilarity`, `commitShaTrgmSimilarity`, `search`, `searchScore`, `searchTsvRank`, `verdictTrgmSimilarity` Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. ## Usage @@ -62,38 +62,38 @@ csdk platform-proposal-review list --where.id.equalTo --orderBy ID_ASC ### Fuzzy search via trigram similarity (`trgmBody`) ```bash -csdk platform-proposal-review list --where.trgmBody.value "approximate query" --where.trgmBody.threshold 0.3 --select title,bodyTrgmSimilarity +csdk platform-proposal-review list --where.trgmBody.value "approximate query" --where.trgmBody.threshold 0.3 --select body,bodyTrgmSimilarity ``` ### Fuzzy search via trigram similarity (`trgmCommitSha`) ```bash -csdk platform-proposal-review list --where.trgmCommitSha.value "approximate query" --where.trgmCommitSha.threshold 0.3 --select title,commitShaTrgmSimilarity +csdk platform-proposal-review list --where.trgmCommitSha.value "approximate query" --where.trgmCommitSha.threshold 0.3 --select body,commitShaTrgmSimilarity ``` ### Full-text search via tsvector (`search`) ```bash -csdk platform-proposal-review list --where.search "search query" --select title,tsvRank +csdk platform-proposal-review list --where.search "search query" --select body,searchTsvRank ``` ### Fuzzy search via trigram similarity (`trgmVerdict`) ```bash -csdk platform-proposal-review list --where.trgmVerdict.value "approximate query" --where.trgmVerdict.threshold 0.3 --select title,verdictTrgmSimilarity +csdk platform-proposal-review list --where.trgmVerdict.value "approximate query" --where.trgmVerdict.threshold 0.3 --select body,verdictTrgmSimilarity ``` ### Composite search (unifiedSearch dispatches to all text adapters) ```bash -csdk platform-proposal-review list --where.unifiedSearch "search query" --select title,bodyTrgmSimilarity,commitShaTrgmSimilarity,tsvRank,searchScore,verdictTrgmSimilarity +csdk platform-proposal-review list --where.unifiedSearch "search query" --select body,bodyTrgmSimilarity,commitShaTrgmSimilarity,searchTsvRank,searchScore,verdictTrgmSimilarity ``` ### Search with pagination and field projection ```bash -csdk platform-proposal-review list --where.unifiedSearch "query" --limit 10 --select id,title,searchScore -csdk platform-proposal-review search "query" --limit 10 --select id,title,searchScore +csdk platform-proposal-review list --where.unifiedSearch "query" --limit 10 --select id,body,searchScore +csdk platform-proposal-review search "query" --limit 10 --select id,body,searchScore ``` ### Create a platformProposalReview diff --git a/.agents/skills/cli-compute/references/platform-proposal.md b/.agents/skills/cli-compute/references/platform-proposal.md index 8db3dd024a..f23648c3e0 100644 --- a/.agents/skills/cli-compute/references/platform-proposal.md +++ b/.agents/skills/cli-compute/references/platform-proposal.md @@ -7,7 +7,7 @@ CRUD operations for PlatformProposal records via csdk CLI **pgvector embedding fields:** `embedding` High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. Supports chunk-aware search: set `includeChunks: true` in VectorNearbyInput to transparently query across parent and chunk embeddings, returning the minimum distance. -**Unified Search API fields:** `bodyTrgmSimilarity`, `closedReasonTrgmSimilarity`, `kindTrgmSimilarity`, `mergeCommitTrgmSimilarity`, `mergeMethodTrgmSimilarity`, `resolutionTrgmSimilarity`, `search`, `searchScore`, `sourceRefTrgmSimilarity`, `statusTrgmSimilarity`, `targetRefTrgmSimilarity`, `titleTrgmSimilarity` +**Unified Search API fields:** `bodyTrgmSimilarity`, `closedReasonTrgmSimilarity`, `embeddingModelTrgmSimilarity`, `kindTrgmSimilarity`, `mergeCommitTrgmSimilarity`, `mergeMethodTrgmSimilarity`, `resolutionTrgmSimilarity`, `search`, `searchScore`, `searchTsvRank`, `sourceRefTrgmSimilarity`, `statusTrgmSimilarity`, `targetRefTrgmSimilarity`, `titleTrgmSimilarity` Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. ## Usage @@ -97,6 +97,12 @@ csdk platform-proposal list --where.trgmBody.value "approximate query" --where.t csdk platform-proposal list --where.trgmClosedReason.value "approximate query" --where.trgmClosedReason.threshold 0.3 --select title,closedReasonTrgmSimilarity ``` +### Fuzzy search via trigram similarity (`trgmEmbeddingModel`) + +```bash +csdk platform-proposal list --where.trgmEmbeddingModel.value "approximate query" --where.trgmEmbeddingModel.threshold 0.3 --select title,embeddingModelTrgmSimilarity +``` + ### Fuzzy search via trigram similarity (`trgmKind`) ```bash @@ -124,7 +130,7 @@ csdk platform-proposal list --where.trgmResolution.value "approximate query" --w ### Full-text search via tsvector (`search`) ```bash -csdk platform-proposal list --where.search "search query" --select title,tsvRank +csdk platform-proposal list --where.search "search query" --select title,searchTsvRank ``` ### Fuzzy search via trigram similarity (`trgmSourceRef`) @@ -154,7 +160,7 @@ csdk platform-proposal list --where.trgmTitle.value "approximate query" --where. ### Composite search (unifiedSearch dispatches to all text adapters) ```bash -csdk platform-proposal list --where.unifiedSearch "search query" --select title,bodyTrgmSimilarity,closedReasonTrgmSimilarity,kindTrgmSimilarity,mergeCommitTrgmSimilarity,mergeMethodTrgmSimilarity,resolutionTrgmSimilarity,tsvRank,searchScore,sourceRefTrgmSimilarity,statusTrgmSimilarity,targetRefTrgmSimilarity,titleTrgmSimilarity +csdk platform-proposal list --where.unifiedSearch "search query" --select title,bodyTrgmSimilarity,closedReasonTrgmSimilarity,embeddingModelTrgmSimilarity,kindTrgmSimilarity,mergeCommitTrgmSimilarity,mergeMethodTrgmSimilarity,resolutionTrgmSimilarity,searchTsvRank,searchScore,sourceRefTrgmSimilarity,statusTrgmSimilarity,targetRefTrgmSimilarity,titleTrgmSimilarity ``` ### Search with pagination and field projection diff --git a/.agents/skills/cli-compute/references/platform-proposals-chunk.md b/.agents/skills/cli-compute/references/platform-proposals-chunk.md index 225351829d..5566b277b0 100644 --- a/.agents/skills/cli-compute/references/platform-proposals-chunk.md +++ b/.agents/skills/cli-compute/references/platform-proposals-chunk.md @@ -66,15 +66,15 @@ csdk platform-proposals-chunk list --where.id.equalTo --orderBy ID_ASC ```bash # Pass a pre-computed vector array via dot-notation -csdk platform-proposals-chunk list --where.embedding.vector '[0.1,0.2,0.3]' --where.embedding.distance 1.0 --select title,embeddingVectorDistance +csdk platform-proposals-chunk list --where.embedding.vector '[0.1,0.2,0.3]' --where.embedding.distance 1.0 --select body,embeddingVectorDistance ``` ### Vector semantic search via `embedding` with --auto-embed ```bash # --auto-embed converts text to vectors using the configured embedder (e.g. Ollama nomic-embed-text) -EMBEDDER_PROVIDER=ollama csdk platform-proposals-chunk search "semantic query" --auto-embed --select title,embeddingVectorDistance -EMBEDDER_PROVIDER=ollama csdk platform-proposals-chunk list --where.embedding.vector "semantic query" --auto-embed --select title,embeddingVectorDistance +EMBEDDER_PROVIDER=ollama csdk platform-proposals-chunk search "semantic query" --auto-embed --select body,embeddingVectorDistance +EMBEDDER_PROVIDER=ollama csdk platform-proposals-chunk list --where.embedding.vector "semantic query" --auto-embed --select body,embeddingVectorDistance ``` ### Create/update with auto-embedded `embedding` via --auto-embed @@ -88,8 +88,8 @@ EMBEDDER_PROVIDER=ollama csdk platform-proposals-chunk update --embedding "new t ### Search with pagination and field projection ```bash -csdk platform-proposals-chunk list --where.unifiedSearch "query" --limit 10 --select id,title,searchScore -csdk platform-proposals-chunk search "query" --limit 10 --select id,title,searchScore +csdk platform-proposals-chunk list --where.unifiedSearch "query" --limit 10 --select id,body,searchScore +csdk platform-proposals-chunk search "query" --limit 10 --select id,body,searchScore ``` ### Create a platformProposalsChunk diff --git a/.agents/skills/cli-compute/references/platform-repository.md b/.agents/skills/cli-compute/references/platform-repository.md index 1c712608af..6d5f85faa4 100644 --- a/.agents/skills/cli-compute/references/platform-repository.md +++ b/.agents/skills/cli-compute/references/platform-repository.md @@ -7,7 +7,7 @@ CRUD operations for PlatformRepository records via csdk CLI **pgvector embedding fields:** `embedding` High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. Supports chunk-aware search: set `includeChunks: true` in VectorNearbyInput to transparently query across parent and chunk embeddings, returning the minimum distance. -**Unified Search API fields:** `cloneUrlTrgmSimilarity`, `defaultBranchTrgmSimilarity`, `descriptionTrgmSimilarity`, `externalIdTrgmSimilarity`, `nameTrgmSimilarity`, `providerTrgmSimilarity`, `search`, `searchScore`, `slugTrgmSimilarity`, `visibilityTrgmSimilarity` +**Unified Search API fields:** `cloneUrlTrgmSimilarity`, `defaultBranchTrgmSimilarity`, `descriptionTrgmSimilarity`, `embeddingModelTrgmSimilarity`, `externalIdTrgmSimilarity`, `nameTrgmSimilarity`, `providerTrgmSimilarity`, `search`, `searchScore`, `searchTsvRank`, `slugTrgmSimilarity`, `visibilityTrgmSimilarity` Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. ## Usage @@ -66,15 +66,15 @@ csdk platform-repository list --where.id.equalTo --orderBy ID_ASC ```bash # Pass a pre-computed vector array via dot-notation -csdk platform-repository list --where.embedding.vector '[0.1,0.2,0.3]' --where.embedding.distance 1.0 --select title,embeddingVectorDistance +csdk platform-repository list --where.embedding.vector '[0.1,0.2,0.3]' --where.embedding.distance 1.0 --select name,embeddingVectorDistance ``` ### Vector semantic search via `embedding` with --auto-embed ```bash # --auto-embed converts text to vectors using the configured embedder (e.g. Ollama nomic-embed-text) -EMBEDDER_PROVIDER=ollama csdk platform-repository search "semantic query" --auto-embed --select title,embeddingVectorDistance -EMBEDDER_PROVIDER=ollama csdk platform-repository list --where.embedding.vector "semantic query" --auto-embed --select title,embeddingVectorDistance +EMBEDDER_PROVIDER=ollama csdk platform-repository search "semantic query" --auto-embed --select name,embeddingVectorDistance +EMBEDDER_PROVIDER=ollama csdk platform-repository list --where.embedding.vector "semantic query" --auto-embed --select name,embeddingVectorDistance ``` ### Create/update with auto-embedded `embedding` via --auto-embed @@ -88,68 +88,74 @@ EMBEDDER_PROVIDER=ollama csdk platform-repository update --embedding "new text t ### Fuzzy search via trigram similarity (`trgmCloneUrl`) ```bash -csdk platform-repository list --where.trgmCloneUrl.value "approximate query" --where.trgmCloneUrl.threshold 0.3 --select title,cloneUrlTrgmSimilarity +csdk platform-repository list --where.trgmCloneUrl.value "approximate query" --where.trgmCloneUrl.threshold 0.3 --select name,cloneUrlTrgmSimilarity ``` ### Fuzzy search via trigram similarity (`trgmDefaultBranch`) ```bash -csdk platform-repository list --where.trgmDefaultBranch.value "approximate query" --where.trgmDefaultBranch.threshold 0.3 --select title,defaultBranchTrgmSimilarity +csdk platform-repository list --where.trgmDefaultBranch.value "approximate query" --where.trgmDefaultBranch.threshold 0.3 --select name,defaultBranchTrgmSimilarity ``` ### Fuzzy search via trigram similarity (`trgmDescription`) ```bash -csdk platform-repository list --where.trgmDescription.value "approximate query" --where.trgmDescription.threshold 0.3 --select title,descriptionTrgmSimilarity +csdk platform-repository list --where.trgmDescription.value "approximate query" --where.trgmDescription.threshold 0.3 --select name,descriptionTrgmSimilarity +``` + +### Fuzzy search via trigram similarity (`trgmEmbeddingModel`) + +```bash +csdk platform-repository list --where.trgmEmbeddingModel.value "approximate query" --where.trgmEmbeddingModel.threshold 0.3 --select name,embeddingModelTrgmSimilarity ``` ### Fuzzy search via trigram similarity (`trgmExternalId`) ```bash -csdk platform-repository list --where.trgmExternalId.value "approximate query" --where.trgmExternalId.threshold 0.3 --select title,externalIdTrgmSimilarity +csdk platform-repository list --where.trgmExternalId.value "approximate query" --where.trgmExternalId.threshold 0.3 --select name,externalIdTrgmSimilarity ``` ### Fuzzy search via trigram similarity (`trgmName`) ```bash -csdk platform-repository list --where.trgmName.value "approximate query" --where.trgmName.threshold 0.3 --select title,nameTrgmSimilarity +csdk platform-repository list --where.trgmName.value "approximate query" --where.trgmName.threshold 0.3 --select name,nameTrgmSimilarity ``` ### Fuzzy search via trigram similarity (`trgmProvider`) ```bash -csdk platform-repository list --where.trgmProvider.value "approximate query" --where.trgmProvider.threshold 0.3 --select title,providerTrgmSimilarity +csdk platform-repository list --where.trgmProvider.value "approximate query" --where.trgmProvider.threshold 0.3 --select name,providerTrgmSimilarity ``` ### Full-text search via tsvector (`search`) ```bash -csdk platform-repository list --where.search "search query" --select title,tsvRank +csdk platform-repository list --where.search "search query" --select name,searchTsvRank ``` ### Fuzzy search via trigram similarity (`trgmSlug`) ```bash -csdk platform-repository list --where.trgmSlug.value "approximate query" --where.trgmSlug.threshold 0.3 --select title,slugTrgmSimilarity +csdk platform-repository list --where.trgmSlug.value "approximate query" --where.trgmSlug.threshold 0.3 --select name,slugTrgmSimilarity ``` ### Fuzzy search via trigram similarity (`trgmVisibility`) ```bash -csdk platform-repository list --where.trgmVisibility.value "approximate query" --where.trgmVisibility.threshold 0.3 --select title,visibilityTrgmSimilarity +csdk platform-repository list --where.trgmVisibility.value "approximate query" --where.trgmVisibility.threshold 0.3 --select name,visibilityTrgmSimilarity ``` ### Composite search (unifiedSearch dispatches to all text adapters) ```bash -csdk platform-repository list --where.unifiedSearch "search query" --select title,cloneUrlTrgmSimilarity,defaultBranchTrgmSimilarity,descriptionTrgmSimilarity,externalIdTrgmSimilarity,nameTrgmSimilarity,providerTrgmSimilarity,tsvRank,searchScore,slugTrgmSimilarity,visibilityTrgmSimilarity +csdk platform-repository list --where.unifiedSearch "search query" --select name,cloneUrlTrgmSimilarity,defaultBranchTrgmSimilarity,descriptionTrgmSimilarity,embeddingModelTrgmSimilarity,externalIdTrgmSimilarity,nameTrgmSimilarity,providerTrgmSimilarity,searchTsvRank,searchScore,slugTrgmSimilarity,visibilityTrgmSimilarity ``` ### Search with pagination and field projection ```bash -csdk platform-repository list --where.unifiedSearch "query" --limit 10 --select id,title,searchScore -csdk platform-repository search "query" --limit 10 --select id,title,searchScore +csdk platform-repository list --where.unifiedSearch "query" --limit 10 --select id,name,searchScore +csdk platform-repository search "query" --limit 10 --select id,name,searchScore ``` ### Create a platformRepository diff --git a/.agents/skills/cli-compute/references/platform-resource-declared-capacity.md b/.agents/skills/cli-compute/references/platform-resource-declared-capacity.md index 43982689db..3ff95fff1a 100644 --- a/.agents/skills/cli-compute/references/platform-resource-declared-capacity.md +++ b/.agents/skills/cli-compute/references/platform-resource-declared-capacity.md @@ -12,7 +12,6 @@ csdk platform-resource-declared-capacity list --where.. --ord csdk platform-resource-declared-capacity list --limit 10 --after csdk platform-resource-declared-capacity find-first --where.. csdk platform-resource-declared-capacity get --id -csdk platform-resource-declared-capacity create --cpuLimitMillicores --cpuRequestMillicores --installationId --isTransient --kind --memoryLimitBytes --memoryRequestBytes --namespaceId --podCountMax --podCountMin --source --sourceId --storageSizeBytes --storageTotalBytes csdk platform-resource-declared-capacity update --id [--cpuLimitMillicores ] [--cpuRequestMillicores ] [--installationId ] [--isTransient ] [--kind ] [--memoryLimitBytes ] [--memoryRequestBytes ] [--namespaceId ] [--podCountMax ] [--podCountMin ] [--source ] [--sourceId ] [--storageSizeBytes ] [--storageTotalBytes ] csdk platform-resource-declared-capacity delete --id ``` @@ -55,12 +54,6 @@ csdk platform-resource-declared-capacity list --select id,id csdk platform-resource-declared-capacity list --where.id.equalTo --orderBy ID_ASC ``` -### Create a platformResourceDeclaredCapacity - -```bash -csdk platform-resource-declared-capacity create --cpuLimitMillicores --cpuRequestMillicores --installationId --isTransient --kind --memoryLimitBytes --memoryRequestBytes --namespaceId --podCountMax --podCountMin --source --sourceId --storageSizeBytes --storageTotalBytes -``` - ### Get a platformResourceDeclaredCapacity by id ```bash diff --git a/.agents/skills/cli-compute/references/platform-resource-observed-storage.md b/.agents/skills/cli-compute/references/platform-resource-observed-storage.md index bec73ec6a3..b078988c14 100644 --- a/.agents/skills/cli-compute/references/platform-resource-observed-storage.md +++ b/.agents/skills/cli-compute/references/platform-resource-observed-storage.md @@ -12,7 +12,6 @@ csdk platform-resource-observed-storage list --where.. --orde csdk platform-resource-observed-storage list --limit 10 --after csdk platform-resource-observed-storage find-first --where.. csdk platform-resource-observed-storage get --id -csdk platform-resource-observed-storage create --capacity --capacityBytes --claimName --declaredStorageClass --declaredStorageSizeBytes --declaredStorageTotalBytes --installationId --isBound --kind --namespaceId --phase --requested --requestedBytes --resourceId --resourceStatus --slug --storageClass --storageName csdk platform-resource-observed-storage update --id [--capacity ] [--capacityBytes ] [--claimName ] [--declaredStorageClass ] [--declaredStorageSizeBytes ] [--declaredStorageTotalBytes ] [--installationId ] [--isBound ] [--kind ] [--namespaceId ] [--phase ] [--requested ] [--requestedBytes ] [--resourceId ] [--resourceStatus ] [--slug ] [--storageClass ] [--storageName ] csdk platform-resource-observed-storage delete --id ``` @@ -55,12 +54,6 @@ csdk platform-resource-observed-storage list --select id,id csdk platform-resource-observed-storage list --where.id.equalTo --orderBy ID_ASC ``` -### Create a platformResourceObservedStorage - -```bash -csdk platform-resource-observed-storage create --capacity --capacityBytes --claimName --declaredStorageClass --declaredStorageSizeBytes --declaredStorageTotalBytes --installationId --isBound --kind --namespaceId --phase --requested --requestedBytes --resourceId --resourceStatus --slug --storageClass --storageName -``` - ### Get a platformResourceObservedStorage by id ```bash diff --git a/.agents/skills/cli-compute/references/platform-resource-utilization-daily.md b/.agents/skills/cli-compute/references/platform-resource-utilization-daily.md deleted file mode 100644 index b07f178014..0000000000 --- a/.agents/skills/cli-compute/references/platform-resource-utilization-daily.md +++ /dev/null @@ -1,68 +0,0 @@ -# platformResourceUtilizationDaily - - - -CRUD operations for PlatformResourceUtilizationDaily records via csdk CLI - -## Usage - -```bash -csdk platform-resource-utilization-daily list -csdk platform-resource-utilization-daily list --where.. --orderBy -csdk platform-resource-utilization-daily list --limit 10 --after -csdk platform-resource-utilization-daily find-first --where.. -csdk platform-resource-utilization-daily get --id -csdk platform-resource-utilization-daily create --avgMemoryBytes --cpuLimitMillicores --cpuPeakUtilization --cpuRequestHeadroomMillicores --cpuRequestMillicores --date --gbSeconds --kind --maxCpuMillicores --maxMemoryBytes --memoryLimitBytes --memoryPeakUtilization --memoryRequestBytes --memoryRequestHeadroomBytes --namespaceId --replicas --resourceId --runtimeSeconds --sampleCount -csdk platform-resource-utilization-daily update --id [--avgMemoryBytes ] [--cpuLimitMillicores ] [--cpuPeakUtilization ] [--cpuRequestHeadroomMillicores ] [--cpuRequestMillicores ] [--date ] [--gbSeconds ] [--kind ] [--maxCpuMillicores ] [--maxMemoryBytes ] [--memoryLimitBytes ] [--memoryPeakUtilization ] [--memoryRequestBytes ] [--memoryRequestHeadroomBytes ] [--namespaceId ] [--replicas ] [--resourceId ] [--runtimeSeconds ] [--sampleCount ] -csdk platform-resource-utilization-daily delete --id -``` - -## Examples - -### List platformResourceUtilizationDaily records - -```bash -csdk platform-resource-utilization-daily list -``` - -### List platformResourceUtilizationDaily records with pagination - -```bash -csdk platform-resource-utilization-daily list --limit 10 --offset 0 -``` - -### List platformResourceUtilizationDaily records with cursor pagination - -```bash -csdk platform-resource-utilization-daily list --limit 10 --after -``` - -### Find first matching platformResourceUtilizationDaily - -```bash -csdk platform-resource-utilization-daily find-first --where.id.equalTo -``` - -### List platformResourceUtilizationDaily records with field selection - -```bash -csdk platform-resource-utilization-daily list --select id,id -``` - -### List platformResourceUtilizationDaily records with filtering and ordering - -```bash -csdk platform-resource-utilization-daily list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a platformResourceUtilizationDaily - -```bash -csdk platform-resource-utilization-daily create --avgMemoryBytes --cpuLimitMillicores --cpuPeakUtilization --cpuRequestHeadroomMillicores --cpuRequestMillicores --date --gbSeconds --kind --maxCpuMillicores --maxMemoryBytes --memoryLimitBytes --memoryPeakUtilization --memoryRequestBytes --memoryRequestHeadroomBytes --namespaceId --replicas --resourceId --runtimeSeconds --sampleCount -``` - -### Get a platformResourceUtilizationDaily by id - -```bash -csdk platform-resource-utilization-daily get --id -``` diff --git a/.agents/skills/cli-compute/references/platform-resource-utilization.md b/.agents/skills/cli-compute/references/platform-resource-utilization.md index d50a119c6c..6604501716 100644 --- a/.agents/skills/cli-compute/references/platform-resource-utilization.md +++ b/.agents/skills/cli-compute/references/platform-resource-utilization.md @@ -12,7 +12,6 @@ csdk platform-resource-utilization list --where.. --orderBy < csdk platform-resource-utilization list --limit 10 --after csdk platform-resource-utilization find-first --where.. csdk platform-resource-utilization get --id -csdk platform-resource-utilization create --avgMemoryBytes --cpuLimitMillicores --cpuPeakUtilization --cpuRequestHeadroomMillicores --cpuRequestMillicores --date --gbSeconds --kind --maxCpuMillicores --maxMemoryBytes --memoryLimitBytes --memoryPeakUtilization --memoryRequestBytes --memoryRequestHeadroomBytes --namespaceId --replicas --resourceId --runtimeSeconds --sampleCount csdk platform-resource-utilization update --id [--avgMemoryBytes ] [--cpuLimitMillicores ] [--cpuPeakUtilization ] [--cpuRequestHeadroomMillicores ] [--cpuRequestMillicores ] [--date ] [--gbSeconds ] [--kind ] [--maxCpuMillicores ] [--maxMemoryBytes ] [--memoryLimitBytes ] [--memoryPeakUtilization ] [--memoryRequestBytes ] [--memoryRequestHeadroomBytes ] [--namespaceId ] [--replicas ] [--resourceId ] [--runtimeSeconds ] [--sampleCount ] csdk platform-resource-utilization delete --id ``` @@ -55,12 +54,6 @@ csdk platform-resource-utilization list --select id,id csdk platform-resource-utilization list --where.id.equalTo --orderBy ID_ASC ``` -### Create a platformResourceUtilization - -```bash -csdk platform-resource-utilization create --avgMemoryBytes --cpuLimitMillicores --cpuPeakUtilization --cpuRequestHeadroomMillicores --cpuRequestMillicores --date --gbSeconds --kind --maxCpuMillicores --maxMemoryBytes --memoryLimitBytes --memoryPeakUtilization --memoryRequestBytes --memoryRequestHeadroomBytes --namespaceId --replicas --resourceId --runtimeSeconds --sampleCount -``` - ### Get a platformResourceUtilization by id ```bash diff --git a/.agents/skills/cli-compute/references/platform-resources-health.md b/.agents/skills/cli-compute/references/platform-resources-health.md index e6a540cfd7..200078555e 100644 --- a/.agents/skills/cli-compute/references/platform-resources-health.md +++ b/.agents/skills/cli-compute/references/platform-resources-health.md @@ -12,7 +12,6 @@ csdk platform-resources-health list --where.. --orderBy csdk platform-resources-health find-first --where.. csdk platform-resources-health get --id -csdk platform-resources-health create --annotations --cpuLimitMillicores --cpuRequestMillicores --createdBy --createdByPrincipal --errorCount --imageRef --installationId --integrations --kind --labels --lastError --lastHeartbeatAt --memoryLimitBytes --memoryRequestBytes --name --namespaceId --realm --replicas --requiredConfigs --requiredSecrets --resourceDefinitionId --slug --spec --status --statusDetail --statusObserved --storageClass --storageSizeBytes --storageTotalBytes --updatedBy --updatedByPrincipal csdk platform-resources-health update --id [--annotations ] [--cpuLimitMillicores ] [--cpuRequestMillicores ] [--createdBy ] [--createdByPrincipal ] [--errorCount ] [--imageRef ] [--installationId ] [--integrations ] [--kind ] [--labels ] [--lastError ] [--lastHeartbeatAt ] [--memoryLimitBytes ] [--memoryRequestBytes ] [--name ] [--namespaceId ] [--realm ] [--replicas ] [--requiredConfigs ] [--requiredSecrets ] [--resourceDefinitionId ] [--slug ] [--spec ] [--status ] [--statusDetail ] [--statusObserved ] [--storageClass ] [--storageSizeBytes ] [--storageTotalBytes ] [--updatedBy ] [--updatedByPrincipal ] csdk platform-resources-health delete --id ``` @@ -55,12 +54,6 @@ csdk platform-resources-health list --select id,id csdk platform-resources-health list --where.id.equalTo --orderBy ID_ASC ``` -### Create a platformResourcesHealth - -```bash -csdk platform-resources-health create --annotations --cpuLimitMillicores --cpuRequestMillicores --createdBy --createdByPrincipal --errorCount --imageRef --installationId --integrations --kind --labels --lastError --lastHeartbeatAt --memoryLimitBytes --memoryRequestBytes --name --namespaceId --realm --replicas --requiredConfigs --requiredSecrets --resourceDefinitionId --slug --spec --status --statusDetail --statusObserved --storageClass --storageSizeBytes --storageTotalBytes --updatedBy --updatedByPrincipal -``` - ### Get a platformResourcesHealth by id ```bash diff --git a/.agents/skills/cli-compute/references/platform-resources-requirements-state.md b/.agents/skills/cli-compute/references/platform-resources-requirements-state.md index cccb239d7e..4889c2e8be 100644 --- a/.agents/skills/cli-compute/references/platform-resources-requirements-state.md +++ b/.agents/skills/cli-compute/references/platform-resources-requirements-state.md @@ -12,7 +12,6 @@ csdk platform-resources-requirements-state list --where.. --o csdk platform-resources-requirements-state list --limit 10 --after csdk platform-resources-requirements-state find-first --where.. csdk platform-resources-requirements-state get --id -csdk platform-resources-requirements-state create --configHash --configObjectName --requirementsHash --resourceId --secretsHash --secretsObjectName --slug csdk platform-resources-requirements-state update --id [--configHash ] [--configObjectName ] [--requirementsHash ] [--resourceId ] [--secretsHash ] [--secretsObjectName ] [--slug ] csdk platform-resources-requirements-state delete --id ``` @@ -55,12 +54,6 @@ csdk platform-resources-requirements-state list --select id,id csdk platform-resources-requirements-state list --where.id.equalTo --orderBy ID_ASC ``` -### Create a platformResourcesRequirementsState - -```bash -csdk platform-resources-requirements-state create --configHash --configObjectName --requirementsHash --resourceId --secretsHash --secretsObjectName --slug -``` - ### Get a platformResourcesRequirementsState by id ```bash diff --git a/.agents/skills/cli-compute/references/platform-resources-resolved-requirement.md b/.agents/skills/cli-compute/references/platform-resources-resolved-requirement.md index 80d8b1a776..1b8c831c58 100644 --- a/.agents/skills/cli-compute/references/platform-resources-resolved-requirement.md +++ b/.agents/skills/cli-compute/references/platform-resources-resolved-requirement.md @@ -12,7 +12,6 @@ csdk platform-resources-resolved-requirement list --where.. - csdk platform-resources-resolved-requirement list --limit 10 --after csdk platform-resources-resolved-requirement find-first --where.. csdk platform-resources-resolved-requirement get --id -csdk platform-resources-resolved-requirement create --atomId --configObjectName --name --namespaceId --present --realm --required --requirementKind --resourceId --secretsObjectName --slug csdk platform-resources-resolved-requirement update --id [--atomId ] [--configObjectName ] [--name ] [--namespaceId ] [--present ] [--realm ] [--required ] [--requirementKind ] [--resourceId ] [--secretsObjectName ] [--slug ] csdk platform-resources-resolved-requirement delete --id ``` @@ -55,12 +54,6 @@ csdk platform-resources-resolved-requirement list --select id,id csdk platform-resources-resolved-requirement list --where.id.equalTo --orderBy ID_ASC ``` -### Create a platformResourcesResolvedRequirement - -```bash -csdk platform-resources-resolved-requirement create --atomId --configObjectName --name --namespaceId --present --realm --required --requirementKind --resourceId --secretsObjectName --slug -``` - ### Get a platformResourcesResolvedRequirement by id ```bash diff --git a/.agents/skills/cli-compute/references/platform-service-binding.md b/.agents/skills/cli-compute/references/platform-service-binding.md new file mode 100644 index 0000000000..ad0e5da311 --- /dev/null +++ b/.agents/skills/cli-compute/references/platform-service-binding.md @@ -0,0 +1,68 @@ +# platformServiceBinding + + + +CRUD operations for PlatformServiceBinding records via csdk CLI + +## Usage + +```bash +csdk platform-service-binding list +csdk platform-service-binding list --where.. --orderBy +csdk platform-service-binding list --limit 10 --after +csdk platform-service-binding find-first --where.. +csdk platform-service-binding get --id +csdk platform-service-binding create --installationId --installationScope --kind --namespaceId [--createdBy ] [--createdByPrincipal ] [--lastError ] [--metadata ] [--observedHost ] [--realm ] [--status ] [--updatedBy ] [--updatedByPrincipal ] +csdk platform-service-binding update --id [--createdBy ] [--createdByPrincipal ] [--installationId ] [--installationScope ] [--kind ] [--lastError ] [--metadata ] [--namespaceId ] [--observedHost ] [--realm ] [--status ] [--updatedBy ] [--updatedByPrincipal ] +csdk platform-service-binding delete --id +``` + +## Examples + +### List platformServiceBinding records + +```bash +csdk platform-service-binding list +``` + +### List platformServiceBinding records with pagination + +```bash +csdk platform-service-binding list --limit 10 --offset 0 +``` + +### List platformServiceBinding records with cursor pagination + +```bash +csdk platform-service-binding list --limit 10 --after +``` + +### Find first matching platformServiceBinding + +```bash +csdk platform-service-binding find-first --where.id.equalTo +``` + +### List platformServiceBinding records with field selection + +```bash +csdk platform-service-binding list --select id,id +``` + +### List platformServiceBinding records with filtering and ordering + +```bash +csdk platform-service-binding list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a platformServiceBinding + +```bash +csdk platform-service-binding create --installationId --installationScope --kind --namespaceId [--createdBy ] [--createdByPrincipal ] [--lastError ] [--metadata ] [--observedHost ] [--realm ] [--status ] [--updatedBy ] [--updatedByPrincipal ] +``` + +### Get a platformServiceBinding by id + +```bash +csdk platform-service-binding get --id +``` diff --git a/.agents/skills/cli-compute/references/proposal-comment.md b/.agents/skills/cli-compute/references/proposal-comment.md index 38f4b281bd..420c5013a2 100644 --- a/.agents/skills/cli-compute/references/proposal-comment.md +++ b/.agents/skills/cli-compute/references/proposal-comment.md @@ -7,7 +7,7 @@ CRUD operations for ProposalComment records via csdk CLI **pgvector embedding fields:** `embedding` High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. Supports chunk-aware search: set `includeChunks: true` in VectorNearbyInput to transparently query across parent and chunk embeddings, returning the minimum distance. -**Unified Search API fields:** `bodyTrgmSimilarity`, `pathTrgmSimilarity`, `search`, `searchScore` +**Unified Search API fields:** `bodyTrgmSimilarity`, `embeddingModelTrgmSimilarity`, `pathTrgmSimilarity`, `search`, `searchScore`, `searchTsvRank` Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. ## Usage @@ -19,8 +19,8 @@ csdk proposal-comment list --limit 10 --after csdk proposal-comment find-first --where.. csdk proposal-comment search csdk proposal-comment get --id -csdk proposal-comment create --body --proposalId [--actorId ] [--attachments ] [--createdBy ] [--createdByPrincipal ] [--embedding ] [--line ] [--outdatedAt ] [--path ] [--resolvedAt ] [--updatedBy ] [--updatedByPrincipal ] -csdk proposal-comment update --id [--actorId ] [--attachments ] [--body ] [--createdBy ] [--createdByPrincipal ] [--embedding ] [--line ] [--outdatedAt ] [--path ] [--proposalId ] [--resolvedAt ] [--updatedBy ] [--updatedByPrincipal ] +csdk proposal-comment create --body --databaseId --proposalId [--actorId ] [--attachments ] [--createdBy ] [--createdByPrincipal ] [--embedding ] [--line ] [--outdatedAt ] [--path ] [--resolvedAt ] [--updatedBy ] [--updatedByPrincipal ] +csdk proposal-comment update --id [--actorId ] [--attachments ] [--body ] [--createdBy ] [--createdByPrincipal ] [--databaseId ] [--embedding ] [--line ] [--outdatedAt ] [--path ] [--proposalId ] [--resolvedAt ] [--updatedBy ] [--updatedByPrincipal ] csdk proposal-comment delete --id ``` @@ -66,15 +66,15 @@ csdk proposal-comment list --where.id.equalTo --orderBy ID_ASC ```bash # Pass a pre-computed vector array via dot-notation -csdk proposal-comment list --where.embedding.vector '[0.1,0.2,0.3]' --where.embedding.distance 1.0 --select title,embeddingVectorDistance +csdk proposal-comment list --where.embedding.vector '[0.1,0.2,0.3]' --where.embedding.distance 1.0 --select body,embeddingVectorDistance ``` ### Vector semantic search via `embedding` with --auto-embed ```bash # --auto-embed converts text to vectors using the configured embedder (e.g. Ollama nomic-embed-text) -EMBEDDER_PROVIDER=ollama csdk proposal-comment search "semantic query" --auto-embed --select title,embeddingVectorDistance -EMBEDDER_PROVIDER=ollama csdk proposal-comment list --where.embedding.vector "semantic query" --auto-embed --select title,embeddingVectorDistance +EMBEDDER_PROVIDER=ollama csdk proposal-comment search "semantic query" --auto-embed --select body,embeddingVectorDistance +EMBEDDER_PROVIDER=ollama csdk proposal-comment list --where.embedding.vector "semantic query" --auto-embed --select body,embeddingVectorDistance ``` ### Create/update with auto-embedded `embedding` via --auto-embed @@ -88,38 +88,44 @@ EMBEDDER_PROVIDER=ollama csdk proposal-comment update --embedding "new text to e ### Fuzzy search via trigram similarity (`trgmBody`) ```bash -csdk proposal-comment list --where.trgmBody.value "approximate query" --where.trgmBody.threshold 0.3 --select title,bodyTrgmSimilarity +csdk proposal-comment list --where.trgmBody.value "approximate query" --where.trgmBody.threshold 0.3 --select body,bodyTrgmSimilarity +``` + +### Fuzzy search via trigram similarity (`trgmEmbeddingModel`) + +```bash +csdk proposal-comment list --where.trgmEmbeddingModel.value "approximate query" --where.trgmEmbeddingModel.threshold 0.3 --select body,embeddingModelTrgmSimilarity ``` ### Fuzzy search via trigram similarity (`trgmPath`) ```bash -csdk proposal-comment list --where.trgmPath.value "approximate query" --where.trgmPath.threshold 0.3 --select title,pathTrgmSimilarity +csdk proposal-comment list --where.trgmPath.value "approximate query" --where.trgmPath.threshold 0.3 --select body,pathTrgmSimilarity ``` ### Full-text search via tsvector (`search`) ```bash -csdk proposal-comment list --where.search "search query" --select title,tsvRank +csdk proposal-comment list --where.search "search query" --select body,searchTsvRank ``` ### Composite search (unifiedSearch dispatches to all text adapters) ```bash -csdk proposal-comment list --where.unifiedSearch "search query" --select title,bodyTrgmSimilarity,pathTrgmSimilarity,tsvRank,searchScore +csdk proposal-comment list --where.unifiedSearch "search query" --select body,bodyTrgmSimilarity,embeddingModelTrgmSimilarity,pathTrgmSimilarity,searchTsvRank,searchScore ``` ### Search with pagination and field projection ```bash -csdk proposal-comment list --where.unifiedSearch "query" --limit 10 --select id,title,searchScore -csdk proposal-comment search "query" --limit 10 --select id,title,searchScore +csdk proposal-comment list --where.unifiedSearch "query" --limit 10 --select id,body,searchScore +csdk proposal-comment search "query" --limit 10 --select id,body,searchScore ``` ### Create a proposalComment ```bash -csdk proposal-comment create --body --proposalId [--actorId ] [--attachments ] [--createdBy ] [--createdByPrincipal ] [--embedding ] [--line ] [--outdatedAt ] [--path ] [--resolvedAt ] [--updatedBy ] [--updatedByPrincipal ] +csdk proposal-comment create --body --databaseId --proposalId [--actorId ] [--attachments ] [--createdBy ] [--createdByPrincipal ] [--embedding ] [--line ] [--outdatedAt ] [--path ] [--resolvedAt ] [--updatedBy ] [--updatedByPrincipal ] ``` ### Get a proposalComment by id diff --git a/.agents/skills/cli-compute/references/proposal-file-view.md b/.agents/skills/cli-compute/references/proposal-file-view.md index 6a2259e397..d13e36c379 100644 --- a/.agents/skills/cli-compute/references/proposal-file-view.md +++ b/.agents/skills/cli-compute/references/proposal-file-view.md @@ -12,8 +12,8 @@ csdk proposal-file-view list --where.. --orderBy csdk proposal-file-view list --limit 10 --after csdk proposal-file-view find-first --where.. csdk proposal-file-view get --id -csdk proposal-file-view create --blobSha --path --proposalId --reviewerId [--createdByPrincipal ] [--updatedByPrincipal ] [--viewedAt ] -csdk proposal-file-view update --id [--blobSha ] [--createdByPrincipal ] [--path ] [--proposalId ] [--reviewerId ] [--updatedByPrincipal ] [--viewedAt ] +csdk proposal-file-view create --blobSha --databaseId --path --proposalId --reviewerId [--createdByPrincipal ] [--updatedByPrincipal ] [--viewedAt ] +csdk proposal-file-view update --id [--blobSha ] [--createdByPrincipal ] [--databaseId ] [--path ] [--proposalId ] [--reviewerId ] [--updatedByPrincipal ] [--viewedAt ] csdk proposal-file-view delete --id ``` @@ -58,7 +58,7 @@ csdk proposal-file-view list --where.id.equalTo --orderBy ID_ASC ### Create a proposalFileView ```bash -csdk proposal-file-view create --blobSha --path --proposalId --reviewerId [--createdByPrincipal ] [--updatedByPrincipal ] [--viewedAt ] +csdk proposal-file-view create --blobSha --databaseId --path --proposalId --reviewerId [--createdByPrincipal ] [--updatedByPrincipal ] [--viewedAt ] ``` ### Get a proposalFileView by id diff --git a/.agents/skills/cli-compute/references/proposal-reaction.md b/.agents/skills/cli-compute/references/proposal-reaction.md index 77da16cc14..baec39d595 100644 --- a/.agents/skills/cli-compute/references/proposal-reaction.md +++ b/.agents/skills/cli-compute/references/proposal-reaction.md @@ -12,8 +12,8 @@ csdk proposal-reaction list --where.. --orderBy csdk proposal-reaction list --limit 10 --after csdk proposal-reaction find-first --where.. csdk proposal-reaction get --id -csdk proposal-reaction create --actorId --emoji --proposalId [--commentId ] [--createdByPrincipal ] [--updatedByPrincipal ] -csdk proposal-reaction update --id [--actorId ] [--commentId ] [--createdByPrincipal ] [--emoji ] [--proposalId ] [--updatedByPrincipal ] +csdk proposal-reaction create --actorId --databaseId --emoji --proposalId [--commentId ] [--createdByPrincipal ] [--updatedByPrincipal ] +csdk proposal-reaction update --id [--actorId ] [--commentId ] [--createdByPrincipal ] [--databaseId ] [--emoji ] [--proposalId ] [--updatedByPrincipal ] csdk proposal-reaction delete --id ``` @@ -58,7 +58,7 @@ csdk proposal-reaction list --where.id.equalTo --orderBy ID_ASC ### Create a proposalReaction ```bash -csdk proposal-reaction create --actorId --emoji --proposalId [--commentId ] [--createdByPrincipal ] [--updatedByPrincipal ] +csdk proposal-reaction create --actorId --databaseId --emoji --proposalId [--commentId ] [--createdByPrincipal ] [--updatedByPrincipal ] ``` ### Get a proposalReaction by id diff --git a/.agents/skills/cli-compute/references/proposal-review.md b/.agents/skills/cli-compute/references/proposal-review.md index 9b7528121c..d5e78cd1b0 100644 --- a/.agents/skills/cli-compute/references/proposal-review.md +++ b/.agents/skills/cli-compute/references/proposal-review.md @@ -4,7 +4,7 @@ CRUD operations for ProposalReview records via csdk CLI -**Unified Search API fields:** `bodyTrgmSimilarity`, `commitShaTrgmSimilarity`, `search`, `searchScore`, `verdictTrgmSimilarity` +**Unified Search API fields:** `bodyTrgmSimilarity`, `commitShaTrgmSimilarity`, `search`, `searchScore`, `searchTsvRank`, `verdictTrgmSimilarity` Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. ## Usage @@ -16,8 +16,8 @@ csdk proposal-review list --limit 10 --after csdk proposal-review find-first --where.. csdk proposal-review search csdk proposal-review get --id -csdk proposal-review create --commitSha --proposalId --reviewerId --verdict [--body ] [--createdByPrincipal ] [--submittedAt ] [--updatedByPrincipal ] -csdk proposal-review update --id [--body ] [--commitSha ] [--createdByPrincipal ] [--proposalId ] [--reviewerId ] [--submittedAt ] [--updatedByPrincipal ] [--verdict ] +csdk proposal-review create --commitSha --databaseId --proposalId --reviewerId --verdict [--body ] [--createdByPrincipal ] [--submittedAt ] [--updatedByPrincipal ] +csdk proposal-review update --id [--body ] [--commitSha ] [--createdByPrincipal ] [--databaseId ] [--proposalId ] [--reviewerId ] [--submittedAt ] [--updatedByPrincipal ] [--verdict ] csdk proposal-review delete --id ``` @@ -62,44 +62,44 @@ csdk proposal-review list --where.id.equalTo --orderBy ID_ASC ### Fuzzy search via trigram similarity (`trgmBody`) ```bash -csdk proposal-review list --where.trgmBody.value "approximate query" --where.trgmBody.threshold 0.3 --select title,bodyTrgmSimilarity +csdk proposal-review list --where.trgmBody.value "approximate query" --where.trgmBody.threshold 0.3 --select body,bodyTrgmSimilarity ``` ### Fuzzy search via trigram similarity (`trgmCommitSha`) ```bash -csdk proposal-review list --where.trgmCommitSha.value "approximate query" --where.trgmCommitSha.threshold 0.3 --select title,commitShaTrgmSimilarity +csdk proposal-review list --where.trgmCommitSha.value "approximate query" --where.trgmCommitSha.threshold 0.3 --select body,commitShaTrgmSimilarity ``` ### Full-text search via tsvector (`search`) ```bash -csdk proposal-review list --where.search "search query" --select title,tsvRank +csdk proposal-review list --where.search "search query" --select body,searchTsvRank ``` ### Fuzzy search via trigram similarity (`trgmVerdict`) ```bash -csdk proposal-review list --where.trgmVerdict.value "approximate query" --where.trgmVerdict.threshold 0.3 --select title,verdictTrgmSimilarity +csdk proposal-review list --where.trgmVerdict.value "approximate query" --where.trgmVerdict.threshold 0.3 --select body,verdictTrgmSimilarity ``` ### Composite search (unifiedSearch dispatches to all text adapters) ```bash -csdk proposal-review list --where.unifiedSearch "search query" --select title,bodyTrgmSimilarity,commitShaTrgmSimilarity,tsvRank,searchScore,verdictTrgmSimilarity +csdk proposal-review list --where.unifiedSearch "search query" --select body,bodyTrgmSimilarity,commitShaTrgmSimilarity,searchTsvRank,searchScore,verdictTrgmSimilarity ``` ### Search with pagination and field projection ```bash -csdk proposal-review list --where.unifiedSearch "query" --limit 10 --select id,title,searchScore -csdk proposal-review search "query" --limit 10 --select id,title,searchScore +csdk proposal-review list --where.unifiedSearch "query" --limit 10 --select id,body,searchScore +csdk proposal-review search "query" --limit 10 --select id,body,searchScore ``` ### Create a proposalReview ```bash -csdk proposal-review create --commitSha --proposalId --reviewerId --verdict [--body ] [--createdByPrincipal ] [--submittedAt ] [--updatedByPrincipal ] +csdk proposal-review create --commitSha --databaseId --proposalId --reviewerId --verdict [--body ] [--createdByPrincipal ] [--submittedAt ] [--updatedByPrincipal ] ``` ### Get a proposalReview by id diff --git a/.agents/skills/cli-compute/references/proposal.md b/.agents/skills/cli-compute/references/proposal.md index 1aa8e96621..c5c2908e35 100644 --- a/.agents/skills/cli-compute/references/proposal.md +++ b/.agents/skills/cli-compute/references/proposal.md @@ -7,7 +7,7 @@ CRUD operations for Proposal records via csdk CLI **pgvector embedding fields:** `embedding` High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. Supports chunk-aware search: set `includeChunks: true` in VectorNearbyInput to transparently query across parent and chunk embeddings, returning the minimum distance. -**Unified Search API fields:** `bodyTrgmSimilarity`, `closedReasonTrgmSimilarity`, `kindTrgmSimilarity`, `mergeCommitTrgmSimilarity`, `mergeMethodTrgmSimilarity`, `resolutionTrgmSimilarity`, `search`, `searchScore`, `sourceRefTrgmSimilarity`, `statusTrgmSimilarity`, `targetRefTrgmSimilarity`, `titleTrgmSimilarity` +**Unified Search API fields:** `bodyTrgmSimilarity`, `closedReasonTrgmSimilarity`, `embeddingModelTrgmSimilarity`, `kindTrgmSimilarity`, `mergeCommitTrgmSimilarity`, `mergeMethodTrgmSimilarity`, `resolutionTrgmSimilarity`, `search`, `searchScore`, `searchTsvRank`, `sourceRefTrgmSimilarity`, `statusTrgmSimilarity`, `targetRefTrgmSimilarity`, `titleTrgmSimilarity` Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. ## Usage @@ -19,8 +19,8 @@ csdk proposal list --limit 10 --after csdk proposal find-first --where.. csdk proposal search csdk proposal get --id -csdk proposal create --repositoryId --title [--actorId ] [--body ] [--closedReason ] [--createdBy ] [--createdByPrincipal ] [--decidedAt ] [--dueAt ] [--embedding ] [--kind ] [--labels ] [--mergeCommit ] [--mergeMethod ] [--mergeRequestedAt ] [--mergedAt ] [--metadata ] [--parentId ] [--priority ] [--resolution ] [--sourceRef ] [--status ] [--targetRef ] [--updatedBy ] [--updatedByPrincipal ] -csdk proposal update --id [--actorId ] [--body ] [--closedReason ] [--createdBy ] [--createdByPrincipal ] [--decidedAt ] [--dueAt ] [--embedding ] [--kind ] [--labels ] [--mergeCommit ] [--mergeMethod ] [--mergeRequestedAt ] [--mergedAt ] [--metadata ] [--parentId ] [--priority ] [--repositoryId ] [--resolution ] [--sourceRef ] [--status ] [--targetRef ] [--title ] [--updatedBy ] [--updatedByPrincipal ] +csdk proposal create --databaseId --repositoryId --title [--actorId ] [--body ] [--closedReason ] [--createdBy ] [--createdByPrincipal ] [--decidedAt ] [--dueAt ] [--embedding ] [--kind ] [--labels ] [--mergeCommit ] [--mergeMethod ] [--mergeRequestedAt ] [--mergedAt ] [--metadata ] [--parentId ] [--priority ] [--resolution ] [--sourceRef ] [--status ] [--targetRef ] [--updatedBy ] [--updatedByPrincipal ] +csdk proposal update --id [--actorId ] [--body ] [--closedReason ] [--createdBy ] [--createdByPrincipal ] [--databaseId ] [--decidedAt ] [--dueAt ] [--embedding ] [--kind ] [--labels ] [--mergeCommit ] [--mergeMethod ] [--mergeRequestedAt ] [--mergedAt ] [--metadata ] [--parentId ] [--priority ] [--repositoryId ] [--resolution ] [--sourceRef ] [--status ] [--targetRef ] [--title ] [--updatedBy ] [--updatedByPrincipal ] csdk proposal delete --id ``` @@ -97,6 +97,12 @@ csdk proposal list --where.trgmBody.value "approximate query" --where.trgmBody.t csdk proposal list --where.trgmClosedReason.value "approximate query" --where.trgmClosedReason.threshold 0.3 --select title,closedReasonTrgmSimilarity ``` +### Fuzzy search via trigram similarity (`trgmEmbeddingModel`) + +```bash +csdk proposal list --where.trgmEmbeddingModel.value "approximate query" --where.trgmEmbeddingModel.threshold 0.3 --select title,embeddingModelTrgmSimilarity +``` + ### Fuzzy search via trigram similarity (`trgmKind`) ```bash @@ -124,7 +130,7 @@ csdk proposal list --where.trgmResolution.value "approximate query" --where.trgm ### Full-text search via tsvector (`search`) ```bash -csdk proposal list --where.search "search query" --select title,tsvRank +csdk proposal list --where.search "search query" --select title,searchTsvRank ``` ### Fuzzy search via trigram similarity (`trgmSourceRef`) @@ -154,7 +160,7 @@ csdk proposal list --where.trgmTitle.value "approximate query" --where.trgmTitle ### Composite search (unifiedSearch dispatches to all text adapters) ```bash -csdk proposal list --where.unifiedSearch "search query" --select title,bodyTrgmSimilarity,closedReasonTrgmSimilarity,kindTrgmSimilarity,mergeCommitTrgmSimilarity,mergeMethodTrgmSimilarity,resolutionTrgmSimilarity,tsvRank,searchScore,sourceRefTrgmSimilarity,statusTrgmSimilarity,targetRefTrgmSimilarity,titleTrgmSimilarity +csdk proposal list --where.unifiedSearch "search query" --select title,bodyTrgmSimilarity,closedReasonTrgmSimilarity,embeddingModelTrgmSimilarity,kindTrgmSimilarity,mergeCommitTrgmSimilarity,mergeMethodTrgmSimilarity,resolutionTrgmSimilarity,searchTsvRank,searchScore,sourceRefTrgmSimilarity,statusTrgmSimilarity,targetRefTrgmSimilarity,titleTrgmSimilarity ``` ### Search with pagination and field projection @@ -167,7 +173,7 @@ csdk proposal search "query" --limit 10 --select id,title,searchScore ### Create a proposal ```bash -csdk proposal create --repositoryId --title [--actorId ] [--body ] [--closedReason ] [--createdBy ] [--createdByPrincipal ] [--decidedAt ] [--dueAt ] [--embedding ] [--kind ] [--labels ] [--mergeCommit ] [--mergeMethod ] [--mergeRequestedAt ] [--mergedAt ] [--metadata ] [--parentId ] [--priority ] [--resolution ] [--sourceRef ] [--status ] [--targetRef ] [--updatedBy ] [--updatedByPrincipal ] +csdk proposal create --databaseId --repositoryId --title [--actorId ] [--body ] [--closedReason ] [--createdBy ] [--createdByPrincipal ] [--decidedAt ] [--dueAt ] [--embedding ] [--kind ] [--labels ] [--mergeCommit ] [--mergeMethod ] [--mergeRequestedAt ] [--mergedAt ] [--metadata ] [--parentId ] [--priority ] [--resolution ] [--sourceRef ] [--status ] [--targetRef ] [--updatedBy ] [--updatedByPrincipal ] ``` ### Get a proposal by id diff --git a/.agents/skills/cli-compute/references/proposals-chunk.md b/.agents/skills/cli-compute/references/proposals-chunk.md index 6d088e85f4..26a2c54ea4 100644 --- a/.agents/skills/cli-compute/references/proposals-chunk.md +++ b/.agents/skills/cli-compute/references/proposals-chunk.md @@ -66,15 +66,15 @@ csdk proposals-chunk list --where.id.equalTo --orderBy ID_ASC ```bash # Pass a pre-computed vector array via dot-notation -csdk proposals-chunk list --where.embedding.vector '[0.1,0.2,0.3]' --where.embedding.distance 1.0 --select title,embeddingVectorDistance +csdk proposals-chunk list --where.embedding.vector '[0.1,0.2,0.3]' --where.embedding.distance 1.0 --select body,embeddingVectorDistance ``` ### Vector semantic search via `embedding` with --auto-embed ```bash # --auto-embed converts text to vectors using the configured embedder (e.g. Ollama nomic-embed-text) -EMBEDDER_PROVIDER=ollama csdk proposals-chunk search "semantic query" --auto-embed --select title,embeddingVectorDistance -EMBEDDER_PROVIDER=ollama csdk proposals-chunk list --where.embedding.vector "semantic query" --auto-embed --select title,embeddingVectorDistance +EMBEDDER_PROVIDER=ollama csdk proposals-chunk search "semantic query" --auto-embed --select body,embeddingVectorDistance +EMBEDDER_PROVIDER=ollama csdk proposals-chunk list --where.embedding.vector "semantic query" --auto-embed --select body,embeddingVectorDistance ``` ### Create/update with auto-embedded `embedding` via --auto-embed @@ -88,8 +88,8 @@ EMBEDDER_PROVIDER=ollama csdk proposals-chunk update --embedding "new text to em ### Search with pagination and field projection ```bash -csdk proposals-chunk list --where.unifiedSearch "query" --limit 10 --select id,title,searchScore -csdk proposals-chunk search "query" --limit 10 --select id,title,searchScore +csdk proposals-chunk list --where.unifiedSearch "query" --limit 10 --select id,body,searchScore +csdk proposals-chunk search "query" --limit 10 --select id,body,searchScore ``` ### Create a proposalsChunk diff --git a/.agents/skills/cli-compute/references/repository-event.md b/.agents/skills/cli-compute/references/repository-event.md index f410af483f..eaf574f673 100644 --- a/.agents/skills/cli-compute/references/repository-event.md +++ b/.agents/skills/cli-compute/references/repository-event.md @@ -12,8 +12,8 @@ csdk repository-event list --where.. --orderBy csdk repository-event list --limit 10 --after csdk repository-event find-first --where.. csdk repository-event get --id -csdk repository-event create --eventType --repositoryId [--actorId ] [--commitSha ] [--createdByPrincipal ] [--deliveryId ] [--metadata ] [--payload ] [--ref ] [--updatedByPrincipal ] -csdk repository-event update --id [--actorId ] [--commitSha ] [--createdByPrincipal ] [--deliveryId ] [--eventType ] [--metadata ] [--payload ] [--ref ] [--repositoryId ] [--updatedByPrincipal ] +csdk repository-event create --databaseId --eventType --repositoryId [--actorId ] [--commitSha ] [--createdByPrincipal ] [--deliveryId ] [--metadata ] [--payload ] [--ref ] [--updatedByPrincipal ] +csdk repository-event update --id [--actorId ] [--commitSha ] [--createdByPrincipal ] [--databaseId ] [--deliveryId ] [--eventType ] [--metadata ] [--payload ] [--ref ] [--repositoryId ] [--updatedByPrincipal ] csdk repository-event delete --id ``` @@ -58,7 +58,7 @@ csdk repository-event list --where.id.equalTo --orderBy ID_ASC ### Create a repositoryEvent ```bash -csdk repository-event create --eventType --repositoryId [--actorId ] [--commitSha ] [--createdByPrincipal ] [--deliveryId ] [--metadata ] [--payload ] [--ref ] [--updatedByPrincipal ] +csdk repository-event create --databaseId --eventType --repositoryId [--actorId ] [--commitSha ] [--createdByPrincipal ] [--deliveryId ] [--metadata ] [--payload ] [--ref ] [--updatedByPrincipal ] ``` ### Get a repositoryEvent by id diff --git a/.agents/skills/cli-compute/references/repository-workflow.md b/.agents/skills/cli-compute/references/repository-workflow.md index e52db13ae7..76af6d2c8a 100644 --- a/.agents/skills/cli-compute/references/repository-workflow.md +++ b/.agents/skills/cli-compute/references/repository-workflow.md @@ -12,8 +12,8 @@ csdk repository-workflow list --where.. --orderBy csdk repository-workflow list --limit 10 --after csdk repository-workflow find-first --where.. csdk repository-workflow get --id -csdk repository-workflow create --eventType --name --repositoryId --slug [--cancelInProgress ] [--concurrencyKey ] [--createdBy ] [--createdByPrincipal ] [--graphId ] [--inputs ] [--isEnabled ] [--refPattern ] [--requiredSecrets ] [--updatedBy ] [--updatedByPrincipal ] -csdk repository-workflow update --id [--cancelInProgress ] [--concurrencyKey ] [--createdBy ] [--createdByPrincipal ] [--eventType ] [--graphId ] [--inputs ] [--isEnabled ] [--name ] [--refPattern ] [--repositoryId ] [--requiredSecrets ] [--slug ] [--updatedBy ] [--updatedByPrincipal ] +csdk repository-workflow create --databaseId --eventType --name --repositoryId --slug [--cancelInProgress ] [--concurrencyKey ] [--createdBy ] [--createdByPrincipal ] [--graphId ] [--inputs ] [--isEnabled ] [--refPattern ] [--requiredSecrets ] [--updatedBy ] [--updatedByPrincipal ] +csdk repository-workflow update --id [--cancelInProgress ] [--concurrencyKey ] [--createdBy ] [--createdByPrincipal ] [--databaseId ] [--eventType ] [--graphId ] [--inputs ] [--isEnabled ] [--name ] [--refPattern ] [--repositoryId ] [--requiredSecrets ] [--slug ] [--updatedBy ] [--updatedByPrincipal ] csdk repository-workflow delete --id ``` @@ -58,7 +58,7 @@ csdk repository-workflow list --where.id.equalTo --orderBy ID_ASC ### Create a repositoryWorkflow ```bash -csdk repository-workflow create --eventType --name --repositoryId --slug [--cancelInProgress ] [--concurrencyKey ] [--createdBy ] [--createdByPrincipal ] [--graphId ] [--inputs ] [--isEnabled ] [--refPattern ] [--requiredSecrets ] [--updatedBy ] [--updatedByPrincipal ] +csdk repository-workflow create --databaseId --eventType --name --repositoryId --slug [--cancelInProgress ] [--concurrencyKey ] [--createdBy ] [--createdByPrincipal ] [--graphId ] [--inputs ] [--isEnabled ] [--refPattern ] [--requiredSecrets ] [--updatedBy ] [--updatedByPrincipal ] ``` ### Get a repositoryWorkflow by id diff --git a/.agents/skills/cli-compute/references/repository.md b/.agents/skills/cli-compute/references/repository.md index 3d8aa93e43..44ee29dedb 100644 --- a/.agents/skills/cli-compute/references/repository.md +++ b/.agents/skills/cli-compute/references/repository.md @@ -7,7 +7,7 @@ CRUD operations for Repository records via csdk CLI **pgvector embedding fields:** `embedding` High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. Supports chunk-aware search: set `includeChunks: true` in VectorNearbyInput to transparently query across parent and chunk embeddings, returning the minimum distance. -**Unified Search API fields:** `cloneUrlTrgmSimilarity`, `defaultBranchTrgmSimilarity`, `descriptionTrgmSimilarity`, `externalIdTrgmSimilarity`, `nameTrgmSimilarity`, `providerTrgmSimilarity`, `search`, `searchScore`, `slugTrgmSimilarity`, `visibilityTrgmSimilarity` +**Unified Search API fields:** `cloneUrlTrgmSimilarity`, `defaultBranchTrgmSimilarity`, `descriptionTrgmSimilarity`, `embeddingModelTrgmSimilarity`, `externalIdTrgmSimilarity`, `nameTrgmSimilarity`, `providerTrgmSimilarity`, `search`, `searchScore`, `searchTsvRank`, `slugTrgmSimilarity`, `visibilityTrgmSimilarity` Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. ## Usage @@ -66,15 +66,15 @@ csdk repository list --where.id.equalTo --orderBy ID_ASC ```bash # Pass a pre-computed vector array via dot-notation -csdk repository list --where.embedding.vector '[0.1,0.2,0.3]' --where.embedding.distance 1.0 --select title,embeddingVectorDistance +csdk repository list --where.embedding.vector '[0.1,0.2,0.3]' --where.embedding.distance 1.0 --select name,embeddingVectorDistance ``` ### Vector semantic search via `embedding` with --auto-embed ```bash # --auto-embed converts text to vectors using the configured embedder (e.g. Ollama nomic-embed-text) -EMBEDDER_PROVIDER=ollama csdk repository search "semantic query" --auto-embed --select title,embeddingVectorDistance -EMBEDDER_PROVIDER=ollama csdk repository list --where.embedding.vector "semantic query" --auto-embed --select title,embeddingVectorDistance +EMBEDDER_PROVIDER=ollama csdk repository search "semantic query" --auto-embed --select name,embeddingVectorDistance +EMBEDDER_PROVIDER=ollama csdk repository list --where.embedding.vector "semantic query" --auto-embed --select name,embeddingVectorDistance ``` ### Create/update with auto-embedded `embedding` via --auto-embed @@ -88,68 +88,74 @@ EMBEDDER_PROVIDER=ollama csdk repository update --embedding "new text to embed" ### Fuzzy search via trigram similarity (`trgmCloneUrl`) ```bash -csdk repository list --where.trgmCloneUrl.value "approximate query" --where.trgmCloneUrl.threshold 0.3 --select title,cloneUrlTrgmSimilarity +csdk repository list --where.trgmCloneUrl.value "approximate query" --where.trgmCloneUrl.threshold 0.3 --select name,cloneUrlTrgmSimilarity ``` ### Fuzzy search via trigram similarity (`trgmDefaultBranch`) ```bash -csdk repository list --where.trgmDefaultBranch.value "approximate query" --where.trgmDefaultBranch.threshold 0.3 --select title,defaultBranchTrgmSimilarity +csdk repository list --where.trgmDefaultBranch.value "approximate query" --where.trgmDefaultBranch.threshold 0.3 --select name,defaultBranchTrgmSimilarity ``` ### Fuzzy search via trigram similarity (`trgmDescription`) ```bash -csdk repository list --where.trgmDescription.value "approximate query" --where.trgmDescription.threshold 0.3 --select title,descriptionTrgmSimilarity +csdk repository list --where.trgmDescription.value "approximate query" --where.trgmDescription.threshold 0.3 --select name,descriptionTrgmSimilarity +``` + +### Fuzzy search via trigram similarity (`trgmEmbeddingModel`) + +```bash +csdk repository list --where.trgmEmbeddingModel.value "approximate query" --where.trgmEmbeddingModel.threshold 0.3 --select name,embeddingModelTrgmSimilarity ``` ### Fuzzy search via trigram similarity (`trgmExternalId`) ```bash -csdk repository list --where.trgmExternalId.value "approximate query" --where.trgmExternalId.threshold 0.3 --select title,externalIdTrgmSimilarity +csdk repository list --where.trgmExternalId.value "approximate query" --where.trgmExternalId.threshold 0.3 --select name,externalIdTrgmSimilarity ``` ### Fuzzy search via trigram similarity (`trgmName`) ```bash -csdk repository list --where.trgmName.value "approximate query" --where.trgmName.threshold 0.3 --select title,nameTrgmSimilarity +csdk repository list --where.trgmName.value "approximate query" --where.trgmName.threshold 0.3 --select name,nameTrgmSimilarity ``` ### Fuzzy search via trigram similarity (`trgmProvider`) ```bash -csdk repository list --where.trgmProvider.value "approximate query" --where.trgmProvider.threshold 0.3 --select title,providerTrgmSimilarity +csdk repository list --where.trgmProvider.value "approximate query" --where.trgmProvider.threshold 0.3 --select name,providerTrgmSimilarity ``` ### Full-text search via tsvector (`search`) ```bash -csdk repository list --where.search "search query" --select title,tsvRank +csdk repository list --where.search "search query" --select name,searchTsvRank ``` ### Fuzzy search via trigram similarity (`trgmSlug`) ```bash -csdk repository list --where.trgmSlug.value "approximate query" --where.trgmSlug.threshold 0.3 --select title,slugTrgmSimilarity +csdk repository list --where.trgmSlug.value "approximate query" --where.trgmSlug.threshold 0.3 --select name,slugTrgmSimilarity ``` ### Fuzzy search via trigram similarity (`trgmVisibility`) ```bash -csdk repository list --where.trgmVisibility.value "approximate query" --where.trgmVisibility.threshold 0.3 --select title,visibilityTrgmSimilarity +csdk repository list --where.trgmVisibility.value "approximate query" --where.trgmVisibility.threshold 0.3 --select name,visibilityTrgmSimilarity ``` ### Composite search (unifiedSearch dispatches to all text adapters) ```bash -csdk repository list --where.unifiedSearch "search query" --select title,cloneUrlTrgmSimilarity,defaultBranchTrgmSimilarity,descriptionTrgmSimilarity,externalIdTrgmSimilarity,nameTrgmSimilarity,providerTrgmSimilarity,tsvRank,searchScore,slugTrgmSimilarity,visibilityTrgmSimilarity +csdk repository list --where.unifiedSearch "search query" --select name,cloneUrlTrgmSimilarity,defaultBranchTrgmSimilarity,descriptionTrgmSimilarity,embeddingModelTrgmSimilarity,externalIdTrgmSimilarity,nameTrgmSimilarity,providerTrgmSimilarity,searchTsvRank,searchScore,slugTrgmSimilarity,visibilityTrgmSimilarity ``` ### Search with pagination and field projection ```bash -csdk repository list --where.unifiedSearch "query" --limit 10 --select id,title,searchScore -csdk repository search "query" --limit 10 --select id,title,searchScore +csdk repository list --where.unifiedSearch "query" --limit 10 --select id,name,searchScore +csdk repository search "query" --limit 10 --select id,name,searchScore ``` ### Create a repository diff --git a/.agents/skills/cli-compute/references/resource-declared-capacity.md b/.agents/skills/cli-compute/references/resource-declared-capacity.md index 679f182458..f086d9ab02 100644 --- a/.agents/skills/cli-compute/references/resource-declared-capacity.md +++ b/.agents/skills/cli-compute/references/resource-declared-capacity.md @@ -12,7 +12,6 @@ csdk resource-declared-capacity list --where.. --orderBy csdk resource-declared-capacity find-first --where.. csdk resource-declared-capacity get --id -csdk resource-declared-capacity create --cpuLimitMillicores --cpuRequestMillicores --installationId --isTransient --kind --memoryLimitBytes --memoryRequestBytes --namespaceId --podCountMax --podCountMin --source --sourceId --storageSizeBytes --storageTotalBytes csdk resource-declared-capacity update --id [--cpuLimitMillicores ] [--cpuRequestMillicores ] [--installationId ] [--isTransient ] [--kind ] [--memoryLimitBytes ] [--memoryRequestBytes ] [--namespaceId ] [--podCountMax ] [--podCountMin ] [--source ] [--sourceId ] [--storageSizeBytes ] [--storageTotalBytes ] csdk resource-declared-capacity delete --id ``` @@ -55,12 +54,6 @@ csdk resource-declared-capacity list --select id,id csdk resource-declared-capacity list --where.id.equalTo --orderBy ID_ASC ``` -### Create a resourceDeclaredCapacity - -```bash -csdk resource-declared-capacity create --cpuLimitMillicores --cpuRequestMillicores --installationId --isTransient --kind --memoryLimitBytes --memoryRequestBytes --namespaceId --podCountMax --podCountMin --source --sourceId --storageSizeBytes --storageTotalBytes -``` - ### Get a resourceDeclaredCapacity by id ```bash diff --git a/.agents/skills/cli-compute/references/resource-observed-storage.md b/.agents/skills/cli-compute/references/resource-observed-storage.md index b9f74d2221..2ca3c396ab 100644 --- a/.agents/skills/cli-compute/references/resource-observed-storage.md +++ b/.agents/skills/cli-compute/references/resource-observed-storage.md @@ -12,7 +12,6 @@ csdk resource-observed-storage list --where.. --orderBy csdk resource-observed-storage find-first --where.. csdk resource-observed-storage get --id -csdk resource-observed-storage create --capacity --capacityBytes --claimName --declaredStorageClass --declaredStorageSizeBytes --declaredStorageTotalBytes --installationId --isBound --kind --namespaceId --phase --requested --requestedBytes --resourceId --resourceStatus --slug --storageClass --storageName csdk resource-observed-storage update --id [--capacity ] [--capacityBytes ] [--claimName ] [--declaredStorageClass ] [--declaredStorageSizeBytes ] [--declaredStorageTotalBytes ] [--installationId ] [--isBound ] [--kind ] [--namespaceId ] [--phase ] [--requested ] [--requestedBytes ] [--resourceId ] [--resourceStatus ] [--slug ] [--storageClass ] [--storageName ] csdk resource-observed-storage delete --id ``` @@ -55,12 +54,6 @@ csdk resource-observed-storage list --select id,id csdk resource-observed-storage list --where.id.equalTo --orderBy ID_ASC ``` -### Create a resourceObservedStorage - -```bash -csdk resource-observed-storage create --capacity --capacityBytes --claimName --declaredStorageClass --declaredStorageSizeBytes --declaredStorageTotalBytes --installationId --isBound --kind --namespaceId --phase --requested --requestedBytes --resourceId --resourceStatus --slug --storageClass --storageName -``` - ### Get a resourceObservedStorage by id ```bash diff --git a/.agents/skills/cli-compute/references/resource-utilization-daily.md b/.agents/skills/cli-compute/references/resource-utilization-daily.md deleted file mode 100644 index 278a94106c..0000000000 --- a/.agents/skills/cli-compute/references/resource-utilization-daily.md +++ /dev/null @@ -1,68 +0,0 @@ -# resourceUtilizationDaily - - - -CRUD operations for ResourceUtilizationDaily records via csdk CLI - -## Usage - -```bash -csdk resource-utilization-daily list -csdk resource-utilization-daily list --where.. --orderBy -csdk resource-utilization-daily list --limit 10 --after -csdk resource-utilization-daily find-first --where.. -csdk resource-utilization-daily get --id -csdk resource-utilization-daily create --avgMemoryBytes --cpuLimitMillicores --cpuPeakUtilization --cpuRequestHeadroomMillicores --cpuRequestMillicores --date --gbSeconds --kind --maxCpuMillicores --maxMemoryBytes --memoryLimitBytes --memoryPeakUtilization --memoryRequestBytes --memoryRequestHeadroomBytes --namespaceId --replicas --resourceId --runtimeSeconds --sampleCount -csdk resource-utilization-daily update --id [--avgMemoryBytes ] [--cpuLimitMillicores ] [--cpuPeakUtilization ] [--cpuRequestHeadroomMillicores ] [--cpuRequestMillicores ] [--date ] [--gbSeconds ] [--kind ] [--maxCpuMillicores ] [--maxMemoryBytes ] [--memoryLimitBytes ] [--memoryPeakUtilization ] [--memoryRequestBytes ] [--memoryRequestHeadroomBytes ] [--namespaceId ] [--replicas ] [--resourceId ] [--runtimeSeconds ] [--sampleCount ] -csdk resource-utilization-daily delete --id -``` - -## Examples - -### List resourceUtilizationDaily records - -```bash -csdk resource-utilization-daily list -``` - -### List resourceUtilizationDaily records with pagination - -```bash -csdk resource-utilization-daily list --limit 10 --offset 0 -``` - -### List resourceUtilizationDaily records with cursor pagination - -```bash -csdk resource-utilization-daily list --limit 10 --after -``` - -### Find first matching resourceUtilizationDaily - -```bash -csdk resource-utilization-daily find-first --where.id.equalTo -``` - -### List resourceUtilizationDaily records with field selection - -```bash -csdk resource-utilization-daily list --select id,id -``` - -### List resourceUtilizationDaily records with filtering and ordering - -```bash -csdk resource-utilization-daily list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a resourceUtilizationDaily - -```bash -csdk resource-utilization-daily create --avgMemoryBytes --cpuLimitMillicores --cpuPeakUtilization --cpuRequestHeadroomMillicores --cpuRequestMillicores --date --gbSeconds --kind --maxCpuMillicores --maxMemoryBytes --memoryLimitBytes --memoryPeakUtilization --memoryRequestBytes --memoryRequestHeadroomBytes --namespaceId --replicas --resourceId --runtimeSeconds --sampleCount -``` - -### Get a resourceUtilizationDaily by id - -```bash -csdk resource-utilization-daily get --id -``` diff --git a/.agents/skills/cli-compute/references/resource-utilization.md b/.agents/skills/cli-compute/references/resource-utilization.md index 7d67a62cbf..adc76c8615 100644 --- a/.agents/skills/cli-compute/references/resource-utilization.md +++ b/.agents/skills/cli-compute/references/resource-utilization.md @@ -12,7 +12,6 @@ csdk resource-utilization list --where.. --orderBy csdk resource-utilization list --limit 10 --after csdk resource-utilization find-first --where.. csdk resource-utilization get --id -csdk resource-utilization create --avgMemoryBytes --cpuLimitMillicores --cpuPeakUtilization --cpuRequestHeadroomMillicores --cpuRequestMillicores --date --gbSeconds --kind --maxCpuMillicores --maxMemoryBytes --memoryLimitBytes --memoryPeakUtilization --memoryRequestBytes --memoryRequestHeadroomBytes --namespaceId --replicas --resourceId --runtimeSeconds --sampleCount csdk resource-utilization update --id [--avgMemoryBytes ] [--cpuLimitMillicores ] [--cpuPeakUtilization ] [--cpuRequestHeadroomMillicores ] [--cpuRequestMillicores ] [--date ] [--gbSeconds ] [--kind ] [--maxCpuMillicores ] [--maxMemoryBytes ] [--memoryLimitBytes ] [--memoryPeakUtilization ] [--memoryRequestBytes ] [--memoryRequestHeadroomBytes ] [--namespaceId ] [--replicas ] [--resourceId ] [--runtimeSeconds ] [--sampleCount ] csdk resource-utilization delete --id ``` @@ -55,12 +54,6 @@ csdk resource-utilization list --select id,id csdk resource-utilization list --where.id.equalTo --orderBy ID_ASC ``` -### Create a resourceUtilization - -```bash -csdk resource-utilization create --avgMemoryBytes --cpuLimitMillicores --cpuPeakUtilization --cpuRequestHeadroomMillicores --cpuRequestMillicores --date --gbSeconds --kind --maxCpuMillicores --maxMemoryBytes --memoryLimitBytes --memoryPeakUtilization --memoryRequestBytes --memoryRequestHeadroomBytes --namespaceId --replicas --resourceId --runtimeSeconds --sampleCount -``` - ### Get a resourceUtilization by id ```bash diff --git a/.agents/skills/cli-compute/references/resources-health.md b/.agents/skills/cli-compute/references/resources-health.md index e177136cb3..9f78336622 100644 --- a/.agents/skills/cli-compute/references/resources-health.md +++ b/.agents/skills/cli-compute/references/resources-health.md @@ -12,7 +12,6 @@ csdk resources-health list --where.. --orderBy csdk resources-health list --limit 10 --after csdk resources-health find-first --where.. csdk resources-health get --id -csdk resources-health create --annotations --cpuLimitMillicores --cpuRequestMillicores --createdBy --createdByPrincipal --databaseId --errorCount --imageRef --installationId --integrations --kind --labels --lastError --lastHeartbeatAt --memoryLimitBytes --memoryRequestBytes --name --namespaceId --realm --replicas --requiredConfigs --requiredSecrets --resourceDefinitionId --slug --spec --status --statusDetail --statusObserved --storageClass --storageSizeBytes --storageTotalBytes --updatedBy --updatedByPrincipal csdk resources-health update --id [--annotations ] [--cpuLimitMillicores ] [--cpuRequestMillicores ] [--createdBy ] [--createdByPrincipal ] [--databaseId ] [--errorCount ] [--imageRef ] [--installationId ] [--integrations ] [--kind ] [--labels ] [--lastError ] [--lastHeartbeatAt ] [--memoryLimitBytes ] [--memoryRequestBytes ] [--name ] [--namespaceId ] [--realm ] [--replicas ] [--requiredConfigs ] [--requiredSecrets ] [--resourceDefinitionId ] [--slug ] [--spec ] [--status ] [--statusDetail ] [--statusObserved ] [--storageClass ] [--storageSizeBytes ] [--storageTotalBytes ] [--updatedBy ] [--updatedByPrincipal ] csdk resources-health delete --id ``` @@ -55,12 +54,6 @@ csdk resources-health list --select id,id csdk resources-health list --where.id.equalTo --orderBy ID_ASC ``` -### Create a resourcesHealth - -```bash -csdk resources-health create --annotations --cpuLimitMillicores --cpuRequestMillicores --createdBy --createdByPrincipal --databaseId --errorCount --imageRef --installationId --integrations --kind --labels --lastError --lastHeartbeatAt --memoryLimitBytes --memoryRequestBytes --name --namespaceId --realm --replicas --requiredConfigs --requiredSecrets --resourceDefinitionId --slug --spec --status --statusDetail --statusObserved --storageClass --storageSizeBytes --storageTotalBytes --updatedBy --updatedByPrincipal -``` - ### Get a resourcesHealth by id ```bash diff --git a/.agents/skills/cli-compute/references/resources-requirements-state.md b/.agents/skills/cli-compute/references/resources-requirements-state.md index e66d666603..bd8d5db7ef 100644 --- a/.agents/skills/cli-compute/references/resources-requirements-state.md +++ b/.agents/skills/cli-compute/references/resources-requirements-state.md @@ -12,7 +12,6 @@ csdk resources-requirements-state list --where.. --orderBy csdk resources-requirements-state find-first --where.. csdk resources-requirements-state get --id -csdk resources-requirements-state create --configHash --configObjectName --requirementsHash --resourceId --secretsHash --secretsObjectName --slug csdk resources-requirements-state update --id [--configHash ] [--configObjectName ] [--requirementsHash ] [--resourceId ] [--secretsHash ] [--secretsObjectName ] [--slug ] csdk resources-requirements-state delete --id ``` @@ -55,12 +54,6 @@ csdk resources-requirements-state list --select id,id csdk resources-requirements-state list --where.id.equalTo --orderBy ID_ASC ``` -### Create a resourcesRequirementsState - -```bash -csdk resources-requirements-state create --configHash --configObjectName --requirementsHash --resourceId --secretsHash --secretsObjectName --slug -``` - ### Get a resourcesRequirementsState by id ```bash diff --git a/.agents/skills/cli-compute/references/resources-resolved-requirement.md b/.agents/skills/cli-compute/references/resources-resolved-requirement.md index b5d7c57a79..6831b204e2 100644 --- a/.agents/skills/cli-compute/references/resources-resolved-requirement.md +++ b/.agents/skills/cli-compute/references/resources-resolved-requirement.md @@ -12,7 +12,6 @@ csdk resources-resolved-requirement list --where.. --orderBy csdk resources-resolved-requirement list --limit 10 --after csdk resources-resolved-requirement find-first --where.. csdk resources-resolved-requirement get --id -csdk resources-resolved-requirement create --atomId --configObjectName --name --namespaceId --present --realm --required --requirementKind --resourceId --secretsObjectName --slug csdk resources-resolved-requirement update --id [--atomId ] [--configObjectName ] [--name ] [--namespaceId ] [--present ] [--realm ] [--required ] [--requirementKind ] [--resourceId ] [--secretsObjectName ] [--slug ] csdk resources-resolved-requirement delete --id ``` @@ -55,12 +54,6 @@ csdk resources-resolved-requirement list --select id,id csdk resources-resolved-requirement list --where.id.equalTo --orderBy ID_ASC ``` -### Create a resourcesResolvedRequirement - -```bash -csdk resources-resolved-requirement create --atomId --configObjectName --name --namespaceId --present --realm --required --requirementKind --resourceId --secretsObjectName --slug -``` - ### Get a resourcesResolvedRequirement by id ```bash diff --git a/.agents/skills/cli-compute/references/secret-definition.md b/.agents/skills/cli-compute/references/secret-definition.md deleted file mode 100644 index f4e5552e82..0000000000 --- a/.agents/skills/cli-compute/references/secret-definition.md +++ /dev/null @@ -1,68 +0,0 @@ -# secretDefinition - - - -CRUD operations for SecretDefinition records via csdk CLI - -## Usage - -```bash -csdk secret-definition list -csdk secret-definition list --where.. --orderBy -csdk secret-definition list --limit 10 --after -csdk secret-definition find-first --where.. -csdk secret-definition get --id -csdk secret-definition create --name --databaseId [--description ] [--isBuiltIn ] [--labels ] [--annotations ] -csdk secret-definition update --id [--name ] [--description ] [--isBuiltIn ] [--labels ] [--annotations ] [--databaseId ] -csdk secret-definition delete --id -``` - -## Examples - -### List secretDefinition records - -```bash -csdk secret-definition list -``` - -### List secretDefinition records with pagination - -```bash -csdk secret-definition list --limit 10 --offset 0 -``` - -### List secretDefinition records with cursor pagination - -```bash -csdk secret-definition list --limit 10 --after -``` - -### Find first matching secretDefinition - -```bash -csdk secret-definition find-first --where.id.equalTo -``` - -### List secretDefinition records with field selection - -```bash -csdk secret-definition list --select id,id -``` - -### List secretDefinition records with filtering and ordering - -```bash -csdk secret-definition list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a secretDefinition - -```bash -csdk secret-definition create --name --databaseId [--description ] [--isBuiltIn ] [--labels ] [--annotations ] -``` - -### Get a secretDefinition by id - -```bash -csdk secret-definition get --id -``` diff --git a/.agents/skills/cli-compute/references/service-binding.md b/.agents/skills/cli-compute/references/service-binding.md new file mode 100644 index 0000000000..b50ecfe71c --- /dev/null +++ b/.agents/skills/cli-compute/references/service-binding.md @@ -0,0 +1,68 @@ +# serviceBinding + + + +CRUD operations for ServiceBinding records via csdk CLI + +## Usage + +```bash +csdk service-binding list +csdk service-binding list --where.. --orderBy +csdk service-binding list --limit 10 --after +csdk service-binding find-first --where.. +csdk service-binding get --id +csdk service-binding create --databaseId --installationId --installationScope --kind --namespaceId [--createdBy ] [--createdByPrincipal ] [--lastError ] [--metadata ] [--observedHost ] [--realm ] [--status ] [--updatedBy ] [--updatedByPrincipal ] +csdk service-binding update --id [--createdBy ] [--createdByPrincipal ] [--databaseId ] [--installationId ] [--installationScope ] [--kind ] [--lastError ] [--metadata ] [--namespaceId ] [--observedHost ] [--realm ] [--status ] [--updatedBy ] [--updatedByPrincipal ] +csdk service-binding delete --id +``` + +## Examples + +### List serviceBinding records + +```bash +csdk service-binding list +``` + +### List serviceBinding records with pagination + +```bash +csdk service-binding list --limit 10 --offset 0 +``` + +### List serviceBinding records with cursor pagination + +```bash +csdk service-binding list --limit 10 --after +``` + +### Find first matching serviceBinding + +```bash +csdk service-binding find-first --where.id.equalTo +``` + +### List serviceBinding records with field selection + +```bash +csdk service-binding list --select id,id +``` + +### List serviceBinding records with filtering and ordering + +```bash +csdk service-binding list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a serviceBinding + +```bash +csdk service-binding create --databaseId --installationId --installationScope --kind --namespaceId [--createdBy ] [--createdByPrincipal ] [--lastError ] [--metadata ] [--observedHost ] [--realm ] [--status ] [--updatedBy ] [--updatedByPrincipal ] +``` + +### Get a serviceBinding by id + +```bash +csdk service-binding get --id +``` diff --git a/.agents/skills/cli-config/references/app-internal-secret.md b/.agents/skills/cli-config/references/app-internal-secret.md index 6f4f9f5cfe..7ede417e61 100644 --- a/.agents/skills/cli-config/references/app-internal-secret.md +++ b/.agents/skills/cli-config/references/app-internal-secret.md @@ -12,7 +12,6 @@ csdk app-internal-secret list --where.. --orderBy csdk app-internal-secret list --limit 10 --after csdk app-internal-secret find-first --where.. csdk app-internal-secret get --id -csdk app-internal-secret create --annotations --description --labels --name --realm --retiredAt --rotatedAt csdk app-internal-secret update --id [--annotations ] [--description ] [--labels ] [--name ] [--realm ] [--retiredAt ] [--rotatedAt ] csdk app-internal-secret delete --id ``` @@ -55,12 +54,6 @@ csdk app-internal-secret list --select id,id csdk app-internal-secret list --where.id.equalTo --orderBy ID_ASC ``` -### Create a appInternalSecret - -```bash -csdk app-internal-secret create --annotations --description --labels --name --realm --retiredAt --rotatedAt -``` - ### Get a appInternalSecret by id ```bash diff --git a/.agents/skills/cli-config/references/internal-secret.md b/.agents/skills/cli-config/references/internal-secret.md index 397696c82b..7535ad700c 100644 --- a/.agents/skills/cli-config/references/internal-secret.md +++ b/.agents/skills/cli-config/references/internal-secret.md @@ -12,7 +12,6 @@ csdk internal-secret list --where.. --orderBy csdk internal-secret list --limit 10 --after csdk internal-secret find-first --where.. csdk internal-secret get --id -csdk internal-secret create --annotations --databaseId --description --labels --name --realm --retiredAt --rotatedAt csdk internal-secret update --id [--annotations ] [--databaseId ] [--description ] [--labels ] [--name ] [--realm ] [--retiredAt ] [--rotatedAt ] csdk internal-secret delete --id ``` @@ -55,12 +54,6 @@ csdk internal-secret list --select id,id csdk internal-secret list --where.id.equalTo --orderBy ID_ASC ``` -### Create a internalSecret - -```bash -csdk internal-secret create --annotations --databaseId --description --labels --name --realm --retiredAt --rotatedAt -``` - ### Get a internalSecret by id ```bash diff --git a/.agents/skills/cli-config/references/org-secrets-del.md b/.agents/skills/cli-config/references/org-secrets-del.md deleted file mode 100644 index 114e99a8b5..0000000000 --- a/.agents/skills/cli-config/references/org-secrets-del.md +++ /dev/null @@ -1,19 +0,0 @@ -# orgSecretsDel - - - -Execute the orgSecretsDel mutation - -## Usage - -```bash -csdk org-secrets-del --input.clientMutationId --input.ownerId --input.secretName --input.namespaceId -``` - -## Examples - -### Run orgSecretsDel - -```bash -csdk org-secrets-del --input.clientMutationId --input.ownerId --input.secretName --input.namespaceId -``` diff --git a/.agents/skills/cli-config/references/org-secrets-remove-array.md b/.agents/skills/cli-config/references/org-secrets-remove-array.md deleted file mode 100644 index 84857516ed..0000000000 --- a/.agents/skills/cli-config/references/org-secrets-remove-array.md +++ /dev/null @@ -1,19 +0,0 @@ -# orgSecretsRemoveArray - - - -Execute the orgSecretsRemoveArray mutation - -## Usage - -```bash -csdk org-secrets-remove-array --input.clientMutationId --input.ownerId --input.secretNames --input.namespaceId -``` - -## Examples - -### Run orgSecretsRemoveArray - -```bash -csdk org-secrets-remove-array --input.clientMutationId --input.ownerId --input.secretNames --input.namespaceId -``` diff --git a/.agents/skills/cli-config/references/org-secrets-rotate.md b/.agents/skills/cli-config/references/org-secrets-rotate.md deleted file mode 100644 index f02b7a9f6f..0000000000 --- a/.agents/skills/cli-config/references/org-secrets-rotate.md +++ /dev/null @@ -1,19 +0,0 @@ -# orgSecretsRotate - - - -Execute the orgSecretsRotate mutation - -## Usage - -```bash -csdk org-secrets-rotate --input.clientMutationId --input.ownerId --input.secretName --input.secretValue --input.namespaceId --input.algo -``` - -## Examples - -### Run orgSecretsRotate - -```bash -csdk org-secrets-rotate --input.clientMutationId --input.ownerId --input.secretName --input.secretValue --input.namespaceId --input.algo -``` diff --git a/.agents/skills/cli-config/references/org-secrets-set.md b/.agents/skills/cli-config/references/org-secrets-set.md deleted file mode 100644 index 5f7873c56e..0000000000 --- a/.agents/skills/cli-config/references/org-secrets-set.md +++ /dev/null @@ -1,19 +0,0 @@ -# orgSecretsSet - - - -Execute the orgSecretsSet mutation - -## Usage - -```bash -csdk org-secrets-set --input.clientMutationId --input.scopeOwnerId --input.secretName --input.secretValue --input.secretNamespaceId --input.algo -``` - -## Examples - -### Run orgSecretsSet - -```bash -csdk org-secrets-set --input.clientMutationId --input.scopeOwnerId --input.secretName --input.secretValue --input.secretNamespaceId --input.algo -``` diff --git a/.agents/skills/cli-config/references/platform-config-definition.md b/.agents/skills/cli-config/references/platform-config-definition.md deleted file mode 100644 index 472c8d594c..0000000000 --- a/.agents/skills/cli-config/references/platform-config-definition.md +++ /dev/null @@ -1,68 +0,0 @@ -# platformConfigDefinition - - - -CRUD operations for PlatformConfigDefinition records via csdk CLI - -## Usage - -```bash -csdk platform-config-definition list -csdk platform-config-definition list --where.. --orderBy -csdk platform-config-definition list --limit 10 --after -csdk platform-config-definition find-first --where.. -csdk platform-config-definition get --id -csdk platform-config-definition create --name [--description ] [--defaultValue ] [--isBuiltIn ] [--labels ] [--annotations ] -csdk platform-config-definition update --id [--name ] [--description ] [--defaultValue ] [--isBuiltIn ] [--labels ] [--annotations ] -csdk platform-config-definition delete --id -``` - -## Examples - -### List platformConfigDefinition records - -```bash -csdk platform-config-definition list -``` - -### List platformConfigDefinition records with pagination - -```bash -csdk platform-config-definition list --limit 10 --offset 0 -``` - -### List platformConfigDefinition records with cursor pagination - -```bash -csdk platform-config-definition list --limit 10 --after -``` - -### Find first matching platformConfigDefinition - -```bash -csdk platform-config-definition find-first --where.id.equalTo -``` - -### List platformConfigDefinition records with field selection - -```bash -csdk platform-config-definition list --select id,id -``` - -### List platformConfigDefinition records with filtering and ordering - -```bash -csdk platform-config-definition list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a platformConfigDefinition - -```bash -csdk platform-config-definition create --name [--description ] [--defaultValue ] [--isBuiltIn ] [--labels ] [--annotations ] -``` - -### Get a platformConfigDefinition by id - -```bash -csdk platform-config-definition get --id -``` diff --git a/.agents/skills/cli-config/references/platform-internal-secret.md b/.agents/skills/cli-config/references/platform-internal-secret.md index 4c61905356..3c805baa56 100644 --- a/.agents/skills/cli-config/references/platform-internal-secret.md +++ b/.agents/skills/cli-config/references/platform-internal-secret.md @@ -12,7 +12,6 @@ csdk platform-internal-secret list --where.. --orderBy csdk platform-internal-secret find-first --where.. csdk platform-internal-secret get --id -csdk platform-internal-secret create --annotations --description --labels --name --realm --retiredAt --rotatedAt csdk platform-internal-secret update --id [--annotations ] [--description ] [--labels ] [--name ] [--realm ] [--retiredAt ] [--rotatedAt ] csdk platform-internal-secret delete --id ``` @@ -55,12 +54,6 @@ csdk platform-internal-secret list --select id,id csdk platform-internal-secret list --where.id.equalTo --orderBy ID_ASC ``` -### Create a platformInternalSecret - -```bash -csdk platform-internal-secret create --annotations --description --labels --name --realm --retiredAt --rotatedAt -``` - ### Get a platformInternalSecret by id ```bash diff --git a/.agents/skills/cli-config/references/platform-secret.md b/.agents/skills/cli-config/references/platform-secret.md index b2fb25d0e6..2b2d2e37a1 100644 --- a/.agents/skills/cli-config/references/platform-secret.md +++ b/.agents/skills/cli-config/references/platform-secret.md @@ -12,7 +12,6 @@ csdk platform-secret list --where.. --orderBy csdk platform-secret list --limit 10 --after csdk platform-secret find-first --where.. csdk platform-secret get --id -csdk platform-secret create --annotations --description --labels --name --namespaceId --provider --realm --retiredAt --rotatedAt csdk platform-secret update --id [--annotations ] [--description ] [--labels ] [--name ] [--namespaceId ] [--provider ] [--realm ] [--retiredAt ] [--rotatedAt ] csdk platform-secret delete --id ``` @@ -55,12 +54,6 @@ csdk platform-secret list --select id,id csdk platform-secret list --where.id.equalTo --orderBy ID_ASC ``` -### Create a platformSecret - -```bash -csdk platform-secret create --annotations --description --labels --name --namespaceId --provider --realm --retiredAt --rotatedAt -``` - ### Get a platformSecret by id ```bash diff --git a/.agents/skills/cli-config/references/secret.md b/.agents/skills/cli-config/references/secret.md index 78363f4ea4..e26ee321c8 100644 --- a/.agents/skills/cli-config/references/secret.md +++ b/.agents/skills/cli-config/references/secret.md @@ -12,7 +12,6 @@ csdk secret list --where.. --orderBy csdk secret list --limit 10 --after csdk secret find-first --where.. csdk secret get --id -csdk secret create --annotations --databaseId --description --labels --name --namespaceId --provider --realm --retiredAt --rotatedAt csdk secret update --id [--annotations ] [--databaseId ] [--description ] [--labels ] [--name ] [--namespaceId ] [--provider ] [--realm ] [--retiredAt ] [--rotatedAt ] csdk secret delete --id ``` @@ -55,12 +54,6 @@ csdk secret list --select id,id csdk secret list --where.id.equalTo --orderBy ID_ASC ``` -### Create a secret - -```bash -csdk secret create --annotations --databaseId --description --labels --name --namespaceId --provider --realm --retiredAt --rotatedAt -``` - ### Get a secret by id ```bash diff --git a/.agents/skills/cli-infra/references/infra-commit.md b/.agents/skills/cli-infra/references/infra-commit.md deleted file mode 100644 index 1a477148b8..0000000000 --- a/.agents/skills/cli-infra/references/infra-commit.md +++ /dev/null @@ -1,68 +0,0 @@ -# infraCommit - - - -CRUD operations for InfraCommit records via csdk CLI - -## Usage - -```bash -csdk infra-commit list -csdk infra-commit list --where.. --orderBy -csdk infra-commit list --limit 10 --after -csdk infra-commit find-first --where.. -csdk infra-commit get --id -csdk infra-commit create --scopeId --storeId [--authorId ] [--committerId ] [--date ] [--message ] [--parentIds ] [--treeId ] -csdk infra-commit update --id [--authorId ] [--committerId ] [--date ] [--message ] [--parentIds ] [--scopeId ] [--storeId ] [--treeId ] -csdk infra-commit delete --id -``` - -## Examples - -### List infraCommit records - -```bash -csdk infra-commit list -``` - -### List infraCommit records with pagination - -```bash -csdk infra-commit list --limit 10 --offset 0 -``` - -### List infraCommit records with cursor pagination - -```bash -csdk infra-commit list --limit 10 --after -``` - -### Find first matching infraCommit - -```bash -csdk infra-commit find-first --where.id.equalTo -``` - -### List infraCommit records with field selection - -```bash -csdk infra-commit list --select id,id -``` - -### List infraCommit records with filtering and ordering - -```bash -csdk infra-commit list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a infraCommit - -```bash -csdk infra-commit create --scopeId --storeId [--authorId ] [--committerId ] [--date ] [--message ] [--parentIds ] [--treeId ] -``` - -### Get a infraCommit by id - -```bash -csdk infra-commit get --id -``` diff --git a/.agents/skills/cli-infra/references/infra-get-all-record.md b/.agents/skills/cli-infra/references/infra-get-all-record.md deleted file mode 100644 index 804bae7bd2..0000000000 --- a/.agents/skills/cli-infra/references/infra-get-all-record.md +++ /dev/null @@ -1,68 +0,0 @@ -# infraGetAllRecord - - - -CRUD operations for InfraGetAllRecord records via csdk CLI - -## Usage - -```bash -csdk infra-get-all-record list -csdk infra-get-all-record list --where.. --orderBy -csdk infra-get-all-record list --limit 10 --after -csdk infra-get-all-record find-first --where.. -csdk infra-get-all-record get --id -csdk infra-get-all-record create --data --path -csdk infra-get-all-record update --id [--data ] [--path ] -csdk infra-get-all-record delete --id -``` - -## Examples - -### List infraGetAllRecord records - -```bash -csdk infra-get-all-record list -``` - -### List infraGetAllRecord records with pagination - -```bash -csdk infra-get-all-record list --limit 10 --offset 0 -``` - -### List infraGetAllRecord records with cursor pagination - -```bash -csdk infra-get-all-record list --limit 10 --after -``` - -### Find first matching infraGetAllRecord - -```bash -csdk infra-get-all-record find-first --where.id.equalTo -``` - -### List infraGetAllRecord records with field selection - -```bash -csdk infra-get-all-record list --select id,id -``` - -### List infraGetAllRecord records with filtering and ordering - -```bash -csdk infra-get-all-record list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a infraGetAllRecord - -```bash -csdk infra-get-all-record create --data --path -``` - -### Get a infraGetAllRecord by id - -```bash -csdk infra-get-all-record get --id -``` diff --git a/.agents/skills/cli-infra/references/infra-init-empty-repo.md b/.agents/skills/cli-infra/references/infra-init-empty-repo.md deleted file mode 100644 index ba51c953fd..0000000000 --- a/.agents/skills/cli-infra/references/infra-init-empty-repo.md +++ /dev/null @@ -1,19 +0,0 @@ -# infraInitEmptyRepo - - - -Execute the infraInitEmptyRepo mutation - -## Usage - -```bash -csdk infra-init-empty-repo --input.clientMutationId --input.sId --input.storeId -``` - -## Examples - -### Run infraInitEmptyRepo - -```bash -csdk infra-init-empty-repo --input.clientMutationId --input.sId --input.storeId -``` diff --git a/.agents/skills/cli-infra/references/infra-insert-node-at-path.md b/.agents/skills/cli-infra/references/infra-insert-node-at-path.md deleted file mode 100644 index 193be86277..0000000000 --- a/.agents/skills/cli-infra/references/infra-insert-node-at-path.md +++ /dev/null @@ -1,19 +0,0 @@ -# infraInsertNodeAtPath - - - -Execute the infraInsertNodeAtPath mutation - -## Usage - -```bash -csdk infra-insert-node-at-path --input.clientMutationId --input.data --input.kids --input.ktree --input.path --input.root --input.sId -``` - -## Examples - -### Run infraInsertNodeAtPath - -```bash -csdk infra-insert-node-at-path --input.clientMutationId --input.data --input.kids --input.ktree --input.path --input.root --input.sId -``` diff --git a/.agents/skills/cli-infra/references/infra-object.md b/.agents/skills/cli-infra/references/infra-object.md deleted file mode 100644 index c5c01d2da4..0000000000 --- a/.agents/skills/cli-infra/references/infra-object.md +++ /dev/null @@ -1,68 +0,0 @@ -# infraObject - - - -CRUD operations for InfraObject records via csdk CLI - -## Usage - -```bash -csdk infra-object list -csdk infra-object list --where.. --orderBy -csdk infra-object list --limit 10 --after -csdk infra-object find-first --where.. -csdk infra-object get --id -csdk infra-object create --scopeId [--data ] [--kids ] [--ktree ] -csdk infra-object update --id [--data ] [--kids ] [--ktree ] [--scopeId ] -csdk infra-object delete --id -``` - -## Examples - -### List infraObject records - -```bash -csdk infra-object list -``` - -### List infraObject records with pagination - -```bash -csdk infra-object list --limit 10 --offset 0 -``` - -### List infraObject records with cursor pagination - -```bash -csdk infra-object list --limit 10 --after -``` - -### Find first matching infraObject - -```bash -csdk infra-object find-first --where.id.equalTo -``` - -### List infraObject records with field selection - -```bash -csdk infra-object list --select id,id -``` - -### List infraObject records with filtering and ordering - -```bash -csdk infra-object list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a infraObject - -```bash -csdk infra-object create --scopeId [--data ] [--kids ] [--ktree ] -``` - -### Get a infraObject by id - -```bash -csdk infra-object get --id -``` diff --git a/.agents/skills/cli-infra/references/infra-ref.md b/.agents/skills/cli-infra/references/infra-ref.md deleted file mode 100644 index c7ca9e1732..0000000000 --- a/.agents/skills/cli-infra/references/infra-ref.md +++ /dev/null @@ -1,68 +0,0 @@ -# infraRef - - - -CRUD operations for InfraRef records via csdk CLI - -## Usage - -```bash -csdk infra-ref list -csdk infra-ref list --where.. --orderBy -csdk infra-ref list --limit 10 --after -csdk infra-ref find-first --where.. -csdk infra-ref get --id -csdk infra-ref create --name --scopeId --storeId [--commitId ] -csdk infra-ref update --id [--commitId ] [--name ] [--scopeId ] [--storeId ] -csdk infra-ref delete --id -``` - -## Examples - -### List infraRef records - -```bash -csdk infra-ref list -``` - -### List infraRef records with pagination - -```bash -csdk infra-ref list --limit 10 --offset 0 -``` - -### List infraRef records with cursor pagination - -```bash -csdk infra-ref list --limit 10 --after -``` - -### Find first matching infraRef - -```bash -csdk infra-ref find-first --where.id.equalTo -``` - -### List infraRef records with field selection - -```bash -csdk infra-ref list --select id,id -``` - -### List infraRef records with filtering and ordering - -```bash -csdk infra-ref list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a infraRef - -```bash -csdk infra-ref create --name --scopeId --storeId [--commitId ] -``` - -### Get a infraRef by id - -```bash -csdk infra-ref get --id -``` diff --git a/.agents/skills/cli-infra/references/infra-set-data-at-path.md b/.agents/skills/cli-infra/references/infra-set-data-at-path.md deleted file mode 100644 index cc16941023..0000000000 --- a/.agents/skills/cli-infra/references/infra-set-data-at-path.md +++ /dev/null @@ -1,19 +0,0 @@ -# infraSetDataAtPath - - - -Execute the infraSetDataAtPath mutation - -## Usage - -```bash -csdk infra-set-data-at-path --input.clientMutationId --input.data --input.path --input.root --input.sId -``` - -## Examples - -### Run infraSetDataAtPath - -```bash -csdk infra-set-data-at-path --input.clientMutationId --input.data --input.path --input.root --input.sId -``` diff --git a/.agents/skills/cli-infra/references/infra-store.md b/.agents/skills/cli-infra/references/infra-store.md deleted file mode 100644 index 65996a7955..0000000000 --- a/.agents/skills/cli-infra/references/infra-store.md +++ /dev/null @@ -1,68 +0,0 @@ -# infraStore - - - -CRUD operations for InfraStore records via csdk CLI - -## Usage - -```bash -csdk infra-store list -csdk infra-store list --where.. --orderBy -csdk infra-store list --limit 10 --after -csdk infra-store find-first --where.. -csdk infra-store get --id -csdk infra-store create --name --scopeId [--hash ] -csdk infra-store update --id [--hash ] [--name ] [--scopeId ] -csdk infra-store delete --id -``` - -## Examples - -### List infraStore records - -```bash -csdk infra-store list -``` - -### List infraStore records with pagination - -```bash -csdk infra-store list --limit 10 --offset 0 -``` - -### List infraStore records with cursor pagination - -```bash -csdk infra-store list --limit 10 --after -``` - -### Find first matching infraStore - -```bash -csdk infra-store find-first --where.id.equalTo -``` - -### List infraStore records with field selection - -```bash -csdk infra-store list --select id,id -``` - -### List infraStore records with filtering and ordering - -```bash -csdk infra-store list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a infraStore - -```bash -csdk infra-store create --name --scopeId [--hash ] -``` - -### Get a infraStore by id - -```bash -csdk infra-store get --id -``` diff --git a/.agents/skills/cli-infra/references/platform-infra-get-all-tree-nodes-record.md b/.agents/skills/cli-infra/references/platform-infra-get-all-tree-nodes-record.md index d39b53c3c8..58a6ee1c91 100644 --- a/.agents/skills/cli-infra/references/platform-infra-get-all-tree-nodes-record.md +++ b/.agents/skills/cli-infra/references/platform-infra-get-all-tree-nodes-record.md @@ -12,7 +12,6 @@ csdk platform-infra-get-all-tree-nodes-record list --where.. csdk platform-infra-get-all-tree-nodes-record list --limit 10 --after csdk platform-infra-get-all-tree-nodes-record find-first --where.. csdk platform-infra-get-all-tree-nodes-record get --id -csdk platform-infra-get-all-tree-nodes-record create --data --path csdk platform-infra-get-all-tree-nodes-record update --id [--data ] [--path ] csdk platform-infra-get-all-tree-nodes-record delete --id ``` @@ -55,12 +54,6 @@ csdk platform-infra-get-all-tree-nodes-record list --select id,id csdk platform-infra-get-all-tree-nodes-record list --where.id.equalTo --orderBy ID_ASC ``` -### Create a platformInfraGetAllTreeNodesRecord - -```bash -csdk platform-infra-get-all-tree-nodes-record create --data --path -``` - ### Get a platformInfraGetAllTreeNodesRecord by id ```bash diff --git a/.agents/skills/cli-modules/references/blueprint-construction.md b/.agents/skills/cli-modules/references/blueprint-construction.md index 697a91ecc1..94c05e5185 100644 --- a/.agents/skills/cli-modules/references/blueprint-construction.md +++ b/.agents/skills/cli-modules/references/blueprint-construction.md @@ -12,8 +12,8 @@ csdk blueprint-construction list --where.. --orderBy csdk blueprint-construction list --limit 10 --after csdk blueprint-construction find-first --where.. csdk blueprint-construction get --id -csdk blueprint-construction create --blueprintId --databaseId [--constructedAt ] [--constructedDefinition ] [--schemaId ] [--status ] [--tableMap ] -csdk blueprint-construction update --id [--blueprintId ] [--constructedAt ] [--constructedDefinition ] [--databaseId ] [--schemaId ] [--status ] [--tableMap ] +csdk blueprint-construction create --blueprintId --databaseId [--constructedAt ] [--constructedDefinition ] [--error ] [--schemaId ] [--status ] [--tableMap ] +csdk blueprint-construction update --id [--blueprintId ] [--constructedAt ] [--constructedDefinition ] [--databaseId ] [--error ] [--schemaId ] [--status ] [--tableMap ] csdk blueprint-construction delete --id ``` @@ -58,7 +58,7 @@ csdk blueprint-construction list --where.id.equalTo --orderBy ID_ASC ### Create a blueprintConstruction ```bash -csdk blueprint-construction create --blueprintId --databaseId [--constructedAt ] [--constructedDefinition ] [--schemaId ] [--status ] [--tableMap ] +csdk blueprint-construction create --blueprintId --databaseId [--constructedAt ] [--constructedDefinition ] [--error ] [--schemaId ] [--status ] [--tableMap ] ``` ### Get a blueprintConstruction by id diff --git a/.agents/skills/cli-modules/references/config-secrets-module.md b/.agents/skills/cli-modules/references/config-secrets-module.md deleted file mode 100644 index 824b8c7a80..0000000000 --- a/.agents/skills/cli-modules/references/config-secrets-module.md +++ /dev/null @@ -1,68 +0,0 @@ -# configSecretsModule - - - -CRUD operations for ConfigSecretsModule records via csdk CLI - -## Usage - -```bash -csdk config-secrets-module list -csdk config-secrets-module list --where.. --orderBy -csdk config-secrets-module list --limit 10 --after -csdk config-secrets-module find-first --where.. -csdk config-secrets-module get --id -csdk config-secrets-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--tableId ] [--configDefinitionsTableId ] [--tableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--policies ] [--provisions ] [--hasConfig ] -csdk config-secrets-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--tableId ] [--configDefinitionsTableId ] [--tableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--policies ] [--provisions ] [--hasConfig ] -csdk config-secrets-module delete --id -``` - -## Examples - -### List configSecretsModule records - -```bash -csdk config-secrets-module list -``` - -### List configSecretsModule records with pagination - -```bash -csdk config-secrets-module list --limit 10 --offset 0 -``` - -### List configSecretsModule records with cursor pagination - -```bash -csdk config-secrets-module list --limit 10 --after -``` - -### Find first matching configSecretsModule - -```bash -csdk config-secrets-module find-first --where.id.equalTo -``` - -### List configSecretsModule records with field selection - -```bash -csdk config-secrets-module list --select id,id -``` - -### List configSecretsModule records with filtering and ordering - -```bash -csdk config-secrets-module list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a configSecretsModule - -```bash -csdk config-secrets-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--tableId ] [--configDefinitionsTableId ] [--tableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--policies ] [--provisions ] [--hasConfig ] -``` - -### Get a configSecretsModule by id - -```bash -csdk config-secrets-module get --id -``` diff --git a/.agents/skills/cli-modules/references/config-secrets-org-module.md b/.agents/skills/cli-modules/references/config-secrets-org-module.md deleted file mode 100644 index cb26a711d4..0000000000 --- a/.agents/skills/cli-modules/references/config-secrets-org-module.md +++ /dev/null @@ -1,68 +0,0 @@ -# configSecretsOrgModule - - - -CRUD operations for ConfigSecretsOrgModule records via csdk CLI - -## Usage - -```bash -csdk config-secrets-org-module list -csdk config-secrets-org-module list --where.. --orderBy -csdk config-secrets-org-module list --limit 10 --after -csdk config-secrets-org-module find-first --where.. -csdk config-secrets-org-module get --id -csdk config-secrets-org-module create --databaseId [--schemaId ] [--tableId ] [--tableName ] [--apiName ] [--privateApiName ] -csdk config-secrets-org-module update --id [--databaseId ] [--schemaId ] [--tableId ] [--tableName ] [--apiName ] [--privateApiName ] -csdk config-secrets-org-module delete --id -``` - -## Examples - -### List configSecretsOrgModule records - -```bash -csdk config-secrets-org-module list -``` - -### List configSecretsOrgModule records with pagination - -```bash -csdk config-secrets-org-module list --limit 10 --offset 0 -``` - -### List configSecretsOrgModule records with cursor pagination - -```bash -csdk config-secrets-org-module list --limit 10 --after -``` - -### Find first matching configSecretsOrgModule - -```bash -csdk config-secrets-org-module find-first --where.id.equalTo -``` - -### List configSecretsOrgModule records with field selection - -```bash -csdk config-secrets-org-module list --select id,id -``` - -### List configSecretsOrgModule records with filtering and ordering - -```bash -csdk config-secrets-org-module list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a configSecretsOrgModule - -```bash -csdk config-secrets-org-module create --databaseId [--schemaId ] [--tableId ] [--tableName ] [--apiName ] [--privateApiName ] -``` - -### Get a configSecretsOrgModule by id - -```bash -csdk config-secrets-org-module get --id -``` diff --git a/.agents/skills/cli-modules/references/config-secrets-user-module.md b/.agents/skills/cli-modules/references/config-secrets-user-module.md deleted file mode 100644 index 130879ed44..0000000000 --- a/.agents/skills/cli-modules/references/config-secrets-user-module.md +++ /dev/null @@ -1,68 +0,0 @@ -# configSecretsUserModule - - - -CRUD operations for ConfigSecretsUserModule records via csdk CLI - -## Usage - -```bash -csdk config-secrets-user-module list -csdk config-secrets-user-module list --where.. --orderBy -csdk config-secrets-user-module list --limit 10 --after -csdk config-secrets-user-module find-first --where.. -csdk config-secrets-user-module get --id -csdk config-secrets-user-module create --databaseId [--apiName ] [--entityField ] [--privateApiName ] [--schemaId ] [--tableId ] [--tableName ] -csdk config-secrets-user-module update --id [--apiName ] [--databaseId ] [--entityField ] [--privateApiName ] [--schemaId ] [--tableId ] [--tableName ] -csdk config-secrets-user-module delete --id -``` - -## Examples - -### List configSecretsUserModule records - -```bash -csdk config-secrets-user-module list -``` - -### List configSecretsUserModule records with pagination - -```bash -csdk config-secrets-user-module list --limit 10 --offset 0 -``` - -### List configSecretsUserModule records with cursor pagination - -```bash -csdk config-secrets-user-module list --limit 10 --after -``` - -### Find first matching configSecretsUserModule - -```bash -csdk config-secrets-user-module find-first --where.id.equalTo -``` - -### List configSecretsUserModule records with field selection - -```bash -csdk config-secrets-user-module list --select id,id -``` - -### List configSecretsUserModule records with filtering and ordering - -```bash -csdk config-secrets-user-module list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a configSecretsUserModule - -```bash -csdk config-secrets-user-module create --databaseId [--apiName ] [--entityField ] [--privateApiName ] [--schemaId ] [--tableId ] [--tableName ] -``` - -### Get a configSecretsUserModule by id - -```bash -csdk config-secrets-user-module get --id -``` diff --git a/.agents/skills/cli-modules/references/construct-blueprint.md b/.agents/skills/cli-modules/references/construct-blueprint.md index 9ff5c9623f..b59041cfc5 100644 --- a/.agents/skills/cli-modules/references/construct-blueprint.md +++ b/.agents/skills/cli-modules/references/construct-blueprint.md @@ -2,7 +2,7 @@ -Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). A table entry either names its table (table_name plus optional schema_name) or references one an installed module generated ("module": {"type": "agent", "scope": "org", "table": "message"}), which resolves through the module row's recorded table ids and raises when it matches nothing instead of creating an empty table. After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID. A failure raises its coded error to the caller and rolls back the whole construction, including the construction record. +Requests a build of a blueprint: snapshots its definition into a pending blueprint_construction row, enqueues the blueprint:construct job that runs metaschema_private.construct_blueprint_run on it, and returns the construction id immediately. Poll the row: pending -> constructing -> constructed (table_map populated) or failed (error holds the coded error). schema_id is the default schema for tables without an explicit schema_name. ## Usage diff --git a/.agents/skills/cli-modules/references/db-usage-module.md b/.agents/skills/cli-modules/references/db-usage-module.md index a365281b88..4e864fb2f6 100644 --- a/.agents/skills/cli-modules/references/db-usage-module.md +++ b/.agents/skills/cli-modules/references/db-usage-module.md @@ -12,8 +12,8 @@ csdk db-usage-module list --where.. --orderBy csdk db-usage-module list --limit 10 --after csdk db-usage-module find-first --where.. csdk db-usage-module get --id -csdk db-usage-module create --databaseId --scope [--apiName ] [--collectDbQueryStatsFunction ] [--collectDbTableStatsFunction ] [--defaultCapabilities ] [--entityField ] [--interval ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--queryStatsLogTableId ] [--queryStatsLogTableName ] [--queryStatsSummaryTableId ] [--queryStatsSummaryTableName ] [--retention ] [--rollupDbQueryStatsUsageSummaryFunction ] [--rollupDbTableStatsUsageSummaryFunction ] [--schemaId ] [--tableStatsLogTableId ] [--tableStatsLogTableName ] [--tableStatsSummaryTableId ] [--tableStatsSummaryTableName ] -csdk db-usage-module update --id [--apiName ] [--collectDbQueryStatsFunction ] [--collectDbTableStatsFunction ] [--databaseId ] [--defaultCapabilities ] [--entityField ] [--interval ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--queryStatsLogTableId ] [--queryStatsLogTableName ] [--queryStatsSummaryTableId ] [--queryStatsSummaryTableName ] [--retention ] [--rollupDbQueryStatsUsageSummaryFunction ] [--rollupDbTableStatsUsageSummaryFunction ] [--schemaId ] [--scope ] [--tableStatsLogTableId ] [--tableStatsLogTableName ] [--tableStatsSummaryTableId ] [--tableStatsSummaryTableName ] +csdk db-usage-module create --databaseId --scope [--apiName ] [--collectDbQueryStatsFunction ] [--collectDbTableStatsFunction ] [--defaultCapabilities ] [--entityField ] [--interval ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--queryStatsLogTableId ] [--queryStatsLogTableName ] [--queryStatsSummaryTableId ] [--queryStatsSummaryTableName ] [--readDbQueryStatsUsagePeriodFunction ] [--readDbTableStatsUsagePeriodFunction ] [--retention ] [--rollupDbQueryStatsUsageSummaryFunction ] [--rollupDbTableStatsUsageSummaryFunction ] [--schemaId ] [--tableStatsLogTableId ] [--tableStatsLogTableName ] [--tableStatsSummaryTableId ] [--tableStatsSummaryTableName ] +csdk db-usage-module update --id [--apiName ] [--collectDbQueryStatsFunction ] [--collectDbTableStatsFunction ] [--databaseId ] [--defaultCapabilities ] [--entityField ] [--interval ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--queryStatsLogTableId ] [--queryStatsLogTableName ] [--queryStatsSummaryTableId ] [--queryStatsSummaryTableName ] [--readDbQueryStatsUsagePeriodFunction ] [--readDbTableStatsUsagePeriodFunction ] [--retention ] [--rollupDbQueryStatsUsageSummaryFunction ] [--rollupDbTableStatsUsageSummaryFunction ] [--schemaId ] [--scope ] [--tableStatsLogTableId ] [--tableStatsLogTableName ] [--tableStatsSummaryTableId ] [--tableStatsSummaryTableName ] csdk db-usage-module delete --id ``` @@ -58,7 +58,7 @@ csdk db-usage-module list --where.id.equalTo --orderBy ID_ASC ### Create a dbUsageModule ```bash -csdk db-usage-module create --databaseId --scope [--apiName ] [--collectDbQueryStatsFunction ] [--collectDbTableStatsFunction ] [--defaultCapabilities ] [--entityField ] [--interval ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--queryStatsLogTableId ] [--queryStatsLogTableName ] [--queryStatsSummaryTableId ] [--queryStatsSummaryTableName ] [--retention ] [--rollupDbQueryStatsUsageSummaryFunction ] [--rollupDbTableStatsUsageSummaryFunction ] [--schemaId ] [--tableStatsLogTableId ] [--tableStatsLogTableName ] [--tableStatsSummaryTableId ] [--tableStatsSummaryTableName ] +csdk db-usage-module create --databaseId --scope [--apiName ] [--collectDbQueryStatsFunction ] [--collectDbTableStatsFunction ] [--defaultCapabilities ] [--entityField ] [--interval ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--queryStatsLogTableId ] [--queryStatsLogTableName ] [--queryStatsSummaryTableId ] [--queryStatsSummaryTableName ] [--readDbQueryStatsUsagePeriodFunction ] [--readDbTableStatsUsagePeriodFunction ] [--retention ] [--rollupDbQueryStatsUsageSummaryFunction ] [--rollupDbTableStatsUsageSummaryFunction ] [--schemaId ] [--tableStatsLogTableId ] [--tableStatsLogTableName ] [--tableStatsSummaryTableId ] [--tableStatsSummaryTableName ] ``` ### Get a dbUsageModule by id diff --git a/.agents/skills/cli-modules/references/domain-module.md b/.agents/skills/cli-modules/references/domain-module.md index dec550e2ce..08f695f101 100644 --- a/.agents/skills/cli-modules/references/domain-module.md +++ b/.agents/skills/cli-modules/references/domain-module.md @@ -12,8 +12,8 @@ csdk domain-module list --where.. --orderBy csdk domain-module list --limit 10 --after csdk domain-module find-first --where.. csdk domain-module get --id -csdk domain-module create --databaseId --scope [--apiName ] [--catalogModuleId ] [--defaultCapabilities ] [--domainEventsTableId ] [--domainEventsTableName ] [--domainVerificationsTableId ] [--domainVerificationsTableName ] [--domainsTableId ] [--domainsTableName ] [--entityField ] [--entityTableId ] [--managedDomainsTableId ] [--managedDomainsTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] -csdk domain-module update --id [--apiName ] [--catalogModuleId ] [--databaseId ] [--defaultCapabilities ] [--domainEventsTableId ] [--domainEventsTableName ] [--domainVerificationsTableId ] [--domainVerificationsTableName ] [--domainsTableId ] [--domainsTableName ] [--entityField ] [--entityTableId ] [--managedDomainsTableId ] [--managedDomainsTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] [--scope ] +csdk domain-module create --databaseId --scope [--apiName ] [--catalogModuleId ] [--defaultCapabilities ] [--defaultReservedSubdomains ] [--domainEventsTableId ] [--domainEventsTableName ] [--domainVerificationsTableId ] [--domainVerificationsTableName ] [--domainsTableId ] [--domainsTableName ] [--entityField ] [--entityTableId ] [--managedDomainsTableId ] [--managedDomainsTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--reservedSubdomainsTableId ] [--reservedSubdomainsTableName ] [--schemaId ] [--sweepUnverifiedDomainsFunction ] +csdk domain-module update --id [--apiName ] [--catalogModuleId ] [--databaseId ] [--defaultCapabilities ] [--defaultReservedSubdomains ] [--domainEventsTableId ] [--domainEventsTableName ] [--domainVerificationsTableId ] [--domainVerificationsTableName ] [--domainsTableId ] [--domainsTableName ] [--entityField ] [--entityTableId ] [--managedDomainsTableId ] [--managedDomainsTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--reservedSubdomainsTableId ] [--reservedSubdomainsTableName ] [--schemaId ] [--scope ] [--sweepUnverifiedDomainsFunction ] csdk domain-module delete --id ``` @@ -58,7 +58,7 @@ csdk domain-module list --where.id.equalTo --orderBy ID_ASC ### Create a domainModule ```bash -csdk domain-module create --databaseId --scope [--apiName ] [--catalogModuleId ] [--defaultCapabilities ] [--domainEventsTableId ] [--domainEventsTableName ] [--domainVerificationsTableId ] [--domainVerificationsTableName ] [--domainsTableId ] [--domainsTableName ] [--entityField ] [--entityTableId ] [--managedDomainsTableId ] [--managedDomainsTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] +csdk domain-module create --databaseId --scope [--apiName ] [--catalogModuleId ] [--defaultCapabilities ] [--defaultReservedSubdomains ] [--domainEventsTableId ] [--domainEventsTableName ] [--domainVerificationsTableId ] [--domainVerificationsTableName ] [--domainsTableId ] [--domainsTableName ] [--entityField ] [--entityTableId ] [--managedDomainsTableId ] [--managedDomainsTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--reservedSubdomainsTableId ] [--reservedSubdomainsTableName ] [--schemaId ] [--sweepUnverifiedDomainsFunction ] ``` ### Get a domainModule by id diff --git a/.agents/skills/cli-modules/references/http-route-module.md b/.agents/skills/cli-modules/references/http-route-module.md deleted file mode 100644 index 7c49c6aad1..0000000000 --- a/.agents/skills/cli-modules/references/http-route-module.md +++ /dev/null @@ -1,68 +0,0 @@ -# httpRouteModule - - - -CRUD operations for HttpRouteModule records via csdk CLI - -## Usage - -```bash -csdk http-route-module list -csdk http-route-module list --where.. --orderBy -csdk http-route-module list --limit 10 --after -csdk http-route-module find-first --where.. -csdk http-route-module get --id -csdk http-route-module create --databaseId --scope [--apiName ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--functionModuleId ] [--httpRoutesTableId ] [--httpRoutesTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--resolverFunctionName ] [--resourceModuleId ] [--schemaId ] [--storageModuleId ] -csdk http-route-module update --id [--apiName ] [--databaseId ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--functionModuleId ] [--httpRoutesTableId ] [--httpRoutesTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--resolverFunctionName ] [--resourceModuleId ] [--schemaId ] [--scope ] [--storageModuleId ] -csdk http-route-module delete --id -``` - -## Examples - -### List httpRouteModule records - -```bash -csdk http-route-module list -``` - -### List httpRouteModule records with pagination - -```bash -csdk http-route-module list --limit 10 --offset 0 -``` - -### List httpRouteModule records with cursor pagination - -```bash -csdk http-route-module list --limit 10 --after -``` - -### Find first matching httpRouteModule - -```bash -csdk http-route-module find-first --where.id.equalTo -``` - -### List httpRouteModule records with field selection - -```bash -csdk http-route-module list --select id,id -``` - -### List httpRouteModule records with filtering and ordering - -```bash -csdk http-route-module list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a httpRouteModule - -```bash -csdk http-route-module create --databaseId --scope [--apiName ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--functionModuleId ] [--httpRoutesTableId ] [--httpRoutesTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--resolverFunctionName ] [--resourceModuleId ] [--schemaId ] [--storageModuleId ] -``` - -### Get a httpRouteModule by id - -```bash -csdk http-route-module get --id -``` diff --git a/.agents/skills/cli-modules/references/permissions-module.md b/.agents/skills/cli-modules/references/permissions-module.md deleted file mode 100644 index b27c9d3449..0000000000 --- a/.agents/skills/cli-modules/references/permissions-module.md +++ /dev/null @@ -1,68 +0,0 @@ -# permissionsModule - - - -CRUD operations for PermissionsModule records via csdk CLI - -## Usage - -```bash -csdk permissions-module list -csdk permissions-module list --where.. --orderBy -csdk permissions-module list --limit 10 --after -csdk permissions-module find-first --where.. -csdk permissions-module get --id -csdk permissions-module create --databaseId --scope [--actorTableId ] [--apiName ] [--bitlen ] [--defaultTableId ] [--defaultTableName ] [--entityField ] [--entityTableId ] [--getByMask ] [--getMask ] [--getMaskByName ] [--getPaddedMask ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--schemaId ] [--tableId ] [--tableName ] -csdk permissions-module update --id [--actorTableId ] [--apiName ] [--bitlen ] [--databaseId ] [--defaultTableId ] [--defaultTableName ] [--entityField ] [--entityTableId ] [--getByMask ] [--getMask ] [--getMaskByName ] [--getPaddedMask ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--schemaId ] [--scope ] [--tableId ] [--tableName ] -csdk permissions-module delete --id -``` - -## Examples - -### List permissionsModule records - -```bash -csdk permissions-module list -``` - -### List permissionsModule records with pagination - -```bash -csdk permissions-module list --limit 10 --offset 0 -``` - -### List permissionsModule records with cursor pagination - -```bash -csdk permissions-module list --limit 10 --after -``` - -### Find first matching permissionsModule - -```bash -csdk permissions-module find-first --where.id.equalTo -``` - -### List permissionsModule records with field selection - -```bash -csdk permissions-module list --select id,id -``` - -### List permissionsModule records with filtering and ordering - -```bash -csdk permissions-module list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a permissionsModule - -```bash -csdk permissions-module create --databaseId --scope [--actorTableId ] [--apiName ] [--bitlen ] [--defaultTableId ] [--defaultTableName ] [--entityField ] [--entityTableId ] [--getByMask ] [--getMask ] [--getMaskByName ] [--getPaddedMask ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--schemaId ] [--tableId ] [--tableName ] -``` - -### Get a permissionsModule by id - -```bash -csdk permissions-module get --id -``` diff --git a/.agents/skills/cli-modules/references/provision-check-constraint.md b/.agents/skills/cli-modules/references/provision-check-constraint.md deleted file mode 100644 index ca5b53835f..0000000000 --- a/.agents/skills/cli-modules/references/provision-check-constraint.md +++ /dev/null @@ -1,19 +0,0 @@ -# provisionCheckConstraint - - - -Creates a check constraint on a table from a $type + data blueprint definition. Supports: CheckOneOf (enum validation via = ANY(ARRAY[...])), CheckGreaterThan (single-column > value or cross-column), CheckLessThan (single-column < value or cross-column), CheckNotEqual (cross-column inequality). Builds AST expressions via ast_helpers and inserts into metaschema_public.check_constraint. Graceful: skips if a constraint with the same name already exists. - -## Usage - -```bash -csdk provision-check-constraint --input.clientMutationId --input.databaseId --input.definition --input.tableId -``` - -## Examples - -### Run provisionCheckConstraint - -```bash -csdk provision-check-constraint --input.clientMutationId --input.databaseId --input.definition --input.tableId -``` diff --git a/.agents/skills/cli-modules/references/provision-full-text-search.md b/.agents/skills/cli-modules/references/provision-full-text-search.md deleted file mode 100644 index 8df075e0b3..0000000000 --- a/.agents/skills/cli-modules/references/provision-full-text-search.md +++ /dev/null @@ -1,19 +0,0 @@ -# provisionFullTextSearch - - - -Creates a full-text search configuration on a table. Accepts a jsonb definition with field (tsvector column name) and sources (array of {field, weight, lang}). Graceful: skips if FTS config already exists for the same (table_id, field_id). Returns the fts_id. - -## Usage - -```bash -csdk provision-full-text-search --input.clientMutationId --input.databaseId --input.definition --input.tableId -``` - -## Examples - -### Run provisionFullTextSearch - -```bash -csdk provision-full-text-search --input.clientMutationId --input.databaseId --input.definition --input.tableId -``` diff --git a/.agents/skills/cli-modules/references/provision-index.md b/.agents/skills/cli-modules/references/provision-index.md deleted file mode 100644 index d8d94b278d..0000000000 --- a/.agents/skills/cli-modules/references/provision-index.md +++ /dev/null @@ -1,19 +0,0 @@ -# provisionIndex - - - -Creates an index on a table. Accepts a jsonb definition with columns (array of names or single column string), access_method (default BTREE), is_unique, op_classes, options, and name (auto-generated if omitted). Graceful: skips if an index with the same (table_id, field_ids, access_method) already exists. Returns the index_id. - -## Usage - -```bash -csdk provision-index --input.clientMutationId --input.databaseId --input.definition --input.tableId -``` - -## Examples - -### Run provisionIndex - -```bash -csdk provision-index --input.clientMutationId --input.databaseId --input.definition --input.tableId -``` diff --git a/.agents/skills/cli-modules/references/provision-relation.md b/.agents/skills/cli-modules/references/provision-relation.md deleted file mode 100644 index 6ffbe0086e..0000000000 --- a/.agents/skills/cli-modules/references/provision-relation.md +++ /dev/null @@ -1,19 +0,0 @@ -# provisionRelation - - - -Composable relation provisioning: creates FK fields, indexes, unique constraints, and junction tables depending on the relation_type. Supports RelationBelongsTo, RelationHasOne, RelationHasMany, and RelationManyToMany. ManyToMany uses provision_table() internally for junction table creation with full node/grant/policy support. All operations are graceful (skip existing). Returns (out_field_id, out_junction_table_id, out_source_field_id, out_target_field_id). - -## Usage - -```bash -csdk provision-relation --input.apiRequired --input.clientMutationId --input.createIndex --input.databaseId --input.deleteAction --input.exposeInApi --input.fieldName --input.grants --input.isRequired --input.junctionSchemaId --input.junctionTableId --input.junctionTableName --input.nodes --input.policies --input.relationType --input.sourceFieldName --input.sourceTableId --input.targetFieldName --input.targetTableId --input.useCompositeKey -``` - -## Examples - -### Run provisionRelation - -```bash -csdk provision-relation --input.apiRequired --input.clientMutationId --input.createIndex --input.databaseId --input.deleteAction --input.exposeInApi --input.fieldName --input.grants --input.isRequired --input.junctionSchemaId --input.junctionTableId --input.junctionTableName --input.nodes --input.policies --input.relationType --input.sourceFieldName --input.sourceTableId --input.targetFieldName --input.targetTableId --input.useCompositeKey -``` diff --git a/.agents/skills/cli-modules/references/provision-spatial-relation.md b/.agents/skills/cli-modules/references/provision-spatial-relation.md deleted file mode 100644 index 2916509529..0000000000 --- a/.agents/skills/cli-modules/references/provision-spatial-relation.md +++ /dev/null @@ -1,19 +0,0 @@ -# provisionSpatialRelation - - - -Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row declaring a spatial predicate between two geometry/geography columns (owner and target). Called from construct_blueprint when a relation entry has $type=RelationSpatial. Graceful: re-running with the same (source_table_id, name) returns the existing id without modifying the row. Operator whitelist and st_dwithin ↔ param_name pairing are enforced by the spatial_relation table CHECKs. Both fields must already exist — this is a metadata-only insert. - -## Usage - -```bash -csdk provision-spatial-relation --input.clientMutationId --input.databaseId --input.name --input.operator --input.paramName --input.sourceFieldId --input.sourceTableId --input.targetFieldId --input.targetTableId -``` - -## Examples - -### Run provisionSpatialRelation - -```bash -csdk provision-spatial-relation --input.clientMutationId --input.databaseId --input.name --input.operator --input.paramName --input.sourceFieldId --input.sourceTableId --input.targetFieldId --input.targetTableId -``` diff --git a/.agents/skills/cli-modules/references/provision-table.md b/.agents/skills/cli-modules/references/provision-table.md deleted file mode 100644 index 2c2f3b4782..0000000000 --- a/.agents/skills/cli-modules/references/provision-table.md +++ /dev/null @@ -1,19 +0,0 @@ -# provisionTable - - - -Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). - -## Usage - -```bash -csdk provision-table --input.clientMutationId --input.databaseId --input.description --input.fields --input.fullTextSearches --input.grants --input.indexes --input.nodes --input.policies --input.schemaId --input.tableId --input.tableName --input.uniqueConstraints --input.useRls -``` - -## Examples - -### Run provisionTable - -```bash -csdk provision-table --input.clientMutationId --input.databaseId --input.description --input.fields --input.fullTextSearches --input.grants --input.indexes --input.nodes --input.policies --input.schemaId --input.tableId --input.tableName --input.uniqueConstraints --input.useRls -``` diff --git a/.agents/skills/cli-modules/references/provision-unique-constraint.md b/.agents/skills/cli-modules/references/provision-unique-constraint.md deleted file mode 100644 index aab73cf117..0000000000 --- a/.agents/skills/cli-modules/references/provision-unique-constraint.md +++ /dev/null @@ -1,19 +0,0 @@ -# provisionUniqueConstraint - - - -Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists. - -## Usage - -```bash -csdk provision-unique-constraint --input.clientMutationId --input.databaseId --input.definition --input.tableId -``` - -## Examples - -### Run provisionUniqueConstraint - -```bash -csdk provision-unique-constraint --input.clientMutationId --input.databaseId --input.definition --input.tableId -``` diff --git a/.agents/skills/cli-modules/references/resolve-blueprint-field.md b/.agents/skills/cli-modules/references/resolve-blueprint-field.md deleted file mode 100644 index 6d8aea7c08..0000000000 --- a/.agents/skills/cli-modules/references/resolve-blueprint-field.md +++ /dev/null @@ -1,19 +0,0 @@ -# resolveBlueprintField - - - -Resolves a field_name within a given table_id to a field_id. Throws if no match is found. Used by construct_blueprint to translate user-authored field names (e.g. "location") into field UUIDs for downstream provisioning procedures. table_id must already be resolved (via resolve_blueprint_table) before calling this. - -## Usage - -```bash -csdk resolve-blueprint-field --databaseId --fieldName --tableId -``` - -## Examples - -### Run resolveBlueprintField - -```bash -csdk resolve-blueprint-field --databaseId --fieldName --tableId -``` diff --git a/.agents/skills/cli-modules/references/resolve-blueprint-table.md b/.agents/skills/cli-modules/references/resolve-blueprint-table.md deleted file mode 100644 index d59d769d3e..0000000000 --- a/.agents/skills/cli-modules/references/resolve-blueprint-table.md +++ /dev/null @@ -1,19 +0,0 @@ -# resolveBlueprintTable - - - -Resolves a table_name (with optional schema_name) to a table_id. Resolution order: (1) if schema_name provided, exact lookup via metaschema_public.schema.name + metaschema_public.table; (2) check local table_map (tables created in current blueprint); (3) search metaschema_public.table by name across all schemas; (4) if multiple matches, throw ambiguous error asking for schema_name; (5) if no match, throw not-found error. - -## Usage - -```bash -csdk resolve-blueprint-table --databaseId --defaultSchemaId --schemaName --tableMap --tableName -``` - -## Examples - -### Run resolveBlueprintTable - -```bash -csdk resolve-blueprint-table --databaseId --defaultSchemaId --schemaName --tableMap --tableName -``` diff --git a/.agents/skills/cli-modules/references/resource-module.md b/.agents/skills/cli-modules/references/resource-module.md index cefbafe76e..b63de11dcf 100644 --- a/.agents/skills/cli-modules/references/resource-module.md +++ b/.agents/skills/cli-modules/references/resource-module.md @@ -12,8 +12,8 @@ csdk resource-module list --where.. --orderBy csdk resource-module list --limit 10 --after csdk resource-module find-first --where.. csdk resource-module get --id -csdk resource-module create --databaseId --scope [--apiName ] [--builderBindingsTableId ] [--builderBindingsTableName ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--installationStoreName ] [--merkleStoreModuleId ] [--namespaceModuleId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--registryBindingsTableId ] [--registryBindingsTableName ] [--requirementsStateViewName ] [--resolvedRequirementsViewName ] [--resourceBillingRollupFunction ] [--resourceDefinitionsTableId ] [--resourceDefinitionsTableName ] [--resourceEventsTableId ] [--resourceEventsTableName ] [--resourceInstallationsTableId ] [--resourceInstallationsTableName ] [--resourceStatusChecksTableId ] [--resourceStatusChecksTableName ] [--resourceUsageLogTableId ] [--resourceUsageLogTableName ] [--resourceUsageSummaryTableId ] [--resourceUsageSummaryTableName ] [--resourcesTableId ] [--resourcesTableName ] [--rollupResourceUsageSummaryFunction ] [--schemaId ] -csdk resource-module update --id [--apiName ] [--builderBindingsTableId ] [--builderBindingsTableName ] [--databaseId ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--installationStoreName ] [--merkleStoreModuleId ] [--namespaceModuleId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--registryBindingsTableId ] [--registryBindingsTableName ] [--requirementsStateViewName ] [--resolvedRequirementsViewName ] [--resourceBillingRollupFunction ] [--resourceDefinitionsTableId ] [--resourceDefinitionsTableName ] [--resourceEventsTableId ] [--resourceEventsTableName ] [--resourceInstallationsTableId ] [--resourceInstallationsTableName ] [--resourceStatusChecksTableId ] [--resourceStatusChecksTableName ] [--resourceUsageLogTableId ] [--resourceUsageLogTableName ] [--resourceUsageSummaryTableId ] [--resourceUsageSummaryTableName ] [--resourcesTableId ] [--resourcesTableName ] [--rollupResourceUsageSummaryFunction ] [--schemaId ] [--scope ] +csdk resource-module create --databaseId --scope [--apiName ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--installationStoreName ] [--merkleStoreModuleId ] [--namespaceModuleId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--registryBindingsTableId ] [--registryBindingsTableName ] [--requirementsStateViewName ] [--resolvedRequirementsViewName ] [--resourceBillingRollupFunction ] [--resourceDefinitionsTableId ] [--resourceDefinitionsTableName ] [--resourceEventsTableId ] [--resourceEventsTableName ] [--resourceInstallationsTableId ] [--resourceInstallationsTableName ] [--resourceStatusChecksTableId ] [--resourceStatusChecksTableName ] [--resourceUsageLogTableId ] [--resourceUsageLogTableName ] [--resourceUsageSummaryTableId ] [--resourceUsageSummaryTableName ] [--resourcesTableId ] [--resourcesTableName ] [--rollupResourceUsageSummaryFunction ] [--schemaId ] [--serviceBindingsTableId ] [--serviceBindingsTableName ] +csdk resource-module update --id [--apiName ] [--databaseId ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--installationStoreName ] [--merkleStoreModuleId ] [--namespaceModuleId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--registryBindingsTableId ] [--registryBindingsTableName ] [--requirementsStateViewName ] [--resolvedRequirementsViewName ] [--resourceBillingRollupFunction ] [--resourceDefinitionsTableId ] [--resourceDefinitionsTableName ] [--resourceEventsTableId ] [--resourceEventsTableName ] [--resourceInstallationsTableId ] [--resourceInstallationsTableName ] [--resourceStatusChecksTableId ] [--resourceStatusChecksTableName ] [--resourceUsageLogTableId ] [--resourceUsageLogTableName ] [--resourceUsageSummaryTableId ] [--resourceUsageSummaryTableName ] [--resourcesTableId ] [--resourcesTableName ] [--rollupResourceUsageSummaryFunction ] [--schemaId ] [--scope ] [--serviceBindingsTableId ] [--serviceBindingsTableName ] csdk resource-module delete --id ``` @@ -58,7 +58,7 @@ csdk resource-module list --where.id.equalTo --orderBy ID_ASC ### Create a resourceModule ```bash -csdk resource-module create --databaseId --scope [--apiName ] [--builderBindingsTableId ] [--builderBindingsTableName ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--installationStoreName ] [--merkleStoreModuleId ] [--namespaceModuleId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--registryBindingsTableId ] [--registryBindingsTableName ] [--requirementsStateViewName ] [--resolvedRequirementsViewName ] [--resourceBillingRollupFunction ] [--resourceDefinitionsTableId ] [--resourceDefinitionsTableName ] [--resourceEventsTableId ] [--resourceEventsTableName ] [--resourceInstallationsTableId ] [--resourceInstallationsTableName ] [--resourceStatusChecksTableId ] [--resourceStatusChecksTableName ] [--resourceUsageLogTableId ] [--resourceUsageLogTableName ] [--resourceUsageSummaryTableId ] [--resourceUsageSummaryTableName ] [--resourcesTableId ] [--resourcesTableName ] [--rollupResourceUsageSummaryFunction ] [--schemaId ] +csdk resource-module create --databaseId --scope [--apiName ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--installationStoreName ] [--merkleStoreModuleId ] [--namespaceModuleId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--registryBindingsTableId ] [--registryBindingsTableName ] [--requirementsStateViewName ] [--resolvedRequirementsViewName ] [--resourceBillingRollupFunction ] [--resourceDefinitionsTableId ] [--resourceDefinitionsTableName ] [--resourceEventsTableId ] [--resourceEventsTableName ] [--resourceInstallationsTableId ] [--resourceInstallationsTableName ] [--resourceStatusChecksTableId ] [--resourceStatusChecksTableName ] [--resourceUsageLogTableId ] [--resourceUsageLogTableName ] [--resourceUsageSummaryTableId ] [--resourceUsageSummaryTableName ] [--resourcesTableId ] [--resourcesTableName ] [--rollupResourceUsageSummaryFunction ] [--schemaId ] [--serviceBindingsTableId ] [--serviceBindingsTableName ] ``` ### Get a resourceModule by id diff --git a/.agents/skills/cli-modules/references/storage-log-module.md b/.agents/skills/cli-modules/references/storage-log-module.md index 10fdfdd436..37121d12fb 100644 --- a/.agents/skills/cli-modules/references/storage-log-module.md +++ b/.agents/skills/cli-modules/references/storage-log-module.md @@ -12,8 +12,8 @@ csdk storage-log-module list --where.. --orderBy csdk storage-log-module list --limit 10 --after csdk storage-log-module find-first --where.. csdk storage-log-module get --id -csdk storage-log-module create --databaseId --scope [--apiName ] [--entityField ] [--interval ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--retention ] [--rollupFunctionName ] [--schemaId ] [--storageLogTableId ] [--storageLogTableName ] [--usageSummaryTableId ] [--usageSummaryTableName ] -csdk storage-log-module update --id [--apiName ] [--databaseId ] [--entityField ] [--interval ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--retention ] [--rollupFunctionName ] [--schemaId ] [--scope ] [--storageLogTableId ] [--storageLogTableName ] [--usageSummaryTableId ] [--usageSummaryTableName ] +csdk storage-log-module create --databaseId --scope [--apiName ] [--entityField ] [--interval ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--readStorageUsagePeriodFunction ] [--retention ] [--rollupFunctionName ] [--schemaId ] [--storageLogTableId ] [--storageLogTableName ] [--usageSummaryTableId ] [--usageSummaryTableName ] +csdk storage-log-module update --id [--apiName ] [--databaseId ] [--entityField ] [--interval ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--readStorageUsagePeriodFunction ] [--retention ] [--rollupFunctionName ] [--schemaId ] [--scope ] [--storageLogTableId ] [--storageLogTableName ] [--usageSummaryTableId ] [--usageSummaryTableName ] csdk storage-log-module delete --id ``` @@ -58,7 +58,7 @@ csdk storage-log-module list --where.id.equalTo --orderBy ID_ASC ### Create a storageLogModule ```bash -csdk storage-log-module create --databaseId --scope [--apiName ] [--entityField ] [--interval ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--retention ] [--rollupFunctionName ] [--schemaId ] [--storageLogTableId ] [--storageLogTableName ] [--usageSummaryTableId ] [--usageSummaryTableName ] +csdk storage-log-module create --databaseId --scope [--apiName ] [--entityField ] [--interval ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--readStorageUsagePeriodFunction ] [--retention ] [--rollupFunctionName ] [--schemaId ] [--storageLogTableId ] [--storageLogTableName ] [--usageSummaryTableId ] [--usageSummaryTableName ] ``` ### Get a storageLogModule by id diff --git a/.agents/skills/cli-modules/references/storage-module.md b/.agents/skills/cli-modules/references/storage-module.md index 2e02f73639..031c8e5337 100644 --- a/.agents/skills/cli-modules/references/storage-module.md +++ b/.agents/skills/cli-modules/references/storage-module.md @@ -12,8 +12,8 @@ csdk storage-module list --where.. --orderBy csdk storage-module list --limit 10 --after csdk storage-module find-first --where.. csdk storage-module get --id -csdk storage-module create --databaseId --scope [--allowedOrigins ] [--apiName ] [--bucketsTableId ] [--bucketsTableName ] [--cacheTtlSeconds ] [--catalogModuleId ] [--confirmUploadDelay ] [--defaultCapabilities ] [--defaultMaxFileSize ] [--downloadUrlExpirySeconds ] [--endpoint ] [--entityField ] [--entityTableId ] [--fileEventsTableId ] [--filesTableId ] [--filesTableName ] [--hasAuditLog ] [--hasConfirmUpload ] [--hasContentHash ] [--hasCustomKeys ] [--hasPathShares ] [--hasVersioning ] [--key ] [--maxBulkFiles ] [--maxBulkTotalSize ] [--maxFilenameLength ] [--pathSharesTableId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provider ] [--provisions ] [--publicSchemaName ] [--publicUrlPrefix ] [--region ] [--restrictReads ] [--schemaId ] [--uploadUrlExpirySeconds ] -csdk storage-module update --id [--allowedOrigins ] [--apiName ] [--bucketsTableId ] [--bucketsTableName ] [--cacheTtlSeconds ] [--catalogModuleId ] [--confirmUploadDelay ] [--databaseId ] [--defaultCapabilities ] [--defaultMaxFileSize ] [--downloadUrlExpirySeconds ] [--endpoint ] [--entityField ] [--entityTableId ] [--fileEventsTableId ] [--filesTableId ] [--filesTableName ] [--hasAuditLog ] [--hasConfirmUpload ] [--hasContentHash ] [--hasCustomKeys ] [--hasPathShares ] [--hasVersioning ] [--key ] [--maxBulkFiles ] [--maxBulkTotalSize ] [--maxFilenameLength ] [--pathSharesTableId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provider ] [--provisions ] [--publicSchemaName ] [--publicUrlPrefix ] [--region ] [--restrictReads ] [--schemaId ] [--scope ] [--uploadUrlExpirySeconds ] +csdk storage-module create --databaseId --scope [--allowedOrigins ] [--apiName ] [--bucketsTableId ] [--bucketsTableName ] [--cacheTtlSeconds ] [--catalogModuleId ] [--confirmUploadDelay ] [--defaultCapabilities ] [--defaultMaxFileSize ] [--downloadUrlExpirySeconds ] [--endpoint ] [--entityField ] [--entityTableId ] [--fileEventsTableId ] [--filesTableId ] [--filesTableName ] [--hasAuditLog ] [--hasContentHash ] [--hasCustomKeys ] [--hasPathShares ] [--hasVersioning ] [--key ] [--maxBulkFiles ] [--maxBulkTotalSize ] [--maxFilenameLength ] [--pathSharesTableId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provider ] [--provisions ] [--publicSchemaName ] [--publicUrlPrefix ] [--region ] [--restrictReads ] [--schemaId ] [--uploadUrlExpirySeconds ] +csdk storage-module update --id [--allowedOrigins ] [--apiName ] [--bucketsTableId ] [--bucketsTableName ] [--cacheTtlSeconds ] [--catalogModuleId ] [--confirmUploadDelay ] [--databaseId ] [--defaultCapabilities ] [--defaultMaxFileSize ] [--downloadUrlExpirySeconds ] [--endpoint ] [--entityField ] [--entityTableId ] [--fileEventsTableId ] [--filesTableId ] [--filesTableName ] [--hasAuditLog ] [--hasContentHash ] [--hasCustomKeys ] [--hasPathShares ] [--hasVersioning ] [--key ] [--maxBulkFiles ] [--maxBulkTotalSize ] [--maxFilenameLength ] [--pathSharesTableId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provider ] [--provisions ] [--publicSchemaName ] [--publicUrlPrefix ] [--region ] [--restrictReads ] [--schemaId ] [--scope ] [--uploadUrlExpirySeconds ] csdk storage-module delete --id ``` @@ -58,7 +58,7 @@ csdk storage-module list --where.id.equalTo --orderBy ID_ASC ### Create a storageModule ```bash -csdk storage-module create --databaseId --scope [--allowedOrigins ] [--apiName ] [--bucketsTableId ] [--bucketsTableName ] [--cacheTtlSeconds ] [--catalogModuleId ] [--confirmUploadDelay ] [--defaultCapabilities ] [--defaultMaxFileSize ] [--downloadUrlExpirySeconds ] [--endpoint ] [--entityField ] [--entityTableId ] [--fileEventsTableId ] [--filesTableId ] [--filesTableName ] [--hasAuditLog ] [--hasConfirmUpload ] [--hasContentHash ] [--hasCustomKeys ] [--hasPathShares ] [--hasVersioning ] [--key ] [--maxBulkFiles ] [--maxBulkTotalSize ] [--maxFilenameLength ] [--pathSharesTableId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provider ] [--provisions ] [--publicSchemaName ] [--publicUrlPrefix ] [--region ] [--restrictReads ] [--schemaId ] [--uploadUrlExpirySeconds ] +csdk storage-module create --databaseId --scope [--allowedOrigins ] [--apiName ] [--bucketsTableId ] [--bucketsTableName ] [--cacheTtlSeconds ] [--catalogModuleId ] [--confirmUploadDelay ] [--defaultCapabilities ] [--defaultMaxFileSize ] [--downloadUrlExpirySeconds ] [--endpoint ] [--entityField ] [--entityTableId ] [--fileEventsTableId ] [--filesTableId ] [--filesTableName ] [--hasAuditLog ] [--hasContentHash ] [--hasCustomKeys ] [--hasPathShares ] [--hasVersioning ] [--key ] [--maxBulkFiles ] [--maxBulkTotalSize ] [--maxFilenameLength ] [--pathSharesTableId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provider ] [--provisions ] [--publicSchemaName ] [--publicUrlPrefix ] [--region ] [--restrictReads ] [--schemaId ] [--uploadUrlExpirySeconds ] ``` ### Get a storageModule by id diff --git a/.agents/skills/cli-objects/references/confirm-upload.md b/.agents/skills/cli-objects/references/confirm-upload.md deleted file mode 100644 index a9f4915b99..0000000000 --- a/.agents/skills/cli-objects/references/confirm-upload.md +++ /dev/null @@ -1,21 +0,0 @@ -# confirmUpload - - - -Confirm that a file has been uploaded to S3. -Verifies the object exists in S3, checks content-type, -and transitions the file status from 'pending' to 'ready'. - -## Usage - -```bash -csdk confirm-upload --input.fileId -``` - -## Examples - -### Run confirmUpload - -```bash -csdk confirm-upload --input.fileId -``` diff --git a/.agents/skills/cli-objects/references/freeze-objects.md b/.agents/skills/cli-objects/references/freeze-objects.md deleted file mode 100644 index e4eac21087..0000000000 --- a/.agents/skills/cli-objects/references/freeze-objects.md +++ /dev/null @@ -1,19 +0,0 @@ -# freezeObjects - - - -Execute the freezeObjects mutation - -## Usage - -```bash -csdk freeze-objects --input.clientMutationId --input.databaseId --input.id -``` - -## Examples - -### Run freezeObjects - -```bash -csdk freeze-objects --input.clientMutationId --input.databaseId --input.id -``` diff --git a/.agents/skills/cli-objects/references/get-all-objects-from-root.md b/.agents/skills/cli-objects/references/get-all-objects-from-root.md deleted file mode 100644 index 291a443793..0000000000 --- a/.agents/skills/cli-objects/references/get-all-objects-from-root.md +++ /dev/null @@ -1,19 +0,0 @@ -# getAllObjectsFromRoot - - - -Reads and enables pagination through a set of `Object`. - -## Usage - -```bash -csdk get-all-objects-from-root --databaseId --id --first --offset --after -``` - -## Examples - -### Run getAllObjectsFromRoot - -```bash -csdk get-all-objects-from-root --databaseId --id --first --offset --after -``` diff --git a/.agents/skills/cli-objects/references/get-all-record.md b/.agents/skills/cli-objects/references/get-all-record.md deleted file mode 100644 index afa03de648..0000000000 --- a/.agents/skills/cli-objects/references/get-all-record.md +++ /dev/null @@ -1,68 +0,0 @@ -# getAllRecord - - - -CRUD operations for GetAllRecord records via csdk CLI - -## Usage - -```bash -csdk get-all-record list -csdk get-all-record list --where.. --orderBy -csdk get-all-record list --limit 10 --after -csdk get-all-record find-first --where.. -csdk get-all-record get --id -csdk get-all-record create --data --path -csdk get-all-record update --id [--data ] [--path ] -csdk get-all-record delete --id -``` - -## Examples - -### List getAllRecord records - -```bash -csdk get-all-record list -``` - -### List getAllRecord records with pagination - -```bash -csdk get-all-record list --limit 10 --offset 0 -``` - -### List getAllRecord records with cursor pagination - -```bash -csdk get-all-record list --limit 10 --after -``` - -### Find first matching getAllRecord - -```bash -csdk get-all-record find-first --where.id.equalTo -``` - -### List getAllRecord records with field selection - -```bash -csdk get-all-record list --select id,id -``` - -### List getAllRecord records with filtering and ordering - -```bash -csdk get-all-record list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a getAllRecord - -```bash -csdk get-all-record create --data --path -``` - -### Get a getAllRecord by id - -```bash -csdk get-all-record get --id -``` diff --git a/.agents/skills/cli-objects/references/get-all-tree-nodes-record.md b/.agents/skills/cli-objects/references/get-all-tree-nodes-record.md index 716547df9a..c4bf91bf6a 100644 --- a/.agents/skills/cli-objects/references/get-all-tree-nodes-record.md +++ b/.agents/skills/cli-objects/references/get-all-tree-nodes-record.md @@ -12,7 +12,6 @@ csdk get-all-tree-nodes-record list --where.. --orderBy csdk get-all-tree-nodes-record find-first --where.. csdk get-all-tree-nodes-record get --id -csdk get-all-tree-nodes-record create --data --path csdk get-all-tree-nodes-record update --id [--data ] [--path ] csdk get-all-tree-nodes-record delete --id ``` @@ -55,12 +54,6 @@ csdk get-all-tree-nodes-record list --select id,id csdk get-all-tree-nodes-record list --where.id.equalTo --orderBy ID_ASC ``` -### Create a getAllTreeNodesRecord - -```bash -csdk get-all-tree-nodes-record create --data --path -``` - ### Get a getAllTreeNodesRecord by id ```bash diff --git a/.agents/skills/cli-objects/references/get-object-at-path.md b/.agents/skills/cli-objects/references/get-object-at-path.md deleted file mode 100644 index 61a0fde431..0000000000 --- a/.agents/skills/cli-objects/references/get-object-at-path.md +++ /dev/null @@ -1,19 +0,0 @@ -# getObjectAtPath - - - -Execute the getObjectAtPath query - -## Usage - -```bash -csdk get-object-at-path --dbId --storeId --path --refname -``` - -## Examples - -### Run getObjectAtPath - -```bash -csdk get-object-at-path --dbId --storeId --path --refname -``` diff --git a/.agents/skills/cli-objects/references/get-path-objects-from-root.md b/.agents/skills/cli-objects/references/get-path-objects-from-root.md deleted file mode 100644 index 172092437a..0000000000 --- a/.agents/skills/cli-objects/references/get-path-objects-from-root.md +++ /dev/null @@ -1,19 +0,0 @@ -# getPathObjectsFromRoot - - - -Reads and enables pagination through a set of `Object`. - -## Usage - -```bash -csdk get-path-objects-from-root --databaseId --id --path --first --offset --after -``` - -## Examples - -### Run getPathObjectsFromRoot - -```bash -csdk get-path-objects-from-root --databaseId --id --path --first --offset --after -``` diff --git a/.agents/skills/cli-objects/references/remove-node-at-path.md b/.agents/skills/cli-objects/references/remove-node-at-path.md deleted file mode 100644 index 9db6761b91..0000000000 --- a/.agents/skills/cli-objects/references/remove-node-at-path.md +++ /dev/null @@ -1,19 +0,0 @@ -# removeNodeAtPath - - - -Execute the removeNodeAtPath mutation - -## Usage - -```bash -csdk remove-node-at-path --input.clientMutationId --input.dbId --input.root --input.path -``` - -## Examples - -### Run removeNodeAtPath - -```bash -csdk remove-node-at-path --input.clientMutationId --input.dbId --input.root --input.path -``` diff --git a/.agents/skills/cli-objects/references/request-upload-url.md b/.agents/skills/cli-objects/references/request-upload-url.md deleted file mode 100644 index 873dc3ee01..0000000000 --- a/.agents/skills/cli-objects/references/request-upload-url.md +++ /dev/null @@ -1,22 +0,0 @@ -# requestUploadUrl - - - -Request a presigned URL for uploading a file directly to S3. -Client computes SHA-256 of the file content and provides it here. -If a file with the same hash already exists (dedup), returns the -existing file ID and deduplicated=true with no uploadUrl. - -## Usage - -```bash -csdk request-upload-url --input.bucketKey --input.ownerId --input.contentHash --input.contentType --input.size --input.filename -``` - -## Examples - -### Run requestUploadUrl - -```bash -csdk request-upload-url --input.bucketKey --input.ownerId --input.contentHash --input.contentType --input.size --input.filename -``` diff --git a/.agents/skills/cli-objects/references/rev-parse.md b/.agents/skills/cli-objects/references/rev-parse.md deleted file mode 100644 index 35c6f3dcc8..0000000000 --- a/.agents/skills/cli-objects/references/rev-parse.md +++ /dev/null @@ -1,19 +0,0 @@ -# revParse - - - -Execute the revParse query - -## Usage - -```bash -csdk rev-parse --dbId --storeId --refname -``` - -## Examples - -### Run revParse - -```bash -csdk rev-parse --dbId --storeId --refname -``` diff --git a/.agents/skills/cli-objects/references/set-props-and-commit.md b/.agents/skills/cli-objects/references/set-props-and-commit.md deleted file mode 100644 index 9dd2bc2ec0..0000000000 --- a/.agents/skills/cli-objects/references/set-props-and-commit.md +++ /dev/null @@ -1,19 +0,0 @@ -# setPropsAndCommit - - - -Execute the setPropsAndCommit mutation - -## Usage - -```bash -csdk set-props-and-commit --input.clientMutationId --input.dbId --input.storeId --input.refname --input.path --input.data -``` - -## Examples - -### Run setPropsAndCommit - -```bash -csdk set-props-and-commit --input.clientMutationId --input.dbId --input.storeId --input.refname --input.path --input.data -``` diff --git a/.agents/skills/cli-objects/references/update-node-at-path.md b/.agents/skills/cli-objects/references/update-node-at-path.md deleted file mode 100644 index 8d52fff70e..0000000000 --- a/.agents/skills/cli-objects/references/update-node-at-path.md +++ /dev/null @@ -1,19 +0,0 @@ -# updateNodeAtPath - - - -Execute the updateNodeAtPath mutation - -## Usage - -```bash -csdk update-node-at-path --input.clientMutationId --input.dbId --input.root --input.path --input.data --input.kids --input.ktree -``` - -## Examples - -### Run updateNodeAtPath - -```bash -csdk update-node-at-path --input.clientMutationId --input.dbId --input.root --input.path --input.data --input.kids --input.ktree -``` diff --git a/.agents/skills/cli-public/SKILL.md b/.agents/skills/cli-public/SKILL.md deleted file mode 100644 index 2b2f304fe8..0000000000 --- a/.agents/skills/cli-public/SKILL.md +++ /dev/null @@ -1,266 +0,0 @@ ---- -name: cli-public -description: CLI tool (csdk) for the public API — provides CRUD commands for 150 tables and 58 custom operations ---- - -# cli-public - - - -CLI tool (csdk) for the public API — provides CRUD commands for 150 tables and 58 custom operations - -## Usage - -```bash -# Context management -csdk context create --endpoint -csdk context use - -# Authentication -csdk auth set-token - -# Config variables -csdk config set -csdk config get - -# CRUD for any table (e.g. org-get-managers-record) -csdk org-get-managers-record list -csdk org-get-managers-record get --id -csdk org-get-managers-record create -- - -# Non-interactive mode (skip all prompts, use flags only) -csdk --no-tty org-get-managers-record list -``` - -## Examples - -### Set up and query - -```bash -csdk context create local --endpoint http://localhost:5000/graphql -csdk context use local -csdk auth set-token -csdk org-get-managers-record list -``` - -### Non-interactive mode (for scripts and CI) - -```bash -csdk --no-tty org-get-managers-record create -- -``` - -## References - -See the `references/` directory for detailed per-entity API documentation: - -- [context](references/context.md) -- [auth](references/auth.md) -- [config](references/config.md) -- [org-get-managers-record](references/org-get-managers-record.md) -- [org-get-subordinates-record](references/org-get-subordinates-record.md) -- [app-permission](references/app-permission.md) -- [org-permission](references/org-permission.md) -- [database](references/database.md) -- [schema](references/schema.md) -- [table](references/table.md) -- [check-constraint](references/check-constraint.md) -- [field](references/field.md) -- [spatial-relation](references/spatial-relation.md) -- [foreign-key-constraint](references/foreign-key-constraint.md) -- [full-text-search](references/full-text-search.md) -- [index](references/index.md) -- [policy](references/policy.md) -- [primary-key-constraint](references/primary-key-constraint.md) -- [table-grant](references/table-grant.md) -- [trigger](references/trigger.md) -- [unique-constraint](references/unique-constraint.md) -- [view](references/view.md) -- [view-table](references/view-table.md) -- [view-grant](references/view-grant.md) -- [view-rule](references/view-rule.md) -- [embedding-chunk](references/embedding-chunk.md) -- [secure-table-provision](references/secure-table-provision.md) -- [relation-provision](references/relation-provision.md) -- [session-secrets-module](references/session-secrets-module.md) -- [identity-providers-module](references/identity-providers-module.md) -- [realtime-module](references/realtime-module.md) -- [config-secrets-org-module](references/config-secrets-org-module.md) -- [schema-grant](references/schema-grant.md) -- [default-privilege](references/default-privilege.md) -- [enum](references/enum.md) -- [function](references/function.md) -- [api-schema](references/api-schema.md) -- [api-module](references/api-module.md) -- [domain](references/domain.md) -- [site-metadatum](references/site-metadatum.md) -- [site-module](references/site-module.md) -- [site-theme](references/site-theme.md) -- [cors-setting](references/cors-setting.md) -- [merkle-store-module](references/merkle-store-module.md) -- [graph-module](references/graph-module.md) -- [trigger-function](references/trigger-function.md) -- [partition](references/partition.md) -- [database-transfer](references/database-transfer.md) -- [api](references/api.md) -- [site](references/site.md) -- [app](references/app.md) -- [api-setting](references/api-setting.md) -- [connected-accounts-module](references/connected-accounts-module.md) -- [crypto-addresses-module](references/crypto-addresses-module.md) -- [crypto-auth-module](references/crypto-auth-module.md) -- [default-ids-module](references/default-ids-module.md) -- [denormalized-table-field](references/denormalized-table-field.md) -- [emails-module](references/emails-module.md) -- [config-secrets-user-module](references/config-secrets-user-module.md) -- [invites-module](references/invites-module.md) -- [events-module](references/events-module.md) -- [limits-module](references/limits-module.md) -- [membership-types-module](references/membership-types-module.md) -- [memberships-module](references/memberships-module.md) -- [permissions-module](references/permissions-module.md) -- [phone-numbers-module](references/phone-numbers-module.md) -- [profiles-module](references/profiles-module.md) -- [user-state-module](references/user-state-module.md) -- [sessions-module](references/sessions-module.md) -- [user-auth-module](references/user-auth-module.md) -- [users-module](references/users-module.md) -- [blueprint](references/blueprint.md) -- [blueprint-template](references/blueprint-template.md) -- [blueprint-construction](references/blueprint-construction.md) -- [storage-module](references/storage-module.md) -- [entity-type-provision](references/entity-type-provision.md) -- [webauthn-credentials-module](references/webauthn-credentials-module.md) -- [webauthn-auth-module](references/webauthn-auth-module.md) -- [notifications-module](references/notifications-module.md) -- [inference-log-module](references/inference-log-module.md) -- [compute-log-module](references/compute-log-module.md) -- [transfer-log-module](references/transfer-log-module.md) -- [storage-log-module](references/storage-log-module.md) -- [db-usage-module](references/db-usage-module.md) -- [agent-module](references/agent-module.md) -- [namespace-module](references/namespace-module.md) -- [function-module](references/function-module.md) -- [database-provision-module](references/database-provision-module.md) -- [app-admin-grant](references/app-admin-grant.md) -- [app-owner-grant](references/app-owner-grant.md) -- [app-grant](references/app-grant.md) -- [org-membership](references/org-membership.md) -- [org-member](references/org-member.md) -- [org-admin-grant](references/org-admin-grant.md) -- [org-owner-grant](references/org-owner-grant.md) -- [org-member-profile](references/org-member-profile.md) -- [org-grant](references/org-grant.md) -- [org-chart-edge](references/org-chart-edge.md) -- [org-chart-edge-grant](references/org-chart-edge-grant.md) -- [org-permission-default](references/org-permission-default.md) -- [app-limit](references/app-limit.md) -- [app-limit-credit](references/app-limit-credit.md) -- [app-limit-credit-code-item](references/app-limit-credit-code-item.md) -- [app-limit-credit-redemption](references/app-limit-credit-redemption.md) -- [org-limit](references/org-limit.md) -- [org-limit-credit](references/org-limit-credit.md) -- [org-limit-aggregate](references/org-limit-aggregate.md) -- [org-limit-warning](references/org-limit-warning.md) -- [email](references/email.md) -- [phone-number](references/phone-number.md) -- [crypto-address](references/crypto-address.md) -- [webauthn-credential](references/webauthn-credential.md) -- [app-invite](references/app-invite.md) -- [app-claimed-invite](references/app-claimed-invite.md) -- [org-invite](references/org-invite.md) -- [org-claimed-invite](references/org-claimed-invite.md) -- [audit-log-auth](references/audit-log-auth.md) -- [identity-provider](references/identity-provider.md) -- [app-permission-default](references/app-permission-default.md) -- [role-type](references/role-type.md) -- [migrate-file](references/migrate-file.md) -- [devices-module](references/devices-module.md) -- [app-membership-default](references/app-membership-default.md) -- [org-membership-default](references/org-membership-default.md) -- [node-type-registry](references/node-type-registry.md) -- [app-limit-caps-default](references/app-limit-caps-default.md) -- [org-limit-caps-default](references/org-limit-caps-default.md) -- [app-limit-cap](references/app-limit-cap.md) -- [org-limit-cap](references/org-limit-cap.md) -- [user-connected-account](references/user-connected-account.md) -- [app-limit-default](references/app-limit-default.md) -- [org-limit-default](references/org-limit-default.md) -- [app-limit-credit-code](references/app-limit-credit-code.md) -- [app-limit-warning](references/app-limit-warning.md) -- [pubkey-setting](references/pubkey-setting.md) -- [rate-limits-module](references/rate-limits-module.md) -- [membership-type](references/membership-type.md) -- [rls-setting](references/rls-setting.md) -- [rls-module](references/rls-module.md) -- [rate-limit-meters-module](references/rate-limit-meters-module.md) -- [plans-module](references/plans-module.md) -- [sql-action](references/sql-action.md) -- [database-setting](references/database-setting.md) -- [org-membership-setting](references/org-membership-setting.md) -- [app-limit-event](references/app-limit-event.md) -- [org-limit-event](references/org-limit-event.md) -- [app-membership](references/app-membership.md) -- [user](references/user.md) -- [ast-migration](references/ast-migration.md) -- [webauthn-setting](references/webauthn-setting.md) -- [billing-module](references/billing-module.md) -- [billing-provider-module](references/billing-provider-module.md) -- [hierarchy-module](references/hierarchy-module.md) -- [current-user-id](references/current-user-id.md) -- [current-user-agent](references/current-user-agent.md) -- [current-ip-address](references/current-ip-address.md) -- [require-step-up](references/require-step-up.md) -- [app-permissions-get-padded-mask](references/app-permissions-get-padded-mask.md) -- [org-permissions-get-padded-mask](references/org-permissions-get-padded-mask.md) -- [apply-registry-defaults](references/apply-registry-defaults.md) -- [resolve-blueprint-field](references/resolve-blueprint-field.md) -- [resolve-blueprint-table](references/resolve-blueprint-table.md) -- [org-is-manager-of](references/org-is-manager-of.md) -- [app-permissions-get-mask](references/app-permissions-get-mask.md) -- [org-permissions-get-mask](references/org-permissions-get-mask.md) -- [app-permissions-get-mask-by-names](references/app-permissions-get-mask-by-names.md) -- [org-permissions-get-mask-by-names](references/org-permissions-get-mask-by-names.md) -- [app-permissions-get-by-mask](references/app-permissions-get-by-mask.md) -- [org-permissions-get-by-mask](references/org-permissions-get-by-mask.md) -- [current-user](references/current-user.md) -- [send-account-deletion-email](references/send-account-deletion-email.md) -- [sign-out](references/sign-out.md) -- [accept-database-transfer](references/accept-database-transfer.md) -- [cancel-database-transfer](references/cancel-database-transfer.md) -- [reject-database-transfer](references/reject-database-transfer.md) -- [disconnect-account](references/disconnect-account.md) -- [revoke-api-key](references/revoke-api-key.md) -- [revoke-session](references/revoke-session.md) -- [verify-password](references/verify-password.md) -- [verify-totp](references/verify-totp.md) -- [submit-app-invite-code](references/submit-app-invite-code.md) -- [submit-org-invite-code](references/submit-org-invite-code.md) -- [check-password](references/check-password.md) -- [confirm-delete-account](references/confirm-delete-account.md) -- [set-password](references/set-password.md) -- [verify-email](references/verify-email.md) -- [construct-blueprint](references/construct-blueprint.md) -- [provision-new-user](references/provision-new-user.md) -- [reset-password](references/reset-password.md) -- [provision-check-constraint](references/provision-check-constraint.md) -- [provision-unique-constraint](references/provision-unique-constraint.md) -- [provision-full-text-search](references/provision-full-text-search.md) -- [provision-index](references/provision-index.md) -- [copy-template-to-blueprint](references/copy-template-to-blueprint.md) -- [provision-spatial-relation](references/provision-spatial-relation.md) -- [sign-in-cross-origin](references/sign-in-cross-origin.md) -- [bootstrap-user](references/bootstrap-user.md) -- [sign-up](references/sign-up.md) -- [sign-in](references/sign-in.md) -- [provision-relation](references/provision-relation.md) -- [set-field-order](references/set-field-order.md) -- [apply-rls](references/apply-rls.md) -- [provision-database-with-user](references/provision-database-with-user.md) -- [create-user-database](references/create-user-database.md) -- [extend-token-expires](references/extend-token-expires.md) -- [create-api-key](references/create-api-key.md) -- [request-cross-origin-token](references/request-cross-origin-token.md) -- [provision-table](references/provision-table.md) -- [send-verification-email](references/send-verification-email.md) -- [forgot-password](references/forgot-password.md) -- [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/cli-public/references/accept-database-transfer.md b/.agents/skills/cli-public/references/accept-database-transfer.md deleted file mode 100644 index c59a74b8f7..0000000000 --- a/.agents/skills/cli-public/references/accept-database-transfer.md +++ /dev/null @@ -1,19 +0,0 @@ -# acceptDatabaseTransfer - - - -Execute the acceptDatabaseTransfer mutation - -## Usage - -```bash -csdk accept-database-transfer --input.clientMutationId --input.transferId -``` - -## Examples - -### Run acceptDatabaseTransfer - -```bash -csdk accept-database-transfer --input.clientMutationId --input.transferId -``` diff --git a/.agents/skills/cli-public/references/agent-message.md b/.agents/skills/cli-public/references/agent-message.md deleted file mode 100644 index d75a14ca93..0000000000 --- a/.agents/skills/cli-public/references/agent-message.md +++ /dev/null @@ -1,68 +0,0 @@ -# agentMessage - - - -CRUD operations for AgentMessage records via csdk CLI - -## Usage - -```bash -csdk agent-message list -csdk agent-message list --where.. --orderBy -csdk agent-message list --limit 10 --after -csdk agent-message find-first --where.. -csdk agent-message get --id -csdk agent-message create --threadId --entityId --authorRole [--ownerId ] [--parts ] -csdk agent-message update --id [--threadId ] [--entityId ] [--authorRole ] [--ownerId ] [--parts ] -csdk agent-message delete --id -``` - -## Examples - -### List agentMessage records - -```bash -csdk agent-message list -``` - -### List agentMessage records with pagination - -```bash -csdk agent-message list --limit 10 --offset 0 -``` - -### List agentMessage records with cursor pagination - -```bash -csdk agent-message list --limit 10 --after -``` - -### Find first matching agentMessage - -```bash -csdk agent-message find-first --where.id.equalTo -``` - -### List agentMessage records with field selection - -```bash -csdk agent-message list --select id,id -``` - -### List agentMessage records with filtering and ordering - -```bash -csdk agent-message list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a agentMessage - -```bash -csdk agent-message create --threadId --entityId --authorRole [--ownerId ] [--parts ] -``` - -### Get a agentMessage by id - -```bash -csdk agent-message get --id -``` diff --git a/.agents/skills/cli-public/references/agent-module.md b/.agents/skills/cli-public/references/agent-module.md deleted file mode 100644 index f7610e02c5..0000000000 --- a/.agents/skills/cli-public/references/agent-module.md +++ /dev/null @@ -1,68 +0,0 @@ -# agentModule - - - -CRUD operations for AgentModule records via csdk CLI - -## Usage - -```bash -csdk agent-module list -csdk agent-module list --where.. --orderBy -csdk agent-module list --limit 10 --after -csdk agent-module find-first --where.. -csdk agent-module get --id -csdk agent-module create --databaseId [--schemaId ] [--privateSchemaId ] [--threadTableId ] [--messageTableId ] [--taskTableId ] [--promptsTableId ] [--knowledgeTableId ] [--threadTableName ] [--messageTableName ] [--taskTableName ] [--promptsTableName ] [--knowledgeTableName ] [--hasKnowledge ] [--apiName ] [--membershipType ] [--key ] [--entityTableId ] [--policies ] [--knowledgeConfig ] [--knowledgePolicies ] [--provisions ] -csdk agent-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--threadTableId ] [--messageTableId ] [--taskTableId ] [--promptsTableId ] [--knowledgeTableId ] [--threadTableName ] [--messageTableName ] [--taskTableName ] [--promptsTableName ] [--knowledgeTableName ] [--hasKnowledge ] [--apiName ] [--membershipType ] [--key ] [--entityTableId ] [--policies ] [--knowledgeConfig ] [--knowledgePolicies ] [--provisions ] -csdk agent-module delete --id -``` - -## Examples - -### List agentModule records - -```bash -csdk agent-module list -``` - -### List agentModule records with pagination - -```bash -csdk agent-module list --limit 10 --offset 0 -``` - -### List agentModule records with cursor pagination - -```bash -csdk agent-module list --limit 10 --after -``` - -### Find first matching agentModule - -```bash -csdk agent-module find-first --where.id.equalTo -``` - -### List agentModule records with field selection - -```bash -csdk agent-module list --select id,id -``` - -### List agentModule records with filtering and ordering - -```bash -csdk agent-module list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a agentModule - -```bash -csdk agent-module create --databaseId [--schemaId ] [--privateSchemaId ] [--threadTableId ] [--messageTableId ] [--taskTableId ] [--promptsTableId ] [--knowledgeTableId ] [--threadTableName ] [--messageTableName ] [--taskTableName ] [--promptsTableName ] [--knowledgeTableName ] [--hasKnowledge ] [--apiName ] [--membershipType ] [--key ] [--entityTableId ] [--policies ] [--knowledgeConfig ] [--knowledgePolicies ] [--provisions ] -``` - -### Get a agentModule by id - -```bash -csdk agent-module get --id -``` diff --git a/.agents/skills/cli-public/references/agent-task.md b/.agents/skills/cli-public/references/agent-task.md deleted file mode 100644 index 0c44d7215a..0000000000 --- a/.agents/skills/cli-public/references/agent-task.md +++ /dev/null @@ -1,68 +0,0 @@ -# agentTask - - - -CRUD operations for AgentTask records via csdk CLI - -## Usage - -```bash -csdk agent-task list -csdk agent-task list --where.. --orderBy -csdk agent-task list --limit 10 --after -csdk agent-task find-first --where.. -csdk agent-task get --id -csdk agent-task create --threadId --entityId --description [--source ] [--error ] [--ownerId ] [--status ] -csdk agent-task update --id [--threadId ] [--entityId ] [--description ] [--source ] [--error ] [--ownerId ] [--status ] -csdk agent-task delete --id -``` - -## Examples - -### List agentTask records - -```bash -csdk agent-task list -``` - -### List agentTask records with pagination - -```bash -csdk agent-task list --limit 10 --offset 0 -``` - -### List agentTask records with cursor pagination - -```bash -csdk agent-task list --limit 10 --after -``` - -### Find first matching agentTask - -```bash -csdk agent-task find-first --where.id.equalTo -``` - -### List agentTask records with field selection - -```bash -csdk agent-task list --select id,id -``` - -### List agentTask records with filtering and ordering - -```bash -csdk agent-task list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a agentTask - -```bash -csdk agent-task create --threadId --entityId --description [--source ] [--error ] [--ownerId ] [--status ] -``` - -### Get a agentTask by id - -```bash -csdk agent-task get --id -``` diff --git a/.agents/skills/cli-public/references/agent-thread.md b/.agents/skills/cli-public/references/agent-thread.md deleted file mode 100644 index 6bfc83f7c1..0000000000 --- a/.agents/skills/cli-public/references/agent-thread.md +++ /dev/null @@ -1,68 +0,0 @@ -# agentThread - - - -CRUD operations for AgentThread records via csdk CLI - -## Usage - -```bash -csdk agent-thread list -csdk agent-thread list --where.. --orderBy -csdk agent-thread list --limit 10 --after -csdk agent-thread find-first --where.. -csdk agent-thread get --id -csdk agent-thread create --entityId [--title ] [--mode ] [--model ] [--systemPrompt ] [--ownerId ] [--status ] -csdk agent-thread update --id [--title ] [--mode ] [--model ] [--systemPrompt ] [--ownerId ] [--entityId ] [--status ] -csdk agent-thread delete --id -``` - -## Examples - -### List agentThread records - -```bash -csdk agent-thread list -``` - -### List agentThread records with pagination - -```bash -csdk agent-thread list --limit 10 --offset 0 -``` - -### List agentThread records with cursor pagination - -```bash -csdk agent-thread list --limit 10 --after -``` - -### Find first matching agentThread - -```bash -csdk agent-thread find-first --where.id.equalTo -``` - -### List agentThread records with field selection - -```bash -csdk agent-thread list --select id,id -``` - -### List agentThread records with filtering and ordering - -```bash -csdk agent-thread list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a agentThread - -```bash -csdk agent-thread create --entityId [--title ] [--mode ] [--model ] [--systemPrompt ] [--ownerId ] [--status ] -``` - -### Get a agentThread by id - -```bash -csdk agent-thread get --id -``` diff --git a/.agents/skills/cli-public/references/api-module.md b/.agents/skills/cli-public/references/api-module.md deleted file mode 100644 index 7de5488eea..0000000000 --- a/.agents/skills/cli-public/references/api-module.md +++ /dev/null @@ -1,68 +0,0 @@ -# apiModule - - - -CRUD operations for ApiModule records via csdk CLI - -## Usage - -```bash -csdk api-module list -csdk api-module list --where.. --orderBy -csdk api-module list --limit 10 --after -csdk api-module find-first --where.. -csdk api-module get --id -csdk api-module create --databaseId --apiId --name --data -csdk api-module update --id [--databaseId ] [--apiId ] [--name ] [--data ] -csdk api-module delete --id -``` - -## Examples - -### List apiModule records - -```bash -csdk api-module list -``` - -### List apiModule records with pagination - -```bash -csdk api-module list --limit 10 --offset 0 -``` - -### List apiModule records with cursor pagination - -```bash -csdk api-module list --limit 10 --after -``` - -### Find first matching apiModule - -```bash -csdk api-module find-first --where.id.equalTo -``` - -### List apiModule records with field selection - -```bash -csdk api-module list --select id,id -``` - -### List apiModule records with filtering and ordering - -```bash -csdk api-module list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a apiModule - -```bash -csdk api-module create --databaseId --apiId --name --data -``` - -### Get a apiModule by id - -```bash -csdk api-module get --id -``` diff --git a/.agents/skills/cli-public/references/api-schema.md b/.agents/skills/cli-public/references/api-schema.md deleted file mode 100644 index 23abc22c9b..0000000000 --- a/.agents/skills/cli-public/references/api-schema.md +++ /dev/null @@ -1,68 +0,0 @@ -# apiSchema - - - -CRUD operations for ApiSchema records via csdk CLI - -## Usage - -```bash -csdk api-schema list -csdk api-schema list --where.. --orderBy -csdk api-schema list --limit 10 --after -csdk api-schema find-first --where.. -csdk api-schema get --id -csdk api-schema create --databaseId --schemaId --apiId -csdk api-schema update --id [--databaseId ] [--schemaId ] [--apiId ] -csdk api-schema delete --id -``` - -## Examples - -### List apiSchema records - -```bash -csdk api-schema list -``` - -### List apiSchema records with pagination - -```bash -csdk api-schema list --limit 10 --offset 0 -``` - -### List apiSchema records with cursor pagination - -```bash -csdk api-schema list --limit 10 --after -``` - -### Find first matching apiSchema - -```bash -csdk api-schema find-first --where.id.equalTo -``` - -### List apiSchema records with field selection - -```bash -csdk api-schema list --select id,id -``` - -### List apiSchema records with filtering and ordering - -```bash -csdk api-schema list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a apiSchema - -```bash -csdk api-schema create --databaseId --schemaId --apiId -``` - -### Get a apiSchema by id - -```bash -csdk api-schema get --id -``` diff --git a/.agents/skills/cli-public/references/api-setting.md b/.agents/skills/cli-public/references/api-setting.md deleted file mode 100644 index d9e264060a..0000000000 --- a/.agents/skills/cli-public/references/api-setting.md +++ /dev/null @@ -1,68 +0,0 @@ -# apiSetting - - - -CRUD operations for ApiSetting records via csdk CLI - -## Usage - -```bash -csdk api-setting list -csdk api-setting list --where.. --orderBy -csdk api-setting list --limit 10 --after -csdk api-setting find-first --where.. -csdk api-setting get --id -csdk api-setting create --databaseId --apiId [--enableAggregates ] [--enablePostgis ] [--enableSearch ] [--enableDirectUploads ] [--enablePresignedUploads ] [--enableManyToMany ] [--enableConnectionFilter ] [--enableLtree ] [--enableLlm ] [--enableRealtime ] [--enableBulk ] [--options ] -csdk api-setting update --id [--databaseId ] [--apiId ] [--enableAggregates ] [--enablePostgis ] [--enableSearch ] [--enableDirectUploads ] [--enablePresignedUploads ] [--enableManyToMany ] [--enableConnectionFilter ] [--enableLtree ] [--enableLlm ] [--enableRealtime ] [--enableBulk ] [--options ] -csdk api-setting delete --id -``` - -## Examples - -### List apiSetting records - -```bash -csdk api-setting list -``` - -### List apiSetting records with pagination - -```bash -csdk api-setting list --limit 10 --offset 0 -``` - -### List apiSetting records with cursor pagination - -```bash -csdk api-setting list --limit 10 --after -``` - -### Find first matching apiSetting - -```bash -csdk api-setting find-first --where.id.equalTo -``` - -### List apiSetting records with field selection - -```bash -csdk api-setting list --select id,id -``` - -### List apiSetting records with filtering and ordering - -```bash -csdk api-setting list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a apiSetting - -```bash -csdk api-setting create --databaseId --apiId [--enableAggregates ] [--enablePostgis ] [--enableSearch ] [--enableDirectUploads ] [--enablePresignedUploads ] [--enableManyToMany ] [--enableConnectionFilter ] [--enableLtree ] [--enableLlm ] [--enableRealtime ] [--enableBulk ] [--options ] -``` - -### Get a apiSetting by id - -```bash -csdk api-setting get --id -``` diff --git a/.agents/skills/cli-public/references/api.md b/.agents/skills/cli-public/references/api.md deleted file mode 100644 index 2079938667..0000000000 --- a/.agents/skills/cli-public/references/api.md +++ /dev/null @@ -1,68 +0,0 @@ -# api - - - -CRUD operations for Api records via csdk CLI - -## Usage - -```bash -csdk api list -csdk api list --where.. --orderBy -csdk api list --limit 10 --after -csdk api find-first --where.. -csdk api get --id -csdk api create --databaseId --name [--dbname ] [--roleName ] [--anonRole ] [--isPublic ] -csdk api update --id [--databaseId ] [--name ] [--dbname ] [--roleName ] [--anonRole ] [--isPublic ] -csdk api delete --id -``` - -## Examples - -### List api records - -```bash -csdk api list -``` - -### List api records with pagination - -```bash -csdk api list --limit 10 --offset 0 -``` - -### List api records with cursor pagination - -```bash -csdk api list --limit 10 --after -``` - -### Find first matching api - -```bash -csdk api find-first --where.id.equalTo -``` - -### List api records with field selection - -```bash -csdk api list --select id,id -``` - -### List api records with filtering and ordering - -```bash -csdk api list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a api - -```bash -csdk api create --databaseId --name [--dbname ] [--roleName ] [--anonRole ] [--isPublic ] -``` - -### Get a api by id - -```bash -csdk api get --id -``` diff --git a/.agents/skills/cli-public/references/app-achievement.md b/.agents/skills/cli-public/references/app-achievement.md deleted file mode 100644 index fb54901dd4..0000000000 --- a/.agents/skills/cli-public/references/app-achievement.md +++ /dev/null @@ -1,68 +0,0 @@ -# appAchievement - - - -CRUD operations for AppAchievement records via csdk CLI - -## Usage - -```bash -csdk app-achievement list -csdk app-achievement list --where.. --orderBy -csdk app-achievement list --limit 10 --after -csdk app-achievement find-first --where.. -csdk app-achievement get --id -csdk app-achievement create --name [--actorId ] [--count ] -csdk app-achievement update --id [--actorId ] [--name ] [--count ] -csdk app-achievement delete --id -``` - -## Examples - -### List appAchievement records - -```bash -csdk app-achievement list -``` - -### List appAchievement records with pagination - -```bash -csdk app-achievement list --limit 10 --offset 0 -``` - -### List appAchievement records with cursor pagination - -```bash -csdk app-achievement list --limit 10 --after -``` - -### Find first matching appAchievement - -```bash -csdk app-achievement find-first --where.id.equalTo -``` - -### List appAchievement records with field selection - -```bash -csdk app-achievement list --select id,id -``` - -### List appAchievement records with filtering and ordering - -```bash -csdk app-achievement list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a appAchievement - -```bash -csdk app-achievement create --name [--actorId ] [--count ] -``` - -### Get a appAchievement by id - -```bash -csdk app-achievement get --id -``` diff --git a/.agents/skills/cli-public/references/app-admin-grant.md b/.agents/skills/cli-public/references/app-admin-grant.md deleted file mode 100644 index 8567b49bcb..0000000000 --- a/.agents/skills/cli-public/references/app-admin-grant.md +++ /dev/null @@ -1,68 +0,0 @@ -# appAdminGrant - - - -CRUD operations for AppAdminGrant records via csdk CLI - -## Usage - -```bash -csdk app-admin-grant list -csdk app-admin-grant list --where.. --orderBy -csdk app-admin-grant list --limit 10 --after -csdk app-admin-grant find-first --where.. -csdk app-admin-grant get --id -csdk app-admin-grant create --actorId [--isGrant ] [--grantorId ] -csdk app-admin-grant update --id [--isGrant ] [--actorId ] [--grantorId ] -csdk app-admin-grant delete --id -``` - -## Examples - -### List appAdminGrant records - -```bash -csdk app-admin-grant list -``` - -### List appAdminGrant records with pagination - -```bash -csdk app-admin-grant list --limit 10 --offset 0 -``` - -### List appAdminGrant records with cursor pagination - -```bash -csdk app-admin-grant list --limit 10 --after -``` - -### Find first matching appAdminGrant - -```bash -csdk app-admin-grant find-first --where.id.equalTo -``` - -### List appAdminGrant records with field selection - -```bash -csdk app-admin-grant list --select id,id -``` - -### List appAdminGrant records with filtering and ordering - -```bash -csdk app-admin-grant list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a appAdminGrant - -```bash -csdk app-admin-grant create --actorId [--isGrant ] [--grantorId ] -``` - -### Get a appAdminGrant by id - -```bash -csdk app-admin-grant get --id -``` diff --git a/.agents/skills/cli-public/references/app-claimed-invite.md b/.agents/skills/cli-public/references/app-claimed-invite.md deleted file mode 100644 index c5ceae2709..0000000000 --- a/.agents/skills/cli-public/references/app-claimed-invite.md +++ /dev/null @@ -1,68 +0,0 @@ -# appClaimedInvite - - - -CRUD operations for AppClaimedInvite records via csdk CLI - -## Usage - -```bash -csdk app-claimed-invite list -csdk app-claimed-invite list --where.. --orderBy -csdk app-claimed-invite list --limit 10 --after -csdk app-claimed-invite find-first --where.. -csdk app-claimed-invite get --id -csdk app-claimed-invite create [--data ] [--senderId ] [--receiverId ] -csdk app-claimed-invite update --id [--data ] [--senderId ] [--receiverId ] -csdk app-claimed-invite delete --id -``` - -## Examples - -### List appClaimedInvite records - -```bash -csdk app-claimed-invite list -``` - -### List appClaimedInvite records with pagination - -```bash -csdk app-claimed-invite list --limit 10 --offset 0 -``` - -### List appClaimedInvite records with cursor pagination - -```bash -csdk app-claimed-invite list --limit 10 --after -``` - -### Find first matching appClaimedInvite - -```bash -csdk app-claimed-invite find-first --where.id.equalTo -``` - -### List appClaimedInvite records with field selection - -```bash -csdk app-claimed-invite list --select id,id -``` - -### List appClaimedInvite records with filtering and ordering - -```bash -csdk app-claimed-invite list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a appClaimedInvite - -```bash -csdk app-claimed-invite create [--data ] [--senderId ] [--receiverId ] -``` - -### Get a appClaimedInvite by id - -```bash -csdk app-claimed-invite get --id -``` diff --git a/.agents/skills/cli-public/references/app-grant.md b/.agents/skills/cli-public/references/app-grant.md deleted file mode 100644 index 9880b87676..0000000000 --- a/.agents/skills/cli-public/references/app-grant.md +++ /dev/null @@ -1,68 +0,0 @@ -# appGrant - - - -CRUD operations for AppGrant records via csdk CLI - -## Usage - -```bash -csdk app-grant list -csdk app-grant list --where.. --orderBy -csdk app-grant list --limit 10 --after -csdk app-grant find-first --where.. -csdk app-grant get --id -csdk app-grant create --actorId [--permissions ] [--isGrant ] [--grantorId ] -csdk app-grant update --id [--permissions ] [--isGrant ] [--actorId ] [--grantorId ] -csdk app-grant delete --id -``` - -## Examples - -### List appGrant records - -```bash -csdk app-grant list -``` - -### List appGrant records with pagination - -```bash -csdk app-grant list --limit 10 --offset 0 -``` - -### List appGrant records with cursor pagination - -```bash -csdk app-grant list --limit 10 --after -``` - -### Find first matching appGrant - -```bash -csdk app-grant find-first --where.id.equalTo -``` - -### List appGrant records with field selection - -```bash -csdk app-grant list --select id,id -``` - -### List appGrant records with filtering and ordering - -```bash -csdk app-grant list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a appGrant - -```bash -csdk app-grant create --actorId [--permissions ] [--isGrant ] [--grantorId ] -``` - -### Get a appGrant by id - -```bash -csdk app-grant get --id -``` diff --git a/.agents/skills/cli-public/references/app-invite.md b/.agents/skills/cli-public/references/app-invite.md deleted file mode 100644 index a67996f49f..0000000000 --- a/.agents/skills/cli-public/references/app-invite.md +++ /dev/null @@ -1,68 +0,0 @@ -# appInvite - - - -CRUD operations for AppInvite records via csdk CLI - -## Usage - -```bash -csdk app-invite list -csdk app-invite list --where.. --orderBy -csdk app-invite list --limit 10 --after -csdk app-invite find-first --where.. -csdk app-invite get --id -csdk app-invite create [--email ] [--senderId ] [--inviteToken ] [--inviteValid ] [--inviteLimit ] [--inviteCount ] [--multiple ] [--data ] [--profileId ] [--expiresAt ] -csdk app-invite update --id [--email ] [--senderId ] [--inviteToken ] [--inviteValid ] [--inviteLimit ] [--inviteCount ] [--multiple ] [--data ] [--profileId ] [--expiresAt ] -csdk app-invite delete --id -``` - -## Examples - -### List appInvite records - -```bash -csdk app-invite list -``` - -### List appInvite records with pagination - -```bash -csdk app-invite list --limit 10 --offset 0 -``` - -### List appInvite records with cursor pagination - -```bash -csdk app-invite list --limit 10 --after -``` - -### Find first matching appInvite - -```bash -csdk app-invite find-first --where.id.equalTo -``` - -### List appInvite records with field selection - -```bash -csdk app-invite list --select id,id -``` - -### List appInvite records with filtering and ordering - -```bash -csdk app-invite list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a appInvite - -```bash -csdk app-invite create [--email ] [--senderId ] [--inviteToken ] [--inviteValid ] [--inviteLimit ] [--inviteCount ] [--multiple ] [--data ] [--profileId ] [--expiresAt ] -``` - -### Get a appInvite by id - -```bash -csdk app-invite get --id -``` diff --git a/.agents/skills/cli-public/references/app-level-requirement.md b/.agents/skills/cli-public/references/app-level-requirement.md deleted file mode 100644 index 42bf8c1897..0000000000 --- a/.agents/skills/cli-public/references/app-level-requirement.md +++ /dev/null @@ -1,68 +0,0 @@ -# appLevelRequirement - - - -CRUD operations for AppLevelRequirement records via csdk CLI - -## Usage - -```bash -csdk app-level-requirement list -csdk app-level-requirement list --where.. --orderBy -csdk app-level-requirement list --limit 10 --after -csdk app-level-requirement find-first --where.. -csdk app-level-requirement get --id -csdk app-level-requirement create --name --level [--description ] [--requiredCount ] [--priority ] -csdk app-level-requirement update --id [--name ] [--level ] [--description ] [--requiredCount ] [--priority ] -csdk app-level-requirement delete --id -``` - -## Examples - -### List appLevelRequirement records - -```bash -csdk app-level-requirement list -``` - -### List appLevelRequirement records with pagination - -```bash -csdk app-level-requirement list --limit 10 --offset 0 -``` - -### List appLevelRequirement records with cursor pagination - -```bash -csdk app-level-requirement list --limit 10 --after -``` - -### Find first matching appLevelRequirement - -```bash -csdk app-level-requirement find-first --where.id.equalTo -``` - -### List appLevelRequirement records with field selection - -```bash -csdk app-level-requirement list --select id,id -``` - -### List appLevelRequirement records with filtering and ordering - -```bash -csdk app-level-requirement list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a appLevelRequirement - -```bash -csdk app-level-requirement create --name --level [--description ] [--requiredCount ] [--priority ] -``` - -### Get a appLevelRequirement by id - -```bash -csdk app-level-requirement get --id -``` diff --git a/.agents/skills/cli-public/references/app-level.md b/.agents/skills/cli-public/references/app-level.md deleted file mode 100644 index 8c44edf921..0000000000 --- a/.agents/skills/cli-public/references/app-level.md +++ /dev/null @@ -1,68 +0,0 @@ -# appLevel - - - -CRUD operations for AppLevel records via csdk CLI - -## Usage - -```bash -csdk app-level list -csdk app-level list --where.. --orderBy -csdk app-level list --limit 10 --after -csdk app-level find-first --where.. -csdk app-level get --id -csdk app-level create --name [--description ] [--image ] [--ownerId ] -csdk app-level update --id [--name ] [--description ] [--image ] [--ownerId ] -csdk app-level delete --id -``` - -## Examples - -### List appLevel records - -```bash -csdk app-level list -``` - -### List appLevel records with pagination - -```bash -csdk app-level list --limit 10 --offset 0 -``` - -### List appLevel records with cursor pagination - -```bash -csdk app-level list --limit 10 --after -``` - -### Find first matching appLevel - -```bash -csdk app-level find-first --where.id.equalTo -``` - -### List appLevel records with field selection - -```bash -csdk app-level list --select id,id -``` - -### List appLevel records with filtering and ordering - -```bash -csdk app-level list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a appLevel - -```bash -csdk app-level create --name [--description ] [--image ] [--ownerId ] -``` - -### Get a appLevel by id - -```bash -csdk app-level get --id -``` diff --git a/.agents/skills/cli-public/references/app-limit-cap.md b/.agents/skills/cli-public/references/app-limit-cap.md deleted file mode 100644 index f9ffb5b50f..0000000000 --- a/.agents/skills/cli-public/references/app-limit-cap.md +++ /dev/null @@ -1,68 +0,0 @@ -# appLimitCap - - - -CRUD operations for AppLimitCap records via csdk CLI - -## Usage - -```bash -csdk app-limit-cap list -csdk app-limit-cap list --where.. --orderBy -csdk app-limit-cap list --limit 10 --after -csdk app-limit-cap find-first --where.. -csdk app-limit-cap get --id -csdk app-limit-cap create --name --entityId [--max ] -csdk app-limit-cap update --id [--name ] [--entityId ] [--max ] -csdk app-limit-cap delete --id -``` - -## Examples - -### List appLimitCap records - -```bash -csdk app-limit-cap list -``` - -### List appLimitCap records with pagination - -```bash -csdk app-limit-cap list --limit 10 --offset 0 -``` - -### List appLimitCap records with cursor pagination - -```bash -csdk app-limit-cap list --limit 10 --after -``` - -### Find first matching appLimitCap - -```bash -csdk app-limit-cap find-first --where.id.equalTo -``` - -### List appLimitCap records with field selection - -```bash -csdk app-limit-cap list --select id,id -``` - -### List appLimitCap records with filtering and ordering - -```bash -csdk app-limit-cap list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a appLimitCap - -```bash -csdk app-limit-cap create --name --entityId [--max ] -``` - -### Get a appLimitCap by id - -```bash -csdk app-limit-cap get --id -``` diff --git a/.agents/skills/cli-public/references/app-limit-caps-default.md b/.agents/skills/cli-public/references/app-limit-caps-default.md deleted file mode 100644 index 2c1bbca484..0000000000 --- a/.agents/skills/cli-public/references/app-limit-caps-default.md +++ /dev/null @@ -1,68 +0,0 @@ -# appLimitCapsDefault - - - -CRUD operations for AppLimitCapsDefault records via csdk CLI - -## Usage - -```bash -csdk app-limit-caps-default list -csdk app-limit-caps-default list --where.. --orderBy -csdk app-limit-caps-default list --limit 10 --after -csdk app-limit-caps-default find-first --where.. -csdk app-limit-caps-default get --id -csdk app-limit-caps-default create --name [--max ] -csdk app-limit-caps-default update --id [--name ] [--max ] -csdk app-limit-caps-default delete --id -``` - -## Examples - -### List appLimitCapsDefault records - -```bash -csdk app-limit-caps-default list -``` - -### List appLimitCapsDefault records with pagination - -```bash -csdk app-limit-caps-default list --limit 10 --offset 0 -``` - -### List appLimitCapsDefault records with cursor pagination - -```bash -csdk app-limit-caps-default list --limit 10 --after -``` - -### Find first matching appLimitCapsDefault - -```bash -csdk app-limit-caps-default find-first --where.id.equalTo -``` - -### List appLimitCapsDefault records with field selection - -```bash -csdk app-limit-caps-default list --select id,id -``` - -### List appLimitCapsDefault records with filtering and ordering - -```bash -csdk app-limit-caps-default list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a appLimitCapsDefault - -```bash -csdk app-limit-caps-default create --name [--max ] -``` - -### Get a appLimitCapsDefault by id - -```bash -csdk app-limit-caps-default get --id -``` diff --git a/.agents/skills/cli-public/references/app-limit-credit-code-item.md b/.agents/skills/cli-public/references/app-limit-credit-code-item.md deleted file mode 100644 index 5b7fc35676..0000000000 --- a/.agents/skills/cli-public/references/app-limit-credit-code-item.md +++ /dev/null @@ -1,68 +0,0 @@ -# appLimitCreditCodeItem - - - -CRUD operations for AppLimitCreditCodeItem records via csdk CLI - -## Usage - -```bash -csdk app-limit-credit-code-item list -csdk app-limit-credit-code-item list --where.. --orderBy -csdk app-limit-credit-code-item list --limit 10 --after -csdk app-limit-credit-code-item find-first --where.. -csdk app-limit-credit-code-item get --id -csdk app-limit-credit-code-item create --creditCodeId --defaultLimitId --amount [--creditType ] -csdk app-limit-credit-code-item update --id [--creditCodeId ] [--defaultLimitId ] [--amount ] [--creditType ] -csdk app-limit-credit-code-item delete --id -``` - -## Examples - -### List appLimitCreditCodeItem records - -```bash -csdk app-limit-credit-code-item list -``` - -### List appLimitCreditCodeItem records with pagination - -```bash -csdk app-limit-credit-code-item list --limit 10 --offset 0 -``` - -### List appLimitCreditCodeItem records with cursor pagination - -```bash -csdk app-limit-credit-code-item list --limit 10 --after -``` - -### Find first matching appLimitCreditCodeItem - -```bash -csdk app-limit-credit-code-item find-first --where.id.equalTo -``` - -### List appLimitCreditCodeItem records with field selection - -```bash -csdk app-limit-credit-code-item list --select id,id -``` - -### List appLimitCreditCodeItem records with filtering and ordering - -```bash -csdk app-limit-credit-code-item list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a appLimitCreditCodeItem - -```bash -csdk app-limit-credit-code-item create --creditCodeId --defaultLimitId --amount [--creditType ] -``` - -### Get a appLimitCreditCodeItem by id - -```bash -csdk app-limit-credit-code-item get --id -``` diff --git a/.agents/skills/cli-public/references/app-limit-credit-code.md b/.agents/skills/cli-public/references/app-limit-credit-code.md deleted file mode 100644 index 018821c303..0000000000 --- a/.agents/skills/cli-public/references/app-limit-credit-code.md +++ /dev/null @@ -1,68 +0,0 @@ -# appLimitCreditCode - - - -CRUD operations for AppLimitCreditCode records via csdk CLI - -## Usage - -```bash -csdk app-limit-credit-code list -csdk app-limit-credit-code list --where.. --orderBy -csdk app-limit-credit-code list --limit 10 --after -csdk app-limit-credit-code find-first --where.. -csdk app-limit-credit-code get --id -csdk app-limit-credit-code create --code [--maxRedemptions ] [--currentRedemptions ] [--expiresAt ] -csdk app-limit-credit-code update --id [--code ] [--maxRedemptions ] [--currentRedemptions ] [--expiresAt ] -csdk app-limit-credit-code delete --id -``` - -## Examples - -### List appLimitCreditCode records - -```bash -csdk app-limit-credit-code list -``` - -### List appLimitCreditCode records with pagination - -```bash -csdk app-limit-credit-code list --limit 10 --offset 0 -``` - -### List appLimitCreditCode records with cursor pagination - -```bash -csdk app-limit-credit-code list --limit 10 --after -``` - -### Find first matching appLimitCreditCode - -```bash -csdk app-limit-credit-code find-first --where.id.equalTo -``` - -### List appLimitCreditCode records with field selection - -```bash -csdk app-limit-credit-code list --select id,id -``` - -### List appLimitCreditCode records with filtering and ordering - -```bash -csdk app-limit-credit-code list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a appLimitCreditCode - -```bash -csdk app-limit-credit-code create --code [--maxRedemptions ] [--currentRedemptions ] [--expiresAt ] -``` - -### Get a appLimitCreditCode by id - -```bash -csdk app-limit-credit-code get --id -``` diff --git a/.agents/skills/cli-public/references/app-limit-credit-redemption.md b/.agents/skills/cli-public/references/app-limit-credit-redemption.md deleted file mode 100644 index cc48d2e049..0000000000 --- a/.agents/skills/cli-public/references/app-limit-credit-redemption.md +++ /dev/null @@ -1,68 +0,0 @@ -# appLimitCreditRedemption - - - -CRUD operations for AppLimitCreditRedemption records via csdk CLI - -## Usage - -```bash -csdk app-limit-credit-redemption list -csdk app-limit-credit-redemption list --where.. --orderBy -csdk app-limit-credit-redemption list --limit 10 --after -csdk app-limit-credit-redemption find-first --where.. -csdk app-limit-credit-redemption get --id -csdk app-limit-credit-redemption create --creditCodeId --entityId -csdk app-limit-credit-redemption update --id [--creditCodeId ] [--entityId ] -csdk app-limit-credit-redemption delete --id -``` - -## Examples - -### List appLimitCreditRedemption records - -```bash -csdk app-limit-credit-redemption list -``` - -### List appLimitCreditRedemption records with pagination - -```bash -csdk app-limit-credit-redemption list --limit 10 --offset 0 -``` - -### List appLimitCreditRedemption records with cursor pagination - -```bash -csdk app-limit-credit-redemption list --limit 10 --after -``` - -### Find first matching appLimitCreditRedemption - -```bash -csdk app-limit-credit-redemption find-first --where.id.equalTo -``` - -### List appLimitCreditRedemption records with field selection - -```bash -csdk app-limit-credit-redemption list --select id,id -``` - -### List appLimitCreditRedemption records with filtering and ordering - -```bash -csdk app-limit-credit-redemption list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a appLimitCreditRedemption - -```bash -csdk app-limit-credit-redemption create --creditCodeId --entityId -``` - -### Get a appLimitCreditRedemption by id - -```bash -csdk app-limit-credit-redemption get --id -``` diff --git a/.agents/skills/cli-public/references/app-limit-credit.md b/.agents/skills/cli-public/references/app-limit-credit.md deleted file mode 100644 index cbcd84184a..0000000000 --- a/.agents/skills/cli-public/references/app-limit-credit.md +++ /dev/null @@ -1,68 +0,0 @@ -# appLimitCredit - - - -CRUD operations for AppLimitCredit records via csdk CLI - -## Usage - -```bash -csdk app-limit-credit list -csdk app-limit-credit list --where.. --orderBy -csdk app-limit-credit list --limit 10 --after -csdk app-limit-credit find-first --where.. -csdk app-limit-credit get --id -csdk app-limit-credit create --defaultLimitId --amount [--actorId ] [--creditType ] [--reason ] -csdk app-limit-credit update --id [--defaultLimitId ] [--actorId ] [--amount ] [--creditType ] [--reason ] -csdk app-limit-credit delete --id -``` - -## Examples - -### List appLimitCredit records - -```bash -csdk app-limit-credit list -``` - -### List appLimitCredit records with pagination - -```bash -csdk app-limit-credit list --limit 10 --offset 0 -``` - -### List appLimitCredit records with cursor pagination - -```bash -csdk app-limit-credit list --limit 10 --after -``` - -### Find first matching appLimitCredit - -```bash -csdk app-limit-credit find-first --where.id.equalTo -``` - -### List appLimitCredit records with field selection - -```bash -csdk app-limit-credit list --select id,id -``` - -### List appLimitCredit records with filtering and ordering - -```bash -csdk app-limit-credit list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a appLimitCredit - -```bash -csdk app-limit-credit create --defaultLimitId --amount [--actorId ] [--creditType ] [--reason ] -``` - -### Get a appLimitCredit by id - -```bash -csdk app-limit-credit get --id -``` diff --git a/.agents/skills/cli-public/references/app-limit-default.md b/.agents/skills/cli-public/references/app-limit-default.md deleted file mode 100644 index 365d73b586..0000000000 --- a/.agents/skills/cli-public/references/app-limit-default.md +++ /dev/null @@ -1,68 +0,0 @@ -# appLimitDefault - - - -CRUD operations for AppLimitDefault records via csdk CLI - -## Usage - -```bash -csdk app-limit-default list -csdk app-limit-default list --where.. --orderBy -csdk app-limit-default list --limit 10 --after -csdk app-limit-default find-first --where.. -csdk app-limit-default get --id -csdk app-limit-default create --name [--max ] [--softMax ] -csdk app-limit-default update --id [--name ] [--max ] [--softMax ] -csdk app-limit-default delete --id -``` - -## Examples - -### List appLimitDefault records - -```bash -csdk app-limit-default list -``` - -### List appLimitDefault records with pagination - -```bash -csdk app-limit-default list --limit 10 --offset 0 -``` - -### List appLimitDefault records with cursor pagination - -```bash -csdk app-limit-default list --limit 10 --after -``` - -### Find first matching appLimitDefault - -```bash -csdk app-limit-default find-first --where.id.equalTo -``` - -### List appLimitDefault records with field selection - -```bash -csdk app-limit-default list --select id,id -``` - -### List appLimitDefault records with filtering and ordering - -```bash -csdk app-limit-default list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a appLimitDefault - -```bash -csdk app-limit-default create --name [--max ] [--softMax ] -``` - -### Get a appLimitDefault by id - -```bash -csdk app-limit-default get --id -``` diff --git a/.agents/skills/cli-public/references/app-limit-event.md b/.agents/skills/cli-public/references/app-limit-event.md deleted file mode 100644 index dabcac3d1b..0000000000 --- a/.agents/skills/cli-public/references/app-limit-event.md +++ /dev/null @@ -1,68 +0,0 @@ -# appLimitEvent - - - -CRUD operations for AppLimitEvent records via csdk CLI - -## Usage - -```bash -csdk app-limit-event list -csdk app-limit-event list --where.. --orderBy -csdk app-limit-event list --limit 10 --after -csdk app-limit-event find-first --where.. -csdk app-limit-event get --id -csdk app-limit-event create [--name ] [--actorId ] [--entityId ] [--organizationId ] [--entityType ] [--eventType ] [--delta ] [--numBefore ] [--numAfter ] [--maxAtEvent ] [--reason ] -csdk app-limit-event update --id [--name ] [--actorId ] [--entityId ] [--organizationId ] [--entityType ] [--eventType ] [--delta ] [--numBefore ] [--numAfter ] [--maxAtEvent ] [--reason ] -csdk app-limit-event delete --id -``` - -## Examples - -### List appLimitEvent records - -```bash -csdk app-limit-event list -``` - -### List appLimitEvent records with pagination - -```bash -csdk app-limit-event list --limit 10 --offset 0 -``` - -### List appLimitEvent records with cursor pagination - -```bash -csdk app-limit-event list --limit 10 --after -``` - -### Find first matching appLimitEvent - -```bash -csdk app-limit-event find-first --where.id.equalTo -``` - -### List appLimitEvent records with field selection - -```bash -csdk app-limit-event list --select id,id -``` - -### List appLimitEvent records with filtering and ordering - -```bash -csdk app-limit-event list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a appLimitEvent - -```bash -csdk app-limit-event create [--name ] [--actorId ] [--entityId ] [--organizationId ] [--entityType ] [--eventType ] [--delta ] [--numBefore ] [--numAfter ] [--maxAtEvent ] [--reason ] -``` - -### Get a appLimitEvent by id - -```bash -csdk app-limit-event get --id -``` diff --git a/.agents/skills/cli-public/references/app-limit-warning.md b/.agents/skills/cli-public/references/app-limit-warning.md deleted file mode 100644 index d9bbefd2c7..0000000000 --- a/.agents/skills/cli-public/references/app-limit-warning.md +++ /dev/null @@ -1,68 +0,0 @@ -# appLimitWarning - - - -CRUD operations for AppLimitWarning records via csdk CLI - -## Usage - -```bash -csdk app-limit-warning list -csdk app-limit-warning list --where.. --orderBy -csdk app-limit-warning list --limit 10 --after -csdk app-limit-warning find-first --where.. -csdk app-limit-warning get --id -csdk app-limit-warning create --name --warningType --thresholdValue --taskIdentifier -csdk app-limit-warning update --id [--name ] [--warningType ] [--thresholdValue ] [--taskIdentifier ] -csdk app-limit-warning delete --id -``` - -## Examples - -### List appLimitWarning records - -```bash -csdk app-limit-warning list -``` - -### List appLimitWarning records with pagination - -```bash -csdk app-limit-warning list --limit 10 --offset 0 -``` - -### List appLimitWarning records with cursor pagination - -```bash -csdk app-limit-warning list --limit 10 --after -``` - -### Find first matching appLimitWarning - -```bash -csdk app-limit-warning find-first --where.id.equalTo -``` - -### List appLimitWarning records with field selection - -```bash -csdk app-limit-warning list --select id,id -``` - -### List appLimitWarning records with filtering and ordering - -```bash -csdk app-limit-warning list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a appLimitWarning - -```bash -csdk app-limit-warning create --name --warningType --thresholdValue --taskIdentifier -``` - -### Get a appLimitWarning by id - -```bash -csdk app-limit-warning get --id -``` diff --git a/.agents/skills/cli-public/references/app-limit.md b/.agents/skills/cli-public/references/app-limit.md deleted file mode 100644 index 101544e504..0000000000 --- a/.agents/skills/cli-public/references/app-limit.md +++ /dev/null @@ -1,68 +0,0 @@ -# appLimit - - - -CRUD operations for AppLimit records via csdk CLI - -## Usage - -```bash -csdk app-limit list -csdk app-limit list --where.. --orderBy -csdk app-limit list --limit 10 --after -csdk app-limit find-first --where.. -csdk app-limit get --id -csdk app-limit create --actorId [--name ] [--num ] [--max ] [--softMax ] [--windowStart ] [--windowDuration ] [--planMax ] [--purchasedCredits ] [--periodCredits ] [--organizationId ] [--entityType ] -csdk app-limit update --id [--name ] [--actorId ] [--num ] [--max ] [--softMax ] [--windowStart ] [--windowDuration ] [--planMax ] [--purchasedCredits ] [--periodCredits ] [--organizationId ] [--entityType ] -csdk app-limit delete --id -``` - -## Examples - -### List appLimit records - -```bash -csdk app-limit list -``` - -### List appLimit records with pagination - -```bash -csdk app-limit list --limit 10 --offset 0 -``` - -### List appLimit records with cursor pagination - -```bash -csdk app-limit list --limit 10 --after -``` - -### Find first matching appLimit - -```bash -csdk app-limit find-first --where.id.equalTo -``` - -### List appLimit records with field selection - -```bash -csdk app-limit list --select id,id -``` - -### List appLimit records with filtering and ordering - -```bash -csdk app-limit list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a appLimit - -```bash -csdk app-limit create --actorId [--name ] [--num ] [--max ] [--softMax ] [--windowStart ] [--windowDuration ] [--planMax ] [--purchasedCredits ] [--periodCredits ] [--organizationId ] [--entityType ] -``` - -### Get a appLimit by id - -```bash -csdk app-limit get --id -``` diff --git a/.agents/skills/cli-public/references/app-membership-default.md b/.agents/skills/cli-public/references/app-membership-default.md deleted file mode 100644 index 836c99bef2..0000000000 --- a/.agents/skills/cli-public/references/app-membership-default.md +++ /dev/null @@ -1,68 +0,0 @@ -# appMembershipDefault - - - -CRUD operations for AppMembershipDefault records via csdk CLI - -## Usage - -```bash -csdk app-membership-default list -csdk app-membership-default list --where.. --orderBy -csdk app-membership-default list --limit 10 --after -csdk app-membership-default find-first --where.. -csdk app-membership-default get --id -csdk app-membership-default create [--createdBy ] [--updatedBy ] [--isApproved ] [--isVerified ] -csdk app-membership-default update --id [--createdBy ] [--updatedBy ] [--isApproved ] [--isVerified ] -csdk app-membership-default delete --id -``` - -## Examples - -### List appMembershipDefault records - -```bash -csdk app-membership-default list -``` - -### List appMembershipDefault records with pagination - -```bash -csdk app-membership-default list --limit 10 --offset 0 -``` - -### List appMembershipDefault records with cursor pagination - -```bash -csdk app-membership-default list --limit 10 --after -``` - -### Find first matching appMembershipDefault - -```bash -csdk app-membership-default find-first --where.id.equalTo -``` - -### List appMembershipDefault records with field selection - -```bash -csdk app-membership-default list --select id,id -``` - -### List appMembershipDefault records with filtering and ordering - -```bash -csdk app-membership-default list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a appMembershipDefault - -```bash -csdk app-membership-default create [--createdBy ] [--updatedBy ] [--isApproved ] [--isVerified ] -``` - -### Get a appMembershipDefault by id - -```bash -csdk app-membership-default get --id -``` diff --git a/.agents/skills/cli-public/references/app-membership.md b/.agents/skills/cli-public/references/app-membership.md deleted file mode 100644 index c58e06de77..0000000000 --- a/.agents/skills/cli-public/references/app-membership.md +++ /dev/null @@ -1,68 +0,0 @@ -# appMembership - - - -CRUD operations for AppMembership records via csdk CLI - -## Usage - -```bash -csdk app-membership list -csdk app-membership list --where.. --orderBy -csdk app-membership list --limit 10 --after -csdk app-membership find-first --where.. -csdk app-membership get --id -csdk app-membership create --actorId [--createdBy ] [--updatedBy ] [--isApproved ] [--isBanned ] [--isDisabled ] [--isVerified ] [--isActive ] [--isOwner ] [--isAdmin ] [--permissions ] [--granted ] [--profileId ] -csdk app-membership update --id [--createdBy ] [--updatedBy ] [--isApproved ] [--isBanned ] [--isDisabled ] [--isVerified ] [--isActive ] [--isOwner ] [--isAdmin ] [--permissions ] [--granted ] [--actorId ] [--profileId ] -csdk app-membership delete --id -``` - -## Examples - -### List appMembership records - -```bash -csdk app-membership list -``` - -### List appMembership records with pagination - -```bash -csdk app-membership list --limit 10 --offset 0 -``` - -### List appMembership records with cursor pagination - -```bash -csdk app-membership list --limit 10 --after -``` - -### Find first matching appMembership - -```bash -csdk app-membership find-first --where.id.equalTo -``` - -### List appMembership records with field selection - -```bash -csdk app-membership list --select id,id -``` - -### List appMembership records with filtering and ordering - -```bash -csdk app-membership list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a appMembership - -```bash -csdk app-membership create --actorId [--createdBy ] [--updatedBy ] [--isApproved ] [--isBanned ] [--isDisabled ] [--isVerified ] [--isActive ] [--isOwner ] [--isAdmin ] [--permissions ] [--granted ] [--profileId ] -``` - -### Get a appMembership by id - -```bash -csdk app-membership get --id -``` diff --git a/.agents/skills/cli-public/references/app-owner-grant.md b/.agents/skills/cli-public/references/app-owner-grant.md deleted file mode 100644 index 9884f4a524..0000000000 --- a/.agents/skills/cli-public/references/app-owner-grant.md +++ /dev/null @@ -1,68 +0,0 @@ -# appOwnerGrant - - - -CRUD operations for AppOwnerGrant records via csdk CLI - -## Usage - -```bash -csdk app-owner-grant list -csdk app-owner-grant list --where.. --orderBy -csdk app-owner-grant list --limit 10 --after -csdk app-owner-grant find-first --where.. -csdk app-owner-grant get --id -csdk app-owner-grant create --actorId [--isGrant ] [--grantorId ] -csdk app-owner-grant update --id [--isGrant ] [--actorId ] [--grantorId ] -csdk app-owner-grant delete --id -``` - -## Examples - -### List appOwnerGrant records - -```bash -csdk app-owner-grant list -``` - -### List appOwnerGrant records with pagination - -```bash -csdk app-owner-grant list --limit 10 --offset 0 -``` - -### List appOwnerGrant records with cursor pagination - -```bash -csdk app-owner-grant list --limit 10 --after -``` - -### Find first matching appOwnerGrant - -```bash -csdk app-owner-grant find-first --where.id.equalTo -``` - -### List appOwnerGrant records with field selection - -```bash -csdk app-owner-grant list --select id,id -``` - -### List appOwnerGrant records with filtering and ordering - -```bash -csdk app-owner-grant list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a appOwnerGrant - -```bash -csdk app-owner-grant create --actorId [--isGrant ] [--grantorId ] -``` - -### Get a appOwnerGrant by id - -```bash -csdk app-owner-grant get --id -``` diff --git a/.agents/skills/cli-public/references/app-permission-default.md b/.agents/skills/cli-public/references/app-permission-default.md deleted file mode 100644 index 86ef245035..0000000000 --- a/.agents/skills/cli-public/references/app-permission-default.md +++ /dev/null @@ -1,68 +0,0 @@ -# appPermissionDefault - - - -CRUD operations for AppPermissionDefault records via csdk CLI - -## Usage - -```bash -csdk app-permission-default list -csdk app-permission-default list --where.. --orderBy -csdk app-permission-default list --limit 10 --after -csdk app-permission-default find-first --where.. -csdk app-permission-default get --id -csdk app-permission-default create [--permissions ] -csdk app-permission-default update --id [--permissions ] -csdk app-permission-default delete --id -``` - -## Examples - -### List appPermissionDefault records - -```bash -csdk app-permission-default list -``` - -### List appPermissionDefault records with pagination - -```bash -csdk app-permission-default list --limit 10 --offset 0 -``` - -### List appPermissionDefault records with cursor pagination - -```bash -csdk app-permission-default list --limit 10 --after -``` - -### Find first matching appPermissionDefault - -```bash -csdk app-permission-default find-first --where.id.equalTo -``` - -### List appPermissionDefault records with field selection - -```bash -csdk app-permission-default list --select id,id -``` - -### List appPermissionDefault records with filtering and ordering - -```bash -csdk app-permission-default list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a appPermissionDefault - -```bash -csdk app-permission-default create [--permissions ] -``` - -### Get a appPermissionDefault by id - -```bash -csdk app-permission-default get --id -``` diff --git a/.agents/skills/cli-public/references/app-permission.md b/.agents/skills/cli-public/references/app-permission.md deleted file mode 100644 index 82c8495989..0000000000 --- a/.agents/skills/cli-public/references/app-permission.md +++ /dev/null @@ -1,68 +0,0 @@ -# appPermission - - - -CRUD operations for AppPermission records via csdk CLI - -## Usage - -```bash -csdk app-permission list -csdk app-permission list --where.. --orderBy -csdk app-permission list --limit 10 --after -csdk app-permission find-first --where.. -csdk app-permission get --id -csdk app-permission create [--name ] [--bitnum ] [--bitstr ] [--description ] -csdk app-permission update --id [--name ] [--bitnum ] [--bitstr ] [--description ] -csdk app-permission delete --id -``` - -## Examples - -### List appPermission records - -```bash -csdk app-permission list -``` - -### List appPermission records with pagination - -```bash -csdk app-permission list --limit 10 --offset 0 -``` - -### List appPermission records with cursor pagination - -```bash -csdk app-permission list --limit 10 --after -``` - -### Find first matching appPermission - -```bash -csdk app-permission find-first --where.id.equalTo -``` - -### List appPermission records with field selection - -```bash -csdk app-permission list --select id,id -``` - -### List appPermission records with filtering and ordering - -```bash -csdk app-permission list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a appPermission - -```bash -csdk app-permission create [--name ] [--bitnum ] [--bitstr ] [--description ] -``` - -### Get a appPermission by id - -```bash -csdk app-permission get --id -``` diff --git a/.agents/skills/cli-public/references/app-permissions-get-by-mask.md b/.agents/skills/cli-public/references/app-permissions-get-by-mask.md deleted file mode 100644 index 756b7809b0..0000000000 --- a/.agents/skills/cli-public/references/app-permissions-get-by-mask.md +++ /dev/null @@ -1,19 +0,0 @@ -# appPermissionsGetByMask - - - -Reads and enables pagination through a set of `AppPermission`. - -## Usage - -```bash -csdk app-permissions-get-by-mask --mask --first --offset --after -``` - -## Examples - -### Run appPermissionsGetByMask - -```bash -csdk app-permissions-get-by-mask --mask --first --offset --after -``` diff --git a/.agents/skills/cli-public/references/app-permissions-get-mask-by-names.md b/.agents/skills/cli-public/references/app-permissions-get-mask-by-names.md deleted file mode 100644 index 1d89a114c9..0000000000 --- a/.agents/skills/cli-public/references/app-permissions-get-mask-by-names.md +++ /dev/null @@ -1,19 +0,0 @@ -# appPermissionsGetMaskByNames - - - -Execute the appPermissionsGetMaskByNames query - -## Usage - -```bash -csdk app-permissions-get-mask-by-names --names -``` - -## Examples - -### Run appPermissionsGetMaskByNames - -```bash -csdk app-permissions-get-mask-by-names --names -``` diff --git a/.agents/skills/cli-public/references/app-permissions-get-mask.md b/.agents/skills/cli-public/references/app-permissions-get-mask.md deleted file mode 100644 index b9220c3c91..0000000000 --- a/.agents/skills/cli-public/references/app-permissions-get-mask.md +++ /dev/null @@ -1,19 +0,0 @@ -# appPermissionsGetMask - - - -Execute the appPermissionsGetMask query - -## Usage - -```bash -csdk app-permissions-get-mask --ids -``` - -## Examples - -### Run appPermissionsGetMask - -```bash -csdk app-permissions-get-mask --ids -``` diff --git a/.agents/skills/cli-public/references/app-permissions-get-padded-mask.md b/.agents/skills/cli-public/references/app-permissions-get-padded-mask.md deleted file mode 100644 index b1aef577dc..0000000000 --- a/.agents/skills/cli-public/references/app-permissions-get-padded-mask.md +++ /dev/null @@ -1,19 +0,0 @@ -# appPermissionsGetPaddedMask - - - -Execute the appPermissionsGetPaddedMask query - -## Usage - -```bash -csdk app-permissions-get-padded-mask --mask -``` - -## Examples - -### Run appPermissionsGetPaddedMask - -```bash -csdk app-permissions-get-padded-mask --mask -``` diff --git a/.agents/skills/cli-public/references/app-step.md b/.agents/skills/cli-public/references/app-step.md deleted file mode 100644 index 7495cb26bb..0000000000 --- a/.agents/skills/cli-public/references/app-step.md +++ /dev/null @@ -1,68 +0,0 @@ -# appStep - - - -CRUD operations for AppStep records via csdk CLI - -## Usage - -```bash -csdk app-step list -csdk app-step list --where.. --orderBy -csdk app-step list --limit 10 --after -csdk app-step find-first --where.. -csdk app-step get --id -csdk app-step create --name [--actorId ] [--count ] -csdk app-step update --id [--actorId ] [--name ] [--count ] -csdk app-step delete --id -``` - -## Examples - -### List appStep records - -```bash -csdk app-step list -``` - -### List appStep records with pagination - -```bash -csdk app-step list --limit 10 --offset 0 -``` - -### List appStep records with cursor pagination - -```bash -csdk app-step list --limit 10 --after -``` - -### Find first matching appStep - -```bash -csdk app-step find-first --where.id.equalTo -``` - -### List appStep records with field selection - -```bash -csdk app-step list --select id,id -``` - -### List appStep records with filtering and ordering - -```bash -csdk app-step list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a appStep - -```bash -csdk app-step create --name [--actorId ] [--count ] -``` - -### Get a appStep by id - -```bash -csdk app-step get --id -``` diff --git a/.agents/skills/cli-public/references/app.md b/.agents/skills/cli-public/references/app.md deleted file mode 100644 index 74913982c0..0000000000 --- a/.agents/skills/cli-public/references/app.md +++ /dev/null @@ -1,68 +0,0 @@ -# app - - - -CRUD operations for App records via csdk CLI - -## Usage - -```bash -csdk app list -csdk app list --where.. --orderBy -csdk app list --limit 10 --after -csdk app find-first --where.. -csdk app get --id -csdk app create --databaseId --siteId [--name ] [--appImage ] [--appStoreLink ] [--appStoreId ] [--appIdPrefix ] [--playStoreLink ] -csdk app update --id [--databaseId ] [--siteId ] [--name ] [--appImage ] [--appStoreLink ] [--appStoreId ] [--appIdPrefix ] [--playStoreLink ] -csdk app delete --id -``` - -## Examples - -### List app records - -```bash -csdk app list -``` - -### List app records with pagination - -```bash -csdk app list --limit 10 --offset 0 -``` - -### List app records with cursor pagination - -```bash -csdk app list --limit 10 --after -``` - -### Find first matching app - -```bash -csdk app find-first --where.id.equalTo -``` - -### List app records with field selection - -```bash -csdk app list --select id,id -``` - -### List app records with filtering and ordering - -```bash -csdk app list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a app - -```bash -csdk app create --databaseId --siteId [--name ] [--appImage ] [--appStoreLink ] [--appStoreId ] [--appIdPrefix ] [--playStoreLink ] -``` - -### Get a app by id - -```bash -csdk app get --id -``` diff --git a/.agents/skills/cli-public/references/append-field-smart-tags.md b/.agents/skills/cli-public/references/append-field-smart-tags.md deleted file mode 100644 index a8c30788f2..0000000000 --- a/.agents/skills/cli-public/references/append-field-smart-tags.md +++ /dev/null @@ -1,19 +0,0 @@ -# appendFieldSmartTags - - - -Execute the appendFieldSmartTags mutation - -## Usage - -```bash -csdk append-field-smart-tags --input.clientMutationId --input.pFieldId --input.pTags -``` - -## Examples - -### Run appendFieldSmartTags - -```bash -csdk append-field-smart-tags --input.clientMutationId --input.pFieldId --input.pTags -``` diff --git a/.agents/skills/cli-public/references/append-smart-tags.md b/.agents/skills/cli-public/references/append-smart-tags.md deleted file mode 100644 index 7024444dd9..0000000000 --- a/.agents/skills/cli-public/references/append-smart-tags.md +++ /dev/null @@ -1,19 +0,0 @@ -# appendSmartTags - - - -Execute the appendSmartTags mutation - -## Usage - -```bash -csdk append-smart-tags --input.clientMutationId --input.pTableId --input.pTags -``` - -## Examples - -### Run appendSmartTags - -```bash -csdk append-smart-tags --input.clientMutationId --input.pTableId --input.pTags -``` diff --git a/.agents/skills/cli-public/references/append-table-smart-tags.md b/.agents/skills/cli-public/references/append-table-smart-tags.md deleted file mode 100644 index 46dfd5c7dd..0000000000 --- a/.agents/skills/cli-public/references/append-table-smart-tags.md +++ /dev/null @@ -1,19 +0,0 @@ -# appendTableSmartTags - - - -Execute the appendTableSmartTags mutation - -## Usage - -```bash -csdk append-table-smart-tags --input.clientMutationId --input.pTableId --input.pTags -``` - -## Examples - -### Run appendTableSmartTags - -```bash -csdk append-table-smart-tags --input.clientMutationId --input.pTableId --input.pTags -``` diff --git a/.agents/skills/cli-public/references/apply-registry-defaults.md b/.agents/skills/cli-public/references/apply-registry-defaults.md deleted file mode 100644 index 4d691bfc49..0000000000 --- a/.agents/skills/cli-public/references/apply-registry-defaults.md +++ /dev/null @@ -1,19 +0,0 @@ -# applyRegistryDefaults - - - -Execute the applyRegistryDefaults query - -## Usage - -```bash -csdk apply-registry-defaults --nodeType --data -``` - -## Examples - -### Run applyRegistryDefaults - -```bash -csdk apply-registry-defaults --nodeType --data -``` diff --git a/.agents/skills/cli-public/references/apply-rls.md b/.agents/skills/cli-public/references/apply-rls.md deleted file mode 100644 index 16ebf16354..0000000000 --- a/.agents/skills/cli-public/references/apply-rls.md +++ /dev/null @@ -1,19 +0,0 @@ -# applyRls - - - -Execute the applyRls mutation - -## Usage - -```bash -csdk apply-rls --input.clientMutationId --input.tableId --input.grants --input.policyType --input.vars --input.fieldIds --input.permissive --input.name -``` - -## Examples - -### Run applyRls - -```bash -csdk apply-rls --input.clientMutationId --input.tableId --input.grants --input.policyType --input.vars --input.fieldIds --input.permissive --input.name -``` diff --git a/.agents/skills/cli-public/references/ast-migration.md b/.agents/skills/cli-public/references/ast-migration.md deleted file mode 100644 index 5071163196..0000000000 --- a/.agents/skills/cli-public/references/ast-migration.md +++ /dev/null @@ -1,68 +0,0 @@ -# astMigration - - - -CRUD operations for AstMigration records via csdk CLI - -## Usage - -```bash -csdk ast-migration list -csdk ast-migration list --where.. --orderBy -csdk ast-migration list --limit 10 --after -csdk ast-migration find-first --where.. -csdk ast-migration get --id -csdk ast-migration create [--databaseId ] [--name ] [--requires ] [--payload ] [--deploys ] [--deploy ] [--revert ] [--verify ] [--action ] [--actionId ] [--actorId ] -csdk ast-migration update --id [--databaseId ] [--name ] [--requires ] [--payload ] [--deploys ] [--deploy ] [--revert ] [--verify ] [--action ] [--actionId ] [--actorId ] -csdk ast-migration delete --id -``` - -## Examples - -### List astMigration records - -```bash -csdk ast-migration list -``` - -### List astMigration records with pagination - -```bash -csdk ast-migration list --limit 10 --offset 0 -``` - -### List astMigration records with cursor pagination - -```bash -csdk ast-migration list --limit 10 --after -``` - -### Find first matching astMigration - -```bash -csdk ast-migration find-first --where.id.equalTo -``` - -### List astMigration records with field selection - -```bash -csdk ast-migration list --select id,id -``` - -### List astMigration records with filtering and ordering - -```bash -csdk ast-migration list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a astMigration - -```bash -csdk ast-migration create [--databaseId ] [--name ] [--requires ] [--payload ] [--deploys ] [--deploy ] [--revert ] [--verify ] [--action ] [--actionId ] [--actorId ] -``` - -### Get a astMigration by id - -```bash -csdk ast-migration get --id -``` diff --git a/.agents/skills/cli-public/references/audit-log-auth.md b/.agents/skills/cli-public/references/audit-log-auth.md deleted file mode 100644 index 308816669e..0000000000 --- a/.agents/skills/cli-public/references/audit-log-auth.md +++ /dev/null @@ -1,68 +0,0 @@ -# auditLogAuth - - - -CRUD operations for AuditLogAuth records via csdk CLI - -## Usage - -```bash -csdk audit-log-auth list -csdk audit-log-auth list --where.. --orderBy -csdk audit-log-auth list --limit 10 --after -csdk audit-log-auth find-first --where.. -csdk audit-log-auth get --id -csdk audit-log-auth create --event --success [--actorId ] [--origin ] [--userAgent ] [--ipAddress ] -csdk audit-log-auth update --id [--event ] [--actorId ] [--origin ] [--userAgent ] [--ipAddress ] [--success ] -csdk audit-log-auth delete --id -``` - -## Examples - -### List auditLogAuth records - -```bash -csdk audit-log-auth list -``` - -### List auditLogAuth records with pagination - -```bash -csdk audit-log-auth list --limit 10 --offset 0 -``` - -### List auditLogAuth records with cursor pagination - -```bash -csdk audit-log-auth list --limit 10 --after -``` - -### Find first matching auditLogAuth - -```bash -csdk audit-log-auth find-first --where.id.equalTo -``` - -### List auditLogAuth records with field selection - -```bash -csdk audit-log-auth list --select id,id -``` - -### List auditLogAuth records with filtering and ordering - -```bash -csdk audit-log-auth list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a auditLogAuth - -```bash -csdk audit-log-auth create --event --success [--actorId ] [--origin ] [--userAgent ] [--ipAddress ] -``` - -### Get a auditLogAuth by id - -```bash -csdk audit-log-auth get --id -``` diff --git a/.agents/skills/cli-public/references/audit-log.md b/.agents/skills/cli-public/references/audit-log.md deleted file mode 100644 index d61f67db29..0000000000 --- a/.agents/skills/cli-public/references/audit-log.md +++ /dev/null @@ -1,68 +0,0 @@ -# auditLog - - - -CRUD operations for AuditLog records via csdk CLI - -## Usage - -```bash -csdk audit-log list -csdk audit-log list --where.. --orderBy -csdk audit-log list --limit 10 --after -csdk audit-log find-first --where.. -csdk audit-log get --id -csdk audit-log create --event --success [--actorId ] [--origin ] [--userAgent ] [--ipAddress ] -csdk audit-log update --id [--event ] [--actorId ] [--origin ] [--userAgent ] [--ipAddress ] [--success ] -csdk audit-log delete --id -``` - -## Examples - -### List auditLog records - -```bash -csdk audit-log list -``` - -### List auditLog records with pagination - -```bash -csdk audit-log list --limit 10 --offset 0 -``` - -### List auditLog records with cursor pagination - -```bash -csdk audit-log list --limit 10 --after -``` - -### Find first matching auditLog - -```bash -csdk audit-log find-first --where.id.equalTo -``` - -### List auditLog records with field selection - -```bash -csdk audit-log list --select id,id -``` - -### List auditLog records with filtering and ordering - -```bash -csdk audit-log list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a auditLog - -```bash -csdk audit-log create --event --success [--actorId ] [--origin ] [--userAgent ] [--ipAddress ] -``` - -### Get a auditLog by id - -```bash -csdk audit-log get --id -``` diff --git a/.agents/skills/cli-public/references/auth.md b/.agents/skills/cli-public/references/auth.md deleted file mode 100644 index d24ec20dd5..0000000000 --- a/.agents/skills/cli-public/references/auth.md +++ /dev/null @@ -1,27 +0,0 @@ -# Authentication - - - -Manage authentication tokens for csdk - -## Usage - -```bash -csdk auth set-token -csdk auth status -csdk auth logout -``` - -## Examples - -### Authenticate with a token - -```bash -csdk auth set-token eyJhbGciOiJIUzI1NiIs... -``` - -### Check auth status - -```bash -csdk auth status -``` diff --git a/.agents/skills/cli-public/references/billing-module.md b/.agents/skills/cli-public/references/billing-module.md deleted file mode 100644 index d1411175ca..0000000000 --- a/.agents/skills/cli-public/references/billing-module.md +++ /dev/null @@ -1,68 +0,0 @@ -# billingModule - - - -CRUD operations for BillingModule records via csdk CLI - -## Usage - -```bash -csdk billing-module list -csdk billing-module list --where.. --orderBy -csdk billing-module list --limit 10 --after -csdk billing-module find-first --where.. -csdk billing-module get --id -csdk billing-module create --databaseId [--schemaId ] [--privateSchemaId ] [--metersTableId ] [--metersTableName ] [--planSubscriptionsTableId ] [--planSubscriptionsTableName ] [--ledgerTableId ] [--ledgerTableName ] [--balancesTableId ] [--balancesTableName ] [--meterCreditsTableId ] [--meterCreditsTableName ] [--meterSourcesTableId ] [--meterSourcesTableName ] [--recordUsageFunction ] [--prefix ] -csdk billing-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--metersTableId ] [--metersTableName ] [--planSubscriptionsTableId ] [--planSubscriptionsTableName ] [--ledgerTableId ] [--ledgerTableName ] [--balancesTableId ] [--balancesTableName ] [--meterCreditsTableId ] [--meterCreditsTableName ] [--meterSourcesTableId ] [--meterSourcesTableName ] [--recordUsageFunction ] [--prefix ] -csdk billing-module delete --id -``` - -## Examples - -### List billingModule records - -```bash -csdk billing-module list -``` - -### List billingModule records with pagination - -```bash -csdk billing-module list --limit 10 --offset 0 -``` - -### List billingModule records with cursor pagination - -```bash -csdk billing-module list --limit 10 --after -``` - -### Find first matching billingModule - -```bash -csdk billing-module find-first --where.id.equalTo -``` - -### List billingModule records with field selection - -```bash -csdk billing-module list --select id,id -``` - -### List billingModule records with filtering and ordering - -```bash -csdk billing-module list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a billingModule - -```bash -csdk billing-module create --databaseId [--schemaId ] [--privateSchemaId ] [--metersTableId ] [--metersTableName ] [--planSubscriptionsTableId ] [--planSubscriptionsTableName ] [--ledgerTableId ] [--ledgerTableName ] [--balancesTableId ] [--balancesTableName ] [--meterCreditsTableId ] [--meterCreditsTableName ] [--meterSourcesTableId ] [--meterSourcesTableName ] [--recordUsageFunction ] [--prefix ] -``` - -### Get a billingModule by id - -```bash -csdk billing-module get --id -``` diff --git a/.agents/skills/cli-public/references/billing-provider-module.md b/.agents/skills/cli-public/references/billing-provider-module.md deleted file mode 100644 index c9d6f3e44f..0000000000 --- a/.agents/skills/cli-public/references/billing-provider-module.md +++ /dev/null @@ -1,68 +0,0 @@ -# billingProviderModule - - - -CRUD operations for BillingProviderModule records via csdk CLI - -## Usage - -```bash -csdk billing-provider-module list -csdk billing-provider-module list --where.. --orderBy -csdk billing-provider-module list --limit 10 --after -csdk billing-provider-module find-first --where.. -csdk billing-provider-module get --id -csdk billing-provider-module create --databaseId [--schemaId ] [--privateSchemaId ] [--provider ] [--productsTableId ] [--pricesTableId ] [--subscriptionsTableId ] [--billingCustomersTableId ] [--billingCustomersTableName ] [--billingProductsTableId ] [--billingProductsTableName ] [--billingPricesTableId ] [--billingPricesTableName ] [--billingSubscriptionsTableId ] [--billingSubscriptionsTableName ] [--billingWebhookEventsTableId ] [--billingWebhookEventsTableName ] [--processBillingEventFunction ] [--prefix ] -csdk billing-provider-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--provider ] [--productsTableId ] [--pricesTableId ] [--subscriptionsTableId ] [--billingCustomersTableId ] [--billingCustomersTableName ] [--billingProductsTableId ] [--billingProductsTableName ] [--billingPricesTableId ] [--billingPricesTableName ] [--billingSubscriptionsTableId ] [--billingSubscriptionsTableName ] [--billingWebhookEventsTableId ] [--billingWebhookEventsTableName ] [--processBillingEventFunction ] [--prefix ] -csdk billing-provider-module delete --id -``` - -## Examples - -### List billingProviderModule records - -```bash -csdk billing-provider-module list -``` - -### List billingProviderModule records with pagination - -```bash -csdk billing-provider-module list --limit 10 --offset 0 -``` - -### List billingProviderModule records with cursor pagination - -```bash -csdk billing-provider-module list --limit 10 --after -``` - -### Find first matching billingProviderModule - -```bash -csdk billing-provider-module find-first --where.id.equalTo -``` - -### List billingProviderModule records with field selection - -```bash -csdk billing-provider-module list --select id,id -``` - -### List billingProviderModule records with filtering and ordering - -```bash -csdk billing-provider-module list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a billingProviderModule - -```bash -csdk billing-provider-module create --databaseId [--schemaId ] [--privateSchemaId ] [--provider ] [--productsTableId ] [--pricesTableId ] [--subscriptionsTableId ] [--billingCustomersTableId ] [--billingCustomersTableName ] [--billingProductsTableId ] [--billingProductsTableName ] [--billingPricesTableId ] [--billingPricesTableName ] [--billingSubscriptionsTableId ] [--billingSubscriptionsTableName ] [--billingWebhookEventsTableId ] [--billingWebhookEventsTableName ] [--processBillingEventFunction ] [--prefix ] -``` - -### Get a billingProviderModule by id - -```bash -csdk billing-provider-module get --id -``` diff --git a/.agents/skills/cli-public/references/blueprint-construction.md b/.agents/skills/cli-public/references/blueprint-construction.md deleted file mode 100644 index 482697bc49..0000000000 --- a/.agents/skills/cli-public/references/blueprint-construction.md +++ /dev/null @@ -1,68 +0,0 @@ -# blueprintConstruction - - - -CRUD operations for BlueprintConstruction records via csdk CLI - -## Usage - -```bash -csdk blueprint-construction list -csdk blueprint-construction list --where.. --orderBy -csdk blueprint-construction list --limit 10 --after -csdk blueprint-construction find-first --where.. -csdk blueprint-construction get --id -csdk blueprint-construction create --blueprintId --databaseId [--schemaId ] [--status ] [--errorDetails ] [--tableMap ] [--constructedDefinition ] [--constructedAt ] -csdk blueprint-construction update --id [--blueprintId ] [--databaseId ] [--schemaId ] [--status ] [--errorDetails ] [--tableMap ] [--constructedDefinition ] [--constructedAt ] -csdk blueprint-construction delete --id -``` - -## Examples - -### List blueprintConstruction records - -```bash -csdk blueprint-construction list -``` - -### List blueprintConstruction records with pagination - -```bash -csdk blueprint-construction list --limit 10 --offset 0 -``` - -### List blueprintConstruction records with cursor pagination - -```bash -csdk blueprint-construction list --limit 10 --after -``` - -### Find first matching blueprintConstruction - -```bash -csdk blueprint-construction find-first --where.id.equalTo -``` - -### List blueprintConstruction records with field selection - -```bash -csdk blueprint-construction list --select id,id -``` - -### List blueprintConstruction records with filtering and ordering - -```bash -csdk blueprint-construction list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a blueprintConstruction - -```bash -csdk blueprint-construction create --blueprintId --databaseId [--schemaId ] [--status ] [--errorDetails ] [--tableMap ] [--constructedDefinition ] [--constructedAt ] -``` - -### Get a blueprintConstruction by id - -```bash -csdk blueprint-construction get --id -``` diff --git a/.agents/skills/cli-public/references/blueprint-template.md b/.agents/skills/cli-public/references/blueprint-template.md deleted file mode 100644 index 1393578cf9..0000000000 --- a/.agents/skills/cli-public/references/blueprint-template.md +++ /dev/null @@ -1,68 +0,0 @@ -# blueprintTemplate - - - -CRUD operations for BlueprintTemplate records via csdk CLI - -## Usage - -```bash -csdk blueprint-template list -csdk blueprint-template list --where.. --orderBy -csdk blueprint-template list --limit 10 --after -csdk blueprint-template find-first --where.. -csdk blueprint-template get --id -csdk blueprint-template create --name --displayName --ownerId --definition [--version ] [--description ] [--visibility ] [--categories ] [--tags ] [--definitionSchemaVersion ] [--source ] [--complexity ] [--copyCount ] [--forkCount ] [--forkedFromId ] [--definitionHash ] [--tableHashes ] -csdk blueprint-template update --id [--name ] [--version ] [--displayName ] [--description ] [--ownerId ] [--visibility ] [--categories ] [--tags ] [--definition ] [--definitionSchemaVersion ] [--source ] [--complexity ] [--copyCount ] [--forkCount ] [--forkedFromId ] [--definitionHash ] [--tableHashes ] -csdk blueprint-template delete --id -``` - -## Examples - -### List blueprintTemplate records - -```bash -csdk blueprint-template list -``` - -### List blueprintTemplate records with pagination - -```bash -csdk blueprint-template list --limit 10 --offset 0 -``` - -### List blueprintTemplate records with cursor pagination - -```bash -csdk blueprint-template list --limit 10 --after -``` - -### Find first matching blueprintTemplate - -```bash -csdk blueprint-template find-first --where.id.equalTo -``` - -### List blueprintTemplate records with field selection - -```bash -csdk blueprint-template list --select id,id -``` - -### List blueprintTemplate records with filtering and ordering - -```bash -csdk blueprint-template list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a blueprintTemplate - -```bash -csdk blueprint-template create --name --displayName --ownerId --definition [--version ] [--description ] [--visibility ] [--categories ] [--tags ] [--definitionSchemaVersion ] [--source ] [--complexity ] [--copyCount ] [--forkCount ] [--forkedFromId ] [--definitionHash ] [--tableHashes ] -``` - -### Get a blueprintTemplate by id - -```bash -csdk blueprint-template get --id -``` diff --git a/.agents/skills/cli-public/references/blueprint.md b/.agents/skills/cli-public/references/blueprint.md deleted file mode 100644 index f839743682..0000000000 --- a/.agents/skills/cli-public/references/blueprint.md +++ /dev/null @@ -1,68 +0,0 @@ -# blueprint - - - -CRUD operations for Blueprint records via csdk CLI - -## Usage - -```bash -csdk blueprint list -csdk blueprint list --where.. --orderBy -csdk blueprint list --limit 10 --after -csdk blueprint find-first --where.. -csdk blueprint get --id -csdk blueprint create --ownerId --databaseId --name --displayName --definition [--description ] [--templateId ] [--definitionHash ] [--tableHashes ] -csdk blueprint update --id [--ownerId ] [--databaseId ] [--name ] [--displayName ] [--description ] [--definition ] [--templateId ] [--definitionHash ] [--tableHashes ] -csdk blueprint delete --id -``` - -## Examples - -### List blueprint records - -```bash -csdk blueprint list -``` - -### List blueprint records with pagination - -```bash -csdk blueprint list --limit 10 --offset 0 -``` - -### List blueprint records with cursor pagination - -```bash -csdk blueprint list --limit 10 --after -``` - -### Find first matching blueprint - -```bash -csdk blueprint find-first --where.id.equalTo -``` - -### List blueprint records with field selection - -```bash -csdk blueprint list --select id,id -``` - -### List blueprint records with filtering and ordering - -```bash -csdk blueprint list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a blueprint - -```bash -csdk blueprint create --ownerId --databaseId --name --displayName --definition [--description ] [--templateId ] [--definitionHash ] [--tableHashes ] -``` - -### Get a blueprint by id - -```bash -csdk blueprint get --id -``` diff --git a/.agents/skills/cli-public/references/bootstrap-user.md b/.agents/skills/cli-public/references/bootstrap-user.md deleted file mode 100644 index 0c882e38bc..0000000000 --- a/.agents/skills/cli-public/references/bootstrap-user.md +++ /dev/null @@ -1,19 +0,0 @@ -# bootstrapUser - - - -Execute the bootstrapUser mutation - -## Usage - -```bash -csdk bootstrap-user --input.clientMutationId --input.targetDatabaseId --input.password --input.isAdmin --input.isOwner --input.username --input.displayName --input.returnApiKey -``` - -## Examples - -### Run bootstrapUser - -```bash -csdk bootstrap-user --input.clientMutationId --input.targetDatabaseId --input.password --input.isAdmin --input.isOwner --input.username --input.displayName --input.returnApiKey -``` diff --git a/.agents/skills/cli-public/references/cancel-database-transfer.md b/.agents/skills/cli-public/references/cancel-database-transfer.md deleted file mode 100644 index f95c345a33..0000000000 --- a/.agents/skills/cli-public/references/cancel-database-transfer.md +++ /dev/null @@ -1,19 +0,0 @@ -# cancelDatabaseTransfer - - - -Execute the cancelDatabaseTransfer mutation - -## Usage - -```bash -csdk cancel-database-transfer --input.clientMutationId --input.transferId -``` - -## Examples - -### Run cancelDatabaseTransfer - -```bash -csdk cancel-database-transfer --input.clientMutationId --input.transferId -``` diff --git a/.agents/skills/cli-public/references/check-constraint.md b/.agents/skills/cli-public/references/check-constraint.md deleted file mode 100644 index fcf131c5de..0000000000 --- a/.agents/skills/cli-public/references/check-constraint.md +++ /dev/null @@ -1,68 +0,0 @@ -# checkConstraint - - - -CRUD operations for CheckConstraint records via csdk CLI - -## Usage - -```bash -csdk check-constraint list -csdk check-constraint list --where.. --orderBy -csdk check-constraint list --limit 10 --after -csdk check-constraint find-first --where.. -csdk check-constraint get --id -csdk check-constraint create --tableId --fieldIds [--databaseId ] [--name ] [--type ] [--expr ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] -csdk check-constraint update --id [--databaseId ] [--tableId ] [--name ] [--type ] [--fieldIds ] [--expr ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] -csdk check-constraint delete --id -``` - -## Examples - -### List checkConstraint records - -```bash -csdk check-constraint list -``` - -### List checkConstraint records with pagination - -```bash -csdk check-constraint list --limit 10 --offset 0 -``` - -### List checkConstraint records with cursor pagination - -```bash -csdk check-constraint list --limit 10 --after -``` - -### Find first matching checkConstraint - -```bash -csdk check-constraint find-first --where.id.equalTo -``` - -### List checkConstraint records with field selection - -```bash -csdk check-constraint list --select id,id -``` - -### List checkConstraint records with filtering and ordering - -```bash -csdk check-constraint list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a checkConstraint - -```bash -csdk check-constraint create --tableId --fieldIds [--databaseId ] [--name ] [--type ] [--expr ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] -``` - -### Get a checkConstraint by id - -```bash -csdk check-constraint get --id -``` diff --git a/.agents/skills/cli-public/references/check-password.md b/.agents/skills/cli-public/references/check-password.md deleted file mode 100644 index 18d7643e32..0000000000 --- a/.agents/skills/cli-public/references/check-password.md +++ /dev/null @@ -1,19 +0,0 @@ -# checkPassword - - - -Execute the checkPassword mutation - -## Usage - -```bash -csdk check-password --input.clientMutationId --input.password -``` - -## Examples - -### Run checkPassword - -```bash -csdk check-password --input.clientMutationId --input.password -``` diff --git a/.agents/skills/cli-public/references/claimed-invite.md b/.agents/skills/cli-public/references/claimed-invite.md deleted file mode 100644 index 104b1753c7..0000000000 --- a/.agents/skills/cli-public/references/claimed-invite.md +++ /dev/null @@ -1,68 +0,0 @@ -# claimedInvite - - - -CRUD operations for ClaimedInvite records via csdk CLI - -## Usage - -```bash -csdk claimed-invite list -csdk claimed-invite list --where.. --orderBy -csdk claimed-invite list --limit 10 --after -csdk claimed-invite find-first --where.. -csdk claimed-invite get --id -csdk claimed-invite create [--data ] [--senderId ] [--receiverId ] -csdk claimed-invite update --id [--data ] [--senderId ] [--receiverId ] -csdk claimed-invite delete --id -``` - -## Examples - -### List claimedInvite records - -```bash -csdk claimed-invite list -``` - -### List claimedInvite records with pagination - -```bash -csdk claimed-invite list --limit 10 --offset 0 -``` - -### List claimedInvite records with cursor pagination - -```bash -csdk claimed-invite list --limit 10 --after -``` - -### Find first matching claimedInvite - -```bash -csdk claimed-invite find-first --where.id.equalTo -``` - -### List claimedInvite records with field selection - -```bash -csdk claimed-invite list --select id,id -``` - -### List claimedInvite records with filtering and ordering - -```bash -csdk claimed-invite list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a claimedInvite - -```bash -csdk claimed-invite create [--data ] [--senderId ] [--receiverId ] -``` - -### Get a claimedInvite by id - -```bash -csdk claimed-invite get --id -``` diff --git a/.agents/skills/cli-public/references/commit.md b/.agents/skills/cli-public/references/commit.md deleted file mode 100644 index 62eca94282..0000000000 --- a/.agents/skills/cli-public/references/commit.md +++ /dev/null @@ -1,68 +0,0 @@ -# commit - - - -CRUD operations for Commit records via csdk CLI - -## Usage - -```bash -csdk commit list -csdk commit list --where.. --orderBy -csdk commit list --limit 10 --after -csdk commit find-first --where.. -csdk commit get --id -csdk commit create --databaseId --storeId [--message ] [--parentIds ] [--authorId ] [--committerId ] [--treeId ] [--date ] -csdk commit update --id [--message ] [--databaseId ] [--storeId ] [--parentIds ] [--authorId ] [--committerId ] [--treeId ] [--date ] -csdk commit delete --id -``` - -## Examples - -### List commit records - -```bash -csdk commit list -``` - -### List commit records with pagination - -```bash -csdk commit list --limit 10 --offset 0 -``` - -### List commit records with cursor pagination - -```bash -csdk commit list --limit 10 --after -``` - -### Find first matching commit - -```bash -csdk commit find-first --where.id.equalTo -``` - -### List commit records with field selection - -```bash -csdk commit list --select id,id -``` - -### List commit records with filtering and ordering - -```bash -csdk commit list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a commit - -```bash -csdk commit create --databaseId --storeId [--message ] [--parentIds ] [--authorId ] [--committerId ] [--treeId ] [--date ] -``` - -### Get a commit by id - -```bash -csdk commit get --id -``` diff --git a/.agents/skills/cli-public/references/compute-log-module.md b/.agents/skills/cli-public/references/compute-log-module.md deleted file mode 100644 index a55c988012..0000000000 --- a/.agents/skills/cli-public/references/compute-log-module.md +++ /dev/null @@ -1,68 +0,0 @@ -# computeLogModule - - - -CRUD operations for ComputeLogModule records via csdk CLI - -## Usage - -```bash -csdk compute-log-module list -csdk compute-log-module list --where.. --orderBy -csdk compute-log-module list --limit 10 --after -csdk compute-log-module find-first --where.. -csdk compute-log-module get --id -csdk compute-log-module create --databaseId [--schemaId ] [--privateSchemaId ] [--computeLogTableId ] [--computeLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] -csdk compute-log-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--computeLogTableId ] [--computeLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] -csdk compute-log-module delete --id -``` - -## Examples - -### List computeLogModule records - -```bash -csdk compute-log-module list -``` - -### List computeLogModule records with pagination - -```bash -csdk compute-log-module list --limit 10 --offset 0 -``` - -### List computeLogModule records with cursor pagination - -```bash -csdk compute-log-module list --limit 10 --after -``` - -### Find first matching computeLogModule - -```bash -csdk compute-log-module find-first --where.id.equalTo -``` - -### List computeLogModule records with field selection - -```bash -csdk compute-log-module list --select id,id -``` - -### List computeLogModule records with filtering and ordering - -```bash -csdk compute-log-module list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a computeLogModule - -```bash -csdk compute-log-module create --databaseId [--schemaId ] [--privateSchemaId ] [--computeLogTableId ] [--computeLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] -``` - -### Get a computeLogModule by id - -```bash -csdk compute-log-module get --id -``` diff --git a/.agents/skills/cli-public/references/config-secrets-org-module.md b/.agents/skills/cli-public/references/config-secrets-org-module.md deleted file mode 100644 index f7e31391e2..0000000000 --- a/.agents/skills/cli-public/references/config-secrets-org-module.md +++ /dev/null @@ -1,68 +0,0 @@ -# configSecretsOrgModule - - - -CRUD operations for ConfigSecretsOrgModule records via csdk CLI - -## Usage - -```bash -csdk config-secrets-org-module list -csdk config-secrets-org-module list --where.. --orderBy -csdk config-secrets-org-module list --limit 10 --after -csdk config-secrets-org-module find-first --where.. -csdk config-secrets-org-module get --id -csdk config-secrets-org-module create --databaseId [--schemaId ] [--tableId ] [--tableName ] -csdk config-secrets-org-module update --id [--databaseId ] [--schemaId ] [--tableId ] [--tableName ] -csdk config-secrets-org-module delete --id -``` - -## Examples - -### List configSecretsOrgModule records - -```bash -csdk config-secrets-org-module list -``` - -### List configSecretsOrgModule records with pagination - -```bash -csdk config-secrets-org-module list --limit 10 --offset 0 -``` - -### List configSecretsOrgModule records with cursor pagination - -```bash -csdk config-secrets-org-module list --limit 10 --after -``` - -### Find first matching configSecretsOrgModule - -```bash -csdk config-secrets-org-module find-first --where.id.equalTo -``` - -### List configSecretsOrgModule records with field selection - -```bash -csdk config-secrets-org-module list --select id,id -``` - -### List configSecretsOrgModule records with filtering and ordering - -```bash -csdk config-secrets-org-module list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a configSecretsOrgModule - -```bash -csdk config-secrets-org-module create --databaseId [--schemaId ] [--tableId ] [--tableName ] -``` - -### Get a configSecretsOrgModule by id - -```bash -csdk config-secrets-org-module get --id -``` diff --git a/.agents/skills/cli-public/references/config-secrets-user-module.md b/.agents/skills/cli-public/references/config-secrets-user-module.md deleted file mode 100644 index 494e02a15d..0000000000 --- a/.agents/skills/cli-public/references/config-secrets-user-module.md +++ /dev/null @@ -1,68 +0,0 @@ -# configSecretsUserModule - - - -CRUD operations for ConfigSecretsUserModule records via csdk CLI - -## Usage - -```bash -csdk config-secrets-user-module list -csdk config-secrets-user-module list --where.. --orderBy -csdk config-secrets-user-module list --limit 10 --after -csdk config-secrets-user-module find-first --where.. -csdk config-secrets-user-module get --id -csdk config-secrets-user-module create --databaseId [--schemaId ] [--tableId ] [--tableName ] [--configDefinitionsTableId ] -csdk config-secrets-user-module update --id [--databaseId ] [--schemaId ] [--tableId ] [--tableName ] [--configDefinitionsTableId ] -csdk config-secrets-user-module delete --id -``` - -## Examples - -### List configSecretsUserModule records - -```bash -csdk config-secrets-user-module list -``` - -### List configSecretsUserModule records with pagination - -```bash -csdk config-secrets-user-module list --limit 10 --offset 0 -``` - -### List configSecretsUserModule records with cursor pagination - -```bash -csdk config-secrets-user-module list --limit 10 --after -``` - -### Find first matching configSecretsUserModule - -```bash -csdk config-secrets-user-module find-first --where.id.equalTo -``` - -### List configSecretsUserModule records with field selection - -```bash -csdk config-secrets-user-module list --select id,id -``` - -### List configSecretsUserModule records with filtering and ordering - -```bash -csdk config-secrets-user-module list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a configSecretsUserModule - -```bash -csdk config-secrets-user-module create --databaseId [--schemaId ] [--tableId ] [--tableName ] [--configDefinitionsTableId ] -``` - -### Get a configSecretsUserModule by id - -```bash -csdk config-secrets-user-module get --id -``` diff --git a/.agents/skills/cli-public/references/config.md b/.agents/skills/cli-public/references/config.md deleted file mode 100644 index cc1c23b7ba..0000000000 --- a/.agents/skills/cli-public/references/config.md +++ /dev/null @@ -1,29 +0,0 @@ -# Config Variables - - - -Manage per-context key-value configuration variables for csdk - -## Usage - -```bash -csdk config get -csdk config set -csdk config list -csdk config delete -``` - -## Examples - -### Store and retrieve a config variable - -```bash -csdk config set orgId abc-123 -csdk config get orgId -``` - -### List all config variables - -```bash -csdk config list -``` diff --git a/.agents/skills/cli-public/references/confirm-delete-account.md b/.agents/skills/cli-public/references/confirm-delete-account.md deleted file mode 100644 index f897bb2d2b..0000000000 --- a/.agents/skills/cli-public/references/confirm-delete-account.md +++ /dev/null @@ -1,19 +0,0 @@ -# confirmDeleteAccount - - - -Execute the confirmDeleteAccount mutation - -## Usage - -```bash -csdk confirm-delete-account --input.clientMutationId --input.userId --input.token -``` - -## Examples - -### Run confirmDeleteAccount - -```bash -csdk confirm-delete-account --input.clientMutationId --input.userId --input.token -``` diff --git a/.agents/skills/cli-public/references/confirm-upload.md b/.agents/skills/cli-public/references/confirm-upload.md deleted file mode 100644 index a9f4915b99..0000000000 --- a/.agents/skills/cli-public/references/confirm-upload.md +++ /dev/null @@ -1,21 +0,0 @@ -# confirmUpload - - - -Confirm that a file has been uploaded to S3. -Verifies the object exists in S3, checks content-type, -and transitions the file status from 'pending' to 'ready'. - -## Usage - -```bash -csdk confirm-upload --input.fileId -``` - -## Examples - -### Run confirmUpload - -```bash -csdk confirm-upload --input.fileId -``` diff --git a/.agents/skills/cli-public/references/connected-account.md b/.agents/skills/cli-public/references/connected-account.md deleted file mode 100644 index 866f6aaf11..0000000000 --- a/.agents/skills/cli-public/references/connected-account.md +++ /dev/null @@ -1,68 +0,0 @@ -# connectedAccount - - - -CRUD operations for ConnectedAccount records via csdk CLI - -## Usage - -```bash -csdk connected-account list -csdk connected-account list --where.. --orderBy -csdk connected-account list --limit 10 --after -csdk connected-account find-first --where.. -csdk connected-account get --id -csdk connected-account create --service --identifier --details [--ownerId ] [--isVerified ] -csdk connected-account update --id [--ownerId ] [--service ] [--identifier ] [--details ] [--isVerified ] -csdk connected-account delete --id -``` - -## Examples - -### List connectedAccount records - -```bash -csdk connected-account list -``` - -### List connectedAccount records with pagination - -```bash -csdk connected-account list --limit 10 --offset 0 -``` - -### List connectedAccount records with cursor pagination - -```bash -csdk connected-account list --limit 10 --after -``` - -### Find first matching connectedAccount - -```bash -csdk connected-account find-first --where.id.equalTo -``` - -### List connectedAccount records with field selection - -```bash -csdk connected-account list --select id,id -``` - -### List connectedAccount records with filtering and ordering - -```bash -csdk connected-account list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a connectedAccount - -```bash -csdk connected-account create --service --identifier --details [--ownerId ] [--isVerified ] -``` - -### Get a connectedAccount by id - -```bash -csdk connected-account get --id -``` diff --git a/.agents/skills/cli-public/references/connected-accounts-module.md b/.agents/skills/cli-public/references/connected-accounts-module.md deleted file mode 100644 index fc70f0c735..0000000000 --- a/.agents/skills/cli-public/references/connected-accounts-module.md +++ /dev/null @@ -1,68 +0,0 @@ -# connectedAccountsModule - - - -CRUD operations for ConnectedAccountsModule records via csdk CLI - -## Usage - -```bash -csdk connected-accounts-module list -csdk connected-accounts-module list --where.. --orderBy -csdk connected-accounts-module list --limit 10 --after -csdk connected-accounts-module find-first --where.. -csdk connected-accounts-module get --id -csdk connected-accounts-module create --databaseId --tableName [--schemaId ] [--privateSchemaId ] [--tableId ] [--ownerTableId ] -csdk connected-accounts-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--tableId ] [--ownerTableId ] [--tableName ] -csdk connected-accounts-module delete --id -``` - -## Examples - -### List connectedAccountsModule records - -```bash -csdk connected-accounts-module list -``` - -### List connectedAccountsModule records with pagination - -```bash -csdk connected-accounts-module list --limit 10 --offset 0 -``` - -### List connectedAccountsModule records with cursor pagination - -```bash -csdk connected-accounts-module list --limit 10 --after -``` - -### Find first matching connectedAccountsModule - -```bash -csdk connected-accounts-module find-first --where.id.equalTo -``` - -### List connectedAccountsModule records with field selection - -```bash -csdk connected-accounts-module list --select id,id -``` - -### List connectedAccountsModule records with filtering and ordering - -```bash -csdk connected-accounts-module list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a connectedAccountsModule - -```bash -csdk connected-accounts-module create --databaseId --tableName [--schemaId ] [--privateSchemaId ] [--tableId ] [--ownerTableId ] -``` - -### Get a connectedAccountsModule by id - -```bash -csdk connected-accounts-module get --id -``` diff --git a/.agents/skills/cli-public/references/construct-blueprint.md b/.agents/skills/cli-public/references/construct-blueprint.md deleted file mode 100644 index 8d0e1bb068..0000000000 --- a/.agents/skills/cli-public/references/construct-blueprint.md +++ /dev/null @@ -1,19 +0,0 @@ -# constructBlueprint - - - -Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. - -## Usage - -```bash -csdk construct-blueprint --input.clientMutationId --input.blueprintId --input.schemaId -``` - -## Examples - -### Run constructBlueprint - -```bash -csdk construct-blueprint --input.clientMutationId --input.blueprintId --input.schemaId -``` diff --git a/.agents/skills/cli-public/references/context.md b/.agents/skills/cli-public/references/context.md deleted file mode 100644 index 704ff09111..0000000000 --- a/.agents/skills/cli-public/references/context.md +++ /dev/null @@ -1,30 +0,0 @@ -# Context Management - - - -Manage API endpoint contexts for csdk - -## Usage - -```bash -csdk context create --endpoint -csdk context list -csdk context use -csdk context current -csdk context delete -``` - -## Examples - -### Create and activate a context - -```bash -csdk context create production --endpoint https://api.example.com/graphql -csdk context use production -``` - -### List all contexts - -```bash -csdk context list -``` diff --git a/.agents/skills/cli-public/references/copy-template-to-blueprint.md b/.agents/skills/cli-public/references/copy-template-to-blueprint.md deleted file mode 100644 index 99a7aa4a62..0000000000 --- a/.agents/skills/cli-public/references/copy-template-to-blueprint.md +++ /dev/null @@ -1,19 +0,0 @@ -# copyTemplateToBlueprint - - - -Creates a new blueprint by copying a template definition. Checks visibility: owners can always copy their own templates, others require public visibility. Increments the template copy_count. Returns the new blueprint ID. - -## Usage - -```bash -csdk copy-template-to-blueprint --input.clientMutationId --input.templateId --input.databaseId --input.ownerId --input.nameOverride --input.displayNameOverride -``` - -## Examples - -### Run copyTemplateToBlueprint - -```bash -csdk copy-template-to-blueprint --input.clientMutationId --input.templateId --input.databaseId --input.ownerId --input.nameOverride --input.displayNameOverride -``` diff --git a/.agents/skills/cli-public/references/cors-setting.md b/.agents/skills/cli-public/references/cors-setting.md deleted file mode 100644 index fd7f038a73..0000000000 --- a/.agents/skills/cli-public/references/cors-setting.md +++ /dev/null @@ -1,68 +0,0 @@ -# corsSetting - - - -CRUD operations for CorsSetting records via csdk CLI - -## Usage - -```bash -csdk cors-setting list -csdk cors-setting list --where.. --orderBy -csdk cors-setting list --limit 10 --after -csdk cors-setting find-first --where.. -csdk cors-setting get --id -csdk cors-setting create --databaseId [--apiId ] [--allowedOrigins ] -csdk cors-setting update --id [--databaseId ] [--apiId ] [--allowedOrigins ] -csdk cors-setting delete --id -``` - -## Examples - -### List corsSetting records - -```bash -csdk cors-setting list -``` - -### List corsSetting records with pagination - -```bash -csdk cors-setting list --limit 10 --offset 0 -``` - -### List corsSetting records with cursor pagination - -```bash -csdk cors-setting list --limit 10 --after -``` - -### Find first matching corsSetting - -```bash -csdk cors-setting find-first --where.id.equalTo -``` - -### List corsSetting records with field selection - -```bash -csdk cors-setting list --select id,id -``` - -### List corsSetting records with filtering and ordering - -```bash -csdk cors-setting list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a corsSetting - -```bash -csdk cors-setting create --databaseId [--apiId ] [--allowedOrigins ] -``` - -### Get a corsSetting by id - -```bash -csdk cors-setting get --id -``` diff --git a/.agents/skills/cli-public/references/create-api-key.md b/.agents/skills/cli-public/references/create-api-key.md deleted file mode 100644 index 64e63332bc..0000000000 --- a/.agents/skills/cli-public/references/create-api-key.md +++ /dev/null @@ -1,19 +0,0 @@ -# createApiKey - - - -Execute the createApiKey mutation - -## Usage - -```bash -csdk create-api-key --input.clientMutationId --input.keyName --input.accessLevel --input.mfaLevel --input.expiresIn -``` - -## Examples - -### Run createApiKey - -```bash -csdk create-api-key --input.clientMutationId --input.keyName --input.accessLevel --input.mfaLevel --input.expiresIn -``` diff --git a/.agents/skills/cli-public/references/create-user-database.md b/.agents/skills/cli-public/references/create-user-database.md deleted file mode 100644 index a0b5ee7688..0000000000 --- a/.agents/skills/cli-public/references/create-user-database.md +++ /dev/null @@ -1,35 +0,0 @@ -# createUserDatabase - - - -Creates a new user database with all required modules, permissions, and RLS policies. - -Parameters: - - database_name: Name for the new database (required) - - owner_id: UUID of the owner user (required) - - include_invites: Include invite system (default: true) - - include_groups: Include group-level memberships (default: false) - - include_levels: Include events/analytics (default: false) - - bitlen: Bit length for permission masks (default: 64) - - tokens_expiration: Token expiration interval (default: 30 days) - -Returns the database_id UUID of the newly created database. - -Example usage: - SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid); - SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid, true, true); -- with invites and groups - - -## Usage - -```bash -csdk create-user-database --input.clientMutationId --input.databaseName --input.ownerId --input.includeInvites --input.includeGroups --input.includeLevels --input.bitlen --input.tokensExpiration -``` - -## Examples - -### Run createUserDatabase - -```bash -csdk create-user-database --input.clientMutationId --input.databaseName --input.ownerId --input.includeInvites --input.includeGroups --input.includeLevels --input.bitlen --input.tokensExpiration -``` diff --git a/.agents/skills/cli-public/references/crypto-address.md b/.agents/skills/cli-public/references/crypto-address.md deleted file mode 100644 index 662f0651e1..0000000000 --- a/.agents/skills/cli-public/references/crypto-address.md +++ /dev/null @@ -1,68 +0,0 @@ -# cryptoAddress - - - -CRUD operations for CryptoAddress records via csdk CLI - -## Usage - -```bash -csdk crypto-address list -csdk crypto-address list --where.. --orderBy -csdk crypto-address list --limit 10 --after -csdk crypto-address find-first --where.. -csdk crypto-address get --id -csdk crypto-address create --address [--ownerId ] [--isVerified ] [--isPrimary ] [--name ] -csdk crypto-address update --id [--ownerId ] [--address ] [--isVerified ] [--isPrimary ] [--name ] -csdk crypto-address delete --id -``` - -## Examples - -### List cryptoAddress records - -```bash -csdk crypto-address list -``` - -### List cryptoAddress records with pagination - -```bash -csdk crypto-address list --limit 10 --offset 0 -``` - -### List cryptoAddress records with cursor pagination - -```bash -csdk crypto-address list --limit 10 --after -``` - -### Find first matching cryptoAddress - -```bash -csdk crypto-address find-first --where.id.equalTo -``` - -### List cryptoAddress records with field selection - -```bash -csdk crypto-address list --select id,id -``` - -### List cryptoAddress records with filtering and ordering - -```bash -csdk crypto-address list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a cryptoAddress - -```bash -csdk crypto-address create --address [--ownerId ] [--isVerified ] [--isPrimary ] [--name ] -``` - -### Get a cryptoAddress by id - -```bash -csdk crypto-address get --id -``` diff --git a/.agents/skills/cli-public/references/crypto-addresses-module.md b/.agents/skills/cli-public/references/crypto-addresses-module.md deleted file mode 100644 index b464a0d6ff..0000000000 --- a/.agents/skills/cli-public/references/crypto-addresses-module.md +++ /dev/null @@ -1,68 +0,0 @@ -# cryptoAddressesModule - - - -CRUD operations for CryptoAddressesModule records via csdk CLI - -## Usage - -```bash -csdk crypto-addresses-module list -csdk crypto-addresses-module list --where.. --orderBy -csdk crypto-addresses-module list --limit 10 --after -csdk crypto-addresses-module find-first --where.. -csdk crypto-addresses-module get --id -csdk crypto-addresses-module create --databaseId --tableName [--schemaId ] [--privateSchemaId ] [--tableId ] [--ownerTableId ] [--cryptoNetwork ] -csdk crypto-addresses-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--tableId ] [--ownerTableId ] [--tableName ] [--cryptoNetwork ] -csdk crypto-addresses-module delete --id -``` - -## Examples - -### List cryptoAddressesModule records - -```bash -csdk crypto-addresses-module list -``` - -### List cryptoAddressesModule records with pagination - -```bash -csdk crypto-addresses-module list --limit 10 --offset 0 -``` - -### List cryptoAddressesModule records with cursor pagination - -```bash -csdk crypto-addresses-module list --limit 10 --after -``` - -### Find first matching cryptoAddressesModule - -```bash -csdk crypto-addresses-module find-first --where.id.equalTo -``` - -### List cryptoAddressesModule records with field selection - -```bash -csdk crypto-addresses-module list --select id,id -``` - -### List cryptoAddressesModule records with filtering and ordering - -```bash -csdk crypto-addresses-module list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a cryptoAddressesModule - -```bash -csdk crypto-addresses-module create --databaseId --tableName [--schemaId ] [--privateSchemaId ] [--tableId ] [--ownerTableId ] [--cryptoNetwork ] -``` - -### Get a cryptoAddressesModule by id - -```bash -csdk crypto-addresses-module get --id -``` diff --git a/.agents/skills/cli-public/references/crypto-auth-module.md b/.agents/skills/cli-public/references/crypto-auth-module.md deleted file mode 100644 index a10b53f7db..0000000000 --- a/.agents/skills/cli-public/references/crypto-auth-module.md +++ /dev/null @@ -1,68 +0,0 @@ -# cryptoAuthModule - - - -CRUD operations for CryptoAuthModule records via csdk CLI - -## Usage - -```bash -csdk crypto-auth-module list -csdk crypto-auth-module list --where.. --orderBy -csdk crypto-auth-module list --limit 10 --after -csdk crypto-auth-module find-first --where.. -csdk crypto-auth-module get --id -csdk crypto-auth-module create --databaseId --userField [--schemaId ] [--usersTableId ] [--secretsTableId ] [--sessionsTableId ] [--sessionCredentialsTableId ] [--addressesTableId ] [--cryptoNetwork ] [--signInRequestChallenge ] [--signInRecordFailure ] [--signUpWithKey ] [--signInWithChallenge ] -csdk crypto-auth-module update --id [--databaseId ] [--schemaId ] [--usersTableId ] [--secretsTableId ] [--sessionsTableId ] [--sessionCredentialsTableId ] [--addressesTableId ] [--userField ] [--cryptoNetwork ] [--signInRequestChallenge ] [--signInRecordFailure ] [--signUpWithKey ] [--signInWithChallenge ] -csdk crypto-auth-module delete --id -``` - -## Examples - -### List cryptoAuthModule records - -```bash -csdk crypto-auth-module list -``` - -### List cryptoAuthModule records with pagination - -```bash -csdk crypto-auth-module list --limit 10 --offset 0 -``` - -### List cryptoAuthModule records with cursor pagination - -```bash -csdk crypto-auth-module list --limit 10 --after -``` - -### Find first matching cryptoAuthModule - -```bash -csdk crypto-auth-module find-first --where.id.equalTo -``` - -### List cryptoAuthModule records with field selection - -```bash -csdk crypto-auth-module list --select id,id -``` - -### List cryptoAuthModule records with filtering and ordering - -```bash -csdk crypto-auth-module list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a cryptoAuthModule - -```bash -csdk crypto-auth-module create --databaseId --userField [--schemaId ] [--usersTableId ] [--secretsTableId ] [--sessionsTableId ] [--sessionCredentialsTableId ] [--addressesTableId ] [--cryptoNetwork ] [--signInRequestChallenge ] [--signInRecordFailure ] [--signUpWithKey ] [--signInWithChallenge ] -``` - -### Get a cryptoAuthModule by id - -```bash -csdk crypto-auth-module get --id -``` diff --git a/.agents/skills/cli-public/references/current-ip-address.md b/.agents/skills/cli-public/references/current-ip-address.md deleted file mode 100644 index 7a0d89bf68..0000000000 --- a/.agents/skills/cli-public/references/current-ip-address.md +++ /dev/null @@ -1,19 +0,0 @@ -# currentIpAddress - - - -Execute the currentIpAddress query - -## Usage - -```bash -csdk current-ip-address -``` - -## Examples - -### Run currentIpAddress - -```bash -csdk current-ip-address -``` diff --git a/.agents/skills/cli-public/references/current-user-agent.md b/.agents/skills/cli-public/references/current-user-agent.md deleted file mode 100644 index 328c8d8d74..0000000000 --- a/.agents/skills/cli-public/references/current-user-agent.md +++ /dev/null @@ -1,19 +0,0 @@ -# currentUserAgent - - - -Execute the currentUserAgent query - -## Usage - -```bash -csdk current-user-agent -``` - -## Examples - -### Run currentUserAgent - -```bash -csdk current-user-agent -``` diff --git a/.agents/skills/cli-public/references/current-user-id.md b/.agents/skills/cli-public/references/current-user-id.md deleted file mode 100644 index c619fe7ffb..0000000000 --- a/.agents/skills/cli-public/references/current-user-id.md +++ /dev/null @@ -1,19 +0,0 @@ -# currentUserId - - - -Execute the currentUserId query - -## Usage - -```bash -csdk current-user-id -``` - -## Examples - -### Run currentUserId - -```bash -csdk current-user-id -``` diff --git a/.agents/skills/cli-public/references/current-user.md b/.agents/skills/cli-public/references/current-user.md deleted file mode 100644 index 2698ef373f..0000000000 --- a/.agents/skills/cli-public/references/current-user.md +++ /dev/null @@ -1,19 +0,0 @@ -# currentUser - - - -Execute the currentUser query - -## Usage - -```bash -csdk current-user -``` - -## Examples - -### Run currentUser - -```bash -csdk current-user -``` diff --git a/.agents/skills/cli-public/references/database-provision-module.md b/.agents/skills/cli-public/references/database-provision-module.md deleted file mode 100644 index f89fdb3fae..0000000000 --- a/.agents/skills/cli-public/references/database-provision-module.md +++ /dev/null @@ -1,68 +0,0 @@ -# databaseProvisionModule - - - -CRUD operations for DatabaseProvisionModule records via csdk CLI - -## Usage - -```bash -csdk database-provision-module list -csdk database-provision-module list --where.. --orderBy -csdk database-provision-module list --limit 10 --after -csdk database-provision-module find-first --where.. -csdk database-provision-module get --id -csdk database-provision-module create --databaseName --ownerId --domain [--subdomain ] [--modules ] [--options ] [--bootstrapUser ] [--status ] [--errorMessage ] [--databaseId ] [--completedAt ] -csdk database-provision-module update --id [--databaseName ] [--ownerId ] [--subdomain ] [--domain ] [--modules ] [--options ] [--bootstrapUser ] [--status ] [--errorMessage ] [--databaseId ] [--completedAt ] -csdk database-provision-module delete --id -``` - -## Examples - -### List databaseProvisionModule records - -```bash -csdk database-provision-module list -``` - -### List databaseProvisionModule records with pagination - -```bash -csdk database-provision-module list --limit 10 --offset 0 -``` - -### List databaseProvisionModule records with cursor pagination - -```bash -csdk database-provision-module list --limit 10 --after -``` - -### Find first matching databaseProvisionModule - -```bash -csdk database-provision-module find-first --where.id.equalTo -``` - -### List databaseProvisionModule records with field selection - -```bash -csdk database-provision-module list --select id,id -``` - -### List databaseProvisionModule records with filtering and ordering - -```bash -csdk database-provision-module list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a databaseProvisionModule - -```bash -csdk database-provision-module create --databaseName --ownerId --domain [--subdomain ] [--modules ] [--options ] [--bootstrapUser ] [--status ] [--errorMessage ] [--databaseId ] [--completedAt ] -``` - -### Get a databaseProvisionModule by id - -```bash -csdk database-provision-module get --id -``` diff --git a/.agents/skills/cli-public/references/database-setting.md b/.agents/skills/cli-public/references/database-setting.md deleted file mode 100644 index 5ef0ca99e6..0000000000 --- a/.agents/skills/cli-public/references/database-setting.md +++ /dev/null @@ -1,68 +0,0 @@ -# databaseSetting - - - -CRUD operations for DatabaseSetting records via csdk CLI - -## Usage - -```bash -csdk database-setting list -csdk database-setting list --where.. --orderBy -csdk database-setting list --limit 10 --after -csdk database-setting find-first --where.. -csdk database-setting get --id -csdk database-setting create --databaseId [--enableAggregates ] [--enablePostgis ] [--enableSearch ] [--enableDirectUploads ] [--enablePresignedUploads ] [--enableManyToMany ] [--enableConnectionFilter ] [--enableLtree ] [--enableLlm ] [--enableRealtime ] [--enableBulk ] [--options ] -csdk database-setting update --id [--databaseId ] [--enableAggregates ] [--enablePostgis ] [--enableSearch ] [--enableDirectUploads ] [--enablePresignedUploads ] [--enableManyToMany ] [--enableConnectionFilter ] [--enableLtree ] [--enableLlm ] [--enableRealtime ] [--enableBulk ] [--options ] -csdk database-setting delete --id -``` - -## Examples - -### List databaseSetting records - -```bash -csdk database-setting list -``` - -### List databaseSetting records with pagination - -```bash -csdk database-setting list --limit 10 --offset 0 -``` - -### List databaseSetting records with cursor pagination - -```bash -csdk database-setting list --limit 10 --after -``` - -### Find first matching databaseSetting - -```bash -csdk database-setting find-first --where.id.equalTo -``` - -### List databaseSetting records with field selection - -```bash -csdk database-setting list --select id,id -``` - -### List databaseSetting records with filtering and ordering - -```bash -csdk database-setting list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a databaseSetting - -```bash -csdk database-setting create --databaseId [--enableAggregates ] [--enablePostgis ] [--enableSearch ] [--enableDirectUploads ] [--enablePresignedUploads ] [--enableManyToMany ] [--enableConnectionFilter ] [--enableLtree ] [--enableLlm ] [--enableRealtime ] [--enableBulk ] [--options ] -``` - -### Get a databaseSetting by id - -```bash -csdk database-setting get --id -``` diff --git a/.agents/skills/cli-public/references/database-transfer.md b/.agents/skills/cli-public/references/database-transfer.md deleted file mode 100644 index 50de091178..0000000000 --- a/.agents/skills/cli-public/references/database-transfer.md +++ /dev/null @@ -1,68 +0,0 @@ -# databaseTransfer - - - -CRUD operations for DatabaseTransfer records via csdk CLI - -## Usage - -```bash -csdk database-transfer list -csdk database-transfer list --where.. --orderBy -csdk database-transfer list --limit 10 --after -csdk database-transfer find-first --where.. -csdk database-transfer get --id -csdk database-transfer create --databaseId --targetOwnerId --initiatedBy [--sourceApproved ] [--targetApproved ] [--sourceApprovedAt ] [--targetApprovedAt ] [--status ] [--notes ] [--expiresAt ] [--completedAt ] -csdk database-transfer update --id [--databaseId ] [--targetOwnerId ] [--sourceApproved ] [--targetApproved ] [--sourceApprovedAt ] [--targetApprovedAt ] [--status ] [--initiatedBy ] [--notes ] [--expiresAt ] [--completedAt ] -csdk database-transfer delete --id -``` - -## Examples - -### List databaseTransfer records - -```bash -csdk database-transfer list -``` - -### List databaseTransfer records with pagination - -```bash -csdk database-transfer list --limit 10 --offset 0 -``` - -### List databaseTransfer records with cursor pagination - -```bash -csdk database-transfer list --limit 10 --after -``` - -### Find first matching databaseTransfer - -```bash -csdk database-transfer find-first --where.id.equalTo -``` - -### List databaseTransfer records with field selection - -```bash -csdk database-transfer list --select id,id -``` - -### List databaseTransfer records with filtering and ordering - -```bash -csdk database-transfer list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a databaseTransfer - -```bash -csdk database-transfer create --databaseId --targetOwnerId --initiatedBy [--sourceApproved ] [--targetApproved ] [--sourceApprovedAt ] [--targetApprovedAt ] [--status ] [--notes ] [--expiresAt ] [--completedAt ] -``` - -### Get a databaseTransfer by id - -```bash -csdk database-transfer get --id -``` diff --git a/.agents/skills/cli-public/references/database.md b/.agents/skills/cli-public/references/database.md deleted file mode 100644 index 35e71400b2..0000000000 --- a/.agents/skills/cli-public/references/database.md +++ /dev/null @@ -1,68 +0,0 @@ -# database - - - -CRUD operations for Database records via csdk CLI - -## Usage - -```bash -csdk database list -csdk database list --where.. --orderBy -csdk database list --limit 10 --after -csdk database find-first --where.. -csdk database get --id -csdk database create [--ownerId ] [--schemaHash ] [--name ] [--label ] [--hash ] -csdk database update --id [--ownerId ] [--schemaHash ] [--name ] [--label ] [--hash ] -csdk database delete --id -``` - -## Examples - -### List database records - -```bash -csdk database list -``` - -### List database records with pagination - -```bash -csdk database list --limit 10 --offset 0 -``` - -### List database records with cursor pagination - -```bash -csdk database list --limit 10 --after -``` - -### Find first matching database - -```bash -csdk database find-first --where.id.equalTo -``` - -### List database records with field selection - -```bash -csdk database list --select id,id -``` - -### List database records with filtering and ordering - -```bash -csdk database list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a database - -```bash -csdk database create [--ownerId ] [--schemaHash ] [--name ] [--label ] [--hash ] -``` - -### Get a database by id - -```bash -csdk database get --id -``` diff --git a/.agents/skills/cli-public/references/db-usage-module.md b/.agents/skills/cli-public/references/db-usage-module.md deleted file mode 100644 index f2f47b2746..0000000000 --- a/.agents/skills/cli-public/references/db-usage-module.md +++ /dev/null @@ -1,68 +0,0 @@ -# dbUsageModule - - - -CRUD operations for DbUsageModule records via csdk CLI - -## Usage - -```bash -csdk db-usage-module list -csdk db-usage-module list --where.. --orderBy -csdk db-usage-module list --limit 10 --after -csdk db-usage-module find-first --where.. -csdk db-usage-module get --id -csdk db-usage-module create --databaseId [--schemaId ] [--privateSchemaId ] [--tableStatsLogTableId ] [--tableStatsLogTableName ] [--tableStatsDailyTableId ] [--tableStatsDailyTableName ] [--queryStatsLogTableId ] [--queryStatsLogTableName ] [--queryStatsDailyTableId ] [--queryStatsDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--prefix ] -csdk db-usage-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--tableStatsLogTableId ] [--tableStatsLogTableName ] [--tableStatsDailyTableId ] [--tableStatsDailyTableName ] [--queryStatsLogTableId ] [--queryStatsLogTableName ] [--queryStatsDailyTableId ] [--queryStatsDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--prefix ] -csdk db-usage-module delete --id -``` - -## Examples - -### List dbUsageModule records - -```bash -csdk db-usage-module list -``` - -### List dbUsageModule records with pagination - -```bash -csdk db-usage-module list --limit 10 --offset 0 -``` - -### List dbUsageModule records with cursor pagination - -```bash -csdk db-usage-module list --limit 10 --after -``` - -### Find first matching dbUsageModule - -```bash -csdk db-usage-module find-first --where.id.equalTo -``` - -### List dbUsageModule records with field selection - -```bash -csdk db-usage-module list --select id,id -``` - -### List dbUsageModule records with filtering and ordering - -```bash -csdk db-usage-module list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a dbUsageModule - -```bash -csdk db-usage-module create --databaseId [--schemaId ] [--privateSchemaId ] [--tableStatsLogTableId ] [--tableStatsLogTableName ] [--tableStatsDailyTableId ] [--tableStatsDailyTableName ] [--queryStatsLogTableId ] [--queryStatsLogTableName ] [--queryStatsDailyTableId ] [--queryStatsDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--prefix ] -``` - -### Get a dbUsageModule by id - -```bash -csdk db-usage-module get --id -``` diff --git a/.agents/skills/cli-public/references/default-ids-module.md b/.agents/skills/cli-public/references/default-ids-module.md deleted file mode 100644 index 00d5ec0db0..0000000000 --- a/.agents/skills/cli-public/references/default-ids-module.md +++ /dev/null @@ -1,68 +0,0 @@ -# defaultIdsModule - - - -CRUD operations for DefaultIdsModule records via csdk CLI - -## Usage - -```bash -csdk default-ids-module list -csdk default-ids-module list --where.. --orderBy -csdk default-ids-module list --limit 10 --after -csdk default-ids-module find-first --where.. -csdk default-ids-module get --id -csdk default-ids-module create --databaseId -csdk default-ids-module update --id [--databaseId ] -csdk default-ids-module delete --id -``` - -## Examples - -### List defaultIdsModule records - -```bash -csdk default-ids-module list -``` - -### List defaultIdsModule records with pagination - -```bash -csdk default-ids-module list --limit 10 --offset 0 -``` - -### List defaultIdsModule records with cursor pagination - -```bash -csdk default-ids-module list --limit 10 --after -``` - -### Find first matching defaultIdsModule - -```bash -csdk default-ids-module find-first --where.id.equalTo -``` - -### List defaultIdsModule records with field selection - -```bash -csdk default-ids-module list --select id,id -``` - -### List defaultIdsModule records with filtering and ordering - -```bash -csdk default-ids-module list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a defaultIdsModule - -```bash -csdk default-ids-module create --databaseId -``` - -### Get a defaultIdsModule by id - -```bash -csdk default-ids-module get --id -``` diff --git a/.agents/skills/cli-public/references/default-privilege.md b/.agents/skills/cli-public/references/default-privilege.md deleted file mode 100644 index ae3d299bee..0000000000 --- a/.agents/skills/cli-public/references/default-privilege.md +++ /dev/null @@ -1,68 +0,0 @@ -# defaultPrivilege - - - -CRUD operations for DefaultPrivilege records via csdk CLI - -## Usage - -```bash -csdk default-privilege list -csdk default-privilege list --where.. --orderBy -csdk default-privilege list --limit 10 --after -csdk default-privilege find-first --where.. -csdk default-privilege get --id -csdk default-privilege create --schemaId --objectType --privilege --granteeName [--databaseId ] [--isGrant ] -csdk default-privilege update --id [--databaseId ] [--schemaId ] [--objectType ] [--privilege ] [--granteeName ] [--isGrant ] -csdk default-privilege delete --id -``` - -## Examples - -### List defaultPrivilege records - -```bash -csdk default-privilege list -``` - -### List defaultPrivilege records with pagination - -```bash -csdk default-privilege list --limit 10 --offset 0 -``` - -### List defaultPrivilege records with cursor pagination - -```bash -csdk default-privilege list --limit 10 --after -``` - -### Find first matching defaultPrivilege - -```bash -csdk default-privilege find-first --where.id.equalTo -``` - -### List defaultPrivilege records with field selection - -```bash -csdk default-privilege list --select id,id -``` - -### List defaultPrivilege records with filtering and ordering - -```bash -csdk default-privilege list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a defaultPrivilege - -```bash -csdk default-privilege create --schemaId --objectType --privilege --granteeName [--databaseId ] [--isGrant ] -``` - -### Get a defaultPrivilege by id - -```bash -csdk default-privilege get --id -``` diff --git a/.agents/skills/cli-public/references/denormalized-table-field.md b/.agents/skills/cli-public/references/denormalized-table-field.md deleted file mode 100644 index 52d4746705..0000000000 --- a/.agents/skills/cli-public/references/denormalized-table-field.md +++ /dev/null @@ -1,68 +0,0 @@ -# denormalizedTableField - - - -CRUD operations for DenormalizedTableField records via csdk CLI - -## Usage - -```bash -csdk denormalized-table-field list -csdk denormalized-table-field list --where.. --orderBy -csdk denormalized-table-field list --limit 10 --after -csdk denormalized-table-field find-first --where.. -csdk denormalized-table-field get --id -csdk denormalized-table-field create --databaseId --tableId --fieldId --refTableId --refFieldId [--setIds ] [--refIds ] [--useUpdates ] [--updateDefaults ] [--funcName ] [--funcOrder ] -csdk denormalized-table-field update --id [--databaseId ] [--tableId ] [--fieldId ] [--setIds ] [--refTableId ] [--refFieldId ] [--refIds ] [--useUpdates ] [--updateDefaults ] [--funcName ] [--funcOrder ] -csdk denormalized-table-field delete --id -``` - -## Examples - -### List denormalizedTableField records - -```bash -csdk denormalized-table-field list -``` - -### List denormalizedTableField records with pagination - -```bash -csdk denormalized-table-field list --limit 10 --offset 0 -``` - -### List denormalizedTableField records with cursor pagination - -```bash -csdk denormalized-table-field list --limit 10 --after -``` - -### Find first matching denormalizedTableField - -```bash -csdk denormalized-table-field find-first --where.id.equalTo -``` - -### List denormalizedTableField records with field selection - -```bash -csdk denormalized-table-field list --select id,id -``` - -### List denormalizedTableField records with filtering and ordering - -```bash -csdk denormalized-table-field list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a denormalizedTableField - -```bash -csdk denormalized-table-field create --databaseId --tableId --fieldId --refTableId --refFieldId [--setIds ] [--refIds ] [--useUpdates ] [--updateDefaults ] [--funcName ] [--funcOrder ] -``` - -### Get a denormalizedTableField by id - -```bash -csdk denormalized-table-field get --id -``` diff --git a/.agents/skills/cli-public/references/devices-module.md b/.agents/skills/cli-public/references/devices-module.md deleted file mode 100644 index 9054cca043..0000000000 --- a/.agents/skills/cli-public/references/devices-module.md +++ /dev/null @@ -1,68 +0,0 @@ -# devicesModule - - - -CRUD operations for DevicesModule records via csdk CLI - -## Usage - -```bash -csdk devices-module list -csdk devices-module list --where.. --orderBy -csdk devices-module list --limit 10 --after -csdk devices-module find-first --where.. -csdk devices-module get --id -csdk devices-module create --databaseId [--schemaId ] [--userDevicesTableId ] [--deviceSettingsTableId ] [--userDevicesTable ] [--deviceSettingsTable ] -csdk devices-module update --id [--databaseId ] [--schemaId ] [--userDevicesTableId ] [--deviceSettingsTableId ] [--userDevicesTable ] [--deviceSettingsTable ] -csdk devices-module delete --id -``` - -## Examples - -### List devicesModule records - -```bash -csdk devices-module list -``` - -### List devicesModule records with pagination - -```bash -csdk devices-module list --limit 10 --offset 0 -``` - -### List devicesModule records with cursor pagination - -```bash -csdk devices-module list --limit 10 --after -``` - -### Find first matching devicesModule - -```bash -csdk devices-module find-first --where.id.equalTo -``` - -### List devicesModule records with field selection - -```bash -csdk devices-module list --select id,id -``` - -### List devicesModule records with filtering and ordering - -```bash -csdk devices-module list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a devicesModule - -```bash -csdk devices-module create --databaseId [--schemaId ] [--userDevicesTableId ] [--deviceSettingsTableId ] [--userDevicesTable ] [--deviceSettingsTable ] -``` - -### Get a devicesModule by id - -```bash -csdk devices-module get --id -``` diff --git a/.agents/skills/cli-public/references/disconnect-account.md b/.agents/skills/cli-public/references/disconnect-account.md deleted file mode 100644 index bb3d26cf3f..0000000000 --- a/.agents/skills/cli-public/references/disconnect-account.md +++ /dev/null @@ -1,19 +0,0 @@ -# disconnectAccount - - - -Execute the disconnectAccount mutation - -## Usage - -```bash -csdk disconnect-account --input.clientMutationId --input.accountId -``` - -## Examples - -### Run disconnectAccount - -```bash -csdk disconnect-account --input.clientMutationId --input.accountId -``` diff --git a/.agents/skills/cli-public/references/domain.md b/.agents/skills/cli-public/references/domain.md deleted file mode 100644 index b48978a13b..0000000000 --- a/.agents/skills/cli-public/references/domain.md +++ /dev/null @@ -1,68 +0,0 @@ -# domain - - - -CRUD operations for Domain records via csdk CLI - -## Usage - -```bash -csdk domain list -csdk domain list --where.. --orderBy -csdk domain list --limit 10 --after -csdk domain find-first --where.. -csdk domain get --id -csdk domain create --databaseId [--apiId ] [--siteId ] [--subdomain ] [--domain ] -csdk domain update --id [--databaseId ] [--apiId ] [--siteId ] [--subdomain ] [--domain ] -csdk domain delete --id -``` - -## Examples - -### List domain records - -```bash -csdk domain list -``` - -### List domain records with pagination - -```bash -csdk domain list --limit 10 --offset 0 -``` - -### List domain records with cursor pagination - -```bash -csdk domain list --limit 10 --after -``` - -### Find first matching domain - -```bash -csdk domain find-first --where.id.equalTo -``` - -### List domain records with field selection - -```bash -csdk domain list --select id,id -``` - -### List domain records with filtering and ordering - -```bash -csdk domain list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a domain - -```bash -csdk domain create --databaseId [--apiId ] [--siteId ] [--subdomain ] [--domain ] -``` - -### Get a domain by id - -```bash -csdk domain get --id -``` diff --git a/.agents/skills/cli-public/references/email.md b/.agents/skills/cli-public/references/email.md deleted file mode 100644 index 01858e2856..0000000000 --- a/.agents/skills/cli-public/references/email.md +++ /dev/null @@ -1,68 +0,0 @@ -# email - - - -CRUD operations for Email records via csdk CLI - -## Usage - -```bash -csdk email list -csdk email list --where.. --orderBy -csdk email list --limit 10 --after -csdk email find-first --where.. -csdk email get --id -csdk email create --email [--ownerId ] [--isVerified ] [--isPrimary ] [--name ] -csdk email update --id [--ownerId ] [--email ] [--isVerified ] [--isPrimary ] [--name ] -csdk email delete --id -``` - -## Examples - -### List email records - -```bash -csdk email list -``` - -### List email records with pagination - -```bash -csdk email list --limit 10 --offset 0 -``` - -### List email records with cursor pagination - -```bash -csdk email list --limit 10 --after -``` - -### Find first matching email - -```bash -csdk email find-first --where.id.equalTo -``` - -### List email records with field selection - -```bash -csdk email list --select id,id -``` - -### List email records with filtering and ordering - -```bash -csdk email list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a email - -```bash -csdk email create --email [--ownerId ] [--isVerified ] [--isPrimary ] [--name ] -``` - -### Get a email by id - -```bash -csdk email get --id -``` diff --git a/.agents/skills/cli-public/references/emails-module.md b/.agents/skills/cli-public/references/emails-module.md deleted file mode 100644 index 24be6b0dd8..0000000000 --- a/.agents/skills/cli-public/references/emails-module.md +++ /dev/null @@ -1,68 +0,0 @@ -# emailsModule - - - -CRUD operations for EmailsModule records via csdk CLI - -## Usage - -```bash -csdk emails-module list -csdk emails-module list --where.. --orderBy -csdk emails-module list --limit 10 --after -csdk emails-module find-first --where.. -csdk emails-module get --id -csdk emails-module create --databaseId --tableName [--schemaId ] [--privateSchemaId ] [--tableId ] [--ownerTableId ] -csdk emails-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--tableId ] [--ownerTableId ] [--tableName ] -csdk emails-module delete --id -``` - -## Examples - -### List emailsModule records - -```bash -csdk emails-module list -``` - -### List emailsModule records with pagination - -```bash -csdk emails-module list --limit 10 --offset 0 -``` - -### List emailsModule records with cursor pagination - -```bash -csdk emails-module list --limit 10 --after -``` - -### Find first matching emailsModule - -```bash -csdk emails-module find-first --where.id.equalTo -``` - -### List emailsModule records with field selection - -```bash -csdk emails-module list --select id,id -``` - -### List emailsModule records with filtering and ordering - -```bash -csdk emails-module list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a emailsModule - -```bash -csdk emails-module create --databaseId --tableName [--schemaId ] [--privateSchemaId ] [--tableId ] [--ownerTableId ] -``` - -### Get a emailsModule by id - -```bash -csdk emails-module get --id -``` diff --git a/.agents/skills/cli-public/references/embedding-chunk.md b/.agents/skills/cli-public/references/embedding-chunk.md deleted file mode 100644 index fc5a6e993d..0000000000 --- a/.agents/skills/cli-public/references/embedding-chunk.md +++ /dev/null @@ -1,68 +0,0 @@ -# embeddingChunk - - - -CRUD operations for EmbeddingChunk records via csdk CLI - -## Usage - -```bash -csdk embedding-chunk list -csdk embedding-chunk list --where.. --orderBy -csdk embedding-chunk list --limit 10 --after -csdk embedding-chunk find-first --where.. -csdk embedding-chunk get --id -csdk embedding-chunk create --tableId [--databaseId ] [--embeddingFieldId ] [--chunksTableId ] [--chunksTableName ] [--contentFieldName ] [--dimensions ] [--metric ] [--chunkSize ] [--chunkOverlap ] [--chunkStrategy ] [--metadataFields ] [--searchIndexes ] [--enqueueChunkingJob ] [--chunkingTaskName ] [--embeddingModel ] [--embeddingProvider ] [--parentFkFieldId ] -csdk embedding-chunk update --id [--databaseId ] [--tableId ] [--embeddingFieldId ] [--chunksTableId ] [--chunksTableName ] [--contentFieldName ] [--dimensions ] [--metric ] [--chunkSize ] [--chunkOverlap ] [--chunkStrategy ] [--metadataFields ] [--searchIndexes ] [--enqueueChunkingJob ] [--chunkingTaskName ] [--embeddingModel ] [--embeddingProvider ] [--parentFkFieldId ] -csdk embedding-chunk delete --id -``` - -## Examples - -### List embeddingChunk records - -```bash -csdk embedding-chunk list -``` - -### List embeddingChunk records with pagination - -```bash -csdk embedding-chunk list --limit 10 --offset 0 -``` - -### List embeddingChunk records with cursor pagination - -```bash -csdk embedding-chunk list --limit 10 --after -``` - -### Find first matching embeddingChunk - -```bash -csdk embedding-chunk find-first --where.id.equalTo -``` - -### List embeddingChunk records with field selection - -```bash -csdk embedding-chunk list --select id,id -``` - -### List embeddingChunk records with filtering and ordering - -```bash -csdk embedding-chunk list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a embeddingChunk - -```bash -csdk embedding-chunk create --tableId [--databaseId ] [--embeddingFieldId ] [--chunksTableId ] [--chunksTableName ] [--contentFieldName ] [--dimensions ] [--metric ] [--chunkSize ] [--chunkOverlap ] [--chunkStrategy ] [--metadataFields ] [--searchIndexes ] [--enqueueChunkingJob ] [--chunkingTaskName ] [--embeddingModel ] [--embeddingProvider ] [--parentFkFieldId ] -``` - -### Get a embeddingChunk by id - -```bash -csdk embedding-chunk get --id -``` diff --git a/.agents/skills/cli-public/references/encrypted-secrets-module.md b/.agents/skills/cli-public/references/encrypted-secrets-module.md deleted file mode 100644 index 2f6717deb7..0000000000 --- a/.agents/skills/cli-public/references/encrypted-secrets-module.md +++ /dev/null @@ -1,68 +0,0 @@ -# encryptedSecretsModule - - - -CRUD operations for EncryptedSecretsModule records via csdk CLI - -## Usage - -```bash -csdk encrypted-secrets-module list -csdk encrypted-secrets-module list --where.. --orderBy -csdk encrypted-secrets-module list --limit 10 --after -csdk encrypted-secrets-module find-first --where.. -csdk encrypted-secrets-module get --id -csdk encrypted-secrets-module create --databaseId [--schemaId ] [--tableId ] [--tableName ] -csdk encrypted-secrets-module update --id [--databaseId ] [--schemaId ] [--tableId ] [--tableName ] -csdk encrypted-secrets-module delete --id -``` - -## Examples - -### List encryptedSecretsModule records - -```bash -csdk encrypted-secrets-module list -``` - -### List encryptedSecretsModule records with pagination - -```bash -csdk encrypted-secrets-module list --limit 10 --offset 0 -``` - -### List encryptedSecretsModule records with cursor pagination - -```bash -csdk encrypted-secrets-module list --limit 10 --after -``` - -### Find first matching encryptedSecretsModule - -```bash -csdk encrypted-secrets-module find-first --where.id.equalTo -``` - -### List encryptedSecretsModule records with field selection - -```bash -csdk encrypted-secrets-module list --select id,id -``` - -### List encryptedSecretsModule records with filtering and ordering - -```bash -csdk encrypted-secrets-module list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a encryptedSecretsModule - -```bash -csdk encrypted-secrets-module create --databaseId [--schemaId ] [--tableId ] [--tableName ] -``` - -### Get a encryptedSecretsModule by id - -```bash -csdk encrypted-secrets-module get --id -``` diff --git a/.agents/skills/cli-public/references/entity-type-provision.md b/.agents/skills/cli-public/references/entity-type-provision.md deleted file mode 100644 index 73c5c10cae..0000000000 --- a/.agents/skills/cli-public/references/entity-type-provision.md +++ /dev/null @@ -1,68 +0,0 @@ -# entityTypeProvision - - - -CRUD operations for EntityTypeProvision records via csdk CLI - -## Usage - -```bash -csdk entity-type-provision list -csdk entity-type-provision list --where.. --orderBy -csdk entity-type-provision list --limit 10 --after -csdk entity-type-provision find-first --where.. -csdk entity-type-provision get --id -csdk entity-type-provision create --databaseId --name --prefix [--description ] [--parentEntity ] [--tableName ] [--isVisible ] [--hasLimits ] [--hasProfiles ] [--hasLevels ] [--hasInvites ] [--hasInviteAchievements ] [--storage ] [--namespaces ] [--functions ] [--graphs ] [--agents ] [--skipEntityPolicies ] [--tableProvision ] [--outMembershipType ] [--outEntityTableId ] [--outEntityTableName ] [--outInstalledModules ] [--outStorageModuleId ] [--outBucketsTableId ] [--outFilesTableId ] [--outPathSharesTableId ] [--outInvitesModuleId ] [--outNamespaceModuleId ] [--outNamespacesTableId ] [--outNamespaceEventsTableId ] [--outFunctionModuleId ] [--outDefinitionsTableId ] [--outInvocationsTableId ] [--outExecutionLogsTableId ] [--outSecretDefinitionsTableId ] [--outRequirementsTableId ] [--outConfigRequirementsTableId ] [--outGraphModuleId ] [--outGraphsTableId ] [--outAgentModuleId ] -csdk entity-type-provision update --id [--databaseId ] [--name ] [--prefix ] [--description ] [--parentEntity ] [--tableName ] [--isVisible ] [--hasLimits ] [--hasProfiles ] [--hasLevels ] [--hasInvites ] [--hasInviteAchievements ] [--storage ] [--namespaces ] [--functions ] [--graphs ] [--agents ] [--skipEntityPolicies ] [--tableProvision ] [--outMembershipType ] [--outEntityTableId ] [--outEntityTableName ] [--outInstalledModules ] [--outStorageModuleId ] [--outBucketsTableId ] [--outFilesTableId ] [--outPathSharesTableId ] [--outInvitesModuleId ] [--outNamespaceModuleId ] [--outNamespacesTableId ] [--outNamespaceEventsTableId ] [--outFunctionModuleId ] [--outDefinitionsTableId ] [--outInvocationsTableId ] [--outExecutionLogsTableId ] [--outSecretDefinitionsTableId ] [--outRequirementsTableId ] [--outConfigRequirementsTableId ] [--outGraphModuleId ] [--outGraphsTableId ] [--outAgentModuleId ] -csdk entity-type-provision delete --id -``` - -## Examples - -### List entityTypeProvision records - -```bash -csdk entity-type-provision list -``` - -### List entityTypeProvision records with pagination - -```bash -csdk entity-type-provision list --limit 10 --offset 0 -``` - -### List entityTypeProvision records with cursor pagination - -```bash -csdk entity-type-provision list --limit 10 --after -``` - -### Find first matching entityTypeProvision - -```bash -csdk entity-type-provision find-first --where.id.equalTo -``` - -### List entityTypeProvision records with field selection - -```bash -csdk entity-type-provision list --select id,id -``` - -### List entityTypeProvision records with filtering and ordering - -```bash -csdk entity-type-provision list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a entityTypeProvision - -```bash -csdk entity-type-provision create --databaseId --name --prefix [--description ] [--parentEntity ] [--tableName ] [--isVisible ] [--hasLimits ] [--hasProfiles ] [--hasLevels ] [--hasInvites ] [--hasInviteAchievements ] [--storage ] [--namespaces ] [--functions ] [--graphs ] [--agents ] [--skipEntityPolicies ] [--tableProvision ] [--outMembershipType ] [--outEntityTableId ] [--outEntityTableName ] [--outInstalledModules ] [--outStorageModuleId ] [--outBucketsTableId ] [--outFilesTableId ] [--outPathSharesTableId ] [--outInvitesModuleId ] [--outNamespaceModuleId ] [--outNamespacesTableId ] [--outNamespaceEventsTableId ] [--outFunctionModuleId ] [--outDefinitionsTableId ] [--outInvocationsTableId ] [--outExecutionLogsTableId ] [--outSecretDefinitionsTableId ] [--outRequirementsTableId ] [--outConfigRequirementsTableId ] [--outGraphModuleId ] [--outGraphsTableId ] [--outAgentModuleId ] -``` - -### Get a entityTypeProvision by id - -```bash -csdk entity-type-provision get --id -``` diff --git a/.agents/skills/cli-public/references/enum.md b/.agents/skills/cli-public/references/enum.md deleted file mode 100644 index 756eea869d..0000000000 --- a/.agents/skills/cli-public/references/enum.md +++ /dev/null @@ -1,68 +0,0 @@ -# enum - - - -CRUD operations for Enum records via csdk CLI - -## Usage - -```bash -csdk enum list -csdk enum list --where.. --orderBy -csdk enum list --limit 10 --after -csdk enum find-first --where.. -csdk enum get --id -csdk enum create --databaseId --schemaId --name [--label ] [--description ] [--values ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] -csdk enum update --id [--databaseId ] [--schemaId ] [--name ] [--label ] [--description ] [--values ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] -csdk enum delete --id -``` - -## Examples - -### List enum records - -```bash -csdk enum list -``` - -### List enum records with pagination - -```bash -csdk enum list --limit 10 --offset 0 -``` - -### List enum records with cursor pagination - -```bash -csdk enum list --limit 10 --after -``` - -### Find first matching enum - -```bash -csdk enum find-first --where.id.equalTo -``` - -### List enum records with field selection - -```bash -csdk enum list --select id,id -``` - -### List enum records with filtering and ordering - -```bash -csdk enum list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a enum - -```bash -csdk enum create --databaseId --schemaId --name [--label ] [--description ] [--values ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] -``` - -### Get a enum by id - -```bash -csdk enum get --id -``` diff --git a/.agents/skills/cli-public/references/events-module.md b/.agents/skills/cli-public/references/events-module.md deleted file mode 100644 index b1dbc324e3..0000000000 --- a/.agents/skills/cli-public/references/events-module.md +++ /dev/null @@ -1,68 +0,0 @@ -# eventsModule - - - -CRUD operations for EventsModule records via csdk CLI - -## Usage - -```bash -csdk events-module list -csdk events-module list --where.. --orderBy -csdk events-module list --limit 10 --after -csdk events-module find-first --where.. -csdk events-module get --id -csdk events-module create --databaseId --membershipType [--schemaId ] [--privateSchemaId ] [--eventsTableId ] [--eventsTableName ] [--eventAggregatesTableId ] [--eventAggregatesTableName ] [--eventTypesTableId ] [--eventTypesTableName ] [--levelsTableId ] [--levelsTableName ] [--levelRequirementsTableId ] [--levelRequirementsTableName ] [--levelGrantsTableId ] [--levelGrantsTableName ] [--achievementRewardsTableId ] [--achievementRewardsTableName ] [--recordEvent ] [--removeEvent ] [--tgEvent ] [--tgEventToggle ] [--tgEventToggleBool ] [--tgEventBool ] [--upsertAggregate ] [--tgUpdateAggregates ] [--pruneEvents ] [--stepsRequired ] [--levelAchieved ] [--tgCheckAchievements ] [--grantAchievement ] [--tgAchievementReward ] [--interval ] [--retention ] [--premake ] [--prefix ] [--entityTableId ] [--actorTableId ] -csdk events-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--eventsTableId ] [--eventsTableName ] [--eventAggregatesTableId ] [--eventAggregatesTableName ] [--eventTypesTableId ] [--eventTypesTableName ] [--levelsTableId ] [--levelsTableName ] [--levelRequirementsTableId ] [--levelRequirementsTableName ] [--levelGrantsTableId ] [--levelGrantsTableName ] [--achievementRewardsTableId ] [--achievementRewardsTableName ] [--recordEvent ] [--removeEvent ] [--tgEvent ] [--tgEventToggle ] [--tgEventToggleBool ] [--tgEventBool ] [--upsertAggregate ] [--tgUpdateAggregates ] [--pruneEvents ] [--stepsRequired ] [--levelAchieved ] [--tgCheckAchievements ] [--grantAchievement ] [--tgAchievementReward ] [--interval ] [--retention ] [--premake ] [--prefix ] [--membershipType ] [--entityTableId ] [--actorTableId ] -csdk events-module delete --id -``` - -## Examples - -### List eventsModule records - -```bash -csdk events-module list -``` - -### List eventsModule records with pagination - -```bash -csdk events-module list --limit 10 --offset 0 -``` - -### List eventsModule records with cursor pagination - -```bash -csdk events-module list --limit 10 --after -``` - -### Find first matching eventsModule - -```bash -csdk events-module find-first --where.id.equalTo -``` - -### List eventsModule records with field selection - -```bash -csdk events-module list --select id,id -``` - -### List eventsModule records with filtering and ordering - -```bash -csdk events-module list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a eventsModule - -```bash -csdk events-module create --databaseId --membershipType [--schemaId ] [--privateSchemaId ] [--eventsTableId ] [--eventsTableName ] [--eventAggregatesTableId ] [--eventAggregatesTableName ] [--eventTypesTableId ] [--eventTypesTableName ] [--levelsTableId ] [--levelsTableName ] [--levelRequirementsTableId ] [--levelRequirementsTableName ] [--levelGrantsTableId ] [--levelGrantsTableName ] [--achievementRewardsTableId ] [--achievementRewardsTableName ] [--recordEvent ] [--removeEvent ] [--tgEvent ] [--tgEventToggle ] [--tgEventToggleBool ] [--tgEventBool ] [--upsertAggregate ] [--tgUpdateAggregates ] [--pruneEvents ] [--stepsRequired ] [--levelAchieved ] [--tgCheckAchievements ] [--grantAchievement ] [--tgAchievementReward ] [--interval ] [--retention ] [--premake ] [--prefix ] [--entityTableId ] [--actorTableId ] -``` - -### Get a eventsModule by id - -```bash -csdk events-module get --id -``` diff --git a/.agents/skills/cli-public/references/extend-token-expires.md b/.agents/skills/cli-public/references/extend-token-expires.md deleted file mode 100644 index 28a7064f4d..0000000000 --- a/.agents/skills/cli-public/references/extend-token-expires.md +++ /dev/null @@ -1,19 +0,0 @@ -# extendTokenExpires - - - -Execute the extendTokenExpires mutation - -## Usage - -```bash -csdk extend-token-expires --input.clientMutationId --input.amount -``` - -## Examples - -### Run extendTokenExpires - -```bash -csdk extend-token-expires --input.clientMutationId --input.amount -``` diff --git a/.agents/skills/cli-public/references/field-module.md b/.agents/skills/cli-public/references/field-module.md deleted file mode 100644 index 7a9272b4d5..0000000000 --- a/.agents/skills/cli-public/references/field-module.md +++ /dev/null @@ -1,35 +0,0 @@ -# fieldModule - - - -CRUD operations for FieldModule records via csdk CLI - -## Usage - -```bash -csdk field-module list -csdk field-module get --id -csdk field-module create --databaseId --nodeType [--privateSchemaId ] [--tableId ] [--fieldId ] [--data ] [--triggers ] [--functions ] -csdk field-module update --id [--databaseId ] [--privateSchemaId ] [--tableId ] [--fieldId ] [--nodeType ] [--data ] [--triggers ] [--functions ] -csdk field-module delete --id -``` - -## Examples - -### List all fieldModule records - -```bash -csdk field-module list -``` - -### Create a fieldModule - -```bash -csdk field-module create --databaseId --nodeType [--privateSchemaId ] [--tableId ] [--fieldId ] [--data ] [--triggers ] [--functions ] -``` - -### Get a fieldModule by id - -```bash -csdk field-module get --id -``` diff --git a/.agents/skills/cli-public/references/field.md b/.agents/skills/cli-public/references/field.md deleted file mode 100644 index 2c4d071dd7..0000000000 --- a/.agents/skills/cli-public/references/field.md +++ /dev/null @@ -1,68 +0,0 @@ -# field - - - -CRUD operations for Field records via csdk CLI - -## Usage - -```bash -csdk field list -csdk field list --where.. --orderBy -csdk field list --limit 10 --after -csdk field find-first --where.. -csdk field get --id -csdk field create --tableId --name --type [--databaseId ] [--label ] [--description ] [--smartTags ] [--isRequired ] [--apiRequired ] [--defaultValue ] [--fieldOrder ] [--regexp ] [--chk ] [--chkExpr ] [--min ] [--max ] [--tags ] [--category ] [--module ] [--scope ] -csdk field update --id [--databaseId ] [--tableId ] [--name ] [--label ] [--description ] [--smartTags ] [--isRequired ] [--apiRequired ] [--defaultValue ] [--type ] [--fieldOrder ] [--regexp ] [--chk ] [--chkExpr ] [--min ] [--max ] [--tags ] [--category ] [--module ] [--scope ] -csdk field delete --id -``` - -## Examples - -### List field records - -```bash -csdk field list -``` - -### List field records with pagination - -```bash -csdk field list --limit 10 --offset 0 -``` - -### List field records with cursor pagination - -```bash -csdk field list --limit 10 --after -``` - -### Find first matching field - -```bash -csdk field find-first --where.id.equalTo -``` - -### List field records with field selection - -```bash -csdk field list --select id,id -``` - -### List field records with filtering and ordering - -```bash -csdk field list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a field - -```bash -csdk field create --tableId --name --type [--databaseId ] [--label ] [--description ] [--smartTags ] [--isRequired ] [--apiRequired ] [--defaultValue ] [--fieldOrder ] [--regexp ] [--chk ] [--chkExpr ] [--min ] [--max ] [--tags ] [--category ] [--module ] [--scope ] -``` - -### Get a field by id - -```bash -csdk field get --id -``` diff --git a/.agents/skills/cli-public/references/foreign-key-constraint.md b/.agents/skills/cli-public/references/foreign-key-constraint.md deleted file mode 100644 index 4dd8dd2ef6..0000000000 --- a/.agents/skills/cli-public/references/foreign-key-constraint.md +++ /dev/null @@ -1,68 +0,0 @@ -# foreignKeyConstraint - - - -CRUD operations for ForeignKeyConstraint records via csdk CLI - -## Usage - -```bash -csdk foreign-key-constraint list -csdk foreign-key-constraint list --where.. --orderBy -csdk foreign-key-constraint list --limit 10 --after -csdk foreign-key-constraint find-first --where.. -csdk foreign-key-constraint get --id -csdk foreign-key-constraint create --tableId --fieldIds --refTableId --refFieldIds [--databaseId ] [--name ] [--description ] [--smartTags ] [--type ] [--deleteAction ] [--updateAction ] [--category ] [--module ] [--scope ] [--tags ] -csdk foreign-key-constraint update --id [--databaseId ] [--tableId ] [--name ] [--description ] [--smartTags ] [--type ] [--fieldIds ] [--refTableId ] [--refFieldIds ] [--deleteAction ] [--updateAction ] [--category ] [--module ] [--scope ] [--tags ] -csdk foreign-key-constraint delete --id -``` - -## Examples - -### List foreignKeyConstraint records - -```bash -csdk foreign-key-constraint list -``` - -### List foreignKeyConstraint records with pagination - -```bash -csdk foreign-key-constraint list --limit 10 --offset 0 -``` - -### List foreignKeyConstraint records with cursor pagination - -```bash -csdk foreign-key-constraint list --limit 10 --after -``` - -### Find first matching foreignKeyConstraint - -```bash -csdk foreign-key-constraint find-first --where.id.equalTo -``` - -### List foreignKeyConstraint records with field selection - -```bash -csdk foreign-key-constraint list --select id,id -``` - -### List foreignKeyConstraint records with filtering and ordering - -```bash -csdk foreign-key-constraint list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a foreignKeyConstraint - -```bash -csdk foreign-key-constraint create --tableId --fieldIds --refTableId --refFieldIds [--databaseId ] [--name ] [--description ] [--smartTags ] [--type ] [--deleteAction ] [--updateAction ] [--category ] [--module ] [--scope ] [--tags ] -``` - -### Get a foreignKeyConstraint by id - -```bash -csdk foreign-key-constraint get --id -``` diff --git a/.agents/skills/cli-public/references/forgot-password.md b/.agents/skills/cli-public/references/forgot-password.md deleted file mode 100644 index 10ef1a4cc8..0000000000 --- a/.agents/skills/cli-public/references/forgot-password.md +++ /dev/null @@ -1,19 +0,0 @@ -# forgotPassword - - - -Execute the forgotPassword mutation - -## Usage - -```bash -csdk forgot-password --input.clientMutationId --input.email -``` - -## Examples - -### Run forgotPassword - -```bash -csdk forgot-password --input.clientMutationId --input.email -``` diff --git a/.agents/skills/cli-public/references/freeze-objects.md b/.agents/skills/cli-public/references/freeze-objects.md deleted file mode 100644 index e4eac21087..0000000000 --- a/.agents/skills/cli-public/references/freeze-objects.md +++ /dev/null @@ -1,19 +0,0 @@ -# freezeObjects - - - -Execute the freezeObjects mutation - -## Usage - -```bash -csdk freeze-objects --input.clientMutationId --input.databaseId --input.id -``` - -## Examples - -### Run freezeObjects - -```bash -csdk freeze-objects --input.clientMutationId --input.databaseId --input.id -``` diff --git a/.agents/skills/cli-public/references/full-text-search.md b/.agents/skills/cli-public/references/full-text-search.md deleted file mode 100644 index 88f932621b..0000000000 --- a/.agents/skills/cli-public/references/full-text-search.md +++ /dev/null @@ -1,68 +0,0 @@ -# fullTextSearch - - - -CRUD operations for FullTextSearch records via csdk CLI - -## Usage - -```bash -csdk full-text-search list -csdk full-text-search list --where.. --orderBy -csdk full-text-search list --limit 10 --after -csdk full-text-search find-first --where.. -csdk full-text-search get --id -csdk full-text-search create --tableId --fieldId --fieldIds --weights --langs [--databaseId ] -csdk full-text-search update --id [--databaseId ] [--tableId ] [--fieldId ] [--fieldIds ] [--weights ] [--langs ] -csdk full-text-search delete --id -``` - -## Examples - -### List fullTextSearch records - -```bash -csdk full-text-search list -``` - -### List fullTextSearch records with pagination - -```bash -csdk full-text-search list --limit 10 --offset 0 -``` - -### List fullTextSearch records with cursor pagination - -```bash -csdk full-text-search list --limit 10 --after -``` - -### Find first matching fullTextSearch - -```bash -csdk full-text-search find-first --where.id.equalTo -``` - -### List fullTextSearch records with field selection - -```bash -csdk full-text-search list --select id,id -``` - -### List fullTextSearch records with filtering and ordering - -```bash -csdk full-text-search list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a fullTextSearch - -```bash -csdk full-text-search create --tableId --fieldId --fieldIds --weights --langs [--databaseId ] -``` - -### Get a fullTextSearch by id - -```bash -csdk full-text-search get --id -``` diff --git a/.agents/skills/cli-public/references/function-module.md b/.agents/skills/cli-public/references/function-module.md deleted file mode 100644 index 5f4be7882b..0000000000 --- a/.agents/skills/cli-public/references/function-module.md +++ /dev/null @@ -1,68 +0,0 @@ -# functionModule - - - -CRUD operations for FunctionModule records via csdk CLI - -## Usage - -```bash -csdk function-module list -csdk function-module list --where.. --orderBy -csdk function-module list --limit 10 --after -csdk function-module find-first --where.. -csdk function-module get --id -csdk function-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--definitionsTableId ] [--invocationsTableId ] [--executionLogsTableId ] [--secretDefinitionsTableId ] [--requirementsTableId ] [--configDefinitionsTableId ] [--configRequirementsTableId ] [--definitionsTableName ] [--invocationsTableName ] [--executionLogsTableName ] [--secretDefinitionsTableName ] [--requirementsTableName ] [--configRequirementsTableName ] [--apiName ] [--privateApiName ] [--membershipType ] [--prefix ] [--key ] [--entityTableId ] [--policies ] [--provisions ] -csdk function-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--definitionsTableId ] [--invocationsTableId ] [--executionLogsTableId ] [--secretDefinitionsTableId ] [--requirementsTableId ] [--configDefinitionsTableId ] [--configRequirementsTableId ] [--definitionsTableName ] [--invocationsTableName ] [--executionLogsTableName ] [--secretDefinitionsTableName ] [--requirementsTableName ] [--configRequirementsTableName ] [--apiName ] [--privateApiName ] [--membershipType ] [--prefix ] [--key ] [--entityTableId ] [--policies ] [--provisions ] -csdk function-module delete --id -``` - -## Examples - -### List functionModule records - -```bash -csdk function-module list -``` - -### List functionModule records with pagination - -```bash -csdk function-module list --limit 10 --offset 0 -``` - -### List functionModule records with cursor pagination - -```bash -csdk function-module list --limit 10 --after -``` - -### Find first matching functionModule - -```bash -csdk function-module find-first --where.id.equalTo -``` - -### List functionModule records with field selection - -```bash -csdk function-module list --select id,id -``` - -### List functionModule records with filtering and ordering - -```bash -csdk function-module list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a functionModule - -```bash -csdk function-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--definitionsTableId ] [--invocationsTableId ] [--executionLogsTableId ] [--secretDefinitionsTableId ] [--requirementsTableId ] [--configDefinitionsTableId ] [--configRequirementsTableId ] [--definitionsTableName ] [--invocationsTableName ] [--executionLogsTableName ] [--secretDefinitionsTableName ] [--requirementsTableName ] [--configRequirementsTableName ] [--apiName ] [--privateApiName ] [--membershipType ] [--prefix ] [--key ] [--entityTableId ] [--policies ] [--provisions ] -``` - -### Get a functionModule by id - -```bash -csdk function-module get --id -``` diff --git a/.agents/skills/cli-public/references/function.md b/.agents/skills/cli-public/references/function.md deleted file mode 100644 index a7571ed4f8..0000000000 --- a/.agents/skills/cli-public/references/function.md +++ /dev/null @@ -1,68 +0,0 @@ -# function - - - -CRUD operations for Function records via csdk CLI - -## Usage - -```bash -csdk function list -csdk function list --where.. --orderBy -csdk function list --limit 10 --after -csdk function find-first --where.. -csdk function get --id -csdk function create --databaseId --schemaId --name -csdk function update --id [--databaseId ] [--schemaId ] [--name ] -csdk function delete --id -``` - -## Examples - -### List function records - -```bash -csdk function list -``` - -### List function records with pagination - -```bash -csdk function list --limit 10 --offset 0 -``` - -### List function records with cursor pagination - -```bash -csdk function list --limit 10 --after -``` - -### Find first matching function - -```bash -csdk function find-first --where.id.equalTo -``` - -### List function records with field selection - -```bash -csdk function list --select id,id -``` - -### List function records with filtering and ordering - -```bash -csdk function list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a function - -```bash -csdk function create --databaseId --schemaId --name -``` - -### Get a function by id - -```bash -csdk function get --id -``` diff --git a/.agents/skills/cli-public/references/get-all-objects-from-root.md b/.agents/skills/cli-public/references/get-all-objects-from-root.md deleted file mode 100644 index 291a443793..0000000000 --- a/.agents/skills/cli-public/references/get-all-objects-from-root.md +++ /dev/null @@ -1,19 +0,0 @@ -# getAllObjectsFromRoot - - - -Reads and enables pagination through a set of `Object`. - -## Usage - -```bash -csdk get-all-objects-from-root --databaseId --id --first --offset --after -``` - -## Examples - -### Run getAllObjectsFromRoot - -```bash -csdk get-all-objects-from-root --databaseId --id --first --offset --after -``` diff --git a/.agents/skills/cli-public/references/get-all-record.md b/.agents/skills/cli-public/references/get-all-record.md deleted file mode 100644 index b9b5a653dd..0000000000 --- a/.agents/skills/cli-public/references/get-all-record.md +++ /dev/null @@ -1,68 +0,0 @@ -# getAllRecord - - - -CRUD operations for GetAllRecord records via csdk CLI - -## Usage - -```bash -csdk get-all-record list -csdk get-all-record list --where.. --orderBy -csdk get-all-record list --limit 10 --after -csdk get-all-record find-first --where.. -csdk get-all-record get --id -csdk get-all-record create --path --data -csdk get-all-record update --id [--path ] [--data ] -csdk get-all-record delete --id -``` - -## Examples - -### List getAllRecord records - -```bash -csdk get-all-record list -``` - -### List getAllRecord records with pagination - -```bash -csdk get-all-record list --limit 10 --offset 0 -``` - -### List getAllRecord records with cursor pagination - -```bash -csdk get-all-record list --limit 10 --after -``` - -### Find first matching getAllRecord - -```bash -csdk get-all-record find-first --where.id.equalTo -``` - -### List getAllRecord records with field selection - -```bash -csdk get-all-record list --select id,id -``` - -### List getAllRecord records with filtering and ordering - -```bash -csdk get-all-record list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a getAllRecord - -```bash -csdk get-all-record create --path --data -``` - -### Get a getAllRecord by id - -```bash -csdk get-all-record get --id -``` diff --git a/.agents/skills/cli-public/references/get-object-at-path.md b/.agents/skills/cli-public/references/get-object-at-path.md deleted file mode 100644 index 61a0fde431..0000000000 --- a/.agents/skills/cli-public/references/get-object-at-path.md +++ /dev/null @@ -1,19 +0,0 @@ -# getObjectAtPath - - - -Execute the getObjectAtPath query - -## Usage - -```bash -csdk get-object-at-path --dbId --storeId --path --refname -``` - -## Examples - -### Run getObjectAtPath - -```bash -csdk get-object-at-path --dbId --storeId --path --refname -``` diff --git a/.agents/skills/cli-public/references/get-path-objects-from-root.md b/.agents/skills/cli-public/references/get-path-objects-from-root.md deleted file mode 100644 index 172092437a..0000000000 --- a/.agents/skills/cli-public/references/get-path-objects-from-root.md +++ /dev/null @@ -1,19 +0,0 @@ -# getPathObjectsFromRoot - - - -Reads and enables pagination through a set of `Object`. - -## Usage - -```bash -csdk get-path-objects-from-root --databaseId --id --path --first --offset --after -``` - -## Examples - -### Run getPathObjectsFromRoot - -```bash -csdk get-path-objects-from-root --databaseId --id --path --first --offset --after -``` diff --git a/.agents/skills/cli-public/references/graph-module.md b/.agents/skills/cli-public/references/graph-module.md deleted file mode 100644 index cf5ca66eb0..0000000000 --- a/.agents/skills/cli-public/references/graph-module.md +++ /dev/null @@ -1,68 +0,0 @@ -# graphModule - - - -CRUD operations for GraphModule records via csdk CLI - -## Usage - -```bash -csdk graph-module list -csdk graph-module list --where.. --orderBy -csdk graph-module list --limit 10 --after -csdk graph-module find-first --where.. -csdk graph-module get --id -csdk graph-module create --databaseId --merkleStoreModuleId [--publicSchemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--prefix ] [--graphsTableId ] [--executionsTableId ] [--outputsTableId ] [--apiName ] [--privateApiName ] [--scopeField ] [--membershipType ] [--entityTableId ] [--policies ] [--provisions ] -csdk graph-module update --id [--databaseId ] [--publicSchemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--prefix ] [--merkleStoreModuleId ] [--graphsTableId ] [--executionsTableId ] [--outputsTableId ] [--apiName ] [--privateApiName ] [--scopeField ] [--membershipType ] [--entityTableId ] [--policies ] [--provisions ] -csdk graph-module delete --id -``` - -## Examples - -### List graphModule records - -```bash -csdk graph-module list -``` - -### List graphModule records with pagination - -```bash -csdk graph-module list --limit 10 --offset 0 -``` - -### List graphModule records with cursor pagination - -```bash -csdk graph-module list --limit 10 --after -``` - -### Find first matching graphModule - -```bash -csdk graph-module find-first --where.id.equalTo -``` - -### List graphModule records with field selection - -```bash -csdk graph-module list --select id,id -``` - -### List graphModule records with filtering and ordering - -```bash -csdk graph-module list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a graphModule - -```bash -csdk graph-module create --databaseId --merkleStoreModuleId [--publicSchemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--prefix ] [--graphsTableId ] [--executionsTableId ] [--outputsTableId ] [--apiName ] [--privateApiName ] [--scopeField ] [--membershipType ] [--entityTableId ] [--policies ] [--provisions ] -``` - -### Get a graphModule by id - -```bash -csdk graph-module get --id -``` diff --git a/.agents/skills/cli-public/references/hierarchy-module.md b/.agents/skills/cli-public/references/hierarchy-module.md deleted file mode 100644 index ab1a347ae2..0000000000 --- a/.agents/skills/cli-public/references/hierarchy-module.md +++ /dev/null @@ -1,68 +0,0 @@ -# hierarchyModule - - - -CRUD operations for HierarchyModule records via csdk CLI - -## Usage - -```bash -csdk hierarchy-module list -csdk hierarchy-module list --where.. --orderBy -csdk hierarchy-module list --limit 10 --after -csdk hierarchy-module find-first --where.. -csdk hierarchy-module get --id -csdk hierarchy-module create --databaseId --entityTableId --usersTableId [--schemaId ] [--privateSchemaId ] [--chartEdgesTableId ] [--chartEdgesTableName ] [--hierarchySprtTableId ] [--hierarchySprtTableName ] [--chartEdgeGrantsTableId ] [--chartEdgeGrantsTableName ] [--prefix ] [--privateSchemaName ] [--sprtTableName ] [--rebuildHierarchyFunction ] [--getSubordinatesFunction ] [--getManagersFunction ] [--isManagerOfFunction ] -csdk hierarchy-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--chartEdgesTableId ] [--chartEdgesTableName ] [--hierarchySprtTableId ] [--hierarchySprtTableName ] [--chartEdgeGrantsTableId ] [--chartEdgeGrantsTableName ] [--entityTableId ] [--usersTableId ] [--prefix ] [--privateSchemaName ] [--sprtTableName ] [--rebuildHierarchyFunction ] [--getSubordinatesFunction ] [--getManagersFunction ] [--isManagerOfFunction ] -csdk hierarchy-module delete --id -``` - -## Examples - -### List hierarchyModule records - -```bash -csdk hierarchy-module list -``` - -### List hierarchyModule records with pagination - -```bash -csdk hierarchy-module list --limit 10 --offset 0 -``` - -### List hierarchyModule records with cursor pagination - -```bash -csdk hierarchy-module list --limit 10 --after -``` - -### Find first matching hierarchyModule - -```bash -csdk hierarchy-module find-first --where.id.equalTo -``` - -### List hierarchyModule records with field selection - -```bash -csdk hierarchy-module list --select id,id -``` - -### List hierarchyModule records with filtering and ordering - -```bash -csdk hierarchy-module list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a hierarchyModule - -```bash -csdk hierarchy-module create --databaseId --entityTableId --usersTableId [--schemaId ] [--privateSchemaId ] [--chartEdgesTableId ] [--chartEdgesTableName ] [--hierarchySprtTableId ] [--hierarchySprtTableName ] [--chartEdgeGrantsTableId ] [--chartEdgeGrantsTableName ] [--prefix ] [--privateSchemaName ] [--sprtTableName ] [--rebuildHierarchyFunction ] [--getSubordinatesFunction ] [--getManagersFunction ] [--isManagerOfFunction ] -``` - -### Get a hierarchyModule by id - -```bash -csdk hierarchy-module get --id -``` diff --git a/.agents/skills/cli-public/references/identity-provider.md b/.agents/skills/cli-public/references/identity-provider.md deleted file mode 100644 index 5933435c0f..0000000000 --- a/.agents/skills/cli-public/references/identity-provider.md +++ /dev/null @@ -1,68 +0,0 @@ -# identityProvider - - - -CRUD operations for IdentityProvider records via csdk CLI - -## Usage - -```bash -csdk identity-provider list -csdk identity-provider list --where.. --orderBy -csdk identity-provider list --limit 10 --after -csdk identity-provider find-first --where.. -csdk identity-provider get --id -csdk identity-provider create [--slug ] [--kind ] [--displayName ] [--enabled ] [--isBuiltIn ] -csdk identity-provider update --id [--slug ] [--kind ] [--displayName ] [--enabled ] [--isBuiltIn ] -csdk identity-provider delete --id -``` - -## Examples - -### List identityProvider records - -```bash -csdk identity-provider list -``` - -### List identityProvider records with pagination - -```bash -csdk identity-provider list --limit 10 --offset 0 -``` - -### List identityProvider records with cursor pagination - -```bash -csdk identity-provider list --limit 10 --after -``` - -### Find first matching identityProvider - -```bash -csdk identity-provider find-first --where.id.equalTo -``` - -### List identityProvider records with field selection - -```bash -csdk identity-provider list --select id,id -``` - -### List identityProvider records with filtering and ordering - -```bash -csdk identity-provider list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a identityProvider - -```bash -csdk identity-provider create [--slug ] [--kind ] [--displayName ] [--enabled ] [--isBuiltIn ] -``` - -### Get a identityProvider by id - -```bash -csdk identity-provider get --id -``` diff --git a/.agents/skills/cli-public/references/identity-providers-module.md b/.agents/skills/cli-public/references/identity-providers-module.md deleted file mode 100644 index dc30613a62..0000000000 --- a/.agents/skills/cli-public/references/identity-providers-module.md +++ /dev/null @@ -1,68 +0,0 @@ -# identityProvidersModule - - - -CRUD operations for IdentityProvidersModule records via csdk CLI - -## Usage - -```bash -csdk identity-providers-module list -csdk identity-providers-module list --where.. --orderBy -csdk identity-providers-module list --limit 10 --after -csdk identity-providers-module find-first --where.. -csdk identity-providers-module get --id -csdk identity-providers-module create --databaseId [--schemaId ] [--privateSchemaId ] [--tableId ] [--tableName ] -csdk identity-providers-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--tableId ] [--tableName ] -csdk identity-providers-module delete --id -``` - -## Examples - -### List identityProvidersModule records - -```bash -csdk identity-providers-module list -``` - -### List identityProvidersModule records with pagination - -```bash -csdk identity-providers-module list --limit 10 --offset 0 -``` - -### List identityProvidersModule records with cursor pagination - -```bash -csdk identity-providers-module list --limit 10 --after -``` - -### Find first matching identityProvidersModule - -```bash -csdk identity-providers-module find-first --where.id.equalTo -``` - -### List identityProvidersModule records with field selection - -```bash -csdk identity-providers-module list --select id,id -``` - -### List identityProvidersModule records with filtering and ordering - -```bash -csdk identity-providers-module list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a identityProvidersModule - -```bash -csdk identity-providers-module create --databaseId [--schemaId ] [--privateSchemaId ] [--tableId ] [--tableName ] -``` - -### Get a identityProvidersModule by id - -```bash -csdk identity-providers-module get --id -``` diff --git a/.agents/skills/cli-public/references/index.md b/.agents/skills/cli-public/references/index.md deleted file mode 100644 index 06ae4bee73..0000000000 --- a/.agents/skills/cli-public/references/index.md +++ /dev/null @@ -1,68 +0,0 @@ -# index - - - -CRUD operations for Index records via csdk CLI - -## Usage - -```bash -csdk index list -csdk index list --where.. --orderBy -csdk index list --limit 10 --after -csdk index find-first --where.. -csdk index get --id -csdk index create --databaseId --tableId [--name ] [--fieldIds ] [--includeFieldIds ] [--accessMethod ] [--indexParams ] [--whereClause ] [--isUnique ] [--options ] [--opClasses ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] -csdk index update --id [--databaseId ] [--tableId ] [--name ] [--fieldIds ] [--includeFieldIds ] [--accessMethod ] [--indexParams ] [--whereClause ] [--isUnique ] [--options ] [--opClasses ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] -csdk index delete --id -``` - -## Examples - -### List index records - -```bash -csdk index list -``` - -### List index records with pagination - -```bash -csdk index list --limit 10 --offset 0 -``` - -### List index records with cursor pagination - -```bash -csdk index list --limit 10 --after -``` - -### Find first matching index - -```bash -csdk index find-first --where.id.equalTo -``` - -### List index records with field selection - -```bash -csdk index list --select id,id -``` - -### List index records with filtering and ordering - -```bash -csdk index list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a index - -```bash -csdk index create --databaseId --tableId [--name ] [--fieldIds ] [--includeFieldIds ] [--accessMethod ] [--indexParams ] [--whereClause ] [--isUnique ] [--options ] [--opClasses ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] -``` - -### Get a index by id - -```bash -csdk index get --id -``` diff --git a/.agents/skills/cli-public/references/inference-log-module.md b/.agents/skills/cli-public/references/inference-log-module.md deleted file mode 100644 index 87f9ba9ed5..0000000000 --- a/.agents/skills/cli-public/references/inference-log-module.md +++ /dev/null @@ -1,68 +0,0 @@ -# inferenceLogModule - - - -CRUD operations for InferenceLogModule records via csdk CLI - -## Usage - -```bash -csdk inference-log-module list -csdk inference-log-module list --where.. --orderBy -csdk inference-log-module list --limit 10 --after -csdk inference-log-module find-first --where.. -csdk inference-log-module get --id -csdk inference-log-module create --databaseId [--schemaId ] [--privateSchemaId ] [--inferenceLogTableId ] [--inferenceLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] -csdk inference-log-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--inferenceLogTableId ] [--inferenceLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] -csdk inference-log-module delete --id -``` - -## Examples - -### List inferenceLogModule records - -```bash -csdk inference-log-module list -``` - -### List inferenceLogModule records with pagination - -```bash -csdk inference-log-module list --limit 10 --offset 0 -``` - -### List inferenceLogModule records with cursor pagination - -```bash -csdk inference-log-module list --limit 10 --after -``` - -### Find first matching inferenceLogModule - -```bash -csdk inference-log-module find-first --where.id.equalTo -``` - -### List inferenceLogModule records with field selection - -```bash -csdk inference-log-module list --select id,id -``` - -### List inferenceLogModule records with filtering and ordering - -```bash -csdk inference-log-module list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a inferenceLogModule - -```bash -csdk inference-log-module create --databaseId [--schemaId ] [--privateSchemaId ] [--inferenceLogTableId ] [--inferenceLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] -``` - -### Get a inferenceLogModule by id - -```bash -csdk inference-log-module get --id -``` diff --git a/.agents/skills/cli-public/references/init-empty-repo.md b/.agents/skills/cli-public/references/init-empty-repo.md deleted file mode 100644 index 7ba5aa8199..0000000000 --- a/.agents/skills/cli-public/references/init-empty-repo.md +++ /dev/null @@ -1,19 +0,0 @@ -# initEmptyRepo - - - -Execute the initEmptyRepo mutation - -## Usage - -```bash -csdk init-empty-repo --input.clientMutationId --input.dbId --input.storeId -``` - -## Examples - -### Run initEmptyRepo - -```bash -csdk init-empty-repo --input.clientMutationId --input.dbId --input.storeId -``` diff --git a/.agents/skills/cli-public/references/insert-node-at-path.md b/.agents/skills/cli-public/references/insert-node-at-path.md deleted file mode 100644 index b93267c911..0000000000 --- a/.agents/skills/cli-public/references/insert-node-at-path.md +++ /dev/null @@ -1,19 +0,0 @@ -# insertNodeAtPath - - - -Execute the insertNodeAtPath mutation - -## Usage - -```bash -csdk insert-node-at-path --input.clientMutationId --input.dbId --input.root --input.path --input.data --input.kids --input.ktree -``` - -## Examples - -### Run insertNodeAtPath - -```bash -csdk insert-node-at-path --input.clientMutationId --input.dbId --input.root --input.path --input.data --input.kids --input.ktree -``` diff --git a/.agents/skills/cli-public/references/invite.md b/.agents/skills/cli-public/references/invite.md deleted file mode 100644 index 640c18bd1f..0000000000 --- a/.agents/skills/cli-public/references/invite.md +++ /dev/null @@ -1,68 +0,0 @@ -# invite - - - -CRUD operations for Invite records via csdk CLI - -## Usage - -```bash -csdk invite list -csdk invite list --where.. --orderBy -csdk invite list --limit 10 --after -csdk invite find-first --where.. -csdk invite get --id -csdk invite create [--email ] [--senderId ] [--inviteToken ] [--inviteValid ] [--inviteLimit ] [--inviteCount ] [--multiple ] [--data ] [--expiresAt ] -csdk invite update --id [--email ] [--senderId ] [--inviteToken ] [--inviteValid ] [--inviteLimit ] [--inviteCount ] [--multiple ] [--data ] [--expiresAt ] -csdk invite delete --id -``` - -## Examples - -### List invite records - -```bash -csdk invite list -``` - -### List invite records with pagination - -```bash -csdk invite list --limit 10 --offset 0 -``` - -### List invite records with cursor pagination - -```bash -csdk invite list --limit 10 --after -``` - -### Find first matching invite - -```bash -csdk invite find-first --where.id.equalTo -``` - -### List invite records with field selection - -```bash -csdk invite list --select id,id -``` - -### List invite records with filtering and ordering - -```bash -csdk invite list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a invite - -```bash -csdk invite create [--email ] [--senderId ] [--inviteToken ] [--inviteValid ] [--inviteLimit ] [--inviteCount ] [--multiple ] [--data ] [--expiresAt ] -``` - -### Get a invite by id - -```bash -csdk invite get --id -``` diff --git a/.agents/skills/cli-public/references/invites-module.md b/.agents/skills/cli-public/references/invites-module.md deleted file mode 100644 index 614d1350f3..0000000000 --- a/.agents/skills/cli-public/references/invites-module.md +++ /dev/null @@ -1,68 +0,0 @@ -# invitesModule - - - -CRUD operations for InvitesModule records via csdk CLI - -## Usage - -```bash -csdk invites-module list -csdk invites-module list --where.. --orderBy -csdk invites-module list --limit 10 --after -csdk invites-module find-first --where.. -csdk invites-module get --id -csdk invites-module create --databaseId --membershipType [--schemaId ] [--privateSchemaId ] [--emailsTableId ] [--usersTableId ] [--invitesTableId ] [--claimedInvitesTableId ] [--invitesTableName ] [--claimedInvitesTableName ] [--submitInviteCodeFunction ] [--prefix ] [--entityTableId ] -csdk invites-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--emailsTableId ] [--usersTableId ] [--invitesTableId ] [--claimedInvitesTableId ] [--invitesTableName ] [--claimedInvitesTableName ] [--submitInviteCodeFunction ] [--prefix ] [--membershipType ] [--entityTableId ] -csdk invites-module delete --id -``` - -## Examples - -### List invitesModule records - -```bash -csdk invites-module list -``` - -### List invitesModule records with pagination - -```bash -csdk invites-module list --limit 10 --offset 0 -``` - -### List invitesModule records with cursor pagination - -```bash -csdk invites-module list --limit 10 --after -``` - -### Find first matching invitesModule - -```bash -csdk invites-module find-first --where.id.equalTo -``` - -### List invitesModule records with field selection - -```bash -csdk invites-module list --select id,id -``` - -### List invitesModule records with filtering and ordering - -```bash -csdk invites-module list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a invitesModule - -```bash -csdk invites-module create --databaseId --membershipType [--schemaId ] [--privateSchemaId ] [--emailsTableId ] [--usersTableId ] [--invitesTableId ] [--claimedInvitesTableId ] [--invitesTableName ] [--claimedInvitesTableName ] [--submitInviteCodeFunction ] [--prefix ] [--entityTableId ] -``` - -### Get a invitesModule by id - -```bash -csdk invites-module get --id -``` diff --git a/.agents/skills/cli-public/references/levels-module.md b/.agents/skills/cli-public/references/levels-module.md deleted file mode 100644 index 992fcd7ab3..0000000000 --- a/.agents/skills/cli-public/references/levels-module.md +++ /dev/null @@ -1,68 +0,0 @@ -# levelsModule - - - -CRUD operations for LevelsModule records via csdk CLI - -## Usage - -```bash -csdk levels-module list -csdk levels-module list --where.. --orderBy -csdk levels-module list --limit 10 --after -csdk levels-module find-first --where.. -csdk levels-module get --id -csdk levels-module create --databaseId --membershipType [--schemaId ] [--privateSchemaId ] [--stepsTableId ] [--stepsTableName ] [--achievementsTableId ] [--achievementsTableName ] [--levelsTableId ] [--levelsTableName ] [--levelRequirementsTableId ] [--levelRequirementsTableName ] [--completedStep ] [--incompletedStep ] [--tgAchievement ] [--tgAchievementToggle ] [--tgAchievementToggleBoolean ] [--tgAchievementBoolean ] [--upsertAchievement ] [--tgUpdateAchievements ] [--stepsRequired ] [--levelAchieved ] [--prefix ] [--entityTableId ] [--actorTableId ] -csdk levels-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--stepsTableId ] [--stepsTableName ] [--achievementsTableId ] [--achievementsTableName ] [--levelsTableId ] [--levelsTableName ] [--levelRequirementsTableId ] [--levelRequirementsTableName ] [--completedStep ] [--incompletedStep ] [--tgAchievement ] [--tgAchievementToggle ] [--tgAchievementToggleBoolean ] [--tgAchievementBoolean ] [--upsertAchievement ] [--tgUpdateAchievements ] [--stepsRequired ] [--levelAchieved ] [--prefix ] [--membershipType ] [--entityTableId ] [--actorTableId ] -csdk levels-module delete --id -``` - -## Examples - -### List levelsModule records - -```bash -csdk levels-module list -``` - -### List levelsModule records with pagination - -```bash -csdk levels-module list --limit 10 --offset 0 -``` - -### List levelsModule records with cursor pagination - -```bash -csdk levels-module list --limit 10 --after -``` - -### Find first matching levelsModule - -```bash -csdk levels-module find-first --where.id.equalTo -``` - -### List levelsModule records with field selection - -```bash -csdk levels-module list --select id,id -``` - -### List levelsModule records with filtering and ordering - -```bash -csdk levels-module list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a levelsModule - -```bash -csdk levels-module create --databaseId --membershipType [--schemaId ] [--privateSchemaId ] [--stepsTableId ] [--stepsTableName ] [--achievementsTableId ] [--achievementsTableName ] [--levelsTableId ] [--levelsTableName ] [--levelRequirementsTableId ] [--levelRequirementsTableName ] [--completedStep ] [--incompletedStep ] [--tgAchievement ] [--tgAchievementToggle ] [--tgAchievementToggleBoolean ] [--tgAchievementBoolean ] [--upsertAchievement ] [--tgUpdateAchievements ] [--stepsRequired ] [--levelAchieved ] [--prefix ] [--entityTableId ] [--actorTableId ] -``` - -### Get a levelsModule by id - -```bash -csdk levels-module get --id -``` diff --git a/.agents/skills/cli-public/references/limits-module.md b/.agents/skills/cli-public/references/limits-module.md deleted file mode 100644 index 4e697da4e2..0000000000 --- a/.agents/skills/cli-public/references/limits-module.md +++ /dev/null @@ -1,68 +0,0 @@ -# limitsModule - - - -CRUD operations for LimitsModule records via csdk CLI - -## Usage - -```bash -csdk limits-module list -csdk limits-module list --where.. --orderBy -csdk limits-module list --limit 10 --after -csdk limits-module find-first --where.. -csdk limits-module get --id -csdk limits-module create --databaseId --membershipType [--schemaId ] [--privateSchemaId ] [--tableId ] [--tableName ] [--defaultTableId ] [--defaultTableName ] [--limitIncrementFunction ] [--limitDecrementFunction ] [--limitIncrementTrigger ] [--limitDecrementTrigger ] [--limitUpdateTrigger ] [--limitCheckFunction ] [--limitCreditsTableId ] [--eventsTableId ] [--creditCodesTableId ] [--creditCodeItemsTableId ] [--creditRedemptionsTableId ] [--aggregateTableId ] [--limitCapsTableId ] [--limitCapsDefaultsTableId ] [--capCheckTrigger ] [--resolveCapFunction ] [--limitWarningsTableId ] [--limitWarningStateTableId ] [--limitCheckSoftFunction ] [--limitAggregateCheckSoftFunction ] [--prefix ] [--entityTableId ] [--actorTableId ] -csdk limits-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--tableId ] [--tableName ] [--defaultTableId ] [--defaultTableName ] [--limitIncrementFunction ] [--limitDecrementFunction ] [--limitIncrementTrigger ] [--limitDecrementTrigger ] [--limitUpdateTrigger ] [--limitCheckFunction ] [--limitCreditsTableId ] [--eventsTableId ] [--creditCodesTableId ] [--creditCodeItemsTableId ] [--creditRedemptionsTableId ] [--aggregateTableId ] [--limitCapsTableId ] [--limitCapsDefaultsTableId ] [--capCheckTrigger ] [--resolveCapFunction ] [--limitWarningsTableId ] [--limitWarningStateTableId ] [--limitCheckSoftFunction ] [--limitAggregateCheckSoftFunction ] [--prefix ] [--membershipType ] [--entityTableId ] [--actorTableId ] -csdk limits-module delete --id -``` - -## Examples - -### List limitsModule records - -```bash -csdk limits-module list -``` - -### List limitsModule records with pagination - -```bash -csdk limits-module list --limit 10 --offset 0 -``` - -### List limitsModule records with cursor pagination - -```bash -csdk limits-module list --limit 10 --after -``` - -### Find first matching limitsModule - -```bash -csdk limits-module find-first --where.id.equalTo -``` - -### List limitsModule records with field selection - -```bash -csdk limits-module list --select id,id -``` - -### List limitsModule records with filtering and ordering - -```bash -csdk limits-module list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a limitsModule - -```bash -csdk limits-module create --databaseId --membershipType [--schemaId ] [--privateSchemaId ] [--tableId ] [--tableName ] [--defaultTableId ] [--defaultTableName ] [--limitIncrementFunction ] [--limitDecrementFunction ] [--limitIncrementTrigger ] [--limitDecrementTrigger ] [--limitUpdateTrigger ] [--limitCheckFunction ] [--limitCreditsTableId ] [--eventsTableId ] [--creditCodesTableId ] [--creditCodeItemsTableId ] [--creditRedemptionsTableId ] [--aggregateTableId ] [--limitCapsTableId ] [--limitCapsDefaultsTableId ] [--capCheckTrigger ] [--resolveCapFunction ] [--limitWarningsTableId ] [--limitWarningStateTableId ] [--limitCheckSoftFunction ] [--limitAggregateCheckSoftFunction ] [--prefix ] [--entityTableId ] [--actorTableId ] -``` - -### Get a limitsModule by id - -```bash -csdk limits-module get --id -``` diff --git a/.agents/skills/cli-public/references/membership-type.md b/.agents/skills/cli-public/references/membership-type.md deleted file mode 100644 index 8b1f3189fe..0000000000 --- a/.agents/skills/cli-public/references/membership-type.md +++ /dev/null @@ -1,68 +0,0 @@ -# membershipType - - - -CRUD operations for MembershipType records via csdk CLI - -## Usage - -```bash -csdk membership-type list -csdk membership-type list --where.. --orderBy -csdk membership-type list --limit 10 --after -csdk membership-type find-first --where.. -csdk membership-type get --id -csdk membership-type create --name --description --prefix [--parentMembershipType ] [--hasUsersTableEntry ] -csdk membership-type update --id [--name ] [--description ] [--prefix ] [--parentMembershipType ] [--hasUsersTableEntry ] -csdk membership-type delete --id -``` - -## Examples - -### List membershipType records - -```bash -csdk membership-type list -``` - -### List membershipType records with pagination - -```bash -csdk membership-type list --limit 10 --offset 0 -``` - -### List membershipType records with cursor pagination - -```bash -csdk membership-type list --limit 10 --after -``` - -### Find first matching membershipType - -```bash -csdk membership-type find-first --where.id.equalTo -``` - -### List membershipType records with field selection - -```bash -csdk membership-type list --select id,id -``` - -### List membershipType records with filtering and ordering - -```bash -csdk membership-type list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a membershipType - -```bash -csdk membership-type create --name --description --prefix [--parentMembershipType ] [--hasUsersTableEntry ] -``` - -### Get a membershipType by id - -```bash -csdk membership-type get --id -``` diff --git a/.agents/skills/cli-public/references/membership-types-module.md b/.agents/skills/cli-public/references/membership-types-module.md deleted file mode 100644 index 11b1c20423..0000000000 --- a/.agents/skills/cli-public/references/membership-types-module.md +++ /dev/null @@ -1,68 +0,0 @@ -# membershipTypesModule - - - -CRUD operations for MembershipTypesModule records via csdk CLI - -## Usage - -```bash -csdk membership-types-module list -csdk membership-types-module list --where.. --orderBy -csdk membership-types-module list --limit 10 --after -csdk membership-types-module find-first --where.. -csdk membership-types-module get --id -csdk membership-types-module create --databaseId [--schemaId ] [--tableId ] [--tableName ] -csdk membership-types-module update --id [--databaseId ] [--schemaId ] [--tableId ] [--tableName ] -csdk membership-types-module delete --id -``` - -## Examples - -### List membershipTypesModule records - -```bash -csdk membership-types-module list -``` - -### List membershipTypesModule records with pagination - -```bash -csdk membership-types-module list --limit 10 --offset 0 -``` - -### List membershipTypesModule records with cursor pagination - -```bash -csdk membership-types-module list --limit 10 --after -``` - -### Find first matching membershipTypesModule - -```bash -csdk membership-types-module find-first --where.id.equalTo -``` - -### List membershipTypesModule records with field selection - -```bash -csdk membership-types-module list --select id,id -``` - -### List membershipTypesModule records with filtering and ordering - -```bash -csdk membership-types-module list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a membershipTypesModule - -```bash -csdk membership-types-module create --databaseId [--schemaId ] [--tableId ] [--tableName ] -``` - -### Get a membershipTypesModule by id - -```bash -csdk membership-types-module get --id -``` diff --git a/.agents/skills/cli-public/references/memberships-module.md b/.agents/skills/cli-public/references/memberships-module.md deleted file mode 100644 index 551e9c995b..0000000000 --- a/.agents/skills/cli-public/references/memberships-module.md +++ /dev/null @@ -1,68 +0,0 @@ -# membershipsModule - - - -CRUD operations for MembershipsModule records via csdk CLI - -## Usage - -```bash -csdk memberships-module list -csdk memberships-module list --where.. --orderBy -csdk memberships-module list --limit 10 --after -csdk memberships-module find-first --where.. -csdk memberships-module get --id -csdk memberships-module create --databaseId --membershipType [--schemaId ] [--privateSchemaId ] [--membershipsTableId ] [--membershipsTableName ] [--membersTableId ] [--membersTableName ] [--membershipDefaultsTableId ] [--membershipDefaultsTableName ] [--membershipSettingsTableId ] [--membershipSettingsTableName ] [--grantsTableId ] [--grantsTableName ] [--actorTableId ] [--limitsTableId ] [--defaultLimitsTableId ] [--permissionsTableId ] [--defaultPermissionsTableId ] [--sprtTableId ] [--adminGrantsTableId ] [--adminGrantsTableName ] [--ownerGrantsTableId ] [--ownerGrantsTableName ] [--entityTableId ] [--entityTableOwnerId ] [--prefix ] [--getOrgFn ] [--actorMaskCheck ] [--actorPermCheck ] [--entityIdsByMask ] [--entityIdsByPerm ] [--entityIdsFunction ] [--memberProfilesTableId ] -csdk memberships-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--membershipsTableId ] [--membershipsTableName ] [--membersTableId ] [--membersTableName ] [--membershipDefaultsTableId ] [--membershipDefaultsTableName ] [--membershipSettingsTableId ] [--membershipSettingsTableName ] [--grantsTableId ] [--grantsTableName ] [--actorTableId ] [--limitsTableId ] [--defaultLimitsTableId ] [--permissionsTableId ] [--defaultPermissionsTableId ] [--sprtTableId ] [--adminGrantsTableId ] [--adminGrantsTableName ] [--ownerGrantsTableId ] [--ownerGrantsTableName ] [--membershipType ] [--entityTableId ] [--entityTableOwnerId ] [--prefix ] [--getOrgFn ] [--actorMaskCheck ] [--actorPermCheck ] [--entityIdsByMask ] [--entityIdsByPerm ] [--entityIdsFunction ] [--memberProfilesTableId ] -csdk memberships-module delete --id -``` - -## Examples - -### List membershipsModule records - -```bash -csdk memberships-module list -``` - -### List membershipsModule records with pagination - -```bash -csdk memberships-module list --limit 10 --offset 0 -``` - -### List membershipsModule records with cursor pagination - -```bash -csdk memberships-module list --limit 10 --after -``` - -### Find first matching membershipsModule - -```bash -csdk memberships-module find-first --where.id.equalTo -``` - -### List membershipsModule records with field selection - -```bash -csdk memberships-module list --select id,id -``` - -### List membershipsModule records with filtering and ordering - -```bash -csdk memberships-module list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a membershipsModule - -```bash -csdk memberships-module create --databaseId --membershipType [--schemaId ] [--privateSchemaId ] [--membershipsTableId ] [--membershipsTableName ] [--membersTableId ] [--membersTableName ] [--membershipDefaultsTableId ] [--membershipDefaultsTableName ] [--membershipSettingsTableId ] [--membershipSettingsTableName ] [--grantsTableId ] [--grantsTableName ] [--actorTableId ] [--limitsTableId ] [--defaultLimitsTableId ] [--permissionsTableId ] [--defaultPermissionsTableId ] [--sprtTableId ] [--adminGrantsTableId ] [--adminGrantsTableName ] [--ownerGrantsTableId ] [--ownerGrantsTableName ] [--entityTableId ] [--entityTableOwnerId ] [--prefix ] [--getOrgFn ] [--actorMaskCheck ] [--actorPermCheck ] [--entityIdsByMask ] [--entityIdsByPerm ] [--entityIdsFunction ] [--memberProfilesTableId ] -``` - -### Get a membershipsModule by id - -```bash -csdk memberships-module get --id -``` diff --git a/.agents/skills/cli-public/references/merkle-store-module.md b/.agents/skills/cli-public/references/merkle-store-module.md deleted file mode 100644 index 491be2358b..0000000000 --- a/.agents/skills/cli-public/references/merkle-store-module.md +++ /dev/null @@ -1,68 +0,0 @@ -# merkleStoreModule - - - -CRUD operations for MerkleStoreModule records via csdk CLI - -## Usage - -```bash -csdk merkle-store-module list -csdk merkle-store-module list --where.. --orderBy -csdk merkle-store-module list --limit 10 --after -csdk merkle-store-module find-first --where.. -csdk merkle-store-module get --id -csdk merkle-store-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--objectTableId ] [--storeTableId ] [--commitTableId ] [--refTableId ] [--prefix ] [--apiName ] [--privateApiName ] [--scopeField ] -csdk merkle-store-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--objectTableId ] [--storeTableId ] [--commitTableId ] [--refTableId ] [--prefix ] [--apiName ] [--privateApiName ] [--scopeField ] -csdk merkle-store-module delete --id -``` - -## Examples - -### List merkleStoreModule records - -```bash -csdk merkle-store-module list -``` - -### List merkleStoreModule records with pagination - -```bash -csdk merkle-store-module list --limit 10 --offset 0 -``` - -### List merkleStoreModule records with cursor pagination - -```bash -csdk merkle-store-module list --limit 10 --after -``` - -### Find first matching merkleStoreModule - -```bash -csdk merkle-store-module find-first --where.id.equalTo -``` - -### List merkleStoreModule records with field selection - -```bash -csdk merkle-store-module list --select id,id -``` - -### List merkleStoreModule records with filtering and ordering - -```bash -csdk merkle-store-module list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a merkleStoreModule - -```bash -csdk merkle-store-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--objectTableId ] [--storeTableId ] [--commitTableId ] [--refTableId ] [--prefix ] [--apiName ] [--privateApiName ] [--scopeField ] -``` - -### Get a merkleStoreModule by id - -```bash -csdk merkle-store-module get --id -``` diff --git a/.agents/skills/cli-public/references/migrate-file.md b/.agents/skills/cli-public/references/migrate-file.md deleted file mode 100644 index 9c3d27ab6b..0000000000 --- a/.agents/skills/cli-public/references/migrate-file.md +++ /dev/null @@ -1,68 +0,0 @@ -# migrateFile - - - -CRUD operations for MigrateFile records via csdk CLI - -## Usage - -```bash -csdk migrate-file list -csdk migrate-file list --where.. --orderBy -csdk migrate-file list --limit 10 --after -csdk migrate-file find-first --where.. -csdk migrate-file get --id -csdk migrate-file create [--databaseId ] [--upload ] -csdk migrate-file update --id [--databaseId ] [--upload ] -csdk migrate-file delete --id -``` - -## Examples - -### List migrateFile records - -```bash -csdk migrate-file list -``` - -### List migrateFile records with pagination - -```bash -csdk migrate-file list --limit 10 --offset 0 -``` - -### List migrateFile records with cursor pagination - -```bash -csdk migrate-file list --limit 10 --after -``` - -### Find first matching migrateFile - -```bash -csdk migrate-file find-first --where.id.equalTo -``` - -### List migrateFile records with field selection - -```bash -csdk migrate-file list --select id,id -``` - -### List migrateFile records with filtering and ordering - -```bash -csdk migrate-file list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a migrateFile - -```bash -csdk migrate-file create [--databaseId ] [--upload ] -``` - -### Get a migrateFile by id - -```bash -csdk migrate-file get --id -``` diff --git a/.agents/skills/cli-public/references/namespace-module.md b/.agents/skills/cli-public/references/namespace-module.md deleted file mode 100644 index 40076c23e3..0000000000 --- a/.agents/skills/cli-public/references/namespace-module.md +++ /dev/null @@ -1,68 +0,0 @@ -# namespaceModule - - - -CRUD operations for NamespaceModule records via csdk CLI - -## Usage - -```bash -csdk namespace-module list -csdk namespace-module list --where.. --orderBy -csdk namespace-module list --limit 10 --after -csdk namespace-module find-first --where.. -csdk namespace-module get --id -csdk namespace-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--namespacesTableId ] [--namespaceEventsTableId ] [--namespacesTableName ] [--namespaceEventsTableName ] [--apiName ] [--privateApiName ] [--membershipType ] [--key ] [--entityTableId ] [--policies ] [--provisions ] -csdk namespace-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--namespacesTableId ] [--namespaceEventsTableId ] [--namespacesTableName ] [--namespaceEventsTableName ] [--apiName ] [--privateApiName ] [--membershipType ] [--key ] [--entityTableId ] [--policies ] [--provisions ] -csdk namespace-module delete --id -``` - -## Examples - -### List namespaceModule records - -```bash -csdk namespace-module list -``` - -### List namespaceModule records with pagination - -```bash -csdk namespace-module list --limit 10 --offset 0 -``` - -### List namespaceModule records with cursor pagination - -```bash -csdk namespace-module list --limit 10 --after -``` - -### Find first matching namespaceModule - -```bash -csdk namespace-module find-first --where.id.equalTo -``` - -### List namespaceModule records with field selection - -```bash -csdk namespace-module list --select id,id -``` - -### List namespaceModule records with filtering and ordering - -```bash -csdk namespace-module list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a namespaceModule - -```bash -csdk namespace-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--namespacesTableId ] [--namespaceEventsTableId ] [--namespacesTableName ] [--namespaceEventsTableName ] [--apiName ] [--privateApiName ] [--membershipType ] [--key ] [--entityTableId ] [--policies ] [--provisions ] -``` - -### Get a namespaceModule by id - -```bash -csdk namespace-module get --id -``` diff --git a/.agents/skills/cli-public/references/node-type-registry.md b/.agents/skills/cli-public/references/node-type-registry.md deleted file mode 100644 index fd008214ad..0000000000 --- a/.agents/skills/cli-public/references/node-type-registry.md +++ /dev/null @@ -1,68 +0,0 @@ -# nodeTypeRegistry - - - -CRUD operations for NodeTypeRegistry records via csdk CLI - -## Usage - -```bash -csdk node-type-registry list -csdk node-type-registry list --where.. --orderBy -csdk node-type-registry list --limit 10 --after -csdk node-type-registry find-first --where.. -csdk node-type-registry get --name -csdk node-type-registry create --slug --category [--displayName ] [--description ] [--parameterSchema ] [--tags ] -csdk node-type-registry update --name [--slug ] [--category ] [--displayName ] [--description ] [--parameterSchema ] [--tags ] -csdk node-type-registry delete --name -``` - -## Examples - -### List nodeTypeRegistry records - -```bash -csdk node-type-registry list -``` - -### List nodeTypeRegistry records with pagination - -```bash -csdk node-type-registry list --limit 10 --offset 0 -``` - -### List nodeTypeRegistry records with cursor pagination - -```bash -csdk node-type-registry list --limit 10 --after -``` - -### Find first matching nodeTypeRegistry - -```bash -csdk node-type-registry find-first --where.name.equalTo -``` - -### List nodeTypeRegistry records with field selection - -```bash -csdk node-type-registry list --select id,name -``` - -### List nodeTypeRegistry records with filtering and ordering - -```bash -csdk node-type-registry list --where.name.equalTo --orderBy NAME_ASC -``` - -### Create a nodeTypeRegistry - -```bash -csdk node-type-registry create --slug --category [--displayName ] [--description ] [--parameterSchema ] [--tags ] -``` - -### Get a nodeTypeRegistry by name - -```bash -csdk node-type-registry get --name -``` diff --git a/.agents/skills/cli-public/references/notifications-module.md b/.agents/skills/cli-public/references/notifications-module.md deleted file mode 100644 index ccff3cf149..0000000000 --- a/.agents/skills/cli-public/references/notifications-module.md +++ /dev/null @@ -1,68 +0,0 @@ -# notificationsModule - - - -CRUD operations for NotificationsModule records via csdk CLI - -## Usage - -```bash -csdk notifications-module list -csdk notifications-module list --where.. --orderBy -csdk notifications-module list --limit 10 --after -csdk notifications-module find-first --where.. -csdk notifications-module get --id -csdk notifications-module create --databaseId [--schemaId ] [--privateSchemaId ] [--notificationsTableId ] [--readStateTableId ] [--preferencesTableId ] [--channelsTableId ] [--deliveryLogTableId ] [--ownerTableId ] [--userSettingsTableId ] [--organizationSettingsTableId ] [--hasChannels ] [--hasPreferences ] [--hasSettingsExtension ] [--hasDigestMetadata ] [--hasSubscriptions ] -csdk notifications-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--notificationsTableId ] [--readStateTableId ] [--preferencesTableId ] [--channelsTableId ] [--deliveryLogTableId ] [--ownerTableId ] [--userSettingsTableId ] [--organizationSettingsTableId ] [--hasChannels ] [--hasPreferences ] [--hasSettingsExtension ] [--hasDigestMetadata ] [--hasSubscriptions ] -csdk notifications-module delete --id -``` - -## Examples - -### List notificationsModule records - -```bash -csdk notifications-module list -``` - -### List notificationsModule records with pagination - -```bash -csdk notifications-module list --limit 10 --offset 0 -``` - -### List notificationsModule records with cursor pagination - -```bash -csdk notifications-module list --limit 10 --after -``` - -### Find first matching notificationsModule - -```bash -csdk notifications-module find-first --where.id.equalTo -``` - -### List notificationsModule records with field selection - -```bash -csdk notifications-module list --select id,id -``` - -### List notificationsModule records with filtering and ordering - -```bash -csdk notifications-module list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a notificationsModule - -```bash -csdk notifications-module create --databaseId [--schemaId ] [--privateSchemaId ] [--notificationsTableId ] [--readStateTableId ] [--preferencesTableId ] [--channelsTableId ] [--deliveryLogTableId ] [--ownerTableId ] [--userSettingsTableId ] [--organizationSettingsTableId ] [--hasChannels ] [--hasPreferences ] [--hasSettingsExtension ] [--hasDigestMetadata ] [--hasSubscriptions ] -``` - -### Get a notificationsModule by id - -```bash -csdk notifications-module get --id -``` diff --git a/.agents/skills/cli-public/references/object.md b/.agents/skills/cli-public/references/object.md deleted file mode 100644 index 97a6238558..0000000000 --- a/.agents/skills/cli-public/references/object.md +++ /dev/null @@ -1,68 +0,0 @@ -# object - - - -CRUD operations for Object records via csdk CLI - -## Usage - -```bash -csdk object list -csdk object list --where.. --orderBy -csdk object list --limit 10 --after -csdk object find-first --where.. -csdk object get --id -csdk object create --databaseId [--kids ] [--ktree ] [--data ] [--frzn ] -csdk object update --id [--databaseId ] [--kids ] [--ktree ] [--data ] [--frzn ] -csdk object delete --id -``` - -## Examples - -### List object records - -```bash -csdk object list -``` - -### List object records with pagination - -```bash -csdk object list --limit 10 --offset 0 -``` - -### List object records with cursor pagination - -```bash -csdk object list --limit 10 --after -``` - -### Find first matching object - -```bash -csdk object find-first --where.id.equalTo -``` - -### List object records with field selection - -```bash -csdk object list --select id,id -``` - -### List object records with filtering and ordering - -```bash -csdk object list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a object - -```bash -csdk object create --databaseId [--kids ] [--ktree ] [--data ] [--frzn ] -``` - -### Get a object by id - -```bash -csdk object get --id -``` diff --git a/.agents/skills/cli-public/references/one-time-token.md b/.agents/skills/cli-public/references/one-time-token.md deleted file mode 100644 index 9d72ec608b..0000000000 --- a/.agents/skills/cli-public/references/one-time-token.md +++ /dev/null @@ -1,19 +0,0 @@ -# oneTimeToken - - - -Execute the oneTimeToken mutation - -## Usage - -```bash -csdk one-time-token --input.clientMutationId --input.email --input.password --input.origin --input.rememberMe -``` - -## Examples - -### Run oneTimeToken - -```bash -csdk one-time-token --input.clientMutationId --input.email --input.password --input.origin --input.rememberMe -``` diff --git a/.agents/skills/cli-public/references/org-admin-grant.md b/.agents/skills/cli-public/references/org-admin-grant.md deleted file mode 100644 index 82488b55ca..0000000000 --- a/.agents/skills/cli-public/references/org-admin-grant.md +++ /dev/null @@ -1,68 +0,0 @@ -# orgAdminGrant - - - -CRUD operations for OrgAdminGrant records via csdk CLI - -## Usage - -```bash -csdk org-admin-grant list -csdk org-admin-grant list --where.. --orderBy -csdk org-admin-grant list --limit 10 --after -csdk org-admin-grant find-first --where.. -csdk org-admin-grant get --id -csdk org-admin-grant create --actorId --entityId [--isGrant ] [--grantorId ] -csdk org-admin-grant update --id [--isGrant ] [--actorId ] [--entityId ] [--grantorId ] -csdk org-admin-grant delete --id -``` - -## Examples - -### List orgAdminGrant records - -```bash -csdk org-admin-grant list -``` - -### List orgAdminGrant records with pagination - -```bash -csdk org-admin-grant list --limit 10 --offset 0 -``` - -### List orgAdminGrant records with cursor pagination - -```bash -csdk org-admin-grant list --limit 10 --after -``` - -### Find first matching orgAdminGrant - -```bash -csdk org-admin-grant find-first --where.id.equalTo -``` - -### List orgAdminGrant records with field selection - -```bash -csdk org-admin-grant list --select id,id -``` - -### List orgAdminGrant records with filtering and ordering - -```bash -csdk org-admin-grant list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a orgAdminGrant - -```bash -csdk org-admin-grant create --actorId --entityId [--isGrant ] [--grantorId ] -``` - -### Get a orgAdminGrant by id - -```bash -csdk org-admin-grant get --id -``` diff --git a/.agents/skills/cli-public/references/org-chart-edge-grant.md b/.agents/skills/cli-public/references/org-chart-edge-grant.md deleted file mode 100644 index 008cc0452b..0000000000 --- a/.agents/skills/cli-public/references/org-chart-edge-grant.md +++ /dev/null @@ -1,68 +0,0 @@ -# orgChartEdgeGrant - - - -CRUD operations for OrgChartEdgeGrant records via csdk CLI - -## Usage - -```bash -csdk org-chart-edge-grant list -csdk org-chart-edge-grant list --where.. --orderBy -csdk org-chart-edge-grant list --limit 10 --after -csdk org-chart-edge-grant find-first --where.. -csdk org-chart-edge-grant get --id -csdk org-chart-edge-grant create --entityId --childId [--parentId ] [--grantorId ] [--isGrant ] [--positionTitle ] [--positionLevel ] -csdk org-chart-edge-grant update --id [--entityId ] [--childId ] [--parentId ] [--grantorId ] [--isGrant ] [--positionTitle ] [--positionLevel ] -csdk org-chart-edge-grant delete --id -``` - -## Examples - -### List orgChartEdgeGrant records - -```bash -csdk org-chart-edge-grant list -``` - -### List orgChartEdgeGrant records with pagination - -```bash -csdk org-chart-edge-grant list --limit 10 --offset 0 -``` - -### List orgChartEdgeGrant records with cursor pagination - -```bash -csdk org-chart-edge-grant list --limit 10 --after -``` - -### Find first matching orgChartEdgeGrant - -```bash -csdk org-chart-edge-grant find-first --where.id.equalTo -``` - -### List orgChartEdgeGrant records with field selection - -```bash -csdk org-chart-edge-grant list --select id,id -``` - -### List orgChartEdgeGrant records with filtering and ordering - -```bash -csdk org-chart-edge-grant list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a orgChartEdgeGrant - -```bash -csdk org-chart-edge-grant create --entityId --childId [--parentId ] [--grantorId ] [--isGrant ] [--positionTitle ] [--positionLevel ] -``` - -### Get a orgChartEdgeGrant by id - -```bash -csdk org-chart-edge-grant get --id -``` diff --git a/.agents/skills/cli-public/references/org-chart-edge.md b/.agents/skills/cli-public/references/org-chart-edge.md deleted file mode 100644 index 0153401f4b..0000000000 --- a/.agents/skills/cli-public/references/org-chart-edge.md +++ /dev/null @@ -1,68 +0,0 @@ -# orgChartEdge - - - -CRUD operations for OrgChartEdge records via csdk CLI - -## Usage - -```bash -csdk org-chart-edge list -csdk org-chart-edge list --where.. --orderBy -csdk org-chart-edge list --limit 10 --after -csdk org-chart-edge find-first --where.. -csdk org-chart-edge get --id -csdk org-chart-edge create --entityId --childId [--parentId ] [--positionTitle ] [--positionLevel ] -csdk org-chart-edge update --id [--entityId ] [--childId ] [--parentId ] [--positionTitle ] [--positionLevel ] -csdk org-chart-edge delete --id -``` - -## Examples - -### List orgChartEdge records - -```bash -csdk org-chart-edge list -``` - -### List orgChartEdge records with pagination - -```bash -csdk org-chart-edge list --limit 10 --offset 0 -``` - -### List orgChartEdge records with cursor pagination - -```bash -csdk org-chart-edge list --limit 10 --after -``` - -### Find first matching orgChartEdge - -```bash -csdk org-chart-edge find-first --where.id.equalTo -``` - -### List orgChartEdge records with field selection - -```bash -csdk org-chart-edge list --select id,id -``` - -### List orgChartEdge records with filtering and ordering - -```bash -csdk org-chart-edge list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a orgChartEdge - -```bash -csdk org-chart-edge create --entityId --childId [--parentId ] [--positionTitle ] [--positionLevel ] -``` - -### Get a orgChartEdge by id - -```bash -csdk org-chart-edge get --id -``` diff --git a/.agents/skills/cli-public/references/org-claimed-invite.md b/.agents/skills/cli-public/references/org-claimed-invite.md deleted file mode 100644 index 3ba4a9c085..0000000000 --- a/.agents/skills/cli-public/references/org-claimed-invite.md +++ /dev/null @@ -1,68 +0,0 @@ -# orgClaimedInvite - - - -CRUD operations for OrgClaimedInvite records via csdk CLI - -## Usage - -```bash -csdk org-claimed-invite list -csdk org-claimed-invite list --where.. --orderBy -csdk org-claimed-invite list --limit 10 --after -csdk org-claimed-invite find-first --where.. -csdk org-claimed-invite get --id -csdk org-claimed-invite create --entityId [--data ] [--senderId ] [--receiverId ] -csdk org-claimed-invite update --id [--data ] [--senderId ] [--receiverId ] [--entityId ] -csdk org-claimed-invite delete --id -``` - -## Examples - -### List orgClaimedInvite records - -```bash -csdk org-claimed-invite list -``` - -### List orgClaimedInvite records with pagination - -```bash -csdk org-claimed-invite list --limit 10 --offset 0 -``` - -### List orgClaimedInvite records with cursor pagination - -```bash -csdk org-claimed-invite list --limit 10 --after -``` - -### Find first matching orgClaimedInvite - -```bash -csdk org-claimed-invite find-first --where.id.equalTo -``` - -### List orgClaimedInvite records with field selection - -```bash -csdk org-claimed-invite list --select id,id -``` - -### List orgClaimedInvite records with filtering and ordering - -```bash -csdk org-claimed-invite list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a orgClaimedInvite - -```bash -csdk org-claimed-invite create --entityId [--data ] [--senderId ] [--receiverId ] -``` - -### Get a orgClaimedInvite by id - -```bash -csdk org-claimed-invite get --id -``` diff --git a/.agents/skills/cli-public/references/org-get-managers-record.md b/.agents/skills/cli-public/references/org-get-managers-record.md deleted file mode 100644 index 46d21f7023..0000000000 --- a/.agents/skills/cli-public/references/org-get-managers-record.md +++ /dev/null @@ -1,68 +0,0 @@ -# orgGetManagersRecord - - - -CRUD operations for OrgGetManagersRecord records via csdk CLI - -## Usage - -```bash -csdk org-get-managers-record list -csdk org-get-managers-record list --where.. --orderBy -csdk org-get-managers-record list --limit 10 --after -csdk org-get-managers-record find-first --where.. -csdk org-get-managers-record get --id -csdk org-get-managers-record create --userId --depth -csdk org-get-managers-record update --id [--userId ] [--depth ] -csdk org-get-managers-record delete --id -``` - -## Examples - -### List orgGetManagersRecord records - -```bash -csdk org-get-managers-record list -``` - -### List orgGetManagersRecord records with pagination - -```bash -csdk org-get-managers-record list --limit 10 --offset 0 -``` - -### List orgGetManagersRecord records with cursor pagination - -```bash -csdk org-get-managers-record list --limit 10 --after -``` - -### Find first matching orgGetManagersRecord - -```bash -csdk org-get-managers-record find-first --where.id.equalTo -``` - -### List orgGetManagersRecord records with field selection - -```bash -csdk org-get-managers-record list --select id,id -``` - -### List orgGetManagersRecord records with filtering and ordering - -```bash -csdk org-get-managers-record list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a orgGetManagersRecord - -```bash -csdk org-get-managers-record create --userId --depth -``` - -### Get a orgGetManagersRecord by id - -```bash -csdk org-get-managers-record get --id -``` diff --git a/.agents/skills/cli-public/references/org-get-subordinates-record.md b/.agents/skills/cli-public/references/org-get-subordinates-record.md deleted file mode 100644 index 0e36be1690..0000000000 --- a/.agents/skills/cli-public/references/org-get-subordinates-record.md +++ /dev/null @@ -1,68 +0,0 @@ -# orgGetSubordinatesRecord - - - -CRUD operations for OrgGetSubordinatesRecord records via csdk CLI - -## Usage - -```bash -csdk org-get-subordinates-record list -csdk org-get-subordinates-record list --where.. --orderBy -csdk org-get-subordinates-record list --limit 10 --after -csdk org-get-subordinates-record find-first --where.. -csdk org-get-subordinates-record get --id -csdk org-get-subordinates-record create --userId --depth -csdk org-get-subordinates-record update --id [--userId ] [--depth ] -csdk org-get-subordinates-record delete --id -``` - -## Examples - -### List orgGetSubordinatesRecord records - -```bash -csdk org-get-subordinates-record list -``` - -### List orgGetSubordinatesRecord records with pagination - -```bash -csdk org-get-subordinates-record list --limit 10 --offset 0 -``` - -### List orgGetSubordinatesRecord records with cursor pagination - -```bash -csdk org-get-subordinates-record list --limit 10 --after -``` - -### Find first matching orgGetSubordinatesRecord - -```bash -csdk org-get-subordinates-record find-first --where.id.equalTo -``` - -### List orgGetSubordinatesRecord records with field selection - -```bash -csdk org-get-subordinates-record list --select id,id -``` - -### List orgGetSubordinatesRecord records with filtering and ordering - -```bash -csdk org-get-subordinates-record list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a orgGetSubordinatesRecord - -```bash -csdk org-get-subordinates-record create --userId --depth -``` - -### Get a orgGetSubordinatesRecord by id - -```bash -csdk org-get-subordinates-record get --id -``` diff --git a/.agents/skills/cli-public/references/org-grant.md b/.agents/skills/cli-public/references/org-grant.md deleted file mode 100644 index b03e477873..0000000000 --- a/.agents/skills/cli-public/references/org-grant.md +++ /dev/null @@ -1,68 +0,0 @@ -# orgGrant - - - -CRUD operations for OrgGrant records via csdk CLI - -## Usage - -```bash -csdk org-grant list -csdk org-grant list --where.. --orderBy -csdk org-grant list --limit 10 --after -csdk org-grant find-first --where.. -csdk org-grant get --id -csdk org-grant create --actorId --entityId [--permissions ] [--isGrant ] [--grantorId ] -csdk org-grant update --id [--permissions ] [--isGrant ] [--actorId ] [--entityId ] [--grantorId ] -csdk org-grant delete --id -``` - -## Examples - -### List orgGrant records - -```bash -csdk org-grant list -``` - -### List orgGrant records with pagination - -```bash -csdk org-grant list --limit 10 --offset 0 -``` - -### List orgGrant records with cursor pagination - -```bash -csdk org-grant list --limit 10 --after -``` - -### Find first matching orgGrant - -```bash -csdk org-grant find-first --where.id.equalTo -``` - -### List orgGrant records with field selection - -```bash -csdk org-grant list --select id,id -``` - -### List orgGrant records with filtering and ordering - -```bash -csdk org-grant list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a orgGrant - -```bash -csdk org-grant create --actorId --entityId [--permissions ] [--isGrant ] [--grantorId ] -``` - -### Get a orgGrant by id - -```bash -csdk org-grant get --id -``` diff --git a/.agents/skills/cli-public/references/org-invite.md b/.agents/skills/cli-public/references/org-invite.md deleted file mode 100644 index b4881b522f..0000000000 --- a/.agents/skills/cli-public/references/org-invite.md +++ /dev/null @@ -1,68 +0,0 @@ -# orgInvite - - - -CRUD operations for OrgInvite records via csdk CLI - -## Usage - -```bash -csdk org-invite list -csdk org-invite list --where.. --orderBy -csdk org-invite list --limit 10 --after -csdk org-invite find-first --where.. -csdk org-invite get --id -csdk org-invite create --entityId [--email ] [--senderId ] [--receiverId ] [--inviteToken ] [--inviteValid ] [--inviteLimit ] [--inviteCount ] [--multiple ] [--data ] [--profileId ] [--isReadOnly ] [--expiresAt ] -csdk org-invite update --id [--email ] [--senderId ] [--receiverId ] [--inviteToken ] [--inviteValid ] [--inviteLimit ] [--inviteCount ] [--multiple ] [--data ] [--profileId ] [--isReadOnly ] [--expiresAt ] [--entityId ] -csdk org-invite delete --id -``` - -## Examples - -### List orgInvite records - -```bash -csdk org-invite list -``` - -### List orgInvite records with pagination - -```bash -csdk org-invite list --limit 10 --offset 0 -``` - -### List orgInvite records with cursor pagination - -```bash -csdk org-invite list --limit 10 --after -``` - -### Find first matching orgInvite - -```bash -csdk org-invite find-first --where.id.equalTo -``` - -### List orgInvite records with field selection - -```bash -csdk org-invite list --select id,id -``` - -### List orgInvite records with filtering and ordering - -```bash -csdk org-invite list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a orgInvite - -```bash -csdk org-invite create --entityId [--email ] [--senderId ] [--receiverId ] [--inviteToken ] [--inviteValid ] [--inviteLimit ] [--inviteCount ] [--multiple ] [--data ] [--profileId ] [--isReadOnly ] [--expiresAt ] -``` - -### Get a orgInvite by id - -```bash -csdk org-invite get --id -``` diff --git a/.agents/skills/cli-public/references/org-is-manager-of.md b/.agents/skills/cli-public/references/org-is-manager-of.md deleted file mode 100644 index 26bad68589..0000000000 --- a/.agents/skills/cli-public/references/org-is-manager-of.md +++ /dev/null @@ -1,19 +0,0 @@ -# orgIsManagerOf - - - -Execute the orgIsManagerOf query - -## Usage - -```bash -csdk org-is-manager-of --pEntityId --pManagerId --pUserId --pMaxDepth -``` - -## Examples - -### Run orgIsManagerOf - -```bash -csdk org-is-manager-of --pEntityId --pManagerId --pUserId --pMaxDepth -``` diff --git a/.agents/skills/cli-public/references/org-limit-aggregate.md b/.agents/skills/cli-public/references/org-limit-aggregate.md deleted file mode 100644 index b9a899e208..0000000000 --- a/.agents/skills/cli-public/references/org-limit-aggregate.md +++ /dev/null @@ -1,68 +0,0 @@ -# orgLimitAggregate - - - -CRUD operations for OrgLimitAggregate records via csdk CLI - -## Usage - -```bash -csdk org-limit-aggregate list -csdk org-limit-aggregate list --where.. --orderBy -csdk org-limit-aggregate list --limit 10 --after -csdk org-limit-aggregate find-first --where.. -csdk org-limit-aggregate get --id -csdk org-limit-aggregate create --entityId [--name ] [--num ] [--max ] [--softMax ] [--windowStart ] [--windowDuration ] [--planMax ] [--purchasedCredits ] [--periodCredits ] [--reserved ] [--organizationId ] [--entityType ] -csdk org-limit-aggregate update --id [--name ] [--entityId ] [--num ] [--max ] [--softMax ] [--windowStart ] [--windowDuration ] [--planMax ] [--purchasedCredits ] [--periodCredits ] [--reserved ] [--organizationId ] [--entityType ] -csdk org-limit-aggregate delete --id -``` - -## Examples - -### List orgLimitAggregate records - -```bash -csdk org-limit-aggregate list -``` - -### List orgLimitAggregate records with pagination - -```bash -csdk org-limit-aggregate list --limit 10 --offset 0 -``` - -### List orgLimitAggregate records with cursor pagination - -```bash -csdk org-limit-aggregate list --limit 10 --after -``` - -### Find first matching orgLimitAggregate - -```bash -csdk org-limit-aggregate find-first --where.id.equalTo -``` - -### List orgLimitAggregate records with field selection - -```bash -csdk org-limit-aggregate list --select id,id -``` - -### List orgLimitAggregate records with filtering and ordering - -```bash -csdk org-limit-aggregate list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a orgLimitAggregate - -```bash -csdk org-limit-aggregate create --entityId [--name ] [--num ] [--max ] [--softMax ] [--windowStart ] [--windowDuration ] [--planMax ] [--purchasedCredits ] [--periodCredits ] [--reserved ] [--organizationId ] [--entityType ] -``` - -### Get a orgLimitAggregate by id - -```bash -csdk org-limit-aggregate get --id -``` diff --git a/.agents/skills/cli-public/references/org-limit-cap.md b/.agents/skills/cli-public/references/org-limit-cap.md deleted file mode 100644 index 793babf73a..0000000000 --- a/.agents/skills/cli-public/references/org-limit-cap.md +++ /dev/null @@ -1,68 +0,0 @@ -# orgLimitCap - - - -CRUD operations for OrgLimitCap records via csdk CLI - -## Usage - -```bash -csdk org-limit-cap list -csdk org-limit-cap list --where.. --orderBy -csdk org-limit-cap list --limit 10 --after -csdk org-limit-cap find-first --where.. -csdk org-limit-cap get --id -csdk org-limit-cap create --name --entityId [--max ] -csdk org-limit-cap update --id [--name ] [--entityId ] [--max ] -csdk org-limit-cap delete --id -``` - -## Examples - -### List orgLimitCap records - -```bash -csdk org-limit-cap list -``` - -### List orgLimitCap records with pagination - -```bash -csdk org-limit-cap list --limit 10 --offset 0 -``` - -### List orgLimitCap records with cursor pagination - -```bash -csdk org-limit-cap list --limit 10 --after -``` - -### Find first matching orgLimitCap - -```bash -csdk org-limit-cap find-first --where.id.equalTo -``` - -### List orgLimitCap records with field selection - -```bash -csdk org-limit-cap list --select id,id -``` - -### List orgLimitCap records with filtering and ordering - -```bash -csdk org-limit-cap list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a orgLimitCap - -```bash -csdk org-limit-cap create --name --entityId [--max ] -``` - -### Get a orgLimitCap by id - -```bash -csdk org-limit-cap get --id -``` diff --git a/.agents/skills/cli-public/references/org-limit-caps-default.md b/.agents/skills/cli-public/references/org-limit-caps-default.md deleted file mode 100644 index cfc6561a16..0000000000 --- a/.agents/skills/cli-public/references/org-limit-caps-default.md +++ /dev/null @@ -1,68 +0,0 @@ -# orgLimitCapsDefault - - - -CRUD operations for OrgLimitCapsDefault records via csdk CLI - -## Usage - -```bash -csdk org-limit-caps-default list -csdk org-limit-caps-default list --where.. --orderBy -csdk org-limit-caps-default list --limit 10 --after -csdk org-limit-caps-default find-first --where.. -csdk org-limit-caps-default get --id -csdk org-limit-caps-default create --name [--max ] -csdk org-limit-caps-default update --id [--name ] [--max ] -csdk org-limit-caps-default delete --id -``` - -## Examples - -### List orgLimitCapsDefault records - -```bash -csdk org-limit-caps-default list -``` - -### List orgLimitCapsDefault records with pagination - -```bash -csdk org-limit-caps-default list --limit 10 --offset 0 -``` - -### List orgLimitCapsDefault records with cursor pagination - -```bash -csdk org-limit-caps-default list --limit 10 --after -``` - -### Find first matching orgLimitCapsDefault - -```bash -csdk org-limit-caps-default find-first --where.id.equalTo -``` - -### List orgLimitCapsDefault records with field selection - -```bash -csdk org-limit-caps-default list --select id,id -``` - -### List orgLimitCapsDefault records with filtering and ordering - -```bash -csdk org-limit-caps-default list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a orgLimitCapsDefault - -```bash -csdk org-limit-caps-default create --name [--max ] -``` - -### Get a orgLimitCapsDefault by id - -```bash -csdk org-limit-caps-default get --id -``` diff --git a/.agents/skills/cli-public/references/org-limit-credit.md b/.agents/skills/cli-public/references/org-limit-credit.md deleted file mode 100644 index 260ff03a3d..0000000000 --- a/.agents/skills/cli-public/references/org-limit-credit.md +++ /dev/null @@ -1,68 +0,0 @@ -# orgLimitCredit - - - -CRUD operations for OrgLimitCredit records via csdk CLI - -## Usage - -```bash -csdk org-limit-credit list -csdk org-limit-credit list --where.. --orderBy -csdk org-limit-credit list --limit 10 --after -csdk org-limit-credit find-first --where.. -csdk org-limit-credit get --id -csdk org-limit-credit create --defaultLimitId --amount [--actorId ] [--entityId ] [--creditType ] [--reason ] -csdk org-limit-credit update --id [--defaultLimitId ] [--actorId ] [--entityId ] [--amount ] [--creditType ] [--reason ] -csdk org-limit-credit delete --id -``` - -## Examples - -### List orgLimitCredit records - -```bash -csdk org-limit-credit list -``` - -### List orgLimitCredit records with pagination - -```bash -csdk org-limit-credit list --limit 10 --offset 0 -``` - -### List orgLimitCredit records with cursor pagination - -```bash -csdk org-limit-credit list --limit 10 --after -``` - -### Find first matching orgLimitCredit - -```bash -csdk org-limit-credit find-first --where.id.equalTo -``` - -### List orgLimitCredit records with field selection - -```bash -csdk org-limit-credit list --select id,id -``` - -### List orgLimitCredit records with filtering and ordering - -```bash -csdk org-limit-credit list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a orgLimitCredit - -```bash -csdk org-limit-credit create --defaultLimitId --amount [--actorId ] [--entityId ] [--creditType ] [--reason ] -``` - -### Get a orgLimitCredit by id - -```bash -csdk org-limit-credit get --id -``` diff --git a/.agents/skills/cli-public/references/org-limit-default.md b/.agents/skills/cli-public/references/org-limit-default.md deleted file mode 100644 index 2a1be2a459..0000000000 --- a/.agents/skills/cli-public/references/org-limit-default.md +++ /dev/null @@ -1,68 +0,0 @@ -# orgLimitDefault - - - -CRUD operations for OrgLimitDefault records via csdk CLI - -## Usage - -```bash -csdk org-limit-default list -csdk org-limit-default list --where.. --orderBy -csdk org-limit-default list --limit 10 --after -csdk org-limit-default find-first --where.. -csdk org-limit-default get --id -csdk org-limit-default create --name [--max ] [--softMax ] -csdk org-limit-default update --id [--name ] [--max ] [--softMax ] -csdk org-limit-default delete --id -``` - -## Examples - -### List orgLimitDefault records - -```bash -csdk org-limit-default list -``` - -### List orgLimitDefault records with pagination - -```bash -csdk org-limit-default list --limit 10 --offset 0 -``` - -### List orgLimitDefault records with cursor pagination - -```bash -csdk org-limit-default list --limit 10 --after -``` - -### Find first matching orgLimitDefault - -```bash -csdk org-limit-default find-first --where.id.equalTo -``` - -### List orgLimitDefault records with field selection - -```bash -csdk org-limit-default list --select id,id -``` - -### List orgLimitDefault records with filtering and ordering - -```bash -csdk org-limit-default list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a orgLimitDefault - -```bash -csdk org-limit-default create --name [--max ] [--softMax ] -``` - -### Get a orgLimitDefault by id - -```bash -csdk org-limit-default get --id -``` diff --git a/.agents/skills/cli-public/references/org-limit-event.md b/.agents/skills/cli-public/references/org-limit-event.md deleted file mode 100644 index 971b708c73..0000000000 --- a/.agents/skills/cli-public/references/org-limit-event.md +++ /dev/null @@ -1,68 +0,0 @@ -# orgLimitEvent - - - -CRUD operations for OrgLimitEvent records via csdk CLI - -## Usage - -```bash -csdk org-limit-event list -csdk org-limit-event list --where.. --orderBy -csdk org-limit-event list --limit 10 --after -csdk org-limit-event find-first --where.. -csdk org-limit-event get --id -csdk org-limit-event create [--name ] [--actorId ] [--entityId ] [--organizationId ] [--entityType ] [--eventType ] [--delta ] [--numBefore ] [--numAfter ] [--maxAtEvent ] [--reason ] -csdk org-limit-event update --id [--name ] [--actorId ] [--entityId ] [--organizationId ] [--entityType ] [--eventType ] [--delta ] [--numBefore ] [--numAfter ] [--maxAtEvent ] [--reason ] -csdk org-limit-event delete --id -``` - -## Examples - -### List orgLimitEvent records - -```bash -csdk org-limit-event list -``` - -### List orgLimitEvent records with pagination - -```bash -csdk org-limit-event list --limit 10 --offset 0 -``` - -### List orgLimitEvent records with cursor pagination - -```bash -csdk org-limit-event list --limit 10 --after -``` - -### Find first matching orgLimitEvent - -```bash -csdk org-limit-event find-first --where.id.equalTo -``` - -### List orgLimitEvent records with field selection - -```bash -csdk org-limit-event list --select id,id -``` - -### List orgLimitEvent records with filtering and ordering - -```bash -csdk org-limit-event list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a orgLimitEvent - -```bash -csdk org-limit-event create [--name ] [--actorId ] [--entityId ] [--organizationId ] [--entityType ] [--eventType ] [--delta ] [--numBefore ] [--numAfter ] [--maxAtEvent ] [--reason ] -``` - -### Get a orgLimitEvent by id - -```bash -csdk org-limit-event get --id -``` diff --git a/.agents/skills/cli-public/references/org-limit-warning.md b/.agents/skills/cli-public/references/org-limit-warning.md deleted file mode 100644 index d6e30c4c62..0000000000 --- a/.agents/skills/cli-public/references/org-limit-warning.md +++ /dev/null @@ -1,68 +0,0 @@ -# orgLimitWarning - - - -CRUD operations for OrgLimitWarning records via csdk CLI - -## Usage - -```bash -csdk org-limit-warning list -csdk org-limit-warning list --where.. --orderBy -csdk org-limit-warning list --limit 10 --after -csdk org-limit-warning find-first --where.. -csdk org-limit-warning get --id -csdk org-limit-warning create --name --warningType --thresholdValue --taskIdentifier [--entityId ] -csdk org-limit-warning update --id [--name ] [--warningType ] [--thresholdValue ] [--taskIdentifier ] [--entityId ] -csdk org-limit-warning delete --id -``` - -## Examples - -### List orgLimitWarning records - -```bash -csdk org-limit-warning list -``` - -### List orgLimitWarning records with pagination - -```bash -csdk org-limit-warning list --limit 10 --offset 0 -``` - -### List orgLimitWarning records with cursor pagination - -```bash -csdk org-limit-warning list --limit 10 --after -``` - -### Find first matching orgLimitWarning - -```bash -csdk org-limit-warning find-first --where.id.equalTo -``` - -### List orgLimitWarning records with field selection - -```bash -csdk org-limit-warning list --select id,id -``` - -### List orgLimitWarning records with filtering and ordering - -```bash -csdk org-limit-warning list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a orgLimitWarning - -```bash -csdk org-limit-warning create --name --warningType --thresholdValue --taskIdentifier [--entityId ] -``` - -### Get a orgLimitWarning by id - -```bash -csdk org-limit-warning get --id -``` diff --git a/.agents/skills/cli-public/references/org-limit.md b/.agents/skills/cli-public/references/org-limit.md deleted file mode 100644 index a72ce6fe87..0000000000 --- a/.agents/skills/cli-public/references/org-limit.md +++ /dev/null @@ -1,68 +0,0 @@ -# orgLimit - - - -CRUD operations for OrgLimit records via csdk CLI - -## Usage - -```bash -csdk org-limit list -csdk org-limit list --where.. --orderBy -csdk org-limit list --limit 10 --after -csdk org-limit find-first --where.. -csdk org-limit get --id -csdk org-limit create --actorId --entityId [--name ] [--num ] [--max ] [--softMax ] [--windowStart ] [--windowDuration ] [--planMax ] [--purchasedCredits ] [--periodCredits ] [--organizationId ] [--entityType ] -csdk org-limit update --id [--name ] [--actorId ] [--num ] [--max ] [--softMax ] [--windowStart ] [--windowDuration ] [--planMax ] [--purchasedCredits ] [--periodCredits ] [--entityId ] [--organizationId ] [--entityType ] -csdk org-limit delete --id -``` - -## Examples - -### List orgLimit records - -```bash -csdk org-limit list -``` - -### List orgLimit records with pagination - -```bash -csdk org-limit list --limit 10 --offset 0 -``` - -### List orgLimit records with cursor pagination - -```bash -csdk org-limit list --limit 10 --after -``` - -### Find first matching orgLimit - -```bash -csdk org-limit find-first --where.id.equalTo -``` - -### List orgLimit records with field selection - -```bash -csdk org-limit list --select id,id -``` - -### List orgLimit records with filtering and ordering - -```bash -csdk org-limit list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a orgLimit - -```bash -csdk org-limit create --actorId --entityId [--name ] [--num ] [--max ] [--softMax ] [--windowStart ] [--windowDuration ] [--planMax ] [--purchasedCredits ] [--periodCredits ] [--organizationId ] [--entityType ] -``` - -### Get a orgLimit by id - -```bash -csdk org-limit get --id -``` diff --git a/.agents/skills/cli-public/references/org-member-profile.md b/.agents/skills/cli-public/references/org-member-profile.md deleted file mode 100644 index 52b2cf8e21..0000000000 --- a/.agents/skills/cli-public/references/org-member-profile.md +++ /dev/null @@ -1,68 +0,0 @@ -# orgMemberProfile - - - -CRUD operations for OrgMemberProfile records via csdk CLI - -## Usage - -```bash -csdk org-member-profile list -csdk org-member-profile list --where.. --orderBy -csdk org-member-profile list --limit 10 --after -csdk org-member-profile find-first --where.. -csdk org-member-profile get --id -csdk org-member-profile create --membershipId --entityId --actorId [--displayName ] [--email ] [--title ] [--bio ] [--profilePicture ] -csdk org-member-profile update --id [--membershipId ] [--entityId ] [--actorId ] [--displayName ] [--email ] [--title ] [--bio ] [--profilePicture ] -csdk org-member-profile delete --id -``` - -## Examples - -### List orgMemberProfile records - -```bash -csdk org-member-profile list -``` - -### List orgMemberProfile records with pagination - -```bash -csdk org-member-profile list --limit 10 --offset 0 -``` - -### List orgMemberProfile records with cursor pagination - -```bash -csdk org-member-profile list --limit 10 --after -``` - -### Find first matching orgMemberProfile - -```bash -csdk org-member-profile find-first --where.id.equalTo -``` - -### List orgMemberProfile records with field selection - -```bash -csdk org-member-profile list --select id,id -``` - -### List orgMemberProfile records with filtering and ordering - -```bash -csdk org-member-profile list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a orgMemberProfile - -```bash -csdk org-member-profile create --membershipId --entityId --actorId [--displayName ] [--email ] [--title ] [--bio ] [--profilePicture ] -``` - -### Get a orgMemberProfile by id - -```bash -csdk org-member-profile get --id -``` diff --git a/.agents/skills/cli-public/references/org-member.md b/.agents/skills/cli-public/references/org-member.md deleted file mode 100644 index c1019fee5f..0000000000 --- a/.agents/skills/cli-public/references/org-member.md +++ /dev/null @@ -1,68 +0,0 @@ -# orgMember - - - -CRUD operations for OrgMember records via csdk CLI - -## Usage - -```bash -csdk org-member list -csdk org-member list --where.. --orderBy -csdk org-member list --limit 10 --after -csdk org-member find-first --where.. -csdk org-member get --id -csdk org-member create --actorId --entityId [--isAdmin ] -csdk org-member update --id [--isAdmin ] [--actorId ] [--entityId ] -csdk org-member delete --id -``` - -## Examples - -### List orgMember records - -```bash -csdk org-member list -``` - -### List orgMember records with pagination - -```bash -csdk org-member list --limit 10 --offset 0 -``` - -### List orgMember records with cursor pagination - -```bash -csdk org-member list --limit 10 --after -``` - -### Find first matching orgMember - -```bash -csdk org-member find-first --where.id.equalTo -``` - -### List orgMember records with field selection - -```bash -csdk org-member list --select id,id -``` - -### List orgMember records with filtering and ordering - -```bash -csdk org-member list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a orgMember - -```bash -csdk org-member create --actorId --entityId [--isAdmin ] -``` - -### Get a orgMember by id - -```bash -csdk org-member get --id -``` diff --git a/.agents/skills/cli-public/references/org-membership-default.md b/.agents/skills/cli-public/references/org-membership-default.md deleted file mode 100644 index 30ee69f1d6..0000000000 --- a/.agents/skills/cli-public/references/org-membership-default.md +++ /dev/null @@ -1,68 +0,0 @@ -# orgMembershipDefault - - - -CRUD operations for OrgMembershipDefault records via csdk CLI - -## Usage - -```bash -csdk org-membership-default list -csdk org-membership-default list --where.. --orderBy -csdk org-membership-default list --limit 10 --after -csdk org-membership-default find-first --where.. -csdk org-membership-default get --id -csdk org-membership-default create --entityId [--createdBy ] [--updatedBy ] [--isApproved ] -csdk org-membership-default update --id [--createdBy ] [--updatedBy ] [--isApproved ] [--entityId ] -csdk org-membership-default delete --id -``` - -## Examples - -### List orgMembershipDefault records - -```bash -csdk org-membership-default list -``` - -### List orgMembershipDefault records with pagination - -```bash -csdk org-membership-default list --limit 10 --offset 0 -``` - -### List orgMembershipDefault records with cursor pagination - -```bash -csdk org-membership-default list --limit 10 --after -``` - -### Find first matching orgMembershipDefault - -```bash -csdk org-membership-default find-first --where.id.equalTo -``` - -### List orgMembershipDefault records with field selection - -```bash -csdk org-membership-default list --select id,id -``` - -### List orgMembershipDefault records with filtering and ordering - -```bash -csdk org-membership-default list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a orgMembershipDefault - -```bash -csdk org-membership-default create --entityId [--createdBy ] [--updatedBy ] [--isApproved ] -``` - -### Get a orgMembershipDefault by id - -```bash -csdk org-membership-default get --id -``` diff --git a/.agents/skills/cli-public/references/org-membership-setting.md b/.agents/skills/cli-public/references/org-membership-setting.md deleted file mode 100644 index 0d8644454f..0000000000 --- a/.agents/skills/cli-public/references/org-membership-setting.md +++ /dev/null @@ -1,68 +0,0 @@ -# orgMembershipSetting - - - -CRUD operations for OrgMembershipSetting records via csdk CLI - -## Usage - -```bash -csdk org-membership-setting list -csdk org-membership-setting list --where.. --orderBy -csdk org-membership-setting list --limit 10 --after -csdk org-membership-setting find-first --where.. -csdk org-membership-setting get --id -csdk org-membership-setting create --entityId [--createdBy ] [--updatedBy ] [--deleteMemberCascadeChildren ] [--createChildCascadeOwners ] [--createChildCascadeAdmins ] [--createChildCascadeMembers ] [--allowExternalMembers ] [--inviteProfileAssignmentMode ] [--populateMemberEmail ] [--limitAllocationMode ] -csdk org-membership-setting update --id [--createdBy ] [--updatedBy ] [--entityId ] [--deleteMemberCascadeChildren ] [--createChildCascadeOwners ] [--createChildCascadeAdmins ] [--createChildCascadeMembers ] [--allowExternalMembers ] [--inviteProfileAssignmentMode ] [--populateMemberEmail ] [--limitAllocationMode ] -csdk org-membership-setting delete --id -``` - -## Examples - -### List orgMembershipSetting records - -```bash -csdk org-membership-setting list -``` - -### List orgMembershipSetting records with pagination - -```bash -csdk org-membership-setting list --limit 10 --offset 0 -``` - -### List orgMembershipSetting records with cursor pagination - -```bash -csdk org-membership-setting list --limit 10 --after -``` - -### Find first matching orgMembershipSetting - -```bash -csdk org-membership-setting find-first --where.id.equalTo -``` - -### List orgMembershipSetting records with field selection - -```bash -csdk org-membership-setting list --select id,id -``` - -### List orgMembershipSetting records with filtering and ordering - -```bash -csdk org-membership-setting list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a orgMembershipSetting - -```bash -csdk org-membership-setting create --entityId [--createdBy ] [--updatedBy ] [--deleteMemberCascadeChildren ] [--createChildCascadeOwners ] [--createChildCascadeAdmins ] [--createChildCascadeMembers ] [--allowExternalMembers ] [--inviteProfileAssignmentMode ] [--populateMemberEmail ] [--limitAllocationMode ] -``` - -### Get a orgMembershipSetting by id - -```bash -csdk org-membership-setting get --id -``` diff --git a/.agents/skills/cli-public/references/org-membership.md b/.agents/skills/cli-public/references/org-membership.md deleted file mode 100644 index 9be13b129d..0000000000 --- a/.agents/skills/cli-public/references/org-membership.md +++ /dev/null @@ -1,68 +0,0 @@ -# orgMembership - - - -CRUD operations for OrgMembership records via csdk CLI - -## Usage - -```bash -csdk org-membership list -csdk org-membership list --where.. --orderBy -csdk org-membership list --limit 10 --after -csdk org-membership find-first --where.. -csdk org-membership get --id -csdk org-membership create --actorId --entityId [--createdBy ] [--updatedBy ] [--isApproved ] [--isBanned ] [--isDisabled ] [--isActive ] [--isExternal ] [--isOwner ] [--isAdmin ] [--permissions ] [--granted ] [--isReadOnly ] [--profileId ] -csdk org-membership update --id [--createdBy ] [--updatedBy ] [--isApproved ] [--isBanned ] [--isDisabled ] [--isActive ] [--isExternal ] [--isOwner ] [--isAdmin ] [--permissions ] [--granted ] [--actorId ] [--entityId ] [--isReadOnly ] [--profileId ] -csdk org-membership delete --id -``` - -## Examples - -### List orgMembership records - -```bash -csdk org-membership list -``` - -### List orgMembership records with pagination - -```bash -csdk org-membership list --limit 10 --offset 0 -``` - -### List orgMembership records with cursor pagination - -```bash -csdk org-membership list --limit 10 --after -``` - -### Find first matching orgMembership - -```bash -csdk org-membership find-first --where.id.equalTo -``` - -### List orgMembership records with field selection - -```bash -csdk org-membership list --select id,id -``` - -### List orgMembership records with filtering and ordering - -```bash -csdk org-membership list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a orgMembership - -```bash -csdk org-membership create --actorId --entityId [--createdBy ] [--updatedBy ] [--isApproved ] [--isBanned ] [--isDisabled ] [--isActive ] [--isExternal ] [--isOwner ] [--isAdmin ] [--permissions ] [--granted ] [--isReadOnly ] [--profileId ] -``` - -### Get a orgMembership by id - -```bash -csdk org-membership get --id -``` diff --git a/.agents/skills/cli-public/references/org-owner-grant.md b/.agents/skills/cli-public/references/org-owner-grant.md deleted file mode 100644 index e354a4b4fe..0000000000 --- a/.agents/skills/cli-public/references/org-owner-grant.md +++ /dev/null @@ -1,68 +0,0 @@ -# orgOwnerGrant - - - -CRUD operations for OrgOwnerGrant records via csdk CLI - -## Usage - -```bash -csdk org-owner-grant list -csdk org-owner-grant list --where.. --orderBy -csdk org-owner-grant list --limit 10 --after -csdk org-owner-grant find-first --where.. -csdk org-owner-grant get --id -csdk org-owner-grant create --actorId --entityId [--isGrant ] [--grantorId ] -csdk org-owner-grant update --id [--isGrant ] [--actorId ] [--entityId ] [--grantorId ] -csdk org-owner-grant delete --id -``` - -## Examples - -### List orgOwnerGrant records - -```bash -csdk org-owner-grant list -``` - -### List orgOwnerGrant records with pagination - -```bash -csdk org-owner-grant list --limit 10 --offset 0 -``` - -### List orgOwnerGrant records with cursor pagination - -```bash -csdk org-owner-grant list --limit 10 --after -``` - -### Find first matching orgOwnerGrant - -```bash -csdk org-owner-grant find-first --where.id.equalTo -``` - -### List orgOwnerGrant records with field selection - -```bash -csdk org-owner-grant list --select id,id -``` - -### List orgOwnerGrant records with filtering and ordering - -```bash -csdk org-owner-grant list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a orgOwnerGrant - -```bash -csdk org-owner-grant create --actorId --entityId [--isGrant ] [--grantorId ] -``` - -### Get a orgOwnerGrant by id - -```bash -csdk org-owner-grant get --id -``` diff --git a/.agents/skills/cli-public/references/org-permission-default.md b/.agents/skills/cli-public/references/org-permission-default.md deleted file mode 100644 index 41e9033451..0000000000 --- a/.agents/skills/cli-public/references/org-permission-default.md +++ /dev/null @@ -1,68 +0,0 @@ -# orgPermissionDefault - - - -CRUD operations for OrgPermissionDefault records via csdk CLI - -## Usage - -```bash -csdk org-permission-default list -csdk org-permission-default list --where.. --orderBy -csdk org-permission-default list --limit 10 --after -csdk org-permission-default find-first --where.. -csdk org-permission-default get --id -csdk org-permission-default create --entityId [--permissions ] -csdk org-permission-default update --id [--permissions ] [--entityId ] -csdk org-permission-default delete --id -``` - -## Examples - -### List orgPermissionDefault records - -```bash -csdk org-permission-default list -``` - -### List orgPermissionDefault records with pagination - -```bash -csdk org-permission-default list --limit 10 --offset 0 -``` - -### List orgPermissionDefault records with cursor pagination - -```bash -csdk org-permission-default list --limit 10 --after -``` - -### Find first matching orgPermissionDefault - -```bash -csdk org-permission-default find-first --where.id.equalTo -``` - -### List orgPermissionDefault records with field selection - -```bash -csdk org-permission-default list --select id,id -``` - -### List orgPermissionDefault records with filtering and ordering - -```bash -csdk org-permission-default list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a orgPermissionDefault - -```bash -csdk org-permission-default create --entityId [--permissions ] -``` - -### Get a orgPermissionDefault by id - -```bash -csdk org-permission-default get --id -``` diff --git a/.agents/skills/cli-public/references/org-permission.md b/.agents/skills/cli-public/references/org-permission.md deleted file mode 100644 index 26b1805d20..0000000000 --- a/.agents/skills/cli-public/references/org-permission.md +++ /dev/null @@ -1,68 +0,0 @@ -# orgPermission - - - -CRUD operations for OrgPermission records via csdk CLI - -## Usage - -```bash -csdk org-permission list -csdk org-permission list --where.. --orderBy -csdk org-permission list --limit 10 --after -csdk org-permission find-first --where.. -csdk org-permission get --id -csdk org-permission create [--name ] [--bitnum ] [--bitstr ] [--description ] -csdk org-permission update --id [--name ] [--bitnum ] [--bitstr ] [--description ] -csdk org-permission delete --id -``` - -## Examples - -### List orgPermission records - -```bash -csdk org-permission list -``` - -### List orgPermission records with pagination - -```bash -csdk org-permission list --limit 10 --offset 0 -``` - -### List orgPermission records with cursor pagination - -```bash -csdk org-permission list --limit 10 --after -``` - -### Find first matching orgPermission - -```bash -csdk org-permission find-first --where.id.equalTo -``` - -### List orgPermission records with field selection - -```bash -csdk org-permission list --select id,id -``` - -### List orgPermission records with filtering and ordering - -```bash -csdk org-permission list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a orgPermission - -```bash -csdk org-permission create [--name ] [--bitnum ] [--bitstr ] [--description ] -``` - -### Get a orgPermission by id - -```bash -csdk org-permission get --id -``` diff --git a/.agents/skills/cli-public/references/org-permissions-get-by-mask.md b/.agents/skills/cli-public/references/org-permissions-get-by-mask.md deleted file mode 100644 index f690703b6c..0000000000 --- a/.agents/skills/cli-public/references/org-permissions-get-by-mask.md +++ /dev/null @@ -1,19 +0,0 @@ -# orgPermissionsGetByMask - - - -Reads and enables pagination through a set of `OrgPermission`. - -## Usage - -```bash -csdk org-permissions-get-by-mask --mask --first --offset --after -``` - -## Examples - -### Run orgPermissionsGetByMask - -```bash -csdk org-permissions-get-by-mask --mask --first --offset --after -``` diff --git a/.agents/skills/cli-public/references/org-permissions-get-mask-by-names.md b/.agents/skills/cli-public/references/org-permissions-get-mask-by-names.md deleted file mode 100644 index a01059cec0..0000000000 --- a/.agents/skills/cli-public/references/org-permissions-get-mask-by-names.md +++ /dev/null @@ -1,19 +0,0 @@ -# orgPermissionsGetMaskByNames - - - -Execute the orgPermissionsGetMaskByNames query - -## Usage - -```bash -csdk org-permissions-get-mask-by-names --names -``` - -## Examples - -### Run orgPermissionsGetMaskByNames - -```bash -csdk org-permissions-get-mask-by-names --names -``` diff --git a/.agents/skills/cli-public/references/org-permissions-get-mask.md b/.agents/skills/cli-public/references/org-permissions-get-mask.md deleted file mode 100644 index 5aa97f8833..0000000000 --- a/.agents/skills/cli-public/references/org-permissions-get-mask.md +++ /dev/null @@ -1,19 +0,0 @@ -# orgPermissionsGetMask - - - -Execute the orgPermissionsGetMask query - -## Usage - -```bash -csdk org-permissions-get-mask --ids -``` - -## Examples - -### Run orgPermissionsGetMask - -```bash -csdk org-permissions-get-mask --ids -``` diff --git a/.agents/skills/cli-public/references/org-permissions-get-padded-mask.md b/.agents/skills/cli-public/references/org-permissions-get-padded-mask.md deleted file mode 100644 index 299eb7df86..0000000000 --- a/.agents/skills/cli-public/references/org-permissions-get-padded-mask.md +++ /dev/null @@ -1,19 +0,0 @@ -# orgPermissionsGetPaddedMask - - - -Execute the orgPermissionsGetPaddedMask query - -## Usage - -```bash -csdk org-permissions-get-padded-mask --mask -``` - -## Examples - -### Run orgPermissionsGetPaddedMask - -```bash -csdk org-permissions-get-padded-mask --mask -``` diff --git a/.agents/skills/cli-public/references/partition.md b/.agents/skills/cli-public/references/partition.md deleted file mode 100644 index 2df3699c0f..0000000000 --- a/.agents/skills/cli-public/references/partition.md +++ /dev/null @@ -1,68 +0,0 @@ -# partition - - - -CRUD operations for Partition records via csdk CLI - -## Usage - -```bash -csdk partition list -csdk partition list --where.. --orderBy -csdk partition list --limit 10 --after -csdk partition find-first --where.. -csdk partition get --id -csdk partition create --databaseId --tableId --strategy --partitionKeyId [--interval ] [--retention ] [--retentionKeepTable ] [--premake ] [--namingPattern ] [--isParented ] -csdk partition update --id [--databaseId ] [--tableId ] [--strategy ] [--partitionKeyId ] [--interval ] [--retention ] [--retentionKeepTable ] [--premake ] [--namingPattern ] [--isParented ] -csdk partition delete --id -``` - -## Examples - -### List partition records - -```bash -csdk partition list -``` - -### List partition records with pagination - -```bash -csdk partition list --limit 10 --offset 0 -``` - -### List partition records with cursor pagination - -```bash -csdk partition list --limit 10 --after -``` - -### Find first matching partition - -```bash -csdk partition find-first --where.id.equalTo -``` - -### List partition records with field selection - -```bash -csdk partition list --select id,id -``` - -### List partition records with filtering and ordering - -```bash -csdk partition list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a partition - -```bash -csdk partition create --databaseId --tableId --strategy --partitionKeyId [--interval ] [--retention ] [--retentionKeepTable ] [--premake ] [--namingPattern ] [--isParented ] -``` - -### Get a partition by id - -```bash -csdk partition get --id -``` diff --git a/.agents/skills/cli-public/references/permissions-module.md b/.agents/skills/cli-public/references/permissions-module.md deleted file mode 100644 index b65b770eb0..0000000000 --- a/.agents/skills/cli-public/references/permissions-module.md +++ /dev/null @@ -1,68 +0,0 @@ -# permissionsModule - - - -CRUD operations for PermissionsModule records via csdk CLI - -## Usage - -```bash -csdk permissions-module list -csdk permissions-module list --where.. --orderBy -csdk permissions-module list --limit 10 --after -csdk permissions-module find-first --where.. -csdk permissions-module get --id -csdk permissions-module create --databaseId --membershipType [--schemaId ] [--privateSchemaId ] [--tableId ] [--tableName ] [--defaultTableId ] [--defaultTableName ] [--bitlen ] [--entityTableId ] [--actorTableId ] [--prefix ] [--getPaddedMask ] [--getMask ] [--getByMask ] [--getMaskByName ] -csdk permissions-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--tableId ] [--tableName ] [--defaultTableId ] [--defaultTableName ] [--bitlen ] [--membershipType ] [--entityTableId ] [--actorTableId ] [--prefix ] [--getPaddedMask ] [--getMask ] [--getByMask ] [--getMaskByName ] -csdk permissions-module delete --id -``` - -## Examples - -### List permissionsModule records - -```bash -csdk permissions-module list -``` - -### List permissionsModule records with pagination - -```bash -csdk permissions-module list --limit 10 --offset 0 -``` - -### List permissionsModule records with cursor pagination - -```bash -csdk permissions-module list --limit 10 --after -``` - -### Find first matching permissionsModule - -```bash -csdk permissions-module find-first --where.id.equalTo -``` - -### List permissionsModule records with field selection - -```bash -csdk permissions-module list --select id,id -``` - -### List permissionsModule records with filtering and ordering - -```bash -csdk permissions-module list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a permissionsModule - -```bash -csdk permissions-module create --databaseId --membershipType [--schemaId ] [--privateSchemaId ] [--tableId ] [--tableName ] [--defaultTableId ] [--defaultTableName ] [--bitlen ] [--entityTableId ] [--actorTableId ] [--prefix ] [--getPaddedMask ] [--getMask ] [--getByMask ] [--getMaskByName ] -``` - -### Get a permissionsModule by id - -```bash -csdk permissions-module get --id -``` diff --git a/.agents/skills/cli-public/references/phone-number.md b/.agents/skills/cli-public/references/phone-number.md deleted file mode 100644 index 4a69a0847b..0000000000 --- a/.agents/skills/cli-public/references/phone-number.md +++ /dev/null @@ -1,68 +0,0 @@ -# phoneNumber - - - -CRUD operations for PhoneNumber records via csdk CLI - -## Usage - -```bash -csdk phone-number list -csdk phone-number list --where.. --orderBy -csdk phone-number list --limit 10 --after -csdk phone-number find-first --where.. -csdk phone-number get --id -csdk phone-number create --cc --number [--ownerId ] [--isVerified ] [--isPrimary ] [--name ] -csdk phone-number update --id [--ownerId ] [--cc ] [--number ] [--isVerified ] [--isPrimary ] [--name ] -csdk phone-number delete --id -``` - -## Examples - -### List phoneNumber records - -```bash -csdk phone-number list -``` - -### List phoneNumber records with pagination - -```bash -csdk phone-number list --limit 10 --offset 0 -``` - -### List phoneNumber records with cursor pagination - -```bash -csdk phone-number list --limit 10 --after -``` - -### Find first matching phoneNumber - -```bash -csdk phone-number find-first --where.id.equalTo -``` - -### List phoneNumber records with field selection - -```bash -csdk phone-number list --select id,id -``` - -### List phoneNumber records with filtering and ordering - -```bash -csdk phone-number list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a phoneNumber - -```bash -csdk phone-number create --cc --number [--ownerId ] [--isVerified ] [--isPrimary ] [--name ] -``` - -### Get a phoneNumber by id - -```bash -csdk phone-number get --id -``` diff --git a/.agents/skills/cli-public/references/phone-numbers-module.md b/.agents/skills/cli-public/references/phone-numbers-module.md deleted file mode 100644 index e1aee854d8..0000000000 --- a/.agents/skills/cli-public/references/phone-numbers-module.md +++ /dev/null @@ -1,68 +0,0 @@ -# phoneNumbersModule - - - -CRUD operations for PhoneNumbersModule records via csdk CLI - -## Usage - -```bash -csdk phone-numbers-module list -csdk phone-numbers-module list --where.. --orderBy -csdk phone-numbers-module list --limit 10 --after -csdk phone-numbers-module find-first --where.. -csdk phone-numbers-module get --id -csdk phone-numbers-module create --databaseId --tableName [--schemaId ] [--privateSchemaId ] [--tableId ] [--ownerTableId ] -csdk phone-numbers-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--tableId ] [--ownerTableId ] [--tableName ] -csdk phone-numbers-module delete --id -``` - -## Examples - -### List phoneNumbersModule records - -```bash -csdk phone-numbers-module list -``` - -### List phoneNumbersModule records with pagination - -```bash -csdk phone-numbers-module list --limit 10 --offset 0 -``` - -### List phoneNumbersModule records with cursor pagination - -```bash -csdk phone-numbers-module list --limit 10 --after -``` - -### Find first matching phoneNumbersModule - -```bash -csdk phone-numbers-module find-first --where.id.equalTo -``` - -### List phoneNumbersModule records with field selection - -```bash -csdk phone-numbers-module list --select id,id -``` - -### List phoneNumbersModule records with filtering and ordering - -```bash -csdk phone-numbers-module list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a phoneNumbersModule - -```bash -csdk phone-numbers-module create --databaseId --tableName [--schemaId ] [--privateSchemaId ] [--tableId ] [--ownerTableId ] -``` - -### Get a phoneNumbersModule by id - -```bash -csdk phone-numbers-module get --id -``` diff --git a/.agents/skills/cli-public/references/plans-module.md b/.agents/skills/cli-public/references/plans-module.md deleted file mode 100644 index 8dcf7b5ecb..0000000000 --- a/.agents/skills/cli-public/references/plans-module.md +++ /dev/null @@ -1,68 +0,0 @@ -# plansModule - - - -CRUD operations for PlansModule records via csdk CLI - -## Usage - -```bash -csdk plans-module list -csdk plans-module list --where.. --orderBy -csdk plans-module list --limit 10 --after -csdk plans-module find-first --where.. -csdk plans-module get --id -csdk plans-module create --databaseId [--schemaId ] [--privateSchemaId ] [--plansTableId ] [--plansTableName ] [--planLimitsTableId ] [--planLimitsTableName ] [--planPricingTableId ] [--planOverridesTableId ] [--applyPlanFunction ] [--applyPlanAggregateFunction ] [--prefix ] -csdk plans-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--plansTableId ] [--plansTableName ] [--planLimitsTableId ] [--planLimitsTableName ] [--planPricingTableId ] [--planOverridesTableId ] [--applyPlanFunction ] [--applyPlanAggregateFunction ] [--prefix ] -csdk plans-module delete --id -``` - -## Examples - -### List plansModule records - -```bash -csdk plans-module list -``` - -### List plansModule records with pagination - -```bash -csdk plans-module list --limit 10 --offset 0 -``` - -### List plansModule records with cursor pagination - -```bash -csdk plans-module list --limit 10 --after -``` - -### Find first matching plansModule - -```bash -csdk plans-module find-first --where.id.equalTo -``` - -### List plansModule records with field selection - -```bash -csdk plans-module list --select id,id -``` - -### List plansModule records with filtering and ordering - -```bash -csdk plans-module list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a plansModule - -```bash -csdk plans-module create --databaseId [--schemaId ] [--privateSchemaId ] [--plansTableId ] [--plansTableName ] [--planLimitsTableId ] [--planLimitsTableName ] [--planPricingTableId ] [--planOverridesTableId ] [--applyPlanFunction ] [--applyPlanAggregateFunction ] [--prefix ] -``` - -### Get a plansModule by id - -```bash -csdk plans-module get --id -``` diff --git a/.agents/skills/cli-public/references/policy.md b/.agents/skills/cli-public/references/policy.md deleted file mode 100644 index db7ce17a5a..0000000000 --- a/.agents/skills/cli-public/references/policy.md +++ /dev/null @@ -1,68 +0,0 @@ -# policy - - - -CRUD operations for Policy records via csdk CLI - -## Usage - -```bash -csdk policy list -csdk policy list --where.. --orderBy -csdk policy list --limit 10 --after -csdk policy find-first --where.. -csdk policy get --id -csdk policy create --tableId [--databaseId ] [--name ] [--granteeName ] [--privilege ] [--permissive ] [--disabled ] [--policyType ] [--data ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] -csdk policy update --id [--databaseId ] [--tableId ] [--name ] [--granteeName ] [--privilege ] [--permissive ] [--disabled ] [--policyType ] [--data ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] -csdk policy delete --id -``` - -## Examples - -### List policy records - -```bash -csdk policy list -``` - -### List policy records with pagination - -```bash -csdk policy list --limit 10 --offset 0 -``` - -### List policy records with cursor pagination - -```bash -csdk policy list --limit 10 --after -``` - -### Find first matching policy - -```bash -csdk policy find-first --where.id.equalTo -``` - -### List policy records with field selection - -```bash -csdk policy list --select id,id -``` - -### List policy records with filtering and ordering - -```bash -csdk policy list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a policy - -```bash -csdk policy create --tableId [--databaseId ] [--name ] [--granteeName ] [--privilege ] [--permissive ] [--disabled ] [--policyType ] [--data ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] -``` - -### Get a policy by id - -```bash -csdk policy get --id -``` diff --git a/.agents/skills/cli-public/references/primary-key-constraint.md b/.agents/skills/cli-public/references/primary-key-constraint.md deleted file mode 100644 index 9980cec19c..0000000000 --- a/.agents/skills/cli-public/references/primary-key-constraint.md +++ /dev/null @@ -1,68 +0,0 @@ -# primaryKeyConstraint - - - -CRUD operations for PrimaryKeyConstraint records via csdk CLI - -## Usage - -```bash -csdk primary-key-constraint list -csdk primary-key-constraint list --where.. --orderBy -csdk primary-key-constraint list --limit 10 --after -csdk primary-key-constraint find-first --where.. -csdk primary-key-constraint get --id -csdk primary-key-constraint create --tableId --fieldIds [--databaseId ] [--name ] [--type ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] -csdk primary-key-constraint update --id [--databaseId ] [--tableId ] [--name ] [--type ] [--fieldIds ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] -csdk primary-key-constraint delete --id -``` - -## Examples - -### List primaryKeyConstraint records - -```bash -csdk primary-key-constraint list -``` - -### List primaryKeyConstraint records with pagination - -```bash -csdk primary-key-constraint list --limit 10 --offset 0 -``` - -### List primaryKeyConstraint records with cursor pagination - -```bash -csdk primary-key-constraint list --limit 10 --after -``` - -### Find first matching primaryKeyConstraint - -```bash -csdk primary-key-constraint find-first --where.id.equalTo -``` - -### List primaryKeyConstraint records with field selection - -```bash -csdk primary-key-constraint list --select id,id -``` - -### List primaryKeyConstraint records with filtering and ordering - -```bash -csdk primary-key-constraint list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a primaryKeyConstraint - -```bash -csdk primary-key-constraint create --tableId --fieldIds [--databaseId ] [--name ] [--type ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] -``` - -### Get a primaryKeyConstraint by id - -```bash -csdk primary-key-constraint get --id -``` diff --git a/.agents/skills/cli-public/references/profiles-module.md b/.agents/skills/cli-public/references/profiles-module.md deleted file mode 100644 index 16fa005c91..0000000000 --- a/.agents/skills/cli-public/references/profiles-module.md +++ /dev/null @@ -1,68 +0,0 @@ -# profilesModule - - - -CRUD operations for ProfilesModule records via csdk CLI - -## Usage - -```bash -csdk profiles-module list -csdk profiles-module list --where.. --orderBy -csdk profiles-module list --limit 10 --after -csdk profiles-module find-first --where.. -csdk profiles-module get --id -csdk profiles-module create --databaseId --membershipType [--schemaId ] [--privateSchemaId ] [--tableId ] [--tableName ] [--profilePermissionsTableId ] [--profilePermissionsTableName ] [--profileGrantsTableId ] [--profileGrantsTableName ] [--profileDefinitionGrantsTableId ] [--profileDefinitionGrantsTableName ] [--profileTemplatesTableId ] [--profileTemplatesTableName ] [--entityTableId ] [--actorTableId ] [--permissionsTableId ] [--membershipsTableId ] [--prefix ] -csdk profiles-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--tableId ] [--tableName ] [--profilePermissionsTableId ] [--profilePermissionsTableName ] [--profileGrantsTableId ] [--profileGrantsTableName ] [--profileDefinitionGrantsTableId ] [--profileDefinitionGrantsTableName ] [--profileTemplatesTableId ] [--profileTemplatesTableName ] [--membershipType ] [--entityTableId ] [--actorTableId ] [--permissionsTableId ] [--membershipsTableId ] [--prefix ] -csdk profiles-module delete --id -``` - -## Examples - -### List profilesModule records - -```bash -csdk profiles-module list -``` - -### List profilesModule records with pagination - -```bash -csdk profiles-module list --limit 10 --offset 0 -``` - -### List profilesModule records with cursor pagination - -```bash -csdk profiles-module list --limit 10 --after -``` - -### Find first matching profilesModule - -```bash -csdk profiles-module find-first --where.id.equalTo -``` - -### List profilesModule records with field selection - -```bash -csdk profiles-module list --select id,id -``` - -### List profilesModule records with filtering and ordering - -```bash -csdk profiles-module list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a profilesModule - -```bash -csdk profiles-module create --databaseId --membershipType [--schemaId ] [--privateSchemaId ] [--tableId ] [--tableName ] [--profilePermissionsTableId ] [--profilePermissionsTableName ] [--profileGrantsTableId ] [--profileGrantsTableName ] [--profileDefinitionGrantsTableId ] [--profileDefinitionGrantsTableName ] [--profileTemplatesTableId ] [--profileTemplatesTableName ] [--entityTableId ] [--actorTableId ] [--permissionsTableId ] [--membershipsTableId ] [--prefix ] -``` - -### Get a profilesModule by id - -```bash -csdk profiles-module get --id -``` diff --git a/.agents/skills/cli-public/references/provision-bucket.md b/.agents/skills/cli-public/references/provision-bucket.md deleted file mode 100644 index cc17ffbc21..0000000000 --- a/.agents/skills/cli-public/references/provision-bucket.md +++ /dev/null @@ -1,22 +0,0 @@ -# provisionBucket - - - -Provision an S3 bucket for a logical bucket in the database. -Reads the bucket config via RLS, then creates and configures -the S3 bucket with the appropriate privacy policies, CORS rules, -and lifecycle settings. - -## Usage - -```bash -csdk provision-bucket --input.bucketKey --input.ownerId -``` - -## Examples - -### Run provisionBucket - -```bash -csdk provision-bucket --input.bucketKey --input.ownerId -``` diff --git a/.agents/skills/cli-public/references/provision-check-constraint.md b/.agents/skills/cli-public/references/provision-check-constraint.md deleted file mode 100644 index 9f3c8bac7a..0000000000 --- a/.agents/skills/cli-public/references/provision-check-constraint.md +++ /dev/null @@ -1,19 +0,0 @@ -# provisionCheckConstraint - - - -Creates a check constraint on a table from a $type + data blueprint definition. Supports: CheckOneOf (enum validation via = ANY(ARRAY[...])), CheckGreaterThan (single-column > value or cross-column), CheckLessThan (single-column < value or cross-column), CheckNotEqual (cross-column inequality). Builds AST expressions via ast_helpers and inserts into metaschema_public.check_constraint. Graceful: skips if a constraint with the same name already exists. - -## Usage - -```bash -csdk provision-check-constraint --input.clientMutationId --input.databaseId --input.tableId --input.definition -``` - -## Examples - -### Run provisionCheckConstraint - -```bash -csdk provision-check-constraint --input.clientMutationId --input.databaseId --input.tableId --input.definition -``` diff --git a/.agents/skills/cli-public/references/provision-database-with-user.md b/.agents/skills/cli-public/references/provision-database-with-user.md deleted file mode 100644 index 8b0ab7bf25..0000000000 --- a/.agents/skills/cli-public/references/provision-database-with-user.md +++ /dev/null @@ -1,19 +0,0 @@ -# provisionDatabaseWithUser - - - -Execute the provisionDatabaseWithUser mutation - -## Usage - -```bash -csdk provision-database-with-user --input.clientMutationId --input.pDatabaseName --input.pDomain --input.pSubdomain --input.pModules --input.pOptions -``` - -## Examples - -### Run provisionDatabaseWithUser - -```bash -csdk provision-database-with-user --input.clientMutationId --input.pDatabaseName --input.pDomain --input.pSubdomain --input.pModules --input.pOptions -``` diff --git a/.agents/skills/cli-public/references/provision-full-text-search.md b/.agents/skills/cli-public/references/provision-full-text-search.md deleted file mode 100644 index aff521535b..0000000000 --- a/.agents/skills/cli-public/references/provision-full-text-search.md +++ /dev/null @@ -1,19 +0,0 @@ -# provisionFullTextSearch - - - -Creates a full-text search configuration on a table. Accepts a jsonb definition with field (tsvector column name) and sources (array of {field, weight, lang}). Graceful: skips if FTS config already exists for the same (table_id, field_id). Returns the fts_id. - -## Usage - -```bash -csdk provision-full-text-search --input.clientMutationId --input.databaseId --input.tableId --input.definition -``` - -## Examples - -### Run provisionFullTextSearch - -```bash -csdk provision-full-text-search --input.clientMutationId --input.databaseId --input.tableId --input.definition -``` diff --git a/.agents/skills/cli-public/references/provision-index.md b/.agents/skills/cli-public/references/provision-index.md deleted file mode 100644 index 59f85da822..0000000000 --- a/.agents/skills/cli-public/references/provision-index.md +++ /dev/null @@ -1,19 +0,0 @@ -# provisionIndex - - - -Creates an index on a table. Accepts a jsonb definition with columns (array of names or single column string), access_method (default BTREE), is_unique, op_classes, options, and name (auto-generated if omitted). Graceful: skips if an index with the same (table_id, field_ids, access_method) already exists. Returns the index_id. - -## Usage - -```bash -csdk provision-index --input.clientMutationId --input.databaseId --input.tableId --input.definition -``` - -## Examples - -### Run provisionIndex - -```bash -csdk provision-index --input.clientMutationId --input.databaseId --input.tableId --input.definition -``` diff --git a/.agents/skills/cli-public/references/provision-new-user.md b/.agents/skills/cli-public/references/provision-new-user.md deleted file mode 100644 index 57823825e5..0000000000 --- a/.agents/skills/cli-public/references/provision-new-user.md +++ /dev/null @@ -1,19 +0,0 @@ -# provisionNewUser - - - -Execute the provisionNewUser mutation - -## Usage - -```bash -csdk provision-new-user --input.clientMutationId --input.email --input.password -``` - -## Examples - -### Run provisionNewUser - -```bash -csdk provision-new-user --input.clientMutationId --input.email --input.password -``` diff --git a/.agents/skills/cli-public/references/provision-relation.md b/.agents/skills/cli-public/references/provision-relation.md deleted file mode 100644 index 15516a0500..0000000000 --- a/.agents/skills/cli-public/references/provision-relation.md +++ /dev/null @@ -1,19 +0,0 @@ -# provisionRelation - - - -Composable relation provisioning: creates FK fields, indexes, unique constraints, and junction tables depending on the relation_type. Supports RelationBelongsTo, RelationHasOne, RelationHasMany, and RelationManyToMany. ManyToMany uses provision_table() internally for junction table creation with full node/grant/policy support. All operations are graceful (skip existing). Returns (out_field_id, out_junction_table_id, out_source_field_id, out_target_field_id). - -## Usage - -```bash -csdk provision-relation --input.clientMutationId --input.databaseId --input.relationType --input.sourceTableId --input.targetTableId --input.fieldName --input.deleteAction --input.isRequired --input.apiRequired --input.createIndex --input.junctionTableId --input.junctionTableName --input.junctionSchemaId --input.sourceFieldName --input.targetFieldName --input.useCompositeKey --input.exposeInApi --input.nodes --input.grants --input.policies -``` - -## Examples - -### Run provisionRelation - -```bash -csdk provision-relation --input.clientMutationId --input.databaseId --input.relationType --input.sourceTableId --input.targetTableId --input.fieldName --input.deleteAction --input.isRequired --input.apiRequired --input.createIndex --input.junctionTableId --input.junctionTableName --input.junctionSchemaId --input.sourceFieldName --input.targetFieldName --input.useCompositeKey --input.exposeInApi --input.nodes --input.grants --input.policies -``` diff --git a/.agents/skills/cli-public/references/provision-spatial-relation.md b/.agents/skills/cli-public/references/provision-spatial-relation.md deleted file mode 100644 index 0b5b896142..0000000000 --- a/.agents/skills/cli-public/references/provision-spatial-relation.md +++ /dev/null @@ -1,19 +0,0 @@ -# provisionSpatialRelation - - - -Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row declaring a spatial predicate between two geometry/geography columns (owner and target). Called from construct_blueprint when a relation entry has $type=RelationSpatial. Graceful: re-running with the same (source_table_id, name) returns the existing id without modifying the row. Operator whitelist and st_dwithin ↔ param_name pairing are enforced by the spatial_relation table CHECKs. Both fields must already exist — this is a metadata-only insert. - -## Usage - -```bash -csdk provision-spatial-relation --input.clientMutationId --input.pDatabaseId --input.pSourceTableId --input.pSourceFieldId --input.pTargetTableId --input.pTargetFieldId --input.pName --input.pOperator --input.pParamName -``` - -## Examples - -### Run provisionSpatialRelation - -```bash -csdk provision-spatial-relation --input.clientMutationId --input.pDatabaseId --input.pSourceTableId --input.pSourceFieldId --input.pTargetTableId --input.pTargetFieldId --input.pName --input.pOperator --input.pParamName -``` diff --git a/.agents/skills/cli-public/references/provision-table.md b/.agents/skills/cli-public/references/provision-table.md deleted file mode 100644 index 9426533f52..0000000000 --- a/.agents/skills/cli-public/references/provision-table.md +++ /dev/null @@ -1,19 +0,0 @@ -# provisionTable - - - -Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). - -## Usage - -```bash -csdk provision-table --input.clientMutationId --input.databaseId --input.schemaId --input.tableName --input.tableId --input.nodes --input.fields --input.policies --input.grants --input.useRls --input.indexes --input.fullTextSearches --input.uniqueConstraints --input.description -``` - -## Examples - -### Run provisionTable - -```bash -csdk provision-table --input.clientMutationId --input.databaseId --input.schemaId --input.tableName --input.tableId --input.nodes --input.fields --input.policies --input.grants --input.useRls --input.indexes --input.fullTextSearches --input.uniqueConstraints --input.description -``` diff --git a/.agents/skills/cli-public/references/provision-unique-constraint.md b/.agents/skills/cli-public/references/provision-unique-constraint.md deleted file mode 100644 index 71df14404e..0000000000 --- a/.agents/skills/cli-public/references/provision-unique-constraint.md +++ /dev/null @@ -1,19 +0,0 @@ -# provisionUniqueConstraint - - - -Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists. - -## Usage - -```bash -csdk provision-unique-constraint --input.clientMutationId --input.databaseId --input.tableId --input.definition -``` - -## Examples - -### Run provisionUniqueConstraint - -```bash -csdk provision-unique-constraint --input.clientMutationId --input.databaseId --input.tableId --input.definition -``` diff --git a/.agents/skills/cli-public/references/pubkey-setting.md b/.agents/skills/cli-public/references/pubkey-setting.md deleted file mode 100644 index 24accd69b9..0000000000 --- a/.agents/skills/cli-public/references/pubkey-setting.md +++ /dev/null @@ -1,68 +0,0 @@ -# pubkeySetting - - - -CRUD operations for PubkeySetting records via csdk CLI - -## Usage - -```bash -csdk pubkey-setting list -csdk pubkey-setting list --where.. --orderBy -csdk pubkey-setting list --limit 10 --after -csdk pubkey-setting find-first --where.. -csdk pubkey-setting get --id -csdk pubkey-setting create --databaseId [--schemaId ] [--cryptoNetwork ] [--userField ] [--signUpWithKeyFunctionId ] [--signInRequestChallengeFunctionId ] [--signInRecordFailureFunctionId ] [--signInWithChallengeFunctionId ] -csdk pubkey-setting update --id [--databaseId ] [--schemaId ] [--cryptoNetwork ] [--userField ] [--signUpWithKeyFunctionId ] [--signInRequestChallengeFunctionId ] [--signInRecordFailureFunctionId ] [--signInWithChallengeFunctionId ] -csdk pubkey-setting delete --id -``` - -## Examples - -### List pubkeySetting records - -```bash -csdk pubkey-setting list -``` - -### List pubkeySetting records with pagination - -```bash -csdk pubkey-setting list --limit 10 --offset 0 -``` - -### List pubkeySetting records with cursor pagination - -```bash -csdk pubkey-setting list --limit 10 --after -``` - -### Find first matching pubkeySetting - -```bash -csdk pubkey-setting find-first --where.id.equalTo -``` - -### List pubkeySetting records with field selection - -```bash -csdk pubkey-setting list --select id,id -``` - -### List pubkeySetting records with filtering and ordering - -```bash -csdk pubkey-setting list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a pubkeySetting - -```bash -csdk pubkey-setting create --databaseId [--schemaId ] [--cryptoNetwork ] [--userField ] [--signUpWithKeyFunctionId ] [--signInRequestChallengeFunctionId ] [--signInRecordFailureFunctionId ] [--signInWithChallengeFunctionId ] -``` - -### Get a pubkeySetting by id - -```bash -csdk pubkey-setting get --id -``` diff --git a/.agents/skills/cli-public/references/rate-limit-meters-module.md b/.agents/skills/cli-public/references/rate-limit-meters-module.md deleted file mode 100644 index 38ed2a6b86..0000000000 --- a/.agents/skills/cli-public/references/rate-limit-meters-module.md +++ /dev/null @@ -1,68 +0,0 @@ -# rateLimitMetersModule - - - -CRUD operations for RateLimitMetersModule records via csdk CLI - -## Usage - -```bash -csdk rate-limit-meters-module list -csdk rate-limit-meters-module list --where.. --orderBy -csdk rate-limit-meters-module list --limit 10 --after -csdk rate-limit-meters-module find-first --where.. -csdk rate-limit-meters-module get --id -csdk rate-limit-meters-module create --databaseId [--schemaId ] [--privateSchemaId ] [--rateLimitStateTableId ] [--rateLimitStateTableName ] [--rateLimitOverridesTableId ] [--rateLimitOverridesTableName ] [--rateWindowLimitsTableId ] [--rateWindowLimitsTableName ] [--checkRateLimitFunction ] [--prefix ] -csdk rate-limit-meters-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--rateLimitStateTableId ] [--rateLimitStateTableName ] [--rateLimitOverridesTableId ] [--rateLimitOverridesTableName ] [--rateWindowLimitsTableId ] [--rateWindowLimitsTableName ] [--checkRateLimitFunction ] [--prefix ] -csdk rate-limit-meters-module delete --id -``` - -## Examples - -### List rateLimitMetersModule records - -```bash -csdk rate-limit-meters-module list -``` - -### List rateLimitMetersModule records with pagination - -```bash -csdk rate-limit-meters-module list --limit 10 --offset 0 -``` - -### List rateLimitMetersModule records with cursor pagination - -```bash -csdk rate-limit-meters-module list --limit 10 --after -``` - -### Find first matching rateLimitMetersModule - -```bash -csdk rate-limit-meters-module find-first --where.id.equalTo -``` - -### List rateLimitMetersModule records with field selection - -```bash -csdk rate-limit-meters-module list --select id,id -``` - -### List rateLimitMetersModule records with filtering and ordering - -```bash -csdk rate-limit-meters-module list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a rateLimitMetersModule - -```bash -csdk rate-limit-meters-module create --databaseId [--schemaId ] [--privateSchemaId ] [--rateLimitStateTableId ] [--rateLimitStateTableName ] [--rateLimitOverridesTableId ] [--rateLimitOverridesTableName ] [--rateWindowLimitsTableId ] [--rateWindowLimitsTableName ] [--checkRateLimitFunction ] [--prefix ] -``` - -### Get a rateLimitMetersModule by id - -```bash -csdk rate-limit-meters-module get --id -``` diff --git a/.agents/skills/cli-public/references/rate-limits-module.md b/.agents/skills/cli-public/references/rate-limits-module.md deleted file mode 100644 index da889d04f6..0000000000 --- a/.agents/skills/cli-public/references/rate-limits-module.md +++ /dev/null @@ -1,68 +0,0 @@ -# rateLimitsModule - - - -CRUD operations for RateLimitsModule records via csdk CLI - -## Usage - -```bash -csdk rate-limits-module list -csdk rate-limits-module list --where.. --orderBy -csdk rate-limits-module list --limit 10 --after -csdk rate-limits-module find-first --where.. -csdk rate-limits-module get --id -csdk rate-limits-module create --databaseId [--schemaId ] [--rateLimitSettingsTableId ] [--ipRateLimitsTableId ] [--rateLimitsTableId ] [--rateLimitSettingsTable ] [--ipRateLimitsTable ] [--rateLimitsTable ] -csdk rate-limits-module update --id [--databaseId ] [--schemaId ] [--rateLimitSettingsTableId ] [--ipRateLimitsTableId ] [--rateLimitsTableId ] [--rateLimitSettingsTable ] [--ipRateLimitsTable ] [--rateLimitsTable ] -csdk rate-limits-module delete --id -``` - -## Examples - -### List rateLimitsModule records - -```bash -csdk rate-limits-module list -``` - -### List rateLimitsModule records with pagination - -```bash -csdk rate-limits-module list --limit 10 --offset 0 -``` - -### List rateLimitsModule records with cursor pagination - -```bash -csdk rate-limits-module list --limit 10 --after -``` - -### Find first matching rateLimitsModule - -```bash -csdk rate-limits-module find-first --where.id.equalTo -``` - -### List rateLimitsModule records with field selection - -```bash -csdk rate-limits-module list --select id,id -``` - -### List rateLimitsModule records with filtering and ordering - -```bash -csdk rate-limits-module list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a rateLimitsModule - -```bash -csdk rate-limits-module create --databaseId [--schemaId ] [--rateLimitSettingsTableId ] [--ipRateLimitsTableId ] [--rateLimitsTableId ] [--rateLimitSettingsTable ] [--ipRateLimitsTable ] [--rateLimitsTable ] -``` - -### Get a rateLimitsModule by id - -```bash -csdk rate-limits-module get --id -``` diff --git a/.agents/skills/cli-public/references/realtime-module.md b/.agents/skills/cli-public/references/realtime-module.md deleted file mode 100644 index 782099d7f1..0000000000 --- a/.agents/skills/cli-public/references/realtime-module.md +++ /dev/null @@ -1,68 +0,0 @@ -# realtimeModule - - - -CRUD operations for RealtimeModule records via csdk CLI - -## Usage - -```bash -csdk realtime-module list -csdk realtime-module list --where.. --orderBy -csdk realtime-module list --limit 10 --after -csdk realtime-module find-first --where.. -csdk realtime-module get --id -csdk realtime-module create --databaseId [--schemaId ] [--privateSchemaId ] [--subscriptionsSchemaId ] [--changeLogTableId ] [--listenerNodeTableId ] [--sourceRegistryTableId ] [--retentionHours ] [--premake ] [--interval ] [--notifyChannel ] -csdk realtime-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--subscriptionsSchemaId ] [--changeLogTableId ] [--listenerNodeTableId ] [--sourceRegistryTableId ] [--retentionHours ] [--premake ] [--interval ] [--notifyChannel ] -csdk realtime-module delete --id -``` - -## Examples - -### List realtimeModule records - -```bash -csdk realtime-module list -``` - -### List realtimeModule records with pagination - -```bash -csdk realtime-module list --limit 10 --offset 0 -``` - -### List realtimeModule records with cursor pagination - -```bash -csdk realtime-module list --limit 10 --after -``` - -### Find first matching realtimeModule - -```bash -csdk realtime-module find-first --where.id.equalTo -``` - -### List realtimeModule records with field selection - -```bash -csdk realtime-module list --select id,id -``` - -### List realtimeModule records with filtering and ordering - -```bash -csdk realtime-module list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a realtimeModule - -```bash -csdk realtime-module create --databaseId [--schemaId ] [--privateSchemaId ] [--subscriptionsSchemaId ] [--changeLogTableId ] [--listenerNodeTableId ] [--sourceRegistryTableId ] [--retentionHours ] [--premake ] [--interval ] [--notifyChannel ] -``` - -### Get a realtimeModule by id - -```bash -csdk realtime-module get --id -``` diff --git a/.agents/skills/cli-public/references/ref.md b/.agents/skills/cli-public/references/ref.md deleted file mode 100644 index 5369e75209..0000000000 --- a/.agents/skills/cli-public/references/ref.md +++ /dev/null @@ -1,68 +0,0 @@ -# ref - - - -CRUD operations for Ref records via csdk CLI - -## Usage - -```bash -csdk ref list -csdk ref list --where.. --orderBy -csdk ref list --limit 10 --after -csdk ref find-first --where.. -csdk ref get --id -csdk ref create --name --databaseId --storeId [--commitId ] -csdk ref update --id [--name ] [--databaseId ] [--storeId ] [--commitId ] -csdk ref delete --id -``` - -## Examples - -### List ref records - -```bash -csdk ref list -``` - -### List ref records with pagination - -```bash -csdk ref list --limit 10 --offset 0 -``` - -### List ref records with cursor pagination - -```bash -csdk ref list --limit 10 --after -``` - -### Find first matching ref - -```bash -csdk ref find-first --where.id.equalTo -``` - -### List ref records with field selection - -```bash -csdk ref list --select id,id -``` - -### List ref records with filtering and ordering - -```bash -csdk ref list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a ref - -```bash -csdk ref create --name --databaseId --storeId [--commitId ] -``` - -### Get a ref by id - -```bash -csdk ref get --id -``` diff --git a/.agents/skills/cli-public/references/reject-database-transfer.md b/.agents/skills/cli-public/references/reject-database-transfer.md deleted file mode 100644 index 0d4655a070..0000000000 --- a/.agents/skills/cli-public/references/reject-database-transfer.md +++ /dev/null @@ -1,19 +0,0 @@ -# rejectDatabaseTransfer - - - -Execute the rejectDatabaseTransfer mutation - -## Usage - -```bash -csdk reject-database-transfer --input.clientMutationId --input.transferId -``` - -## Examples - -### Run rejectDatabaseTransfer - -```bash -csdk reject-database-transfer --input.clientMutationId --input.transferId -``` diff --git a/.agents/skills/cli-public/references/relation-provision.md b/.agents/skills/cli-public/references/relation-provision.md deleted file mode 100644 index d4e7702645..0000000000 --- a/.agents/skills/cli-public/references/relation-provision.md +++ /dev/null @@ -1,68 +0,0 @@ -# relationProvision - - - -CRUD operations for RelationProvision records via csdk CLI - -## Usage - -```bash -csdk relation-provision list -csdk relation-provision list --where.. --orderBy -csdk relation-provision list --limit 10 --after -csdk relation-provision find-first --where.. -csdk relation-provision get --id -csdk relation-provision create --databaseId --relationType --sourceTableId --targetTableId [--fieldName ] [--deleteAction ] [--isRequired ] [--apiRequired ] [--junctionTableId ] [--junctionTableName ] [--junctionSchemaId ] [--sourceFieldName ] [--targetFieldName ] [--useCompositeKey ] [--createIndex ] [--exposeInApi ] [--nodes ] [--grants ] [--policies ] [--outFieldId ] [--outJunctionTableId ] [--outSourceFieldId ] [--outTargetFieldId ] -csdk relation-provision update --id [--databaseId ] [--relationType ] [--sourceTableId ] [--targetTableId ] [--fieldName ] [--deleteAction ] [--isRequired ] [--apiRequired ] [--junctionTableId ] [--junctionTableName ] [--junctionSchemaId ] [--sourceFieldName ] [--targetFieldName ] [--useCompositeKey ] [--createIndex ] [--exposeInApi ] [--nodes ] [--grants ] [--policies ] [--outFieldId ] [--outJunctionTableId ] [--outSourceFieldId ] [--outTargetFieldId ] -csdk relation-provision delete --id -``` - -## Examples - -### List relationProvision records - -```bash -csdk relation-provision list -``` - -### List relationProvision records with pagination - -```bash -csdk relation-provision list --limit 10 --offset 0 -``` - -### List relationProvision records with cursor pagination - -```bash -csdk relation-provision list --limit 10 --after -``` - -### Find first matching relationProvision - -```bash -csdk relation-provision find-first --where.id.equalTo -``` - -### List relationProvision records with field selection - -```bash -csdk relation-provision list --select id,id -``` - -### List relationProvision records with filtering and ordering - -```bash -csdk relation-provision list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a relationProvision - -```bash -csdk relation-provision create --databaseId --relationType --sourceTableId --targetTableId [--fieldName ] [--deleteAction ] [--isRequired ] [--apiRequired ] [--junctionTableId ] [--junctionTableName ] [--junctionSchemaId ] [--sourceFieldName ] [--targetFieldName ] [--useCompositeKey ] [--createIndex ] [--exposeInApi ] [--nodes ] [--grants ] [--policies ] [--outFieldId ] [--outJunctionTableId ] [--outSourceFieldId ] [--outTargetFieldId ] -``` - -### Get a relationProvision by id - -```bash -csdk relation-provision get --id -``` diff --git a/.agents/skills/cli-public/references/remove-node-at-path.md b/.agents/skills/cli-public/references/remove-node-at-path.md deleted file mode 100644 index 9db6761b91..0000000000 --- a/.agents/skills/cli-public/references/remove-node-at-path.md +++ /dev/null @@ -1,19 +0,0 @@ -# removeNodeAtPath - - - -Execute the removeNodeAtPath mutation - -## Usage - -```bash -csdk remove-node-at-path --input.clientMutationId --input.dbId --input.root --input.path -``` - -## Examples - -### Run removeNodeAtPath - -```bash -csdk remove-node-at-path --input.clientMutationId --input.dbId --input.root --input.path -``` diff --git a/.agents/skills/cli-public/references/request-cross-origin-token.md b/.agents/skills/cli-public/references/request-cross-origin-token.md deleted file mode 100644 index c47e09e848..0000000000 --- a/.agents/skills/cli-public/references/request-cross-origin-token.md +++ /dev/null @@ -1,19 +0,0 @@ -# requestCrossOriginToken - - - -Execute the requestCrossOriginToken mutation - -## Usage - -```bash -csdk request-cross-origin-token --input.clientMutationId --input.email --input.password --input.origin --input.rememberMe -``` - -## Examples - -### Run requestCrossOriginToken - -```bash -csdk request-cross-origin-token --input.clientMutationId --input.email --input.password --input.origin --input.rememberMe -``` diff --git a/.agents/skills/cli-public/references/request-upload-url.md b/.agents/skills/cli-public/references/request-upload-url.md deleted file mode 100644 index 873dc3ee01..0000000000 --- a/.agents/skills/cli-public/references/request-upload-url.md +++ /dev/null @@ -1,22 +0,0 @@ -# requestUploadUrl - - - -Request a presigned URL for uploading a file directly to S3. -Client computes SHA-256 of the file content and provides it here. -If a file with the same hash already exists (dedup), returns the -existing file ID and deduplicated=true with no uploadUrl. - -## Usage - -```bash -csdk request-upload-url --input.bucketKey --input.ownerId --input.contentHash --input.contentType --input.size --input.filename -``` - -## Examples - -### Run requestUploadUrl - -```bash -csdk request-upload-url --input.bucketKey --input.ownerId --input.contentHash --input.contentType --input.size --input.filename -``` diff --git a/.agents/skills/cli-public/references/require-step-up.md b/.agents/skills/cli-public/references/require-step-up.md deleted file mode 100644 index 8d813647b7..0000000000 --- a/.agents/skills/cli-public/references/require-step-up.md +++ /dev/null @@ -1,19 +0,0 @@ -# requireStepUp - - - -Execute the requireStepUp query - -## Usage - -```bash -csdk require-step-up --stepUpType -``` - -## Examples - -### Run requireStepUp - -```bash -csdk require-step-up --stepUpType -``` diff --git a/.agents/skills/cli-public/references/reset-password.md b/.agents/skills/cli-public/references/reset-password.md deleted file mode 100644 index b7fc72ff52..0000000000 --- a/.agents/skills/cli-public/references/reset-password.md +++ /dev/null @@ -1,19 +0,0 @@ -# resetPassword - - - -Execute the resetPassword mutation - -## Usage - -```bash -csdk reset-password --input.clientMutationId --input.roleId --input.resetToken --input.newPassword -``` - -## Examples - -### Run resetPassword - -```bash -csdk reset-password --input.clientMutationId --input.roleId --input.resetToken --input.newPassword -``` diff --git a/.agents/skills/cli-public/references/resolve-blueprint-field.md b/.agents/skills/cli-public/references/resolve-blueprint-field.md deleted file mode 100644 index 4aac79d782..0000000000 --- a/.agents/skills/cli-public/references/resolve-blueprint-field.md +++ /dev/null @@ -1,19 +0,0 @@ -# resolveBlueprintField - - - -Resolves a field_name within a given table_id to a field_id. Throws if no match is found. Used by construct_blueprint to translate user-authored field names (e.g. "location") into field UUIDs for downstream provisioning procedures. table_id must already be resolved (via resolve_blueprint_table) before calling this. - -## Usage - -```bash -csdk resolve-blueprint-field --databaseId --tableId --fieldName -``` - -## Examples - -### Run resolveBlueprintField - -```bash -csdk resolve-blueprint-field --databaseId --tableId --fieldName -``` diff --git a/.agents/skills/cli-public/references/resolve-blueprint-table.md b/.agents/skills/cli-public/references/resolve-blueprint-table.md deleted file mode 100644 index fc2075b2c1..0000000000 --- a/.agents/skills/cli-public/references/resolve-blueprint-table.md +++ /dev/null @@ -1,19 +0,0 @@ -# resolveBlueprintTable - - - -Resolves a table_name (with optional schema_name) to a table_id. Resolution order: (1) if schema_name provided, exact lookup via metaschema_public.schema.name + metaschema_public.table; (2) check local table_map (tables created in current blueprint); (3) search metaschema_public.table by name across all schemas; (4) if multiple matches, throw ambiguous error asking for schema_name; (5) if no match, throw not-found error. - -## Usage - -```bash -csdk resolve-blueprint-table --databaseId --tableName --schemaName --tableMap --defaultSchemaId -``` - -## Examples - -### Run resolveBlueprintTable - -```bash -csdk resolve-blueprint-table --databaseId --tableName --schemaName --tableMap --defaultSchemaId -``` diff --git a/.agents/skills/cli-public/references/rev-parse.md b/.agents/skills/cli-public/references/rev-parse.md deleted file mode 100644 index 35c6f3dcc8..0000000000 --- a/.agents/skills/cli-public/references/rev-parse.md +++ /dev/null @@ -1,19 +0,0 @@ -# revParse - - - -Execute the revParse query - -## Usage - -```bash -csdk rev-parse --dbId --storeId --refname -``` - -## Examples - -### Run revParse - -```bash -csdk rev-parse --dbId --storeId --refname -``` diff --git a/.agents/skills/cli-public/references/revoke-api-key.md b/.agents/skills/cli-public/references/revoke-api-key.md deleted file mode 100644 index c97c101b07..0000000000 --- a/.agents/skills/cli-public/references/revoke-api-key.md +++ /dev/null @@ -1,19 +0,0 @@ -# revokeApiKey - - - -Execute the revokeApiKey mutation - -## Usage - -```bash -csdk revoke-api-key --input.clientMutationId --input.keyId -``` - -## Examples - -### Run revokeApiKey - -```bash -csdk revoke-api-key --input.clientMutationId --input.keyId -``` diff --git a/.agents/skills/cli-public/references/revoke-session.md b/.agents/skills/cli-public/references/revoke-session.md deleted file mode 100644 index 0829261e01..0000000000 --- a/.agents/skills/cli-public/references/revoke-session.md +++ /dev/null @@ -1,19 +0,0 @@ -# revokeSession - - - -Execute the revokeSession mutation - -## Usage - -```bash -csdk revoke-session --input.clientMutationId --input.sessionId -``` - -## Examples - -### Run revokeSession - -```bash -csdk revoke-session --input.clientMutationId --input.sessionId -``` diff --git a/.agents/skills/cli-public/references/rls-module.md b/.agents/skills/cli-public/references/rls-module.md deleted file mode 100644 index cd52c3683b..0000000000 --- a/.agents/skills/cli-public/references/rls-module.md +++ /dev/null @@ -1,68 +0,0 @@ -# rlsModule - - - -CRUD operations for RlsModule records via csdk CLI - -## Usage - -```bash -csdk rls-module list -csdk rls-module list --where.. --orderBy -csdk rls-module list --limit 10 --after -csdk rls-module find-first --where.. -csdk rls-module get --id -csdk rls-module create --databaseId [--schemaId ] [--privateSchemaId ] [--sessionCredentialsTableId ] [--sessionsTableId ] [--usersTableId ] [--authenticate ] [--authenticateStrict ] [--currentRole ] [--currentRoleId ] -csdk rls-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--sessionCredentialsTableId ] [--sessionsTableId ] [--usersTableId ] [--authenticate ] [--authenticateStrict ] [--currentRole ] [--currentRoleId ] -csdk rls-module delete --id -``` - -## Examples - -### List rlsModule records - -```bash -csdk rls-module list -``` - -### List rlsModule records with pagination - -```bash -csdk rls-module list --limit 10 --offset 0 -``` - -### List rlsModule records with cursor pagination - -```bash -csdk rls-module list --limit 10 --after -``` - -### Find first matching rlsModule - -```bash -csdk rls-module find-first --where.id.equalTo -``` - -### List rlsModule records with field selection - -```bash -csdk rls-module list --select id,id -``` - -### List rlsModule records with filtering and ordering - -```bash -csdk rls-module list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a rlsModule - -```bash -csdk rls-module create --databaseId [--schemaId ] [--privateSchemaId ] [--sessionCredentialsTableId ] [--sessionsTableId ] [--usersTableId ] [--authenticate ] [--authenticateStrict ] [--currentRole ] [--currentRoleId ] -``` - -### Get a rlsModule by id - -```bash -csdk rls-module get --id -``` diff --git a/.agents/skills/cli-public/references/rls-setting.md b/.agents/skills/cli-public/references/rls-setting.md deleted file mode 100644 index ed8992d38f..0000000000 --- a/.agents/skills/cli-public/references/rls-setting.md +++ /dev/null @@ -1,68 +0,0 @@ -# rlsSetting - - - -CRUD operations for RlsSetting records via csdk CLI - -## Usage - -```bash -csdk rls-setting list -csdk rls-setting list --where.. --orderBy -csdk rls-setting list --limit 10 --after -csdk rls-setting find-first --where.. -csdk rls-setting get --id -csdk rls-setting create --databaseId [--authenticateSchemaId ] [--roleSchemaId ] [--authenticateFunctionId ] [--authenticateStrictFunctionId ] [--currentRoleFunctionId ] [--currentRoleIdFunctionId ] [--currentUserAgentFunctionId ] [--currentIpAddressFunctionId ] -csdk rls-setting update --id [--databaseId ] [--authenticateSchemaId ] [--roleSchemaId ] [--authenticateFunctionId ] [--authenticateStrictFunctionId ] [--currentRoleFunctionId ] [--currentRoleIdFunctionId ] [--currentUserAgentFunctionId ] [--currentIpAddressFunctionId ] -csdk rls-setting delete --id -``` - -## Examples - -### List rlsSetting records - -```bash -csdk rls-setting list -``` - -### List rlsSetting records with pagination - -```bash -csdk rls-setting list --limit 10 --offset 0 -``` - -### List rlsSetting records with cursor pagination - -```bash -csdk rls-setting list --limit 10 --after -``` - -### Find first matching rlsSetting - -```bash -csdk rls-setting find-first --where.id.equalTo -``` - -### List rlsSetting records with field selection - -```bash -csdk rls-setting list --select id,id -``` - -### List rlsSetting records with filtering and ordering - -```bash -csdk rls-setting list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a rlsSetting - -```bash -csdk rls-setting create --databaseId [--authenticateSchemaId ] [--roleSchemaId ] [--authenticateFunctionId ] [--authenticateStrictFunctionId ] [--currentRoleFunctionId ] [--currentRoleIdFunctionId ] [--currentUserAgentFunctionId ] [--currentIpAddressFunctionId ] -``` - -### Get a rlsSetting by id - -```bash -csdk rls-setting get --id -``` diff --git a/.agents/skills/cli-public/references/role-type.md b/.agents/skills/cli-public/references/role-type.md deleted file mode 100644 index e21f127bc7..0000000000 --- a/.agents/skills/cli-public/references/role-type.md +++ /dev/null @@ -1,68 +0,0 @@ -# roleType - - - -CRUD operations for RoleType records via csdk CLI - -## Usage - -```bash -csdk role-type list -csdk role-type list --where.. --orderBy -csdk role-type list --limit 10 --after -csdk role-type find-first --where.. -csdk role-type get --id -csdk role-type create --name -csdk role-type update --id [--name ] -csdk role-type delete --id -``` - -## Examples - -### List roleType records - -```bash -csdk role-type list -``` - -### List roleType records with pagination - -```bash -csdk role-type list --limit 10 --offset 0 -``` - -### List roleType records with cursor pagination - -```bash -csdk role-type list --limit 10 --after -``` - -### Find first matching roleType - -```bash -csdk role-type find-first --where.id.equalTo -``` - -### List roleType records with field selection - -```bash -csdk role-type list --select id,id -``` - -### List roleType records with filtering and ordering - -```bash -csdk role-type list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a roleType - -```bash -csdk role-type create --name -``` - -### Get a roleType by id - -```bash -csdk role-type get --id -``` diff --git a/.agents/skills/cli-public/references/schema-grant.md b/.agents/skills/cli-public/references/schema-grant.md deleted file mode 100644 index b0f94f8d44..0000000000 --- a/.agents/skills/cli-public/references/schema-grant.md +++ /dev/null @@ -1,68 +0,0 @@ -# schemaGrant - - - -CRUD operations for SchemaGrant records via csdk CLI - -## Usage - -```bash -csdk schema-grant list -csdk schema-grant list --where.. --orderBy -csdk schema-grant list --limit 10 --after -csdk schema-grant find-first --where.. -csdk schema-grant get --id -csdk schema-grant create --schemaId --granteeName [--databaseId ] -csdk schema-grant update --id [--databaseId ] [--schemaId ] [--granteeName ] -csdk schema-grant delete --id -``` - -## Examples - -### List schemaGrant records - -```bash -csdk schema-grant list -``` - -### List schemaGrant records with pagination - -```bash -csdk schema-grant list --limit 10 --offset 0 -``` - -### List schemaGrant records with cursor pagination - -```bash -csdk schema-grant list --limit 10 --after -``` - -### Find first matching schemaGrant - -```bash -csdk schema-grant find-first --where.id.equalTo -``` - -### List schemaGrant records with field selection - -```bash -csdk schema-grant list --select id,id -``` - -### List schemaGrant records with filtering and ordering - -```bash -csdk schema-grant list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a schemaGrant - -```bash -csdk schema-grant create --schemaId --granteeName [--databaseId ] -``` - -### Get a schemaGrant by id - -```bash -csdk schema-grant get --id -``` diff --git a/.agents/skills/cli-public/references/schema.md b/.agents/skills/cli-public/references/schema.md deleted file mode 100644 index 6f0473ac78..0000000000 --- a/.agents/skills/cli-public/references/schema.md +++ /dev/null @@ -1,68 +0,0 @@ -# schema - - - -CRUD operations for Schema records via csdk CLI - -## Usage - -```bash -csdk schema list -csdk schema list --where.. --orderBy -csdk schema list --limit 10 --after -csdk schema find-first --where.. -csdk schema get --id -csdk schema create --databaseId --name --schemaName [--label ] [--description ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] [--isPublic ] -csdk schema update --id [--databaseId ] [--name ] [--schemaName ] [--label ] [--description ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] [--isPublic ] -csdk schema delete --id -``` - -## Examples - -### List schema records - -```bash -csdk schema list -``` - -### List schema records with pagination - -```bash -csdk schema list --limit 10 --offset 0 -``` - -### List schema records with cursor pagination - -```bash -csdk schema list --limit 10 --after -``` - -### Find first matching schema - -```bash -csdk schema find-first --where.id.equalTo -``` - -### List schema records with field selection - -```bash -csdk schema list --select id,id -``` - -### List schema records with filtering and ordering - -```bash -csdk schema list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a schema - -```bash -csdk schema create --databaseId --name --schemaName [--label ] [--description ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] [--isPublic ] -``` - -### Get a schema by id - -```bash -csdk schema get --id -``` diff --git a/.agents/skills/cli-public/references/secrets-module.md b/.agents/skills/cli-public/references/secrets-module.md deleted file mode 100644 index 4e4153bda2..0000000000 --- a/.agents/skills/cli-public/references/secrets-module.md +++ /dev/null @@ -1,68 +0,0 @@ -# secretsModule - - - -CRUD operations for SecretsModule records via csdk CLI - -## Usage - -```bash -csdk secrets-module list -csdk secrets-module list --where.. --orderBy -csdk secrets-module list --limit 10 --after -csdk secrets-module find-first --where.. -csdk secrets-module get --id -csdk secrets-module create --databaseId [--schemaId ] [--tableId ] [--tableName ] -csdk secrets-module update --id [--databaseId ] [--schemaId ] [--tableId ] [--tableName ] -csdk secrets-module delete --id -``` - -## Examples - -### List secretsModule records - -```bash -csdk secrets-module list -``` - -### List secretsModule records with pagination - -```bash -csdk secrets-module list --limit 10 --offset 0 -``` - -### List secretsModule records with cursor pagination - -```bash -csdk secrets-module list --limit 10 --after -``` - -### Find first matching secretsModule - -```bash -csdk secrets-module find-first --where.id.equalTo -``` - -### List secretsModule records with field selection - -```bash -csdk secrets-module list --select id,id -``` - -### List secretsModule records with filtering and ordering - -```bash -csdk secrets-module list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a secretsModule - -```bash -csdk secrets-module create --databaseId [--schemaId ] [--tableId ] [--tableName ] -``` - -### Get a secretsModule by id - -```bash -csdk secrets-module get --id -``` diff --git a/.agents/skills/cli-public/references/secure-table-provision.md b/.agents/skills/cli-public/references/secure-table-provision.md deleted file mode 100644 index 8cc0bce0f5..0000000000 --- a/.agents/skills/cli-public/references/secure-table-provision.md +++ /dev/null @@ -1,68 +0,0 @@ -# secureTableProvision - - - -CRUD operations for SecureTableProvision records via csdk CLI - -## Usage - -```bash -csdk secure-table-provision list -csdk secure-table-provision list --where.. --orderBy -csdk secure-table-provision list --limit 10 --after -csdk secure-table-provision find-first --where.. -csdk secure-table-provision get --id -csdk secure-table-provision create --databaseId [--schemaId ] [--tableId ] [--tableName ] [--nodes ] [--useRls ] [--fields ] [--grants ] [--policies ] [--outFields ] -csdk secure-table-provision update --id [--databaseId ] [--schemaId ] [--tableId ] [--tableName ] [--nodes ] [--useRls ] [--fields ] [--grants ] [--policies ] [--outFields ] -csdk secure-table-provision delete --id -``` - -## Examples - -### List secureTableProvision records - -```bash -csdk secure-table-provision list -``` - -### List secureTableProvision records with pagination - -```bash -csdk secure-table-provision list --limit 10 --offset 0 -``` - -### List secureTableProvision records with cursor pagination - -```bash -csdk secure-table-provision list --limit 10 --after -``` - -### Find first matching secureTableProvision - -```bash -csdk secure-table-provision find-first --where.id.equalTo -``` - -### List secureTableProvision records with field selection - -```bash -csdk secure-table-provision list --select id,id -``` - -### List secureTableProvision records with filtering and ordering - -```bash -csdk secure-table-provision list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a secureTableProvision - -```bash -csdk secure-table-provision create --databaseId [--schemaId ] [--tableId ] [--tableName ] [--nodes ] [--useRls ] [--fields ] [--grants ] [--policies ] [--outFields ] -``` - -### Get a secureTableProvision by id - -```bash -csdk secure-table-provision get --id -``` diff --git a/.agents/skills/cli-public/references/send-account-deletion-email.md b/.agents/skills/cli-public/references/send-account-deletion-email.md deleted file mode 100644 index a8ae0cae18..0000000000 --- a/.agents/skills/cli-public/references/send-account-deletion-email.md +++ /dev/null @@ -1,19 +0,0 @@ -# sendAccountDeletionEmail - - - -Execute the sendAccountDeletionEmail mutation - -## Usage - -```bash -csdk send-account-deletion-email --input.clientMutationId -``` - -## Examples - -### Run sendAccountDeletionEmail - -```bash -csdk send-account-deletion-email --input.clientMutationId -``` diff --git a/.agents/skills/cli-public/references/send-verification-email.md b/.agents/skills/cli-public/references/send-verification-email.md deleted file mode 100644 index b1c3c1ac78..0000000000 --- a/.agents/skills/cli-public/references/send-verification-email.md +++ /dev/null @@ -1,19 +0,0 @@ -# sendVerificationEmail - - - -Execute the sendVerificationEmail mutation - -## Usage - -```bash -csdk send-verification-email --input.clientMutationId --input.email -``` - -## Examples - -### Run sendVerificationEmail - -```bash -csdk send-verification-email --input.clientMutationId --input.email -``` diff --git a/.agents/skills/cli-public/references/session-secrets-module.md b/.agents/skills/cli-public/references/session-secrets-module.md deleted file mode 100644 index e02671d1af..0000000000 --- a/.agents/skills/cli-public/references/session-secrets-module.md +++ /dev/null @@ -1,68 +0,0 @@ -# sessionSecretsModule - - - -CRUD operations for SessionSecretsModule records via csdk CLI - -## Usage - -```bash -csdk session-secrets-module list -csdk session-secrets-module list --where.. --orderBy -csdk session-secrets-module list --limit 10 --after -csdk session-secrets-module find-first --where.. -csdk session-secrets-module get --id -csdk session-secrets-module create --databaseId [--schemaId ] [--tableId ] [--tableName ] [--sessionsTableId ] -csdk session-secrets-module update --id [--databaseId ] [--schemaId ] [--tableId ] [--tableName ] [--sessionsTableId ] -csdk session-secrets-module delete --id -``` - -## Examples - -### List sessionSecretsModule records - -```bash -csdk session-secrets-module list -``` - -### List sessionSecretsModule records with pagination - -```bash -csdk session-secrets-module list --limit 10 --offset 0 -``` - -### List sessionSecretsModule records with cursor pagination - -```bash -csdk session-secrets-module list --limit 10 --after -``` - -### Find first matching sessionSecretsModule - -```bash -csdk session-secrets-module find-first --where.id.equalTo -``` - -### List sessionSecretsModule records with field selection - -```bash -csdk session-secrets-module list --select id,id -``` - -### List sessionSecretsModule records with filtering and ordering - -```bash -csdk session-secrets-module list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a sessionSecretsModule - -```bash -csdk session-secrets-module create --databaseId [--schemaId ] [--tableId ] [--tableName ] [--sessionsTableId ] -``` - -### Get a sessionSecretsModule by id - -```bash -csdk session-secrets-module get --id -``` diff --git a/.agents/skills/cli-public/references/sessions-module.md b/.agents/skills/cli-public/references/sessions-module.md deleted file mode 100644 index 6fb1cd668b..0000000000 --- a/.agents/skills/cli-public/references/sessions-module.md +++ /dev/null @@ -1,68 +0,0 @@ -# sessionsModule - - - -CRUD operations for SessionsModule records via csdk CLI - -## Usage - -```bash -csdk sessions-module list -csdk sessions-module list --where.. --orderBy -csdk sessions-module list --limit 10 --after -csdk sessions-module find-first --where.. -csdk sessions-module get --id -csdk sessions-module create --databaseId [--schemaId ] [--sessionsTableId ] [--sessionCredentialsTableId ] [--authSettingsTableId ] [--usersTableId ] [--sessionsDefaultExpiration ] [--sessionsTable ] [--sessionCredentialsTable ] [--authSettingsTable ] -csdk sessions-module update --id [--databaseId ] [--schemaId ] [--sessionsTableId ] [--sessionCredentialsTableId ] [--authSettingsTableId ] [--usersTableId ] [--sessionsDefaultExpiration ] [--sessionsTable ] [--sessionCredentialsTable ] [--authSettingsTable ] -csdk sessions-module delete --id -``` - -## Examples - -### List sessionsModule records - -```bash -csdk sessions-module list -``` - -### List sessionsModule records with pagination - -```bash -csdk sessions-module list --limit 10 --offset 0 -``` - -### List sessionsModule records with cursor pagination - -```bash -csdk sessions-module list --limit 10 --after -``` - -### Find first matching sessionsModule - -```bash -csdk sessions-module find-first --where.id.equalTo -``` - -### List sessionsModule records with field selection - -```bash -csdk sessions-module list --select id,id -``` - -### List sessionsModule records with filtering and ordering - -```bash -csdk sessions-module list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a sessionsModule - -```bash -csdk sessions-module create --databaseId [--schemaId ] [--sessionsTableId ] [--sessionCredentialsTableId ] [--authSettingsTableId ] [--usersTableId ] [--sessionsDefaultExpiration ] [--sessionsTable ] [--sessionCredentialsTable ] [--authSettingsTable ] -``` - -### Get a sessionsModule by id - -```bash -csdk sessions-module get --id -``` diff --git a/.agents/skills/cli-public/references/set-and-commit.md b/.agents/skills/cli-public/references/set-and-commit.md deleted file mode 100644 index 897356944a..0000000000 --- a/.agents/skills/cli-public/references/set-and-commit.md +++ /dev/null @@ -1,19 +0,0 @@ -# setAndCommit - - - -Execute the setAndCommit mutation - -## Usage - -```bash -csdk set-and-commit --input.clientMutationId --input.dbId --input.storeId --input.refname --input.path --input.data --input.kids --input.ktree -``` - -## Examples - -### Run setAndCommit - -```bash -csdk set-and-commit --input.clientMutationId --input.dbId --input.storeId --input.refname --input.path --input.data --input.kids --input.ktree -``` diff --git a/.agents/skills/cli-public/references/set-data-at-path.md b/.agents/skills/cli-public/references/set-data-at-path.md deleted file mode 100644 index 965cece542..0000000000 --- a/.agents/skills/cli-public/references/set-data-at-path.md +++ /dev/null @@ -1,19 +0,0 @@ -# setDataAtPath - - - -Execute the setDataAtPath mutation - -## Usage - -```bash -csdk set-data-at-path --input.clientMutationId --input.dbId --input.root --input.path --input.data -``` - -## Examples - -### Run setDataAtPath - -```bash -csdk set-data-at-path --input.clientMutationId --input.dbId --input.root --input.path --input.data -``` diff --git a/.agents/skills/cli-public/references/set-field-order.md b/.agents/skills/cli-public/references/set-field-order.md deleted file mode 100644 index 63822325f4..0000000000 --- a/.agents/skills/cli-public/references/set-field-order.md +++ /dev/null @@ -1,19 +0,0 @@ -# setFieldOrder - - - -Execute the setFieldOrder mutation - -## Usage - -```bash -csdk set-field-order --input.clientMutationId --input.fieldIds -``` - -## Examples - -### Run setFieldOrder - -```bash -csdk set-field-order --input.clientMutationId --input.fieldIds -``` diff --git a/.agents/skills/cli-public/references/set-password.md b/.agents/skills/cli-public/references/set-password.md deleted file mode 100644 index a142c5366f..0000000000 --- a/.agents/skills/cli-public/references/set-password.md +++ /dev/null @@ -1,19 +0,0 @@ -# setPassword - - - -Execute the setPassword mutation - -## Usage - -```bash -csdk set-password --input.clientMutationId --input.currentPassword --input.newPassword -``` - -## Examples - -### Run setPassword - -```bash -csdk set-password --input.clientMutationId --input.currentPassword --input.newPassword -``` diff --git a/.agents/skills/cli-public/references/set-props-and-commit.md b/.agents/skills/cli-public/references/set-props-and-commit.md deleted file mode 100644 index 9dd2bc2ec0..0000000000 --- a/.agents/skills/cli-public/references/set-props-and-commit.md +++ /dev/null @@ -1,19 +0,0 @@ -# setPropsAndCommit - - - -Execute the setPropsAndCommit mutation - -## Usage - -```bash -csdk set-props-and-commit --input.clientMutationId --input.dbId --input.storeId --input.refname --input.path --input.data -``` - -## Examples - -### Run setPropsAndCommit - -```bash -csdk set-props-and-commit --input.clientMutationId --input.dbId --input.storeId --input.refname --input.path --input.data -``` diff --git a/.agents/skills/cli-public/references/sign-in-cross-origin.md b/.agents/skills/cli-public/references/sign-in-cross-origin.md deleted file mode 100644 index a1b7a0b946..0000000000 --- a/.agents/skills/cli-public/references/sign-in-cross-origin.md +++ /dev/null @@ -1,19 +0,0 @@ -# signInCrossOrigin - - - -Execute the signInCrossOrigin mutation - -## Usage - -```bash -csdk sign-in-cross-origin --input.clientMutationId --input.token --input.credentialKind -``` - -## Examples - -### Run signInCrossOrigin - -```bash -csdk sign-in-cross-origin --input.clientMutationId --input.token --input.credentialKind -``` diff --git a/.agents/skills/cli-public/references/sign-in-one-time-token.md b/.agents/skills/cli-public/references/sign-in-one-time-token.md deleted file mode 100644 index a0318bd85f..0000000000 --- a/.agents/skills/cli-public/references/sign-in-one-time-token.md +++ /dev/null @@ -1,19 +0,0 @@ -# signInOneTimeToken - - - -Execute the signInOneTimeToken mutation - -## Usage - -```bash -csdk sign-in-one-time-token --input.clientMutationId --input.token --input.credentialKind -``` - -## Examples - -### Run signInOneTimeToken - -```bash -csdk sign-in-one-time-token --input.clientMutationId --input.token --input.credentialKind -``` diff --git a/.agents/skills/cli-public/references/sign-in.md b/.agents/skills/cli-public/references/sign-in.md deleted file mode 100644 index bdcc79e946..0000000000 --- a/.agents/skills/cli-public/references/sign-in.md +++ /dev/null @@ -1,19 +0,0 @@ -# signIn - - - -Execute the signIn mutation - -## Usage - -```bash -csdk sign-in --input.clientMutationId --input.email --input.password --input.rememberMe --input.credentialKind --input.csrfToken --input.deviceToken -``` - -## Examples - -### Run signIn - -```bash -csdk sign-in --input.clientMutationId --input.email --input.password --input.rememberMe --input.credentialKind --input.csrfToken --input.deviceToken -``` diff --git a/.agents/skills/cli-public/references/sign-out.md b/.agents/skills/cli-public/references/sign-out.md deleted file mode 100644 index 21bd333e85..0000000000 --- a/.agents/skills/cli-public/references/sign-out.md +++ /dev/null @@ -1,19 +0,0 @@ -# signOut - - - -Execute the signOut mutation - -## Usage - -```bash -csdk sign-out --input.clientMutationId -``` - -## Examples - -### Run signOut - -```bash -csdk sign-out --input.clientMutationId -``` diff --git a/.agents/skills/cli-public/references/sign-up.md b/.agents/skills/cli-public/references/sign-up.md deleted file mode 100644 index df47cb928d..0000000000 --- a/.agents/skills/cli-public/references/sign-up.md +++ /dev/null @@ -1,19 +0,0 @@ -# signUp - - - -Execute the signUp mutation - -## Usage - -```bash -csdk sign-up --input.clientMutationId --input.email --input.password --input.rememberMe --input.credentialKind --input.csrfToken --input.deviceToken -``` - -## Examples - -### Run signUp - -```bash -csdk sign-up --input.clientMutationId --input.email --input.password --input.rememberMe --input.credentialKind --input.csrfToken --input.deviceToken -``` diff --git a/.agents/skills/cli-public/references/site-metadatum.md b/.agents/skills/cli-public/references/site-metadatum.md deleted file mode 100644 index 99a57f5654..0000000000 --- a/.agents/skills/cli-public/references/site-metadatum.md +++ /dev/null @@ -1,68 +0,0 @@ -# siteMetadatum - - - -CRUD operations for SiteMetadatum records via csdk CLI - -## Usage - -```bash -csdk site-metadatum list -csdk site-metadatum list --where.. --orderBy -csdk site-metadatum list --limit 10 --after -csdk site-metadatum find-first --where.. -csdk site-metadatum get --id -csdk site-metadatum create --databaseId --siteId [--title ] [--description ] [--ogImage ] -csdk site-metadatum update --id [--databaseId ] [--siteId ] [--title ] [--description ] [--ogImage ] -csdk site-metadatum delete --id -``` - -## Examples - -### List siteMetadatum records - -```bash -csdk site-metadatum list -``` - -### List siteMetadatum records with pagination - -```bash -csdk site-metadatum list --limit 10 --offset 0 -``` - -### List siteMetadatum records with cursor pagination - -```bash -csdk site-metadatum list --limit 10 --after -``` - -### Find first matching siteMetadatum - -```bash -csdk site-metadatum find-first --where.id.equalTo -``` - -### List siteMetadatum records with field selection - -```bash -csdk site-metadatum list --select id,id -``` - -### List siteMetadatum records with filtering and ordering - -```bash -csdk site-metadatum list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a siteMetadatum - -```bash -csdk site-metadatum create --databaseId --siteId [--title ] [--description ] [--ogImage ] -``` - -### Get a siteMetadatum by id - -```bash -csdk site-metadatum get --id -``` diff --git a/.agents/skills/cli-public/references/site-module.md b/.agents/skills/cli-public/references/site-module.md deleted file mode 100644 index b57c3c4ec5..0000000000 --- a/.agents/skills/cli-public/references/site-module.md +++ /dev/null @@ -1,68 +0,0 @@ -# siteModule - - - -CRUD operations for SiteModule records via csdk CLI - -## Usage - -```bash -csdk site-module list -csdk site-module list --where.. --orderBy -csdk site-module list --limit 10 --after -csdk site-module find-first --where.. -csdk site-module get --id -csdk site-module create --databaseId --siteId --name --data -csdk site-module update --id [--databaseId ] [--siteId ] [--name ] [--data ] -csdk site-module delete --id -``` - -## Examples - -### List siteModule records - -```bash -csdk site-module list -``` - -### List siteModule records with pagination - -```bash -csdk site-module list --limit 10 --offset 0 -``` - -### List siteModule records with cursor pagination - -```bash -csdk site-module list --limit 10 --after -``` - -### Find first matching siteModule - -```bash -csdk site-module find-first --where.id.equalTo -``` - -### List siteModule records with field selection - -```bash -csdk site-module list --select id,id -``` - -### List siteModule records with filtering and ordering - -```bash -csdk site-module list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a siteModule - -```bash -csdk site-module create --databaseId --siteId --name --data -``` - -### Get a siteModule by id - -```bash -csdk site-module get --id -``` diff --git a/.agents/skills/cli-public/references/site-theme.md b/.agents/skills/cli-public/references/site-theme.md deleted file mode 100644 index 0431a151ca..0000000000 --- a/.agents/skills/cli-public/references/site-theme.md +++ /dev/null @@ -1,68 +0,0 @@ -# siteTheme - - - -CRUD operations for SiteTheme records via csdk CLI - -## Usage - -```bash -csdk site-theme list -csdk site-theme list --where.. --orderBy -csdk site-theme list --limit 10 --after -csdk site-theme find-first --where.. -csdk site-theme get --id -csdk site-theme create --databaseId --siteId --theme -csdk site-theme update --id [--databaseId ] [--siteId ] [--theme ] -csdk site-theme delete --id -``` - -## Examples - -### List siteTheme records - -```bash -csdk site-theme list -``` - -### List siteTheme records with pagination - -```bash -csdk site-theme list --limit 10 --offset 0 -``` - -### List siteTheme records with cursor pagination - -```bash -csdk site-theme list --limit 10 --after -``` - -### Find first matching siteTheme - -```bash -csdk site-theme find-first --where.id.equalTo -``` - -### List siteTheme records with field selection - -```bash -csdk site-theme list --select id,id -``` - -### List siteTheme records with filtering and ordering - -```bash -csdk site-theme list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a siteTheme - -```bash -csdk site-theme create --databaseId --siteId --theme -``` - -### Get a siteTheme by id - -```bash -csdk site-theme get --id -``` diff --git a/.agents/skills/cli-public/references/site.md b/.agents/skills/cli-public/references/site.md deleted file mode 100644 index 922a98605d..0000000000 --- a/.agents/skills/cli-public/references/site.md +++ /dev/null @@ -1,68 +0,0 @@ -# site - - - -CRUD operations for Site records via csdk CLI - -## Usage - -```bash -csdk site list -csdk site list --where.. --orderBy -csdk site list --limit 10 --after -csdk site find-first --where.. -csdk site get --id -csdk site create --databaseId [--title ] [--description ] [--ogImage ] [--favicon ] [--appleTouchIcon ] [--logo ] [--dbname ] -csdk site update --id [--databaseId ] [--title ] [--description ] [--ogImage ] [--favicon ] [--appleTouchIcon ] [--logo ] [--dbname ] -csdk site delete --id -``` - -## Examples - -### List site records - -```bash -csdk site list -``` - -### List site records with pagination - -```bash -csdk site list --limit 10 --offset 0 -``` - -### List site records with cursor pagination - -```bash -csdk site list --limit 10 --after -``` - -### Find first matching site - -```bash -csdk site find-first --where.id.equalTo -``` - -### List site records with field selection - -```bash -csdk site list --select id,id -``` - -### List site records with filtering and ordering - -```bash -csdk site list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a site - -```bash -csdk site create --databaseId [--title ] [--description ] [--ogImage ] [--favicon ] [--appleTouchIcon ] [--logo ] [--dbname ] -``` - -### Get a site by id - -```bash -csdk site get --id -``` diff --git a/.agents/skills/cli-public/references/spatial-relation.md b/.agents/skills/cli-public/references/spatial-relation.md deleted file mode 100644 index 130d99614b..0000000000 --- a/.agents/skills/cli-public/references/spatial-relation.md +++ /dev/null @@ -1,68 +0,0 @@ -# spatialRelation - - - -CRUD operations for SpatialRelation records via csdk CLI - -## Usage - -```bash -csdk spatial-relation list -csdk spatial-relation list --where.. --orderBy -csdk spatial-relation list --limit 10 --after -csdk spatial-relation find-first --where.. -csdk spatial-relation get --id -csdk spatial-relation create --tableId --fieldId --refTableId --refFieldId --name --operator [--databaseId ] [--paramName ] [--category ] [--module ] [--scope ] [--tags ] -csdk spatial-relation update --id [--databaseId ] [--tableId ] [--fieldId ] [--refTableId ] [--refFieldId ] [--name ] [--operator ] [--paramName ] [--category ] [--module ] [--scope ] [--tags ] -csdk spatial-relation delete --id -``` - -## Examples - -### List spatialRelation records - -```bash -csdk spatial-relation list -``` - -### List spatialRelation records with pagination - -```bash -csdk spatial-relation list --limit 10 --offset 0 -``` - -### List spatialRelation records with cursor pagination - -```bash -csdk spatial-relation list --limit 10 --after -``` - -### Find first matching spatialRelation - -```bash -csdk spatial-relation find-first --where.id.equalTo -``` - -### List spatialRelation records with field selection - -```bash -csdk spatial-relation list --select id,id -``` - -### List spatialRelation records with filtering and ordering - -```bash -csdk spatial-relation list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a spatialRelation - -```bash -csdk spatial-relation create --tableId --fieldId --refTableId --refFieldId --name --operator [--databaseId ] [--paramName ] [--category ] [--module ] [--scope ] [--tags ] -``` - -### Get a spatialRelation by id - -```bash -csdk spatial-relation get --id -``` diff --git a/.agents/skills/cli-public/references/sql-action.md b/.agents/skills/cli-public/references/sql-action.md deleted file mode 100644 index 26493191f3..0000000000 --- a/.agents/skills/cli-public/references/sql-action.md +++ /dev/null @@ -1,68 +0,0 @@ -# sqlAction - - - -CRUD operations for SqlAction records via csdk CLI - -## Usage - -```bash -csdk sql-action list -csdk sql-action list --where.. --orderBy -csdk sql-action list --limit 10 --after -csdk sql-action find-first --where.. -csdk sql-action get --id -csdk sql-action create [--name ] [--databaseId ] [--deploy ] [--deps ] [--payload ] [--content ] [--revert ] [--verify ] [--action ] [--actionId ] [--actorId ] -csdk sql-action update --id [--name ] [--databaseId ] [--deploy ] [--deps ] [--payload ] [--content ] [--revert ] [--verify ] [--action ] [--actionId ] [--actorId ] -csdk sql-action delete --id -``` - -## Examples - -### List sqlAction records - -```bash -csdk sql-action list -``` - -### List sqlAction records with pagination - -```bash -csdk sql-action list --limit 10 --offset 0 -``` - -### List sqlAction records with cursor pagination - -```bash -csdk sql-action list --limit 10 --after -``` - -### Find first matching sqlAction - -```bash -csdk sql-action find-first --where.id.equalTo -``` - -### List sqlAction records with field selection - -```bash -csdk sql-action list --select id,id -``` - -### List sqlAction records with filtering and ordering - -```bash -csdk sql-action list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a sqlAction - -```bash -csdk sql-action create [--name ] [--databaseId ] [--deploy ] [--deps ] [--payload ] [--content ] [--revert ] [--verify ] [--action ] [--actionId ] [--actorId ] -``` - -### Get a sqlAction by id - -```bash -csdk sql-action get --id -``` diff --git a/.agents/skills/cli-public/references/sql-migration.md b/.agents/skills/cli-public/references/sql-migration.md deleted file mode 100644 index 57c2f831c8..0000000000 --- a/.agents/skills/cli-public/references/sql-migration.md +++ /dev/null @@ -1,35 +0,0 @@ -# sqlMigration - - - -CRUD operations for SqlMigration records via csdk CLI - -## Usage - -```bash -csdk sql-migration list -csdk sql-migration get --id -csdk sql-migration create [--name ] [--databaseId ] [--deploy ] [--deps ] [--payload ] [--content ] [--revert ] [--verify ] [--action ] [--actionId ] [--actorId ] -csdk sql-migration update --id [--name ] [--databaseId ] [--deploy ] [--deps ] [--payload ] [--content ] [--revert ] [--verify ] [--action ] [--actionId ] [--actorId ] -csdk sql-migration delete --id -``` - -## Examples - -### List all sqlMigration records - -```bash -csdk sql-migration list -``` - -### Create a sqlMigration - -```bash -csdk sql-migration create [--name ] [--databaseId ] [--deploy ] [--deps ] [--payload ] [--content ] [--revert ] [--verify ] [--action ] [--actionId ] [--actorId ] -``` - -### Get a sqlMigration by id - -```bash -csdk sql-migration get --id -``` diff --git a/.agents/skills/cli-public/references/steps-achieved.md b/.agents/skills/cli-public/references/steps-achieved.md deleted file mode 100644 index 7728a55a1f..0000000000 --- a/.agents/skills/cli-public/references/steps-achieved.md +++ /dev/null @@ -1,19 +0,0 @@ -# stepsAchieved - - - -Execute the stepsAchieved query - -## Usage - -```bash -csdk steps-achieved --level --roleId -``` - -## Examples - -### Run stepsAchieved - -```bash -csdk steps-achieved --level --roleId -``` diff --git a/.agents/skills/cli-public/references/steps-required.md b/.agents/skills/cli-public/references/steps-required.md deleted file mode 100644 index 1ab25a7b3d..0000000000 --- a/.agents/skills/cli-public/references/steps-required.md +++ /dev/null @@ -1,19 +0,0 @@ -# stepsRequired - - - -Reads and enables pagination through a set of `AppLevelRequirement`. - -## Usage - -```bash -csdk steps-required --level --roleId --first --offset --after -``` - -## Examples - -### Run stepsRequired - -```bash -csdk steps-required --level --roleId --first --offset --after -``` diff --git a/.agents/skills/cli-public/references/storage-log-module.md b/.agents/skills/cli-public/references/storage-log-module.md deleted file mode 100644 index 14a0ab9b82..0000000000 --- a/.agents/skills/cli-public/references/storage-log-module.md +++ /dev/null @@ -1,68 +0,0 @@ -# storageLogModule - - - -CRUD operations for StorageLogModule records via csdk CLI - -## Usage - -```bash -csdk storage-log-module list -csdk storage-log-module list --where.. --orderBy -csdk storage-log-module list --limit 10 --after -csdk storage-log-module find-first --where.. -csdk storage-log-module get --id -csdk storage-log-module create --databaseId [--schemaId ] [--privateSchemaId ] [--storageLogTableId ] [--storageLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] -csdk storage-log-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--storageLogTableId ] [--storageLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] -csdk storage-log-module delete --id -``` - -## Examples - -### List storageLogModule records - -```bash -csdk storage-log-module list -``` - -### List storageLogModule records with pagination - -```bash -csdk storage-log-module list --limit 10 --offset 0 -``` - -### List storageLogModule records with cursor pagination - -```bash -csdk storage-log-module list --limit 10 --after -``` - -### Find first matching storageLogModule - -```bash -csdk storage-log-module find-first --where.id.equalTo -``` - -### List storageLogModule records with field selection - -```bash -csdk storage-log-module list --select id,id -``` - -### List storageLogModule records with filtering and ordering - -```bash -csdk storage-log-module list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a storageLogModule - -```bash -csdk storage-log-module create --databaseId [--schemaId ] [--privateSchemaId ] [--storageLogTableId ] [--storageLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] -``` - -### Get a storageLogModule by id - -```bash -csdk storage-log-module get --id -``` diff --git a/.agents/skills/cli-public/references/storage-module.md b/.agents/skills/cli-public/references/storage-module.md deleted file mode 100644 index ab31ed8fed..0000000000 --- a/.agents/skills/cli-public/references/storage-module.md +++ /dev/null @@ -1,68 +0,0 @@ -# storageModule - - - -CRUD operations for StorageModule records via csdk CLI - -## Usage - -```bash -csdk storage-module list -csdk storage-module list --where.. --orderBy -csdk storage-module list --limit 10 --after -csdk storage-module find-first --where.. -csdk storage-module get --id -csdk storage-module create --databaseId [--schemaId ] [--privateSchemaId ] [--bucketsTableId ] [--filesTableId ] [--bucketsTableName ] [--filesTableName ] [--membershipType ] [--key ] [--policies ] [--provisions ] [--entityTableId ] [--endpoint ] [--publicUrlPrefix ] [--provider ] [--allowedOrigins ] [--restrictReads ] [--hasPathShares ] [--pathSharesTableId ] [--uploadUrlExpirySeconds ] [--downloadUrlExpirySeconds ] [--defaultMaxFileSize ] [--maxFilenameLength ] [--cacheTtlSeconds ] [--maxBulkFiles ] [--maxBulkTotalSize ] [--hasVersioning ] [--hasContentHash ] [--hasCustomKeys ] [--hasAuditLog ] [--hasConfirmUpload ] [--confirmUploadDelay ] [--fileEventsTableId ] -csdk storage-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--bucketsTableId ] [--filesTableId ] [--bucketsTableName ] [--filesTableName ] [--membershipType ] [--key ] [--policies ] [--provisions ] [--entityTableId ] [--endpoint ] [--publicUrlPrefix ] [--provider ] [--allowedOrigins ] [--restrictReads ] [--hasPathShares ] [--pathSharesTableId ] [--uploadUrlExpirySeconds ] [--downloadUrlExpirySeconds ] [--defaultMaxFileSize ] [--maxFilenameLength ] [--cacheTtlSeconds ] [--maxBulkFiles ] [--maxBulkTotalSize ] [--hasVersioning ] [--hasContentHash ] [--hasCustomKeys ] [--hasAuditLog ] [--hasConfirmUpload ] [--confirmUploadDelay ] [--fileEventsTableId ] -csdk storage-module delete --id -``` - -## Examples - -### List storageModule records - -```bash -csdk storage-module list -``` - -### List storageModule records with pagination - -```bash -csdk storage-module list --limit 10 --offset 0 -``` - -### List storageModule records with cursor pagination - -```bash -csdk storage-module list --limit 10 --after -``` - -### Find first matching storageModule - -```bash -csdk storage-module find-first --where.id.equalTo -``` - -### List storageModule records with field selection - -```bash -csdk storage-module list --select id,id -``` - -### List storageModule records with filtering and ordering - -```bash -csdk storage-module list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a storageModule - -```bash -csdk storage-module create --databaseId [--schemaId ] [--privateSchemaId ] [--bucketsTableId ] [--filesTableId ] [--bucketsTableName ] [--filesTableName ] [--membershipType ] [--key ] [--policies ] [--provisions ] [--entityTableId ] [--endpoint ] [--publicUrlPrefix ] [--provider ] [--allowedOrigins ] [--restrictReads ] [--hasPathShares ] [--pathSharesTableId ] [--uploadUrlExpirySeconds ] [--downloadUrlExpirySeconds ] [--defaultMaxFileSize ] [--maxFilenameLength ] [--cacheTtlSeconds ] [--maxBulkFiles ] [--maxBulkTotalSize ] [--hasVersioning ] [--hasContentHash ] [--hasCustomKeys ] [--hasAuditLog ] [--hasConfirmUpload ] [--confirmUploadDelay ] [--fileEventsTableId ] -``` - -### Get a storageModule by id - -```bash -csdk storage-module get --id -``` diff --git a/.agents/skills/cli-public/references/store.md b/.agents/skills/cli-public/references/store.md deleted file mode 100644 index 25b76714d1..0000000000 --- a/.agents/skills/cli-public/references/store.md +++ /dev/null @@ -1,68 +0,0 @@ -# store - - - -CRUD operations for Store records via csdk CLI - -## Usage - -```bash -csdk store list -csdk store list --where.. --orderBy -csdk store list --limit 10 --after -csdk store find-first --where.. -csdk store get --id -csdk store create --name --databaseId [--hash ] -csdk store update --id [--name ] [--databaseId ] [--hash ] -csdk store delete --id -``` - -## Examples - -### List store records - -```bash -csdk store list -``` - -### List store records with pagination - -```bash -csdk store list --limit 10 --offset 0 -``` - -### List store records with cursor pagination - -```bash -csdk store list --limit 10 --after -``` - -### Find first matching store - -```bash -csdk store find-first --where.id.equalTo -``` - -### List store records with field selection - -```bash -csdk store list --select id,id -``` - -### List store records with filtering and ordering - -```bash -csdk store list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a store - -```bash -csdk store create --name --databaseId [--hash ] -``` - -### Get a store by id - -```bash -csdk store get --id -``` diff --git a/.agents/skills/cli-public/references/submit-app-invite-code.md b/.agents/skills/cli-public/references/submit-app-invite-code.md deleted file mode 100644 index ced627c870..0000000000 --- a/.agents/skills/cli-public/references/submit-app-invite-code.md +++ /dev/null @@ -1,19 +0,0 @@ -# submitAppInviteCode - - - -Execute the submitAppInviteCode mutation - -## Usage - -```bash -csdk submit-app-invite-code --input.clientMutationId --input.token -``` - -## Examples - -### Run submitAppInviteCode - -```bash -csdk submit-app-invite-code --input.clientMutationId --input.token -``` diff --git a/.agents/skills/cli-public/references/submit-invite-code.md b/.agents/skills/cli-public/references/submit-invite-code.md deleted file mode 100644 index 400fba274b..0000000000 --- a/.agents/skills/cli-public/references/submit-invite-code.md +++ /dev/null @@ -1,19 +0,0 @@ -# submitInviteCode - - - -Execute the submitInviteCode mutation - -## Usage - -```bash -csdk submit-invite-code --input.clientMutationId --input.token -``` - -## Examples - -### Run submitInviteCode - -```bash -csdk submit-invite-code --input.clientMutationId --input.token -``` diff --git a/.agents/skills/cli-public/references/submit-org-invite-code.md b/.agents/skills/cli-public/references/submit-org-invite-code.md deleted file mode 100644 index 0698c73664..0000000000 --- a/.agents/skills/cli-public/references/submit-org-invite-code.md +++ /dev/null @@ -1,19 +0,0 @@ -# submitOrgInviteCode - - - -Execute the submitOrgInviteCode mutation - -## Usage - -```bash -csdk submit-org-invite-code --input.clientMutationId --input.token -``` - -## Examples - -### Run submitOrgInviteCode - -```bash -csdk submit-org-invite-code --input.clientMutationId --input.token -``` diff --git a/.agents/skills/cli-public/references/table-grant.md b/.agents/skills/cli-public/references/table-grant.md deleted file mode 100644 index 636691a673..0000000000 --- a/.agents/skills/cli-public/references/table-grant.md +++ /dev/null @@ -1,68 +0,0 @@ -# tableGrant - - - -CRUD operations for TableGrant records via csdk CLI - -## Usage - -```bash -csdk table-grant list -csdk table-grant list --where.. --orderBy -csdk table-grant list --limit 10 --after -csdk table-grant find-first --where.. -csdk table-grant get --id -csdk table-grant create --tableId --privilege --granteeName [--databaseId ] [--fieldIds ] [--isGrant ] -csdk table-grant update --id [--databaseId ] [--tableId ] [--privilege ] [--granteeName ] [--fieldIds ] [--isGrant ] -csdk table-grant delete --id -``` - -## Examples - -### List tableGrant records - -```bash -csdk table-grant list -``` - -### List tableGrant records with pagination - -```bash -csdk table-grant list --limit 10 --offset 0 -``` - -### List tableGrant records with cursor pagination - -```bash -csdk table-grant list --limit 10 --after -``` - -### Find first matching tableGrant - -```bash -csdk table-grant find-first --where.id.equalTo -``` - -### List tableGrant records with field selection - -```bash -csdk table-grant list --select id,id -``` - -### List tableGrant records with filtering and ordering - -```bash -csdk table-grant list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a tableGrant - -```bash -csdk table-grant create --tableId --privilege --granteeName [--databaseId ] [--fieldIds ] [--isGrant ] -``` - -### Get a tableGrant by id - -```bash -csdk table-grant get --id -``` diff --git a/.agents/skills/cli-public/references/table-template-module.md b/.agents/skills/cli-public/references/table-template-module.md deleted file mode 100644 index 9901c7933c..0000000000 --- a/.agents/skills/cli-public/references/table-template-module.md +++ /dev/null @@ -1,68 +0,0 @@ -# tableTemplateModule - - - -CRUD operations for TableTemplateModule records via csdk CLI - -## Usage - -```bash -csdk table-template-module list -csdk table-template-module list --where.. --orderBy -csdk table-template-module list --limit 10 --after -csdk table-template-module find-first --where.. -csdk table-template-module get --id -csdk table-template-module create --databaseId --tableName --nodeType [--schemaId ] [--privateSchemaId ] [--tableId ] [--ownerTableId ] [--data ] -csdk table-template-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--tableId ] [--ownerTableId ] [--tableName ] [--nodeType ] [--data ] -csdk table-template-module delete --id -``` - -## Examples - -### List tableTemplateModule records - -```bash -csdk table-template-module list -``` - -### List tableTemplateModule records with pagination - -```bash -csdk table-template-module list --limit 10 --offset 0 -``` - -### List tableTemplateModule records with cursor pagination - -```bash -csdk table-template-module list --limit 10 --after -``` - -### Find first matching tableTemplateModule - -```bash -csdk table-template-module find-first --where.id.equalTo -``` - -### List tableTemplateModule records with field selection - -```bash -csdk table-template-module list --select id,id -``` - -### List tableTemplateModule records with filtering and ordering - -```bash -csdk table-template-module list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a tableTemplateModule - -```bash -csdk table-template-module create --databaseId --tableName --nodeType [--schemaId ] [--privateSchemaId ] [--tableId ] [--ownerTableId ] [--data ] -``` - -### Get a tableTemplateModule by id - -```bash -csdk table-template-module get --id -``` diff --git a/.agents/skills/cli-public/references/table.md b/.agents/skills/cli-public/references/table.md deleted file mode 100644 index 8f472367f4..0000000000 --- a/.agents/skills/cli-public/references/table.md +++ /dev/null @@ -1,68 +0,0 @@ -# table - - - -CRUD operations for Table records via csdk CLI - -## Usage - -```bash -csdk table list -csdk table list --where.. --orderBy -csdk table list --limit 10 --after -csdk table find-first --where.. -csdk table get --id -csdk table create --schemaId --name [--databaseId ] [--label ] [--description ] [--smartTags ] [--category ] [--module ] [--scope ] [--useRls ] [--timestamps ] [--peoplestamps ] [--pluralName ] [--singularName ] [--tags ] [--partitioned ] [--partitionStrategy ] [--partitionKeyNames ] [--partitionKeyTypes ] [--inheritsId ] -csdk table update --id [--databaseId ] [--schemaId ] [--name ] [--label ] [--description ] [--smartTags ] [--category ] [--module ] [--scope ] [--useRls ] [--timestamps ] [--peoplestamps ] [--pluralName ] [--singularName ] [--tags ] [--partitioned ] [--partitionStrategy ] [--partitionKeyNames ] [--partitionKeyTypes ] [--inheritsId ] -csdk table delete --id -``` - -## Examples - -### List table records - -```bash -csdk table list -``` - -### List table records with pagination - -```bash -csdk table list --limit 10 --offset 0 -``` - -### List table records with cursor pagination - -```bash -csdk table list --limit 10 --after -``` - -### Find first matching table - -```bash -csdk table find-first --where.id.equalTo -``` - -### List table records with field selection - -```bash -csdk table list --select id,id -``` - -### List table records with filtering and ordering - -```bash -csdk table list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a table - -```bash -csdk table create --schemaId --name [--databaseId ] [--label ] [--description ] [--smartTags ] [--category ] [--module ] [--scope ] [--useRls ] [--timestamps ] [--peoplestamps ] [--pluralName ] [--singularName ] [--tags ] [--partitioned ] [--partitionStrategy ] [--partitionKeyNames ] [--partitionKeyTypes ] [--inheritsId ] -``` - -### Get a table by id - -```bash -csdk table get --id -``` diff --git a/.agents/skills/cli-public/references/transfer-log-module.md b/.agents/skills/cli-public/references/transfer-log-module.md deleted file mode 100644 index 7759fd0f46..0000000000 --- a/.agents/skills/cli-public/references/transfer-log-module.md +++ /dev/null @@ -1,68 +0,0 @@ -# transferLogModule - - - -CRUD operations for TransferLogModule records via csdk CLI - -## Usage - -```bash -csdk transfer-log-module list -csdk transfer-log-module list --where.. --orderBy -csdk transfer-log-module list --limit 10 --after -csdk transfer-log-module find-first --where.. -csdk transfer-log-module get --id -csdk transfer-log-module create --databaseId [--schemaId ] [--privateSchemaId ] [--transferLogTableId ] [--transferLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] -csdk transfer-log-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--transferLogTableId ] [--transferLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] -csdk transfer-log-module delete --id -``` - -## Examples - -### List transferLogModule records - -```bash -csdk transfer-log-module list -``` - -### List transferLogModule records with pagination - -```bash -csdk transfer-log-module list --limit 10 --offset 0 -``` - -### List transferLogModule records with cursor pagination - -```bash -csdk transfer-log-module list --limit 10 --after -``` - -### Find first matching transferLogModule - -```bash -csdk transfer-log-module find-first --where.id.equalTo -``` - -### List transferLogModule records with field selection - -```bash -csdk transfer-log-module list --select id,id -``` - -### List transferLogModule records with filtering and ordering - -```bash -csdk transfer-log-module list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a transferLogModule - -```bash -csdk transfer-log-module create --databaseId [--schemaId ] [--privateSchemaId ] [--transferLogTableId ] [--transferLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] -``` - -### Get a transferLogModule by id - -```bash -csdk transfer-log-module get --id -``` diff --git a/.agents/skills/cli-public/references/trigger-function.md b/.agents/skills/cli-public/references/trigger-function.md deleted file mode 100644 index 5e5415172a..0000000000 --- a/.agents/skills/cli-public/references/trigger-function.md +++ /dev/null @@ -1,68 +0,0 @@ -# triggerFunction - - - -CRUD operations for TriggerFunction records via csdk CLI - -## Usage - -```bash -csdk trigger-function list -csdk trigger-function list --where.. --orderBy -csdk trigger-function list --limit 10 --after -csdk trigger-function find-first --where.. -csdk trigger-function get --id -csdk trigger-function create --databaseId --name [--code ] -csdk trigger-function update --id [--databaseId ] [--name ] [--code ] -csdk trigger-function delete --id -``` - -## Examples - -### List triggerFunction records - -```bash -csdk trigger-function list -``` - -### List triggerFunction records with pagination - -```bash -csdk trigger-function list --limit 10 --offset 0 -``` - -### List triggerFunction records with cursor pagination - -```bash -csdk trigger-function list --limit 10 --after -``` - -### Find first matching triggerFunction - -```bash -csdk trigger-function find-first --where.id.equalTo -``` - -### List triggerFunction records with field selection - -```bash -csdk trigger-function list --select id,id -``` - -### List triggerFunction records with filtering and ordering - -```bash -csdk trigger-function list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a triggerFunction - -```bash -csdk trigger-function create --databaseId --name [--code ] -``` - -### Get a triggerFunction by id - -```bash -csdk trigger-function get --id -``` diff --git a/.agents/skills/cli-public/references/trigger.md b/.agents/skills/cli-public/references/trigger.md deleted file mode 100644 index cb296d9140..0000000000 --- a/.agents/skills/cli-public/references/trigger.md +++ /dev/null @@ -1,68 +0,0 @@ -# trigger - - - -CRUD operations for Trigger records via csdk CLI - -## Usage - -```bash -csdk trigger list -csdk trigger list --where.. --orderBy -csdk trigger list --limit 10 --after -csdk trigger find-first --where.. -csdk trigger get --id -csdk trigger create --tableId --name [--databaseId ] [--event ] [--functionName ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] -csdk trigger update --id [--databaseId ] [--tableId ] [--name ] [--event ] [--functionName ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] -csdk trigger delete --id -``` - -## Examples - -### List trigger records - -```bash -csdk trigger list -``` - -### List trigger records with pagination - -```bash -csdk trigger list --limit 10 --offset 0 -``` - -### List trigger records with cursor pagination - -```bash -csdk trigger list --limit 10 --after -``` - -### Find first matching trigger - -```bash -csdk trigger find-first --where.id.equalTo -``` - -### List trigger records with field selection - -```bash -csdk trigger list --select id,id -``` - -### List trigger records with filtering and ordering - -```bash -csdk trigger list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a trigger - -```bash -csdk trigger create --tableId --name [--databaseId ] [--event ] [--functionName ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] -``` - -### Get a trigger by id - -```bash -csdk trigger get --id -``` diff --git a/.agents/skills/cli-public/references/unique-constraint.md b/.agents/skills/cli-public/references/unique-constraint.md deleted file mode 100644 index 042d6dabbc..0000000000 --- a/.agents/skills/cli-public/references/unique-constraint.md +++ /dev/null @@ -1,68 +0,0 @@ -# uniqueConstraint - - - -CRUD operations for UniqueConstraint records via csdk CLI - -## Usage - -```bash -csdk unique-constraint list -csdk unique-constraint list --where.. --orderBy -csdk unique-constraint list --limit 10 --after -csdk unique-constraint find-first --where.. -csdk unique-constraint get --id -csdk unique-constraint create --tableId --fieldIds [--databaseId ] [--name ] [--description ] [--smartTags ] [--type ] [--category ] [--module ] [--scope ] [--tags ] -csdk unique-constraint update --id [--databaseId ] [--tableId ] [--name ] [--description ] [--smartTags ] [--type ] [--fieldIds ] [--category ] [--module ] [--scope ] [--tags ] -csdk unique-constraint delete --id -``` - -## Examples - -### List uniqueConstraint records - -```bash -csdk unique-constraint list -``` - -### List uniqueConstraint records with pagination - -```bash -csdk unique-constraint list --limit 10 --offset 0 -``` - -### List uniqueConstraint records with cursor pagination - -```bash -csdk unique-constraint list --limit 10 --after -``` - -### Find first matching uniqueConstraint - -```bash -csdk unique-constraint find-first --where.id.equalTo -``` - -### List uniqueConstraint records with field selection - -```bash -csdk unique-constraint list --select id,id -``` - -### List uniqueConstraint records with filtering and ordering - -```bash -csdk unique-constraint list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a uniqueConstraint - -```bash -csdk unique-constraint create --tableId --fieldIds [--databaseId ] [--name ] [--description ] [--smartTags ] [--type ] [--category ] [--module ] [--scope ] [--tags ] -``` - -### Get a uniqueConstraint by id - -```bash -csdk unique-constraint get --id -``` diff --git a/.agents/skills/cli-public/references/update-node-at-path.md b/.agents/skills/cli-public/references/update-node-at-path.md deleted file mode 100644 index 8d52fff70e..0000000000 --- a/.agents/skills/cli-public/references/update-node-at-path.md +++ /dev/null @@ -1,19 +0,0 @@ -# updateNodeAtPath - - - -Execute the updateNodeAtPath mutation - -## Usage - -```bash -csdk update-node-at-path --input.clientMutationId --input.dbId --input.root --input.path --input.data --input.kids --input.ktree -``` - -## Examples - -### Run updateNodeAtPath - -```bash -csdk update-node-at-path --input.clientMutationId --input.dbId --input.root --input.path --input.data --input.kids --input.ktree -``` diff --git a/.agents/skills/cli-public/references/usage-snapshot.md b/.agents/skills/cli-public/references/usage-snapshot.md deleted file mode 100644 index 54320a25d2..0000000000 --- a/.agents/skills/cli-public/references/usage-snapshot.md +++ /dev/null @@ -1,68 +0,0 @@ -# usageSnapshot - - - -CRUD operations for UsageSnapshot records via csdk CLI - -## Usage - -```bash -csdk usage-snapshot list -csdk usage-snapshot list --where.. --orderBy -csdk usage-snapshot list --limit 10 --after -csdk usage-snapshot find-first --where.. -csdk usage-snapshot get --id -csdk usage-snapshot create --databaseId --metricName [--metricValue ] [--dimensions ] [--capturedAt ] -csdk usage-snapshot update --id [--databaseId ] [--metricName ] [--metricValue ] [--dimensions ] [--capturedAt ] -csdk usage-snapshot delete --id -``` - -## Examples - -### List usageSnapshot records - -```bash -csdk usage-snapshot list -``` - -### List usageSnapshot records with pagination - -```bash -csdk usage-snapshot list --limit 10 --offset 0 -``` - -### List usageSnapshot records with cursor pagination - -```bash -csdk usage-snapshot list --limit 10 --after -``` - -### Find first matching usageSnapshot - -```bash -csdk usage-snapshot find-first --where.id.equalTo -``` - -### List usageSnapshot records with field selection - -```bash -csdk usage-snapshot list --select id,id -``` - -### List usageSnapshot records with filtering and ordering - -```bash -csdk usage-snapshot list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a usageSnapshot - -```bash -csdk usage-snapshot create --databaseId --metricName [--metricValue ] [--dimensions ] [--capturedAt ] -``` - -### Get a usageSnapshot by id - -```bash -csdk usage-snapshot get --id -``` diff --git a/.agents/skills/cli-public/references/user-auth-module.md b/.agents/skills/cli-public/references/user-auth-module.md deleted file mode 100644 index eb8c72dea1..0000000000 --- a/.agents/skills/cli-public/references/user-auth-module.md +++ /dev/null @@ -1,68 +0,0 @@ -# userAuthModule - - - -CRUD operations for UserAuthModule records via csdk CLI - -## Usage - -```bash -csdk user-auth-module list -csdk user-auth-module list --where.. --orderBy -csdk user-auth-module list --limit 10 --after -csdk user-auth-module find-first --where.. -csdk user-auth-module get --id -csdk user-auth-module create --databaseId [--schemaId ] [--emailsTableId ] [--usersTableId ] [--secretsTableId ] [--encryptedTableId ] [--sessionsTableId ] [--sessionCredentialsTableId ] [--auditsTableId ] [--auditsTableName ] [--signInFunction ] [--signUpFunction ] [--signOutFunction ] [--setPasswordFunction ] [--resetPasswordFunction ] [--forgotPasswordFunction ] [--sendVerificationEmailFunction ] [--verifyEmailFunction ] [--verifyPasswordFunction ] [--checkPasswordFunction ] [--sendAccountDeletionEmailFunction ] [--deleteAccountFunction ] [--signInCrossOriginFunction ] [--requestCrossOriginTokenFunction ] [--extendTokenExpires ] -csdk user-auth-module update --id [--databaseId ] [--schemaId ] [--emailsTableId ] [--usersTableId ] [--secretsTableId ] [--encryptedTableId ] [--sessionsTableId ] [--sessionCredentialsTableId ] [--auditsTableId ] [--auditsTableName ] [--signInFunction ] [--signUpFunction ] [--signOutFunction ] [--setPasswordFunction ] [--resetPasswordFunction ] [--forgotPasswordFunction ] [--sendVerificationEmailFunction ] [--verifyEmailFunction ] [--verifyPasswordFunction ] [--checkPasswordFunction ] [--sendAccountDeletionEmailFunction ] [--deleteAccountFunction ] [--signInCrossOriginFunction ] [--requestCrossOriginTokenFunction ] [--extendTokenExpires ] -csdk user-auth-module delete --id -``` - -## Examples - -### List userAuthModule records - -```bash -csdk user-auth-module list -``` - -### List userAuthModule records with pagination - -```bash -csdk user-auth-module list --limit 10 --offset 0 -``` - -### List userAuthModule records with cursor pagination - -```bash -csdk user-auth-module list --limit 10 --after -``` - -### Find first matching userAuthModule - -```bash -csdk user-auth-module find-first --where.id.equalTo -``` - -### List userAuthModule records with field selection - -```bash -csdk user-auth-module list --select id,id -``` - -### List userAuthModule records with filtering and ordering - -```bash -csdk user-auth-module list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a userAuthModule - -```bash -csdk user-auth-module create --databaseId [--schemaId ] [--emailsTableId ] [--usersTableId ] [--secretsTableId ] [--encryptedTableId ] [--sessionsTableId ] [--sessionCredentialsTableId ] [--auditsTableId ] [--auditsTableName ] [--signInFunction ] [--signUpFunction ] [--signOutFunction ] [--setPasswordFunction ] [--resetPasswordFunction ] [--forgotPasswordFunction ] [--sendVerificationEmailFunction ] [--verifyEmailFunction ] [--verifyPasswordFunction ] [--checkPasswordFunction ] [--sendAccountDeletionEmailFunction ] [--deleteAccountFunction ] [--signInCrossOriginFunction ] [--requestCrossOriginTokenFunction ] [--extendTokenExpires ] -``` - -### Get a userAuthModule by id - -```bash -csdk user-auth-module get --id -``` diff --git a/.agents/skills/cli-public/references/user-connected-account.md b/.agents/skills/cli-public/references/user-connected-account.md deleted file mode 100644 index 0bf8ecc2ce..0000000000 --- a/.agents/skills/cli-public/references/user-connected-account.md +++ /dev/null @@ -1,68 +0,0 @@ -# userConnectedAccount - - - -CRUD operations for UserConnectedAccount records via csdk CLI - -## Usage - -```bash -csdk user-connected-account list -csdk user-connected-account list --where.. --orderBy -csdk user-connected-account list --limit 10 --after -csdk user-connected-account find-first --where.. -csdk user-connected-account get --id -csdk user-connected-account create [--ownerId ] [--service ] [--identifier ] [--details ] [--isVerified ] -csdk user-connected-account update --id [--ownerId ] [--service ] [--identifier ] [--details ] [--isVerified ] -csdk user-connected-account delete --id -``` - -## Examples - -### List userConnectedAccount records - -```bash -csdk user-connected-account list -``` - -### List userConnectedAccount records with pagination - -```bash -csdk user-connected-account list --limit 10 --offset 0 -``` - -### List userConnectedAccount records with cursor pagination - -```bash -csdk user-connected-account list --limit 10 --after -``` - -### Find first matching userConnectedAccount - -```bash -csdk user-connected-account find-first --where.id.equalTo -``` - -### List userConnectedAccount records with field selection - -```bash -csdk user-connected-account list --select id,id -``` - -### List userConnectedAccount records with filtering and ordering - -```bash -csdk user-connected-account list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a userConnectedAccount - -```bash -csdk user-connected-account create [--ownerId ] [--service ] [--identifier ] [--details ] [--isVerified ] -``` - -### Get a userConnectedAccount by id - -```bash -csdk user-connected-account get --id -``` diff --git a/.agents/skills/cli-public/references/user-state-module.md b/.agents/skills/cli-public/references/user-state-module.md deleted file mode 100644 index 325431eb21..0000000000 --- a/.agents/skills/cli-public/references/user-state-module.md +++ /dev/null @@ -1,68 +0,0 @@ -# userStateModule - - - -CRUD operations for UserStateModule records via csdk CLI - -## Usage - -```bash -csdk user-state-module list -csdk user-state-module list --where.. --orderBy -csdk user-state-module list --limit 10 --after -csdk user-state-module find-first --where.. -csdk user-state-module get --id -csdk user-state-module create --databaseId [--schemaId ] [--tableId ] [--tableName ] -csdk user-state-module update --id [--databaseId ] [--schemaId ] [--tableId ] [--tableName ] -csdk user-state-module delete --id -``` - -## Examples - -### List userStateModule records - -```bash -csdk user-state-module list -``` - -### List userStateModule records with pagination - -```bash -csdk user-state-module list --limit 10 --offset 0 -``` - -### List userStateModule records with cursor pagination - -```bash -csdk user-state-module list --limit 10 --after -``` - -### Find first matching userStateModule - -```bash -csdk user-state-module find-first --where.id.equalTo -``` - -### List userStateModule records with field selection - -```bash -csdk user-state-module list --select id,id -``` - -### List userStateModule records with filtering and ordering - -```bash -csdk user-state-module list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a userStateModule - -```bash -csdk user-state-module create --databaseId [--schemaId ] [--tableId ] [--tableName ] -``` - -### Get a userStateModule by id - -```bash -csdk user-state-module get --id -``` diff --git a/.agents/skills/cli-public/references/user.md b/.agents/skills/cli-public/references/user.md deleted file mode 100644 index 664de9176e..0000000000 --- a/.agents/skills/cli-public/references/user.md +++ /dev/null @@ -1,97 +0,0 @@ -# user - - - -CRUD operations for User records via csdk CLI - -**Unified Search API fields:** `searchTsv`, `displayNameTrgmSimilarity`, `searchScore` -Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. - -## Usage - -```bash -csdk user list -csdk user list --where.. --orderBy -csdk user list --limit 10 --after -csdk user find-first --where.. -csdk user search -csdk user get --id -csdk user create [--username ] [--displayName ] [--profilePicture ] [--type ] -csdk user update --id [--username ] [--displayName ] [--profilePicture ] [--type ] -csdk user delete --id -``` - -## Examples - -### List user records - -```bash -csdk user list -``` - -### List user records with pagination - -```bash -csdk user list --limit 10 --offset 0 -``` - -### List user records with cursor pagination - -```bash -csdk user list --limit 10 --after -``` - -### Find first matching user - -```bash -csdk user find-first --where.id.equalTo -``` - -### List user records with field selection - -```bash -csdk user list --select id,id -``` - -### List user records with filtering and ordering - -```bash -csdk user list --where.id.equalTo --orderBy ID_ASC -``` - -### Full-text search via tsvector (`searchTsv`) - -```bash -csdk user list --where.searchTsv "search query" --select title,tsvRank -``` - -### Fuzzy search via trigram similarity (`trgmDisplayName`) - -```bash -csdk user list --where.trgmDisplayName.value "approximate query" --where.trgmDisplayName.threshold 0.3 --select title,displayNameTrgmSimilarity -``` - -### Composite search (unifiedSearch dispatches to all text adapters) - -```bash -csdk user list --where.unifiedSearch "search query" --select title,tsvRank,displayNameTrgmSimilarity,searchScore -``` - -### Search with pagination and field projection - -```bash -csdk user list --where.unifiedSearch "query" --limit 10 --select id,title,searchScore -csdk user search "query" --limit 10 --select id,title,searchScore -``` - -### Create a user - -```bash -csdk user create [--username ] [--displayName ] [--profilePicture ] [--type ] -``` - -### Get a user by id - -```bash -csdk user get --id -``` diff --git a/.agents/skills/cli-public/references/users-module.md b/.agents/skills/cli-public/references/users-module.md deleted file mode 100644 index 00fef3bc65..0000000000 --- a/.agents/skills/cli-public/references/users-module.md +++ /dev/null @@ -1,68 +0,0 @@ -# usersModule - - - -CRUD operations for UsersModule records via csdk CLI - -## Usage - -```bash -csdk users-module list -csdk users-module list --where.. --orderBy -csdk users-module list --limit 10 --after -csdk users-module find-first --where.. -csdk users-module get --id -csdk users-module create --databaseId [--schemaId ] [--tableId ] [--tableName ] [--typeTableId ] [--typeTableName ] -csdk users-module update --id [--databaseId ] [--schemaId ] [--tableId ] [--tableName ] [--typeTableId ] [--typeTableName ] -csdk users-module delete --id -``` - -## Examples - -### List usersModule records - -```bash -csdk users-module list -``` - -### List usersModule records with pagination - -```bash -csdk users-module list --limit 10 --offset 0 -``` - -### List usersModule records with cursor pagination - -```bash -csdk users-module list --limit 10 --after -``` - -### Find first matching usersModule - -```bash -csdk users-module find-first --where.id.equalTo -``` - -### List usersModule records with field selection - -```bash -csdk users-module list --select id,id -``` - -### List usersModule records with filtering and ordering - -```bash -csdk users-module list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a usersModule - -```bash -csdk users-module create --databaseId [--schemaId ] [--tableId ] [--tableName ] [--typeTableId ] [--typeTableName ] -``` - -### Get a usersModule by id - -```bash -csdk users-module get --id -``` diff --git a/.agents/skills/cli-public/references/verify-email.md b/.agents/skills/cli-public/references/verify-email.md deleted file mode 100644 index 07f6bb5f40..0000000000 --- a/.agents/skills/cli-public/references/verify-email.md +++ /dev/null @@ -1,19 +0,0 @@ -# verifyEmail - - - -Execute the verifyEmail mutation - -## Usage - -```bash -csdk verify-email --input.clientMutationId --input.emailId --input.token -``` - -## Examples - -### Run verifyEmail - -```bash -csdk verify-email --input.clientMutationId --input.emailId --input.token -``` diff --git a/.agents/skills/cli-public/references/verify-password.md b/.agents/skills/cli-public/references/verify-password.md deleted file mode 100644 index f75792d9e1..0000000000 --- a/.agents/skills/cli-public/references/verify-password.md +++ /dev/null @@ -1,19 +0,0 @@ -# verifyPassword - - - -Execute the verifyPassword mutation - -## Usage - -```bash -csdk verify-password --input.clientMutationId --input.password -``` - -## Examples - -### Run verifyPassword - -```bash -csdk verify-password --input.clientMutationId --input.password -``` diff --git a/.agents/skills/cli-public/references/verify-totp.md b/.agents/skills/cli-public/references/verify-totp.md deleted file mode 100644 index e9779fef11..0000000000 --- a/.agents/skills/cli-public/references/verify-totp.md +++ /dev/null @@ -1,19 +0,0 @@ -# verifyTotp - - - -Execute the verifyTotp mutation - -## Usage - -```bash -csdk verify-totp --input.clientMutationId --input.totpValue -``` - -## Examples - -### Run verifyTotp - -```bash -csdk verify-totp --input.clientMutationId --input.totpValue -``` diff --git a/.agents/skills/cli-public/references/view-grant.md b/.agents/skills/cli-public/references/view-grant.md deleted file mode 100644 index d824d66f94..0000000000 --- a/.agents/skills/cli-public/references/view-grant.md +++ /dev/null @@ -1,68 +0,0 @@ -# viewGrant - - - -CRUD operations for ViewGrant records via csdk CLI - -## Usage - -```bash -csdk view-grant list -csdk view-grant list --where.. --orderBy -csdk view-grant list --limit 10 --after -csdk view-grant find-first --where.. -csdk view-grant get --id -csdk view-grant create --viewId --granteeName --privilege [--databaseId ] [--withGrantOption ] [--isGrant ] -csdk view-grant update --id [--databaseId ] [--viewId ] [--granteeName ] [--privilege ] [--withGrantOption ] [--isGrant ] -csdk view-grant delete --id -``` - -## Examples - -### List viewGrant records - -```bash -csdk view-grant list -``` - -### List viewGrant records with pagination - -```bash -csdk view-grant list --limit 10 --offset 0 -``` - -### List viewGrant records with cursor pagination - -```bash -csdk view-grant list --limit 10 --after -``` - -### Find first matching viewGrant - -```bash -csdk view-grant find-first --where.id.equalTo -``` - -### List viewGrant records with field selection - -```bash -csdk view-grant list --select id,id -``` - -### List viewGrant records with filtering and ordering - -```bash -csdk view-grant list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a viewGrant - -```bash -csdk view-grant create --viewId --granteeName --privilege [--databaseId ] [--withGrantOption ] [--isGrant ] -``` - -### Get a viewGrant by id - -```bash -csdk view-grant get --id -``` diff --git a/.agents/skills/cli-public/references/view-rule.md b/.agents/skills/cli-public/references/view-rule.md deleted file mode 100644 index 2d6894efec..0000000000 --- a/.agents/skills/cli-public/references/view-rule.md +++ /dev/null @@ -1,68 +0,0 @@ -# viewRule - - - -CRUD operations for ViewRule records via csdk CLI - -## Usage - -```bash -csdk view-rule list -csdk view-rule list --where.. --orderBy -csdk view-rule list --limit 10 --after -csdk view-rule find-first --where.. -csdk view-rule get --id -csdk view-rule create --viewId --name --event [--databaseId ] [--action ] -csdk view-rule update --id [--databaseId ] [--viewId ] [--name ] [--event ] [--action ] -csdk view-rule delete --id -``` - -## Examples - -### List viewRule records - -```bash -csdk view-rule list -``` - -### List viewRule records with pagination - -```bash -csdk view-rule list --limit 10 --offset 0 -``` - -### List viewRule records with cursor pagination - -```bash -csdk view-rule list --limit 10 --after -``` - -### Find first matching viewRule - -```bash -csdk view-rule find-first --where.id.equalTo -``` - -### List viewRule records with field selection - -```bash -csdk view-rule list --select id,id -``` - -### List viewRule records with filtering and ordering - -```bash -csdk view-rule list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a viewRule - -```bash -csdk view-rule create --viewId --name --event [--databaseId ] [--action ] -``` - -### Get a viewRule by id - -```bash -csdk view-rule get --id -``` diff --git a/.agents/skills/cli-public/references/view-table.md b/.agents/skills/cli-public/references/view-table.md deleted file mode 100644 index 1e3697cef2..0000000000 --- a/.agents/skills/cli-public/references/view-table.md +++ /dev/null @@ -1,68 +0,0 @@ -# viewTable - - - -CRUD operations for ViewTable records via csdk CLI - -## Usage - -```bash -csdk view-table list -csdk view-table list --where.. --orderBy -csdk view-table list --limit 10 --after -csdk view-table find-first --where.. -csdk view-table get --id -csdk view-table create --viewId --tableId [--joinOrder ] -csdk view-table update --id [--viewId ] [--tableId ] [--joinOrder ] -csdk view-table delete --id -``` - -## Examples - -### List viewTable records - -```bash -csdk view-table list -``` - -### List viewTable records with pagination - -```bash -csdk view-table list --limit 10 --offset 0 -``` - -### List viewTable records with cursor pagination - -```bash -csdk view-table list --limit 10 --after -``` - -### Find first matching viewTable - -```bash -csdk view-table find-first --where.id.equalTo -``` - -### List viewTable records with field selection - -```bash -csdk view-table list --select id,id -``` - -### List viewTable records with filtering and ordering - -```bash -csdk view-table list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a viewTable - -```bash -csdk view-table create --viewId --tableId [--joinOrder ] -``` - -### Get a viewTable by id - -```bash -csdk view-table get --id -``` diff --git a/.agents/skills/cli-public/references/view.md b/.agents/skills/cli-public/references/view.md deleted file mode 100644 index faca52a5a1..0000000000 --- a/.agents/skills/cli-public/references/view.md +++ /dev/null @@ -1,68 +0,0 @@ -# view - - - -CRUD operations for View records via csdk CLI - -## Usage - -```bash -csdk view list -csdk view list --where.. --orderBy -csdk view list --limit 10 --after -csdk view find-first --where.. -csdk view get --id -csdk view create --schemaId --name --viewType [--databaseId ] [--tableId ] [--data ] [--filterType ] [--filterData ] [--securityInvoker ] [--isReadOnly ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] -csdk view update --id [--databaseId ] [--schemaId ] [--name ] [--tableId ] [--viewType ] [--data ] [--filterType ] [--filterData ] [--securityInvoker ] [--isReadOnly ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] -csdk view delete --id -``` - -## Examples - -### List view records - -```bash -csdk view list -``` - -### List view records with pagination - -```bash -csdk view list --limit 10 --offset 0 -``` - -### List view records with cursor pagination - -```bash -csdk view list --limit 10 --after -``` - -### Find first matching view - -```bash -csdk view find-first --where.id.equalTo -``` - -### List view records with field selection - -```bash -csdk view list --select id,id -``` - -### List view records with filtering and ordering - -```bash -csdk view list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a view - -```bash -csdk view create --schemaId --name --viewType [--databaseId ] [--tableId ] [--data ] [--filterType ] [--filterData ] [--securityInvoker ] [--isReadOnly ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] -``` - -### Get a view by id - -```bash -csdk view get --id -``` diff --git a/.agents/skills/cli-public/references/webauthn-auth-module.md b/.agents/skills/cli-public/references/webauthn-auth-module.md deleted file mode 100644 index 18714da265..0000000000 --- a/.agents/skills/cli-public/references/webauthn-auth-module.md +++ /dev/null @@ -1,68 +0,0 @@ -# webauthnAuthModule - - - -CRUD operations for WebauthnAuthModule records via csdk CLI - -## Usage - -```bash -csdk webauthn-auth-module list -csdk webauthn-auth-module list --where.. --orderBy -csdk webauthn-auth-module list --limit 10 --after -csdk webauthn-auth-module find-first --where.. -csdk webauthn-auth-module get --id -csdk webauthn-auth-module create --databaseId [--schemaId ] [--usersTableId ] [--credentialsTableId ] [--sessionsTableId ] [--sessionCredentialsTableId ] [--sessionSecretsTableId ] [--authSettingsTableId ] [--rpId ] [--rpName ] [--originAllowlist ] [--attestationType ] [--requireUserVerification ] [--residentKey ] [--challengeExpiry ] -csdk webauthn-auth-module update --id [--databaseId ] [--schemaId ] [--usersTableId ] [--credentialsTableId ] [--sessionsTableId ] [--sessionCredentialsTableId ] [--sessionSecretsTableId ] [--authSettingsTableId ] [--rpId ] [--rpName ] [--originAllowlist ] [--attestationType ] [--requireUserVerification ] [--residentKey ] [--challengeExpiry ] -csdk webauthn-auth-module delete --id -``` - -## Examples - -### List webauthnAuthModule records - -```bash -csdk webauthn-auth-module list -``` - -### List webauthnAuthModule records with pagination - -```bash -csdk webauthn-auth-module list --limit 10 --offset 0 -``` - -### List webauthnAuthModule records with cursor pagination - -```bash -csdk webauthn-auth-module list --limit 10 --after -``` - -### Find first matching webauthnAuthModule - -```bash -csdk webauthn-auth-module find-first --where.id.equalTo -``` - -### List webauthnAuthModule records with field selection - -```bash -csdk webauthn-auth-module list --select id,id -``` - -### List webauthnAuthModule records with filtering and ordering - -```bash -csdk webauthn-auth-module list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a webauthnAuthModule - -```bash -csdk webauthn-auth-module create --databaseId [--schemaId ] [--usersTableId ] [--credentialsTableId ] [--sessionsTableId ] [--sessionCredentialsTableId ] [--sessionSecretsTableId ] [--authSettingsTableId ] [--rpId ] [--rpName ] [--originAllowlist ] [--attestationType ] [--requireUserVerification ] [--residentKey ] [--challengeExpiry ] -``` - -### Get a webauthnAuthModule by id - -```bash -csdk webauthn-auth-module get --id -``` diff --git a/.agents/skills/cli-public/references/webauthn-credential.md b/.agents/skills/cli-public/references/webauthn-credential.md deleted file mode 100644 index 7b29e7c956..0000000000 --- a/.agents/skills/cli-public/references/webauthn-credential.md +++ /dev/null @@ -1,68 +0,0 @@ -# webauthnCredential - - - -CRUD operations for WebauthnCredential records via csdk CLI - -## Usage - -```bash -csdk webauthn-credential list -csdk webauthn-credential list --where.. --orderBy -csdk webauthn-credential list --limit 10 --after -csdk webauthn-credential find-first --where.. -csdk webauthn-credential get --id -csdk webauthn-credential create --credentialId --publicKey --webauthnUserId --credentialDeviceType [--ownerId ] [--signCount ] [--transports ] [--backupEligible ] [--backupState ] [--name ] [--lastUsedAt ] -csdk webauthn-credential update --id [--ownerId ] [--credentialId ] [--publicKey ] [--signCount ] [--webauthnUserId ] [--transports ] [--credentialDeviceType ] [--backupEligible ] [--backupState ] [--name ] [--lastUsedAt ] -csdk webauthn-credential delete --id -``` - -## Examples - -### List webauthnCredential records - -```bash -csdk webauthn-credential list -``` - -### List webauthnCredential records with pagination - -```bash -csdk webauthn-credential list --limit 10 --offset 0 -``` - -### List webauthnCredential records with cursor pagination - -```bash -csdk webauthn-credential list --limit 10 --after -``` - -### Find first matching webauthnCredential - -```bash -csdk webauthn-credential find-first --where.id.equalTo -``` - -### List webauthnCredential records with field selection - -```bash -csdk webauthn-credential list --select id,id -``` - -### List webauthnCredential records with filtering and ordering - -```bash -csdk webauthn-credential list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a webauthnCredential - -```bash -csdk webauthn-credential create --credentialId --publicKey --webauthnUserId --credentialDeviceType [--ownerId ] [--signCount ] [--transports ] [--backupEligible ] [--backupState ] [--name ] [--lastUsedAt ] -``` - -### Get a webauthnCredential by id - -```bash -csdk webauthn-credential get --id -``` diff --git a/.agents/skills/cli-public/references/webauthn-credentials-module.md b/.agents/skills/cli-public/references/webauthn-credentials-module.md deleted file mode 100644 index b976f79ab0..0000000000 --- a/.agents/skills/cli-public/references/webauthn-credentials-module.md +++ /dev/null @@ -1,68 +0,0 @@ -# webauthnCredentialsModule - - - -CRUD operations for WebauthnCredentialsModule records via csdk CLI - -## Usage - -```bash -csdk webauthn-credentials-module list -csdk webauthn-credentials-module list --where.. --orderBy -csdk webauthn-credentials-module list --limit 10 --after -csdk webauthn-credentials-module find-first --where.. -csdk webauthn-credentials-module get --id -csdk webauthn-credentials-module create --databaseId [--schemaId ] [--privateSchemaId ] [--tableId ] [--ownerTableId ] [--tableName ] -csdk webauthn-credentials-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--tableId ] [--ownerTableId ] [--tableName ] -csdk webauthn-credentials-module delete --id -``` - -## Examples - -### List webauthnCredentialsModule records - -```bash -csdk webauthn-credentials-module list -``` - -### List webauthnCredentialsModule records with pagination - -```bash -csdk webauthn-credentials-module list --limit 10 --offset 0 -``` - -### List webauthnCredentialsModule records with cursor pagination - -```bash -csdk webauthn-credentials-module list --limit 10 --after -``` - -### Find first matching webauthnCredentialsModule - -```bash -csdk webauthn-credentials-module find-first --where.id.equalTo -``` - -### List webauthnCredentialsModule records with field selection - -```bash -csdk webauthn-credentials-module list --select id,id -``` - -### List webauthnCredentialsModule records with filtering and ordering - -```bash -csdk webauthn-credentials-module list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a webauthnCredentialsModule - -```bash -csdk webauthn-credentials-module create --databaseId [--schemaId ] [--privateSchemaId ] [--tableId ] [--ownerTableId ] [--tableName ] -``` - -### Get a webauthnCredentialsModule by id - -```bash -csdk webauthn-credentials-module get --id -``` diff --git a/.agents/skills/cli-public/references/webauthn-setting.md b/.agents/skills/cli-public/references/webauthn-setting.md deleted file mode 100644 index eefd5bcd04..0000000000 --- a/.agents/skills/cli-public/references/webauthn-setting.md +++ /dev/null @@ -1,68 +0,0 @@ -# webauthnSetting - - - -CRUD operations for WebauthnSetting records via csdk CLI - -## Usage - -```bash -csdk webauthn-setting list -csdk webauthn-setting list --where.. --orderBy -csdk webauthn-setting list --limit 10 --after -csdk webauthn-setting find-first --where.. -csdk webauthn-setting get --id -csdk webauthn-setting create --databaseId [--schemaId ] [--credentialsSchemaId ] [--sessionsSchemaId ] [--sessionSecretsSchemaId ] [--credentialsTableId ] [--sessionsTableId ] [--sessionCredentialsTableId ] [--sessionSecretsTableId ] [--userFieldId ] [--rpId ] [--rpName ] [--originAllowlist ] [--attestationType ] [--requireUserVerification ] [--residentKey ] [--challengeExpirySeconds ] -csdk webauthn-setting update --id [--databaseId ] [--schemaId ] [--credentialsSchemaId ] [--sessionsSchemaId ] [--sessionSecretsSchemaId ] [--credentialsTableId ] [--sessionsTableId ] [--sessionCredentialsTableId ] [--sessionSecretsTableId ] [--userFieldId ] [--rpId ] [--rpName ] [--originAllowlist ] [--attestationType ] [--requireUserVerification ] [--residentKey ] [--challengeExpirySeconds ] -csdk webauthn-setting delete --id -``` - -## Examples - -### List webauthnSetting records - -```bash -csdk webauthn-setting list -``` - -### List webauthnSetting records with pagination - -```bash -csdk webauthn-setting list --limit 10 --offset 0 -``` - -### List webauthnSetting records with cursor pagination - -```bash -csdk webauthn-setting list --limit 10 --after -``` - -### Find first matching webauthnSetting - -```bash -csdk webauthn-setting find-first --where.id.equalTo -``` - -### List webauthnSetting records with field selection - -```bash -csdk webauthn-setting list --select id,id -``` - -### List webauthnSetting records with filtering and ordering - -```bash -csdk webauthn-setting list --where.id.equalTo --orderBy ID_ASC -``` - -### Create a webauthnSetting - -```bash -csdk webauthn-setting create --databaseId [--schemaId ] [--credentialsSchemaId ] [--sessionsSchemaId ] [--sessionSecretsSchemaId ] [--credentialsTableId ] [--sessionsTableId ] [--sessionCredentialsTableId ] [--sessionSecretsTableId ] [--userFieldId ] [--rpId ] [--rpName ] [--originAllowlist ] [--attestationType ] [--requireUserVerification ] [--residentKey ] [--challengeExpirySeconds ] -``` - -### Get a webauthnSetting by id - -```bash -csdk webauthn-setting get --id -``` diff --git a/.agents/skills/cli-remote/SKILL.md b/.agents/skills/cli-remote/SKILL.md index 466f90a757..218296a606 100644 --- a/.agents/skills/cli-remote/SKILL.md +++ b/.agents/skills/cli-remote/SKILL.md @@ -1,13 +1,13 @@ --- name: cli-remote -description: CLI tool (csdk) for the remote API — provides CRUD commands for 3 tables and 2 custom operations +description: CLI tool (csdk) for the remote API — provides CRUD commands for 3 tables and 3 custom operations --- # cli-remote -CLI tool (csdk) for the remote API — provides CRUD commands for 3 tables and 2 custom operations +CLI tool (csdk) for the remote API — provides CRUD commands for 3 tables and 3 custom operations ## Usage @@ -59,5 +59,6 @@ See the `references/` directory for detailed per-entity API documentation: - [machine](references/machine.md) - [machine-message](references/machine-message.md) - [machine-session](references/machine-session.md) +- [current-database-id](references/current-database-id.md) - [machines-enroll](references/machines-enroll.md) - [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/cli-remote/references/current-database-id.md b/.agents/skills/cli-remote/references/current-database-id.md new file mode 100644 index 0000000000..a4414dd70e --- /dev/null +++ b/.agents/skills/cli-remote/references/current-database-id.md @@ -0,0 +1,19 @@ +# currentDatabaseId + + + +Execute the currentDatabaseId query + +## Usage + +```bash +csdk current-database-id +``` + +## Examples + +### Run currentDatabaseId + +```bash +csdk current-database-id +``` diff --git a/.agents/skills/cli-remote/references/machine-message.md b/.agents/skills/cli-remote/references/machine-message.md index 29a31e90a1..4c40ffe8c0 100644 --- a/.agents/skills/cli-remote/references/machine-message.md +++ b/.agents/skills/cli-remote/references/machine-message.md @@ -12,8 +12,8 @@ csdk machine-message list --where.. --orderBy csdk machine-message list --limit 10 --after csdk machine-message find-first --where.. csdk machine-message get --id -csdk machine-message create --actorId --kind --seq --sessionId [--content ] [--createdByPrincipal ] [--recordedAt ] -csdk machine-message update --id [--actorId ] [--content ] [--createdByPrincipal ] [--kind ] [--recordedAt ] [--seq ] [--sessionId ] +csdk machine-message create --actorId --entityId --kind --ownerId --seq --sessionId [--content ] [--createdByPrincipal ] [--recordedAt ] +csdk machine-message update --id [--actorId ] [--content ] [--createdByPrincipal ] [--entityId ] [--kind ] [--ownerId ] [--recordedAt ] [--seq ] [--sessionId ] csdk machine-message delete --id ``` @@ -58,7 +58,7 @@ csdk machine-message list --where.id.equalTo --orderBy ID_ASC ### Create a machineMessage ```bash -csdk machine-message create --actorId --kind --seq --sessionId [--content ] [--createdByPrincipal ] [--recordedAt ] +csdk machine-message create --actorId --entityId --kind --ownerId --seq --sessionId [--content ] [--createdByPrincipal ] [--recordedAt ] ``` ### Get a machineMessage by id diff --git a/.agents/skills/cli-remote/references/machine-session.md b/.agents/skills/cli-remote/references/machine-session.md index a4cc743dd0..a7f077bec4 100644 --- a/.agents/skills/cli-remote/references/machine-session.md +++ b/.agents/skills/cli-remote/references/machine-session.md @@ -12,8 +12,8 @@ csdk machine-session list --where.. --orderBy csdk machine-session list --limit 10 --after csdk machine-session find-first --where.. csdk machine-session get --id -csdk machine-session create --machineId --ownerId [--agentMode ] [--agentSessionRef ] [--args ] [--cols ] [--command ] [--createdBy ] [--createdByPrincipal ] [--cwd ] [--endedAt ] [--env ] [--exitCode ] [--interactive ] [--lastActivityAt ] [--lastSeq ] [--metadata ] [--pid ] [--runId ] [--startedAt ] [--state ] [--termRows ] [--updatedBy ] [--updatedByPrincipal ] -csdk machine-session update --id [--agentMode ] [--agentSessionRef ] [--args ] [--cols ] [--command ] [--createdBy ] [--createdByPrincipal ] [--cwd ] [--endedAt ] [--env ] [--exitCode ] [--interactive ] [--lastActivityAt ] [--lastSeq ] [--machineId ] [--metadata ] [--ownerId ] [--pid ] [--runId ] [--startedAt ] [--state ] [--termRows ] [--updatedBy ] [--updatedByPrincipal ] +csdk machine-session create --entityId --machineId --ownerId [--agentMode ] [--agentSessionRef ] [--args ] [--cols ] [--command ] [--createdBy ] [--createdByPrincipal ] [--cwd ] [--endedAt ] [--env ] [--exitCode ] [--interactive ] [--lastActivityAt ] [--lastSeq ] [--metadata ] [--pid ] [--runId ] [--startedAt ] [--state ] [--termRows ] [--updatedBy ] [--updatedByPrincipal ] +csdk machine-session update --id [--agentMode ] [--agentSessionRef ] [--args ] [--cols ] [--command ] [--createdBy ] [--createdByPrincipal ] [--cwd ] [--endedAt ] [--entityId ] [--env ] [--exitCode ] [--interactive ] [--lastActivityAt ] [--lastSeq ] [--machineId ] [--metadata ] [--ownerId ] [--pid ] [--runId ] [--startedAt ] [--state ] [--termRows ] [--updatedBy ] [--updatedByPrincipal ] csdk machine-session delete --id ``` @@ -58,7 +58,7 @@ csdk machine-session list --where.id.equalTo --orderBy ID_ASC ### Create a machineSession ```bash -csdk machine-session create --machineId --ownerId [--agentMode ] [--agentSessionRef ] [--args ] [--cols ] [--command ] [--createdBy ] [--createdByPrincipal ] [--cwd ] [--endedAt ] [--env ] [--exitCode ] [--interactive ] [--lastActivityAt ] [--lastSeq ] [--metadata ] [--pid ] [--runId ] [--startedAt ] [--state ] [--termRows ] [--updatedBy ] [--updatedByPrincipal ] +csdk machine-session create --entityId --machineId --ownerId [--agentMode ] [--agentSessionRef ] [--args ] [--cols ] [--command ] [--createdBy ] [--createdByPrincipal ] [--cwd ] [--endedAt ] [--env ] [--exitCode ] [--interactive ] [--lastActivityAt ] [--lastSeq ] [--metadata ] [--pid ] [--runId ] [--startedAt ] [--state ] [--termRows ] [--updatedBy ] [--updatedByPrincipal ] ``` ### Get a machineSession by id diff --git a/.agents/skills/cli-storage/references/file.md b/.agents/skills/cli-storage/references/file.md index 1c0a83b556..dfc7d2312c 100644 --- a/.agents/skills/cli-storage/references/file.md +++ b/.agents/skills/cli-storage/references/file.md @@ -12,8 +12,7 @@ csdk file list --where.. --orderBy csdk file list --limit 10 --after csdk file find-first --where.. csdk file get --id -csdk file create --actorId --bucketId --key --mimeType --size [--contentHash ] [--description ] [--expiryEnqueuedAt ] [--filename ] [--promotedAt ] [--status ] [--tags ] [--upload ] -csdk file update --id [--actorId ] [--bucketId ] [--contentHash ] [--description ] [--expiryEnqueuedAt ] [--filename ] [--key ] [--mimeType ] [--promotedAt ] [--size ] [--status ] [--tags ] [--upload ] +csdk file update --id [--actorId ] [--bucketId ] [--contentHash ] [--databaseId ] [--description ] [--expiryEnqueuedAt ] [--filename ] [--isPublic ] [--key ] [--mimeType ] [--promotedAt ] [--rejectionReason ] [--size ] [--status ] [--tags ] [--upload ] csdk file delete --id ``` @@ -55,12 +54,6 @@ csdk file list --select id,id csdk file list --where.id.equalTo --orderBy ID_ASC ``` -### Create a file - -```bash -csdk file create --actorId --bucketId --key --mimeType --size [--contentHash ] [--description ] [--expiryEnqueuedAt ] [--filename ] [--promotedAt ] [--status ] [--tags ] [--upload ] -``` - ### Get a file by id ```bash diff --git a/.agents/skills/cli-storage/references/platform-file.md b/.agents/skills/cli-storage/references/platform-file.md index d00baee1d4..a55f9a50ef 100644 --- a/.agents/skills/cli-storage/references/platform-file.md +++ b/.agents/skills/cli-storage/references/platform-file.md @@ -12,8 +12,7 @@ csdk platform-file list --where.. --orderBy csdk platform-file list --limit 10 --after csdk platform-file find-first --where.. csdk platform-file get --id -csdk platform-file create --actorId --bucketId --key --mimeType --size [--contentHash ] [--description ] [--expiryEnqueuedAt ] [--filename ] [--promotedAt ] [--status ] [--tags ] [--upload ] -csdk platform-file update --id [--actorId ] [--bucketId ] [--contentHash ] [--description ] [--expiryEnqueuedAt ] [--filename ] [--key ] [--mimeType ] [--promotedAt ] [--size ] [--status ] [--tags ] [--upload ] +csdk platform-file update --id [--actorId ] [--bucketId ] [--contentHash ] [--description ] [--expiryEnqueuedAt ] [--filename ] [--isPublic ] [--key ] [--mimeType ] [--promotedAt ] [--rejectionReason ] [--size ] [--status ] [--tags ] [--upload ] csdk platform-file delete --id ``` @@ -55,12 +54,6 @@ csdk platform-file list --select id,id csdk platform-file list --where.id.equalTo --orderBy ID_ASC ``` -### Create a platformFile - -```bash -csdk platform-file create --actorId --bucketId --key --mimeType --size [--contentHash ] [--description ] [--expiryEnqueuedAt ] [--filename ] [--promotedAt ] [--status ] [--tags ] [--upload ] -``` - ### Get a platformFile by id ```bash diff --git a/.agents/skills/cli-storage/references/upload-file.md b/.agents/skills/cli-storage/references/upload-file.md index a40c597d3d..41bde2c806 100644 --- a/.agents/skills/cli-storage/references/upload-file.md +++ b/.agents/skills/cli-storage/references/upload-file.md @@ -7,7 +7,7 @@ Upload a file: resolves the bucket by key, creates the file row, and returns a p ## Usage ```bash -csdk upload-file --input.bucketKey --input.contentHash --input.contentType --input.filename --input.isPublic --input.key --input.size +csdk upload-file --input.bucketKey --input.contentHash --input.contentType --input.databaseId --input.filename --input.isPublic --input.key --input.size ``` ## Examples @@ -15,5 +15,5 @@ csdk upload-file --input.bucketKey --input.contentHash --input ### Run uploadFile ```bash -csdk upload-file --input.bucketKey --input.contentHash --input.contentType --input.filename --input.isPublic --input.key --input.size +csdk upload-file --input.bucketKey --input.contentHash --input.contentType --input.databaseId --input.filename --input.isPublic --input.key --input.size ``` diff --git a/.agents/skills/cli-storage/references/upload-files.md b/.agents/skills/cli-storage/references/upload-files.md index a10316506f..5c98d1bb57 100644 --- a/.agents/skills/cli-storage/references/upload-files.md +++ b/.agents/skills/cli-storage/references/upload-files.md @@ -7,7 +7,7 @@ Upload multiple files: resolves the bucket by key, creates file rows, and return ## Usage ```bash -csdk upload-files --input.bucketKey --input.files --input.isPublic +csdk upload-files --input.bucketKey --input.databaseId --input.files --input.isPublic ``` ## Examples @@ -15,5 +15,5 @@ csdk upload-files --input.bucketKey --input.files --input.files --input.isPublic +csdk upload-files --input.bucketKey --input.databaseId --input.files --input.isPublic ``` diff --git a/.agents/skills/hooks-admin/references/app-achievement.md b/.agents/skills/hooks-admin/references/app-achievement.md deleted file mode 100644 index bd39147d83..0000000000 --- a/.agents/skills/hooks-admin/references/app-achievement.md +++ /dev/null @@ -1,34 +0,0 @@ -# appAchievement - - - -Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually - -## Usage - -```typescript -useAppAchievementsQuery({ selection: { fields: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } } }) -useAppAchievementQuery({ id: '', selection: { fields: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } } }) -useCreateAppAchievementMutation({ selection: { fields: { id: true } } }) -useUpdateAppAchievementMutation({ selection: { fields: { id: true } } }) -useDeleteAppAchievementMutation({}) -``` - -## Examples - -### List all appAchievements - -```typescript -const { data, isLoading } = useAppAchievementsQuery({ - selection: { fields: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a appAchievement - -```typescript -const { mutate } = useCreateAppAchievementMutation({ - selection: { fields: { id: true } }, -}); -mutate({ actorId: '', name: '', count: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/app-capabilities-get-by-mask.md b/.agents/skills/hooks-admin/references/app-capabilities-get-by-mask.md deleted file mode 100644 index 98a59f1eec..0000000000 --- a/.agents/skills/hooks-admin/references/app-capabilities-get-by-mask.md +++ /dev/null @@ -1,19 +0,0 @@ -# appCapabilitiesGetByMask - - - -Reads and enables pagination through a set of `AppCapability`. - -## Usage - -```typescript -useAppCapabilitiesGetByMaskQuery({ after: '', first: '', mask: '', offset: '' }) -``` - -## Examples - -### Use useAppCapabilitiesGetByMaskQuery - -```typescript -const { data, isLoading } = useAppCapabilitiesGetByMaskQuery({ after: '', first: '', mask: '', offset: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/app-capabilities-get-mask-by-names.md b/.agents/skills/hooks-admin/references/app-capabilities-get-mask-by-names.md deleted file mode 100644 index 1403980999..0000000000 --- a/.agents/skills/hooks-admin/references/app-capabilities-get-mask-by-names.md +++ /dev/null @@ -1,19 +0,0 @@ -# appCapabilitiesGetMaskByNames - - - -React Query query hook for appCapabilitiesGetMaskByNames - -## Usage - -```typescript -useAppCapabilitiesGetMaskByNamesQuery({ names: '' }) -``` - -## Examples - -### Use useAppCapabilitiesGetMaskByNamesQuery - -```typescript -const { data, isLoading } = useAppCapabilitiesGetMaskByNamesQuery({ names: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/app-capabilities-get-mask.md b/.agents/skills/hooks-admin/references/app-capabilities-get-mask.md deleted file mode 100644 index b55470cf35..0000000000 --- a/.agents/skills/hooks-admin/references/app-capabilities-get-mask.md +++ /dev/null @@ -1,19 +0,0 @@ -# appCapabilitiesGetMask - - - -React Query query hook for appCapabilitiesGetMask - -## Usage - -```typescript -useAppCapabilitiesGetMaskQuery({ ids: '' }) -``` - -## Examples - -### Use useAppCapabilitiesGetMaskQuery - -```typescript -const { data, isLoading } = useAppCapabilitiesGetMaskQuery({ ids: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/app-capabilities-get-padded-mask.md b/.agents/skills/hooks-admin/references/app-capabilities-get-padded-mask.md deleted file mode 100644 index 5efa892c58..0000000000 --- a/.agents/skills/hooks-admin/references/app-capabilities-get-padded-mask.md +++ /dev/null @@ -1,19 +0,0 @@ -# appCapabilitiesGetPaddedMask - - - -React Query query hook for appCapabilitiesGetPaddedMask - -## Usage - -```typescript -useAppCapabilitiesGetPaddedMaskQuery({ mask: '' }) -``` - -## Examples - -### Use useAppCapabilitiesGetPaddedMaskQuery - -```typescript -const { data, isLoading } = useAppCapabilitiesGetPaddedMaskQuery({ mask: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/app-capability-default.md b/.agents/skills/hooks-admin/references/app-capability-default.md deleted file mode 100644 index 381863ffdc..0000000000 --- a/.agents/skills/hooks-admin/references/app-capability-default.md +++ /dev/null @@ -1,34 +0,0 @@ -# appCapabilityDefault - - - -Stores the default capability bitmask assigned to new members upon joining - -## Usage - -```typescript -useAppCapabilityDefaultsQuery({ selection: { fields: { capabilities: true, id: true } } }) -useAppCapabilityDefaultQuery({ id: '', selection: { fields: { capabilities: true, id: true } } }) -useCreateAppCapabilityDefaultMutation({ selection: { fields: { id: true } } }) -useUpdateAppCapabilityDefaultMutation({ selection: { fields: { id: true } } }) -useDeleteAppCapabilityDefaultMutation({}) -``` - -## Examples - -### List all appCapabilityDefaults - -```typescript -const { data, isLoading } = useAppCapabilityDefaultsQuery({ - selection: { fields: { capabilities: true, id: true } }, -}); -``` - -### Create a appCapabilityDefault - -```typescript -const { mutate } = useCreateAppCapabilityDefaultMutation({ - selection: { fields: { id: true } }, -}); -mutate({ capabilities: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/app-capability.md b/.agents/skills/hooks-admin/references/app-capability.md deleted file mode 100644 index 2da00982c9..0000000000 --- a/.agents/skills/hooks-admin/references/app-capability.md +++ /dev/null @@ -1,34 +0,0 @@ -# appCapability - - - -Defines available capabilities as named bits within a bitmask, used by the RBAC system for access control - -## Usage - -```typescript -useAppCapabilitiesQuery({ selection: { fields: { bitnum: true, bitstr: true, description: true, id: true, kind: true, name: true } } }) -useAppCapabilityQuery({ id: '', selection: { fields: { bitnum: true, bitstr: true, description: true, id: true, kind: true, name: true } } }) -useCreateAppCapabilityMutation({ selection: { fields: { id: true } } }) -useUpdateAppCapabilityMutation({ selection: { fields: { id: true } } }) -useDeleteAppCapabilityMutation({}) -``` - -## Examples - -### List all appCapabilities - -```typescript -const { data, isLoading } = useAppCapabilitiesQuery({ - selection: { fields: { bitnum: true, bitstr: true, description: true, id: true, kind: true, name: true } }, -}); -``` - -### Create a appCapability - -```typescript -const { mutate } = useCreateAppCapabilityMutation({ - selection: { fields: { id: true } }, -}); -mutate({ bitnum: '', bitstr: '', description: '', kind: '', name: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/app-level-requirement.md b/.agents/skills/hooks-admin/references/app-level-requirement.md deleted file mode 100644 index 76e552bfb9..0000000000 --- a/.agents/skills/hooks-admin/references/app-level-requirement.md +++ /dev/null @@ -1,34 +0,0 @@ -# appLevelRequirement - - - -Defines the specific requirements that must be met to achieve a level - -## Usage - -```typescript -useAppLevelRequirementsQuery({ selection: { fields: { id: true, name: true, level: true, description: true, requiredCount: true, priority: true, createdAt: true, updatedAt: true } } }) -useAppLevelRequirementQuery({ id: '', selection: { fields: { id: true, name: true, level: true, description: true, requiredCount: true, priority: true, createdAt: true, updatedAt: true } } }) -useCreateAppLevelRequirementMutation({ selection: { fields: { id: true } } }) -useUpdateAppLevelRequirementMutation({ selection: { fields: { id: true } } }) -useDeleteAppLevelRequirementMutation({}) -``` - -## Examples - -### List all appLevelRequirements - -```typescript -const { data, isLoading } = useAppLevelRequirementsQuery({ - selection: { fields: { id: true, name: true, level: true, description: true, requiredCount: true, priority: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a appLevelRequirement - -```typescript -const { mutate } = useCreateAppLevelRequirementMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '', level: '', description: '', requiredCount: '', priority: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/app-level.md b/.agents/skills/hooks-admin/references/app-level.md deleted file mode 100644 index f70a03ceed..0000000000 --- a/.agents/skills/hooks-admin/references/app-level.md +++ /dev/null @@ -1,34 +0,0 @@ -# appLevel - - - -Defines available levels that users can achieve by completing requirements - -## Usage - -```typescript -useAppLevelsQuery({ selection: { fields: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true } } }) -useAppLevelQuery({ id: '', selection: { fields: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true } } }) -useCreateAppLevelMutation({ selection: { fields: { id: true } } }) -useUpdateAppLevelMutation({ selection: { fields: { id: true } } }) -useDeleteAppLevelMutation({}) -``` - -## Examples - -### List all appLevels - -```typescript -const { data, isLoading } = useAppLevelsQuery({ - selection: { fields: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a appLevel - -```typescript -const { mutate } = useCreateAppLevelMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '', description: '', image: '', ownerId: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/app-limit-cap.md b/.agents/skills/hooks-admin/references/app-limit-cap.md deleted file mode 100644 index b219f8c7a6..0000000000 --- a/.agents/skills/hooks-admin/references/app-limit-cap.md +++ /dev/null @@ -1,34 +0,0 @@ -# appLimitCap - - - -Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. - -## Usage - -```typescript -useAppLimitCapsQuery({ selection: { fields: { id: true, name: true, entityId: true, max: true } } }) -useAppLimitCapQuery({ id: '', selection: { fields: { id: true, name: true, entityId: true, max: true } } }) -useCreateAppLimitCapMutation({ selection: { fields: { id: true } } }) -useUpdateAppLimitCapMutation({ selection: { fields: { id: true } } }) -useDeleteAppLimitCapMutation({}) -``` - -## Examples - -### List all appLimitCaps - -```typescript -const { data, isLoading } = useAppLimitCapsQuery({ - selection: { fields: { id: true, name: true, entityId: true, max: true } }, -}); -``` - -### Create a appLimitCap - -```typescript -const { mutate } = useCreateAppLimitCapMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '', entityId: '', max: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/app-limit-caps-default.md b/.agents/skills/hooks-admin/references/app-limit-caps-default.md deleted file mode 100644 index 6804054bd7..0000000000 --- a/.agents/skills/hooks-admin/references/app-limit-caps-default.md +++ /dev/null @@ -1,34 +0,0 @@ -# appLimitCapsDefault - - - -Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. - -## Usage - -```typescript -useAppLimitCapsDefaultsQuery({ selection: { fields: { id: true, name: true, max: true } } }) -useAppLimitCapsDefaultQuery({ id: '', selection: { fields: { id: true, name: true, max: true } } }) -useCreateAppLimitCapsDefaultMutation({ selection: { fields: { id: true } } }) -useUpdateAppLimitCapsDefaultMutation({ selection: { fields: { id: true } } }) -useDeleteAppLimitCapsDefaultMutation({}) -``` - -## Examples - -### List all appLimitCapsDefaults - -```typescript -const { data, isLoading } = useAppLimitCapsDefaultsQuery({ - selection: { fields: { id: true, name: true, max: true } }, -}); -``` - -### Create a appLimitCapsDefault - -```typescript -const { mutate } = useCreateAppLimitCapsDefaultMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '', max: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/app-limit-credit-code-item.md b/.agents/skills/hooks-admin/references/app-limit-credit-code-item.md deleted file mode 100644 index c65b5e90eb..0000000000 --- a/.agents/skills/hooks-admin/references/app-limit-credit-code-item.md +++ /dev/null @@ -1,34 +0,0 @@ -# appLimitCreditCodeItem - - - -Items within a credit code — each row grants credits for a specific limit definition - -## Usage - -```typescript -useAppLimitCreditCodeItemsQuery({ selection: { fields: { id: true, creditCodeId: true, defaultLimitId: true, amount: true, creditType: true } } }) -useAppLimitCreditCodeItemQuery({ id: '', selection: { fields: { id: true, creditCodeId: true, defaultLimitId: true, amount: true, creditType: true } } }) -useCreateAppLimitCreditCodeItemMutation({ selection: { fields: { id: true } } }) -useUpdateAppLimitCreditCodeItemMutation({ selection: { fields: { id: true } } }) -useDeleteAppLimitCreditCodeItemMutation({}) -``` - -## Examples - -### List all appLimitCreditCodeItems - -```typescript -const { data, isLoading } = useAppLimitCreditCodeItemsQuery({ - selection: { fields: { id: true, creditCodeId: true, defaultLimitId: true, amount: true, creditType: true } }, -}); -``` - -### Create a appLimitCreditCodeItem - -```typescript -const { mutate } = useCreateAppLimitCreditCodeItemMutation({ - selection: { fields: { id: true } }, -}); -mutate({ creditCodeId: '', defaultLimitId: '', amount: '', creditType: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/app-limit-credit-code.md b/.agents/skills/hooks-admin/references/app-limit-credit-code.md deleted file mode 100644 index e2102ea5c1..0000000000 --- a/.agents/skills/hooks-admin/references/app-limit-credit-code.md +++ /dev/null @@ -1,34 +0,0 @@ -# appLimitCreditCode - - - -Redeemable credit codes managed by admins with the add_credits permission - -## Usage - -```typescript -useAppLimitCreditCodesQuery({ selection: { fields: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } } }) -useAppLimitCreditCodeQuery({ id: '', selection: { fields: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } } }) -useCreateAppLimitCreditCodeMutation({ selection: { fields: { id: true } } }) -useUpdateAppLimitCreditCodeMutation({ selection: { fields: { id: true } } }) -useDeleteAppLimitCreditCodeMutation({}) -``` - -## Examples - -### List all appLimitCreditCodes - -```typescript -const { data, isLoading } = useAppLimitCreditCodesQuery({ - selection: { fields: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }, -}); -``` - -### Create a appLimitCreditCode - -```typescript -const { mutate } = useCreateAppLimitCreditCodeMutation({ - selection: { fields: { id: true } }, -}); -mutate({ code: '', maxRedemptions: '', currentRedemptions: '', expiresAt: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/app-limit-credit-redemption.md b/.agents/skills/hooks-admin/references/app-limit-credit-redemption.md deleted file mode 100644 index 5c80eceddb..0000000000 --- a/.agents/skills/hooks-admin/references/app-limit-credit-redemption.md +++ /dev/null @@ -1,34 +0,0 @@ -# appLimitCreditRedemption - - - -Append-only ledger of code redemptions; AFTER INSERT trigger validates and cascades to limit_credits - -## Usage - -```typescript -useAppLimitCreditRedemptionsQuery({ selection: { fields: { id: true, creditCodeId: true, entityId: true } } }) -useAppLimitCreditRedemptionQuery({ id: '', selection: { fields: { id: true, creditCodeId: true, entityId: true } } }) -useCreateAppLimitCreditRedemptionMutation({ selection: { fields: { id: true } } }) -useUpdateAppLimitCreditRedemptionMutation({ selection: { fields: { id: true } } }) -useDeleteAppLimitCreditRedemptionMutation({}) -``` - -## Examples - -### List all appLimitCreditRedemptions - -```typescript -const { data, isLoading } = useAppLimitCreditRedemptionsQuery({ - selection: { fields: { id: true, creditCodeId: true, entityId: true } }, -}); -``` - -### Create a appLimitCreditRedemption - -```typescript -const { mutate } = useCreateAppLimitCreditRedemptionMutation({ - selection: { fields: { id: true } }, -}); -mutate({ creditCodeId: '', entityId: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/app-limit-credit.md b/.agents/skills/hooks-admin/references/app-limit-credit.md deleted file mode 100644 index d37eb3fc36..0000000000 --- a/.agents/skills/hooks-admin/references/app-limit-credit.md +++ /dev/null @@ -1,34 +0,0 @@ -# appLimitCredit - - - -Append-only ledger of credit grants that automatically update limit ceilings - -## Usage - -```typescript -useAppLimitCreditsQuery({ selection: { fields: { id: true, defaultLimitId: true, actorId: true, amount: true, creditType: true, reason: true } } }) -useAppLimitCreditQuery({ id: '', selection: { fields: { id: true, defaultLimitId: true, actorId: true, amount: true, creditType: true, reason: true } } }) -useCreateAppLimitCreditMutation({ selection: { fields: { id: true } } }) -useUpdateAppLimitCreditMutation({ selection: { fields: { id: true } } }) -useDeleteAppLimitCreditMutation({}) -``` - -## Examples - -### List all appLimitCredits - -```typescript -const { data, isLoading } = useAppLimitCreditsQuery({ - selection: { fields: { id: true, defaultLimitId: true, actorId: true, amount: true, creditType: true, reason: true } }, -}); -``` - -### Create a appLimitCredit - -```typescript -const { mutate } = useCreateAppLimitCreditMutation({ - selection: { fields: { id: true } }, -}); -mutate({ defaultLimitId: '', actorId: '', amount: '', creditType: '', reason: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/app-limit-default.md b/.agents/skills/hooks-admin/references/app-limit-default.md deleted file mode 100644 index da6f1b58c4..0000000000 --- a/.agents/skills/hooks-admin/references/app-limit-default.md +++ /dev/null @@ -1,34 +0,0 @@ -# appLimitDefault - - - -Default maximum values for each named limit, applied when no per-actor override exists - -## Usage - -```typescript -useAppLimitDefaultsQuery({ selection: { fields: { id: true, name: true, max: true, softMax: true } } }) -useAppLimitDefaultQuery({ id: '', selection: { fields: { id: true, name: true, max: true, softMax: true } } }) -useCreateAppLimitDefaultMutation({ selection: { fields: { id: true } } }) -useUpdateAppLimitDefaultMutation({ selection: { fields: { id: true } } }) -useDeleteAppLimitDefaultMutation({}) -``` - -## Examples - -### List all appLimitDefaults - -```typescript -const { data, isLoading } = useAppLimitDefaultsQuery({ - selection: { fields: { id: true, name: true, max: true, softMax: true } }, -}); -``` - -### Create a appLimitDefault - -```typescript -const { mutate } = useCreateAppLimitDefaultMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '', max: '', softMax: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/app-limit-event.md b/.agents/skills/hooks-admin/references/app-limit-event.md deleted file mode 100644 index e4f0d5f714..0000000000 --- a/.agents/skills/hooks-admin/references/app-limit-event.md +++ /dev/null @@ -1,34 +0,0 @@ -# appLimitEvent - - - -Append-only log of limit events for historical reporting and audit - -## Usage - -```typescript -useAppLimitEventsQuery({ selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } } }) -useAppLimitEventQuery({ id: '', selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } } }) -useCreateAppLimitEventMutation({ selection: { fields: { id: true } } }) -useUpdateAppLimitEventMutation({ selection: { fields: { id: true } } }) -useDeleteAppLimitEventMutation({}) -``` - -## Examples - -### List all appLimitEvents - -```typescript -const { data, isLoading } = useAppLimitEventsQuery({ - selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }, -}); -``` - -### Create a appLimitEvent - -```typescript -const { mutate } = useCreateAppLimitEventMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '', actorId: '', entityId: '', organizationId: '', entityType: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/app-limit-warning.md b/.agents/skills/hooks-admin/references/app-limit-warning.md deleted file mode 100644 index 4524bde668..0000000000 --- a/.agents/skills/hooks-admin/references/app-limit-warning.md +++ /dev/null @@ -1,34 +0,0 @@ -# appLimitWarning - - - -Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. - -## Usage - -```typescript -useAppLimitWarningsQuery({ selection: { fields: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } } }) -useAppLimitWarningQuery({ id: '', selection: { fields: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } } }) -useCreateAppLimitWarningMutation({ selection: { fields: { id: true } } }) -useUpdateAppLimitWarningMutation({ selection: { fields: { id: true } } }) -useDeleteAppLimitWarningMutation({}) -``` - -## Examples - -### List all appLimitWarnings - -```typescript -const { data, isLoading } = useAppLimitWarningsQuery({ - selection: { fields: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }, -}); -``` - -### Create a appLimitWarning - -```typescript -const { mutate } = useCreateAppLimitWarningMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '', warningType: '', thresholdValue: '', taskIdentifier: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/app-limit.md b/.agents/skills/hooks-admin/references/app-limit.md deleted file mode 100644 index 8bf12e1969..0000000000 --- a/.agents/skills/hooks-admin/references/app-limit.md +++ /dev/null @@ -1,34 +0,0 @@ -# appLimit - - - -Tracks per-actor usage counts against configurable maximum limits - -## Usage - -```typescript -useAppLimitsQuery({ selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, organizationId: true, entityType: true } } }) -useAppLimitQuery({ id: '', selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, organizationId: true, entityType: true } } }) -useCreateAppLimitMutation({ selection: { fields: { id: true } } }) -useUpdateAppLimitMutation({ selection: { fields: { id: true } } }) -useDeleteAppLimitMutation({}) -``` - -## Examples - -### List all appLimits - -```typescript -const { data, isLoading } = useAppLimitsQuery({ - selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, organizationId: true, entityType: true } }, -}); -``` - -### Create a appLimit - -```typescript -const { mutate } = useCreateAppLimitMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '', organizationId: '', entityType: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/app-membership-profile.md b/.agents/skills/hooks-admin/references/app-membership-profile.md deleted file mode 100644 index 01bbed9c73..0000000000 --- a/.agents/skills/hooks-admin/references/app-membership-profile.md +++ /dev/null @@ -1,34 +0,0 @@ -# appMembershipProfile - - - -Every profile a membership holds; memberships.profile_id points at one of them - -## Usage - -```typescript -useAppMembershipProfilesQuery({ selection: { fields: { actorId: true, createdAt: true, id: true, membershipId: true, profileId: true, updatedAt: true } } }) -useAppMembershipProfileQuery({ id: '', selection: { fields: { actorId: true, createdAt: true, id: true, membershipId: true, profileId: true, updatedAt: true } } }) -useCreateAppMembershipProfileMutation({ selection: { fields: { id: true } } }) -useUpdateAppMembershipProfileMutation({ selection: { fields: { id: true } } }) -useDeleteAppMembershipProfileMutation({}) -``` - -## Examples - -### List all appMembershipProfiles - -```typescript -const { data, isLoading } = useAppMembershipProfilesQuery({ - selection: { fields: { actorId: true, createdAt: true, id: true, membershipId: true, profileId: true, updatedAt: true } }, -}); -``` - -### Create a appMembershipProfile - -```typescript -const { mutate } = useCreateAppMembershipProfileMutation({ - selection: { fields: { id: true } }, -}); -mutate({ actorId: '', membershipId: '', profileId: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/app-permission-default-grant.md b/.agents/skills/hooks-admin/references/app-permission-default-grant.md deleted file mode 100644 index 19c96448dd..0000000000 --- a/.agents/skills/hooks-admin/references/app-permission-default-grant.md +++ /dev/null @@ -1,34 +0,0 @@ -# appPermissionDefaultGrant - - - -Audit log of permission additions and removals from the defaults bitmask - -## Usage - -```typescript -useAppPermissionDefaultGrantsQuery({ selection: { fields: { createdAt: true, grantorId: true, id: true, isGrant: true, permissionId: true, updatedAt: true } } }) -useAppPermissionDefaultGrantQuery({ id: '', selection: { fields: { createdAt: true, grantorId: true, id: true, isGrant: true, permissionId: true, updatedAt: true } } }) -useCreateAppPermissionDefaultGrantMutation({ selection: { fields: { id: true } } }) -useUpdateAppPermissionDefaultGrantMutation({ selection: { fields: { id: true } } }) -useDeleteAppPermissionDefaultGrantMutation({}) -``` - -## Examples - -### List all appPermissionDefaultGrants - -```typescript -const { data, isLoading } = useAppPermissionDefaultGrantsQuery({ - selection: { fields: { createdAt: true, grantorId: true, id: true, isGrant: true, permissionId: true, updatedAt: true } }, -}); -``` - -### Create a appPermissionDefaultGrant - -```typescript -const { mutate } = useCreateAppPermissionDefaultGrantMutation({ - selection: { fields: { id: true } }, -}); -mutate({ grantorId: '', isGrant: '', permissionId: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/app-permission-default-permission.md b/.agents/skills/hooks-admin/references/app-permission-default-permission.md deleted file mode 100644 index ef1cadec83..0000000000 --- a/.agents/skills/hooks-admin/references/app-permission-default-permission.md +++ /dev/null @@ -1,34 +0,0 @@ -# appPermissionDefaultPermission - - - -Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask - -## Usage - -```typescript -useAppPermissionDefaultPermissionsQuery({ selection: { fields: { createdAt: true, id: true, permissionId: true, updatedAt: true } } }) -useAppPermissionDefaultPermissionQuery({ id: '', selection: { fields: { createdAt: true, id: true, permissionId: true, updatedAt: true } } }) -useCreateAppPermissionDefaultPermissionMutation({ selection: { fields: { id: true } } }) -useUpdateAppPermissionDefaultPermissionMutation({ selection: { fields: { id: true } } }) -useDeleteAppPermissionDefaultPermissionMutation({}) -``` - -## Examples - -### List all appPermissionDefaultPermissions - -```typescript -const { data, isLoading } = useAppPermissionDefaultPermissionsQuery({ - selection: { fields: { createdAt: true, id: true, permissionId: true, updatedAt: true } }, -}); -``` - -### Create a appPermissionDefaultPermission - -```typescript -const { mutate } = useCreateAppPermissionDefaultPermissionMutation({ - selection: { fields: { id: true } }, -}); -mutate({ permissionId: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/app-permission-default.md b/.agents/skills/hooks-admin/references/app-permission-default.md deleted file mode 100644 index 7b0c52a9e5..0000000000 --- a/.agents/skills/hooks-admin/references/app-permission-default.md +++ /dev/null @@ -1,34 +0,0 @@ -# appPermissionDefault - - - -Stores the default permission bitmask assigned to new members upon joining - -## Usage - -```typescript -useAppPermissionDefaultsQuery({ selection: { fields: { id: true, permissions: true } } }) -useAppPermissionDefaultQuery({ id: '', selection: { fields: { id: true, permissions: true } } }) -useCreateAppPermissionDefaultMutation({ selection: { fields: { id: true } } }) -useUpdateAppPermissionDefaultMutation({ selection: { fields: { id: true } } }) -useDeleteAppPermissionDefaultMutation({}) -``` - -## Examples - -### List all appPermissionDefaults - -```typescript -const { data, isLoading } = useAppPermissionDefaultsQuery({ - selection: { fields: { id: true, permissions: true } }, -}); -``` - -### Create a appPermissionDefault - -```typescript -const { mutate } = useCreateAppPermissionDefaultMutation({ - selection: { fields: { id: true } }, -}); -mutate({ permissions: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/app-permission.md b/.agents/skills/hooks-admin/references/app-permission.md deleted file mode 100644 index 5d07cef9a6..0000000000 --- a/.agents/skills/hooks-admin/references/app-permission.md +++ /dev/null @@ -1,34 +0,0 @@ -# appPermission - - - -Defines available permissions as named bits within a bitmask, used by the RBAC system for access control - -## Usage - -```typescript -useAppPermissionsQuery({ selection: { fields: { bitnum: true, bitstr: true, description: true, id: true, name: true } } }) -useAppPermissionQuery({ id: '', selection: { fields: { bitnum: true, bitstr: true, description: true, id: true, name: true } } }) -useCreateAppPermissionMutation({ selection: { fields: { id: true } } }) -useUpdateAppPermissionMutation({ selection: { fields: { id: true } } }) -useDeleteAppPermissionMutation({}) -``` - -## Examples - -### List all appPermissions - -```typescript -const { data, isLoading } = useAppPermissionsQuery({ - selection: { fields: { bitnum: true, bitstr: true, description: true, id: true, name: true } }, -}); -``` - -### Create a appPermission - -```typescript -const { mutate } = useCreateAppPermissionMutation({ - selection: { fields: { id: true } }, -}); -mutate({ bitnum: '', bitstr: '', description: '', name: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/app-permissions-get-by-mask.md b/.agents/skills/hooks-admin/references/app-permissions-get-by-mask.md deleted file mode 100644 index 4947ce3fa6..0000000000 --- a/.agents/skills/hooks-admin/references/app-permissions-get-by-mask.md +++ /dev/null @@ -1,19 +0,0 @@ -# appPermissionsGetByMask - - - -Reads and enables pagination through a set of `AppPermission`. - -## Usage - -```typescript -useAppPermissionsGetByMaskQuery({ after: '', first: '', mask: '', offset: '' }) -``` - -## Examples - -### Use useAppPermissionsGetByMaskQuery - -```typescript -const { data, isLoading } = useAppPermissionsGetByMaskQuery({ after: '', first: '', mask: '', offset: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/app-permissions-get-mask-by-names.md b/.agents/skills/hooks-admin/references/app-permissions-get-mask-by-names.md deleted file mode 100644 index 625a5a6cf5..0000000000 --- a/.agents/skills/hooks-admin/references/app-permissions-get-mask-by-names.md +++ /dev/null @@ -1,19 +0,0 @@ -# appPermissionsGetMaskByNames - - - -React Query query hook for appPermissionsGetMaskByNames - -## Usage - -```typescript -useAppPermissionsGetMaskByNamesQuery({ names: '' }) -``` - -## Examples - -### Use useAppPermissionsGetMaskByNamesQuery - -```typescript -const { data, isLoading } = useAppPermissionsGetMaskByNamesQuery({ names: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/app-permissions-get-mask.md b/.agents/skills/hooks-admin/references/app-permissions-get-mask.md deleted file mode 100644 index ea013a76d0..0000000000 --- a/.agents/skills/hooks-admin/references/app-permissions-get-mask.md +++ /dev/null @@ -1,19 +0,0 @@ -# appPermissionsGetMask - - - -React Query query hook for appPermissionsGetMask - -## Usage - -```typescript -useAppPermissionsGetMaskQuery({ ids: '' }) -``` - -## Examples - -### Use useAppPermissionsGetMaskQuery - -```typescript -const { data, isLoading } = useAppPermissionsGetMaskQuery({ ids: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/app-permissions-get-padded-mask.md b/.agents/skills/hooks-admin/references/app-permissions-get-padded-mask.md deleted file mode 100644 index 5905a73147..0000000000 --- a/.agents/skills/hooks-admin/references/app-permissions-get-padded-mask.md +++ /dev/null @@ -1,19 +0,0 @@ -# appPermissionsGetPaddedMask - - - -React Query query hook for appPermissionsGetPaddedMask - -## Usage - -```typescript -useAppPermissionsGetPaddedMaskQuery({ mask: '' }) -``` - -## Examples - -### Use useAppPermissionsGetPaddedMaskQuery - -```typescript -const { data, isLoading } = useAppPermissionsGetPaddedMaskQuery({ mask: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/app-profile-capability.md b/.agents/skills/hooks-admin/references/app-profile-capability.md deleted file mode 100644 index 0e220a1d21..0000000000 --- a/.agents/skills/hooks-admin/references/app-profile-capability.md +++ /dev/null @@ -1,34 +0,0 @@ -# appProfileCapability - - - -Join table linking profiles to individual capabilities they include - -## Usage - -```typescript -useAppProfileCapabilitiesQuery({ selection: { fields: { capabilityId: true, createdAt: true, id: true, profileId: true, updatedAt: true } } }) -useAppProfileCapabilityQuery({ id: '', selection: { fields: { capabilityId: true, createdAt: true, id: true, profileId: true, updatedAt: true } } }) -useCreateAppProfileCapabilityMutation({ selection: { fields: { id: true } } }) -useUpdateAppProfileCapabilityMutation({ selection: { fields: { id: true } } }) -useDeleteAppProfileCapabilityMutation({}) -``` - -## Examples - -### List all appProfileCapabilities - -```typescript -const { data, isLoading } = useAppProfileCapabilitiesQuery({ - selection: { fields: { capabilityId: true, createdAt: true, id: true, profileId: true, updatedAt: true } }, -}); -``` - -### Create a appProfileCapability - -```typescript -const { mutate } = useCreateAppProfileCapabilityMutation({ - selection: { fields: { id: true } }, -}); -mutate({ capabilityId: '', profileId: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/app-profile-definition-grant.md b/.agents/skills/hooks-admin/references/app-profile-definition-grant.md deleted file mode 100644 index 9de737fe79..0000000000 --- a/.agents/skills/hooks-admin/references/app-profile-definition-grant.md +++ /dev/null @@ -1,34 +0,0 @@ -# appProfileDefinitionGrant - - - -Audit log of capability additions and removals from profile definitions - -## Usage - -```typescript -useAppProfileDefinitionGrantsQuery({ selection: { fields: { capabilityId: true, createdAt: true, grantorId: true, id: true, isGrant: true, profileId: true, updatedAt: true } } }) -useAppProfileDefinitionGrantQuery({ id: '', selection: { fields: { capabilityId: true, createdAt: true, grantorId: true, id: true, isGrant: true, profileId: true, updatedAt: true } } }) -useCreateAppProfileDefinitionGrantMutation({ selection: { fields: { id: true } } }) -useUpdateAppProfileDefinitionGrantMutation({ selection: { fields: { id: true } } }) -useDeleteAppProfileDefinitionGrantMutation({}) -``` - -## Examples - -### List all appProfileDefinitionGrants - -```typescript -const { data, isLoading } = useAppProfileDefinitionGrantsQuery({ - selection: { fields: { capabilityId: true, createdAt: true, grantorId: true, id: true, isGrant: true, profileId: true, updatedAt: true } }, -}); -``` - -### Create a appProfileDefinitionGrant - -```typescript -const { mutate } = useCreateAppProfileDefinitionGrantMutation({ - selection: { fields: { id: true } }, -}); -mutate({ capabilityId: '', grantorId: '', isGrant: '', profileId: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/app-profile-grant.md b/.agents/skills/hooks-admin/references/app-profile-grant.md deleted file mode 100644 index e07f61ac47..0000000000 --- a/.agents/skills/hooks-admin/references/app-profile-grant.md +++ /dev/null @@ -1,34 +0,0 @@ -# appProfileGrant - - - -Audit log of profile assignments and revocations for members - -## Usage - -```typescript -useAppProfileGrantsQuery({ selection: { fields: { createdAt: true, grantorId: true, id: true, isGrant: true, membershipId: true, profileId: true, updatedAt: true } } }) -useAppProfileGrantQuery({ id: '', selection: { fields: { createdAt: true, grantorId: true, id: true, isGrant: true, membershipId: true, profileId: true, updatedAt: true } } }) -useCreateAppProfileGrantMutation({ selection: { fields: { id: true } } }) -useUpdateAppProfileGrantMutation({ selection: { fields: { id: true } } }) -useDeleteAppProfileGrantMutation({}) -``` - -## Examples - -### List all appProfileGrants - -```typescript -const { data, isLoading } = useAppProfileGrantsQuery({ - selection: { fields: { createdAt: true, grantorId: true, id: true, isGrant: true, membershipId: true, profileId: true, updatedAt: true } }, -}); -``` - -### Create a appProfileGrant - -```typescript -const { mutate } = useCreateAppProfileGrantMutation({ - selection: { fields: { id: true } }, -}); -mutate({ grantorId: '', isGrant: '', membershipId: '', profileId: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/app-profile-template.md b/.agents/skills/hooks-admin/references/app-profile-template.md deleted file mode 100644 index 3342902da0..0000000000 --- a/.agents/skills/hooks-admin/references/app-profile-template.md +++ /dev/null @@ -1,34 +0,0 @@ -# appProfileTemplate - - - -Template profiles that are automatically seeded into new entities when created - -## Usage - -```typescript -useAppProfileTemplatesQuery({ selection: { fields: { capabilities: true, createdAt: true, description: true, id: true, isDefault: true, name: true, slug: true, updatedAt: true } } }) -useAppProfileTemplateQuery({ id: '', selection: { fields: { capabilities: true, createdAt: true, description: true, id: true, isDefault: true, name: true, slug: true, updatedAt: true } } }) -useCreateAppProfileTemplateMutation({ selection: { fields: { id: true } } }) -useUpdateAppProfileTemplateMutation({ selection: { fields: { id: true } } }) -useDeleteAppProfileTemplateMutation({}) -``` - -## Examples - -### List all appProfileTemplates - -```typescript -const { data, isLoading } = useAppProfileTemplatesQuery({ - selection: { fields: { capabilities: true, createdAt: true, description: true, id: true, isDefault: true, name: true, slug: true, updatedAt: true } }, -}); -``` - -### Create a appProfileTemplate - -```typescript -const { mutate } = useCreateAppProfileTemplateMutation({ - selection: { fields: { id: true } }, -}); -mutate({ capabilities: '', description: '', isDefault: '', name: '', slug: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/app-profile.md b/.agents/skills/hooks-admin/references/app-profile.md deleted file mode 100644 index 8bb507b5f2..0000000000 --- a/.agents/skills/hooks-admin/references/app-profile.md +++ /dev/null @@ -1,34 +0,0 @@ -# appProfile - - - -Named capability bundles (roles) that group multiple capabilities into reusable profiles - -## Usage - -```typescript -useAppProfilesQuery({ selection: { fields: { capabilities: true, createdAt: true, description: true, id: true, isDefault: true, isSystem: true, name: true, slug: true, updatedAt: true } } }) -useAppProfileQuery({ id: '', selection: { fields: { capabilities: true, createdAt: true, description: true, id: true, isDefault: true, isSystem: true, name: true, slug: true, updatedAt: true } } }) -useCreateAppProfileMutation({ selection: { fields: { id: true } } }) -useUpdateAppProfileMutation({ selection: { fields: { id: true } } }) -useDeleteAppProfileMutation({}) -``` - -## Examples - -### List all appProfiles - -```typescript -const { data, isLoading } = useAppProfilesQuery({ - selection: { fields: { capabilities: true, createdAt: true, description: true, id: true, isDefault: true, isSystem: true, name: true, slug: true, updatedAt: true } }, -}); -``` - -### Create a appProfile - -```typescript -const { mutate } = useCreateAppProfileMutation({ - selection: { fields: { id: true } }, -}); -mutate({ capabilities: '', description: '', isDefault: '', isSystem: '', name: '', slug: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/app-step.md b/.agents/skills/hooks-admin/references/app-step.md deleted file mode 100644 index 93fdb6fbf2..0000000000 --- a/.agents/skills/hooks-admin/references/app-step.md +++ /dev/null @@ -1,34 +0,0 @@ -# appStep - - - -Log of individual user actions toward level requirements; every single step ever taken is recorded here - -## Usage - -```typescript -useAppStepsQuery({ selection: { fields: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } } }) -useAppStepQuery({ id: '', selection: { fields: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } } }) -useCreateAppStepMutation({ selection: { fields: { id: true } } }) -useUpdateAppStepMutation({ selection: { fields: { id: true } } }) -useDeleteAppStepMutation({}) -``` - -## Examples - -### List all appSteps - -```typescript -const { data, isLoading } = useAppStepsQuery({ - selection: { fields: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a appStep - -```typescript -const { mutate } = useCreateAppStepMutation({ - selection: { fields: { id: true } }, -}); -mutate({ actorId: '', name: '', count: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/claimed-invite.md b/.agents/skills/hooks-admin/references/claimed-invite.md deleted file mode 100644 index 3fb4dc3733..0000000000 --- a/.agents/skills/hooks-admin/references/claimed-invite.md +++ /dev/null @@ -1,34 +0,0 @@ -# claimedInvite - - - -Records of successfully claimed invitations, linking senders to receivers - -## Usage - -```typescript -useClaimedInvitesQuery({ selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } } }) -useClaimedInviteQuery({ id: '', selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } } }) -useCreateClaimedInviteMutation({ selection: { fields: { id: true } } }) -useUpdateClaimedInviteMutation({ selection: { fields: { id: true } } }) -useDeleteClaimedInviteMutation({}) -``` - -## Examples - -### List all claimedInvites - -```typescript -const { data, isLoading } = useClaimedInvitesQuery({ - selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a claimedInvite - -```typescript -const { mutate } = useCreateClaimedInviteMutation({ - selection: { fields: { id: true } }, -}); -mutate({ data: '', senderId: '', receiverId: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/confirm-upload.md b/.agents/skills/hooks-admin/references/confirm-upload.md deleted file mode 100644 index 774bdf12e2..0000000000 --- a/.agents/skills/hooks-admin/references/confirm-upload.md +++ /dev/null @@ -1,22 +0,0 @@ -# confirmUpload - - - -Confirm that a file has been uploaded to S3. -Verifies the object exists in S3, checks content-type, -and transitions the file status from 'pending' to 'ready'. - -## Usage - -```typescript -const { mutate } = useConfirmUploadMutation(); mutate({ input: { fileId: '' } }); -``` - -## Examples - -### Use useConfirmUploadMutation - -```typescript -const { mutate, isLoading } = useConfirmUploadMutation(); -mutate({ input: { fileId: '' } }); -``` diff --git a/.agents/skills/hooks-admin/references/invite.md b/.agents/skills/hooks-admin/references/invite.md deleted file mode 100644 index 4348b90941..0000000000 --- a/.agents/skills/hooks-admin/references/invite.md +++ /dev/null @@ -1,34 +0,0 @@ -# invite - - - -Invitation records sent to prospective members via email, with token-based redemption and expiration - -## Usage - -```typescript -useInvitesQuery({ selection: { fields: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true } } }) -useInviteQuery({ id: '', selection: { fields: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true } } }) -useCreateInviteMutation({ selection: { fields: { id: true } } }) -useUpdateInviteMutation({ selection: { fields: { id: true } } }) -useDeleteInviteMutation({}) -``` - -## Examples - -### List all invites - -```typescript -const { data, isLoading } = useInvitesQuery({ - selection: { fields: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a invite - -```typescript -const { mutate } = useCreateInviteMutation({ - selection: { fields: { id: true } }, -}); -mutate({ email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/my-pending-app-invites-record.md b/.agents/skills/hooks-admin/references/my-pending-app-invites-record.md index fa616cccf9..ffc196a22b 100644 --- a/.agents/skills/hooks-admin/references/my-pending-app-invites-record.md +++ b/.agents/skills/hooks-admin/references/my-pending-app-invites-record.md @@ -9,7 +9,6 @@ React Query hooks for MyPendingAppInvitesRecord data operations ```typescript useMyPendingAppInvitesQuery({ selection: { fields: { channel: true, createdAt: true, expiresAt: true, id: true, senderId: true } } }) useMyPendingAppInvitesRecordQuery({ id: '', selection: { fields: { channel: true, createdAt: true, expiresAt: true, id: true, senderId: true } } }) -useCreateMyPendingAppInvitesRecordMutation({ selection: { fields: { id: true } } }) useUpdateMyPendingAppInvitesRecordMutation({ selection: { fields: { id: true } } }) useDeleteMyPendingAppInvitesRecordMutation({}) ``` @@ -23,12 +22,3 @@ const { data, isLoading } = useMyPendingAppInvitesQuery({ selection: { fields: { channel: true, createdAt: true, expiresAt: true, id: true, senderId: true } }, }); ``` - -### Create a myPendingAppInvitesRecord - -```typescript -const { mutate } = useCreateMyPendingAppInvitesRecordMutation({ - selection: { fields: { id: true } }, -}); -mutate({ channel: '', expiresAt: '', senderId: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/my-pending-org-invites-record.md b/.agents/skills/hooks-admin/references/my-pending-org-invites-record.md index 5c04330cbb..8d62003322 100644 --- a/.agents/skills/hooks-admin/references/my-pending-org-invites-record.md +++ b/.agents/skills/hooks-admin/references/my-pending-org-invites-record.md @@ -9,7 +9,6 @@ React Query hooks for MyPendingOrgInvitesRecord data operations ```typescript useMyPendingOrgInvitesQuery({ selection: { fields: { channel: true, createdAt: true, entityId: true, expiresAt: true, id: true, senderId: true } } }) useMyPendingOrgInvitesRecordQuery({ id: '', selection: { fields: { channel: true, createdAt: true, entityId: true, expiresAt: true, id: true, senderId: true } } }) -useCreateMyPendingOrgInvitesRecordMutation({ selection: { fields: { id: true } } }) useUpdateMyPendingOrgInvitesRecordMutation({ selection: { fields: { id: true } } }) useDeleteMyPendingOrgInvitesRecordMutation({}) ``` @@ -23,12 +22,3 @@ const { data, isLoading } = useMyPendingOrgInvitesQuery({ selection: { fields: { channel: true, createdAt: true, entityId: true, expiresAt: true, id: true, senderId: true } }, }); ``` - -### Create a myPendingOrgInvitesRecord - -```typescript -const { mutate } = useCreateMyPendingOrgInvitesRecordMutation({ - selection: { fields: { id: true } }, -}); -mutate({ channel: '', entityId: '', expiresAt: '', senderId: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/org-capabilities-get-by-mask.md b/.agents/skills/hooks-admin/references/org-capabilities-get-by-mask.md deleted file mode 100644 index a3d0a06b4d..0000000000 --- a/.agents/skills/hooks-admin/references/org-capabilities-get-by-mask.md +++ /dev/null @@ -1,19 +0,0 @@ -# orgCapabilitiesGetByMask - - - -Reads and enables pagination through a set of `OrgCapability`. - -## Usage - -```typescript -useOrgCapabilitiesGetByMaskQuery({ after: '', first: '', mask: '', offset: '' }) -``` - -## Examples - -### Use useOrgCapabilitiesGetByMaskQuery - -```typescript -const { data, isLoading } = useOrgCapabilitiesGetByMaskQuery({ after: '', first: '', mask: '', offset: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/org-capabilities-get-mask-by-names.md b/.agents/skills/hooks-admin/references/org-capabilities-get-mask-by-names.md deleted file mode 100644 index df79843c4a..0000000000 --- a/.agents/skills/hooks-admin/references/org-capabilities-get-mask-by-names.md +++ /dev/null @@ -1,19 +0,0 @@ -# orgCapabilitiesGetMaskByNames - - - -React Query query hook for orgCapabilitiesGetMaskByNames - -## Usage - -```typescript -useOrgCapabilitiesGetMaskByNamesQuery({ names: '' }) -``` - -## Examples - -### Use useOrgCapabilitiesGetMaskByNamesQuery - -```typescript -const { data, isLoading } = useOrgCapabilitiesGetMaskByNamesQuery({ names: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/org-capabilities-get-mask.md b/.agents/skills/hooks-admin/references/org-capabilities-get-mask.md deleted file mode 100644 index e4c2d30c2c..0000000000 --- a/.agents/skills/hooks-admin/references/org-capabilities-get-mask.md +++ /dev/null @@ -1,19 +0,0 @@ -# orgCapabilitiesGetMask - - - -React Query query hook for orgCapabilitiesGetMask - -## Usage - -```typescript -useOrgCapabilitiesGetMaskQuery({ ids: '' }) -``` - -## Examples - -### Use useOrgCapabilitiesGetMaskQuery - -```typescript -const { data, isLoading } = useOrgCapabilitiesGetMaskQuery({ ids: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/org-capabilities-get-padded-mask.md b/.agents/skills/hooks-admin/references/org-capabilities-get-padded-mask.md deleted file mode 100644 index ab652acf9b..0000000000 --- a/.agents/skills/hooks-admin/references/org-capabilities-get-padded-mask.md +++ /dev/null @@ -1,19 +0,0 @@ -# orgCapabilitiesGetPaddedMask - - - -React Query query hook for orgCapabilitiesGetPaddedMask - -## Usage - -```typescript -useOrgCapabilitiesGetPaddedMaskQuery({ mask: '' }) -``` - -## Examples - -### Use useOrgCapabilitiesGetPaddedMaskQuery - -```typescript -const { data, isLoading } = useOrgCapabilitiesGetPaddedMaskQuery({ mask: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/org-capability-default.md b/.agents/skills/hooks-admin/references/org-capability-default.md deleted file mode 100644 index de066decb7..0000000000 --- a/.agents/skills/hooks-admin/references/org-capability-default.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgCapabilityDefault - - - -Stores the default capability bitmask assigned to new members upon joining - -## Usage - -```typescript -useOrgCapabilityDefaultsQuery({ selection: { fields: { capabilities: true, entityId: true, id: true } } }) -useOrgCapabilityDefaultQuery({ id: '', selection: { fields: { capabilities: true, entityId: true, id: true } } }) -useCreateOrgCapabilityDefaultMutation({ selection: { fields: { id: true } } }) -useUpdateOrgCapabilityDefaultMutation({ selection: { fields: { id: true } } }) -useDeleteOrgCapabilityDefaultMutation({}) -``` - -## Examples - -### List all orgCapabilityDefaults - -```typescript -const { data, isLoading } = useOrgCapabilityDefaultsQuery({ - selection: { fields: { capabilities: true, entityId: true, id: true } }, -}); -``` - -### Create a orgCapabilityDefault - -```typescript -const { mutate } = useCreateOrgCapabilityDefaultMutation({ - selection: { fields: { id: true } }, -}); -mutate({ capabilities: '', entityId: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/org-capability.md b/.agents/skills/hooks-admin/references/org-capability.md deleted file mode 100644 index 18ee889755..0000000000 --- a/.agents/skills/hooks-admin/references/org-capability.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgCapability - - - -Defines available capabilities as named bits within a bitmask, used by the RBAC system for access control - -## Usage - -```typescript -useOrgCapabilitiesQuery({ selection: { fields: { bitnum: true, bitstr: true, description: true, id: true, kind: true, name: true } } }) -useOrgCapabilityQuery({ id: '', selection: { fields: { bitnum: true, bitstr: true, description: true, id: true, kind: true, name: true } } }) -useCreateOrgCapabilityMutation({ selection: { fields: { id: true } } }) -useUpdateOrgCapabilityMutation({ selection: { fields: { id: true } } }) -useDeleteOrgCapabilityMutation({}) -``` - -## Examples - -### List all orgCapabilities - -```typescript -const { data, isLoading } = useOrgCapabilitiesQuery({ - selection: { fields: { bitnum: true, bitstr: true, description: true, id: true, kind: true, name: true } }, -}); -``` - -### Create a orgCapability - -```typescript -const { mutate } = useCreateOrgCapabilityMutation({ - selection: { fields: { id: true } }, -}); -mutate({ bitnum: '', bitstr: '', description: '', kind: '', name: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/org-get-managers-record.md b/.agents/skills/hooks-admin/references/org-get-managers-record.md index 5dfe8a96ce..4553bca135 100644 --- a/.agents/skills/hooks-admin/references/org-get-managers-record.md +++ b/.agents/skills/hooks-admin/references/org-get-managers-record.md @@ -8,7 +8,6 @@ React Query hooks for OrgGetManagersRecord data operations ```typescript useOrgGetManagersQuery({ selection: { fields: { depth: true, userId: true } } }) -useCreateOrgGetManagersRecordMutation({ selection: { fields: { id: true } } }) ``` ## Examples @@ -20,12 +19,3 @@ const { data, isLoading } = useOrgGetManagersQuery({ selection: { fields: { depth: true, userId: true } }, }); ``` - -### Create a orgGetManagersRecord - -```typescript -const { mutate } = useCreateOrgGetManagersRecordMutation({ - selection: { fields: { id: true } }, -}); -mutate({ depth: '', userId: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/org-get-subordinates-record.md b/.agents/skills/hooks-admin/references/org-get-subordinates-record.md index 2fab2927f6..1b0bed475b 100644 --- a/.agents/skills/hooks-admin/references/org-get-subordinates-record.md +++ b/.agents/skills/hooks-admin/references/org-get-subordinates-record.md @@ -8,7 +8,6 @@ React Query hooks for OrgGetSubordinatesRecord data operations ```typescript useOrgGetSubordinatesQuery({ selection: { fields: { depth: true, userId: true } } }) -useCreateOrgGetSubordinatesRecordMutation({ selection: { fields: { id: true } } }) ``` ## Examples @@ -20,12 +19,3 @@ const { data, isLoading } = useOrgGetSubordinatesQuery({ selection: { fields: { depth: true, userId: true } }, }); ``` - -### Create a orgGetSubordinatesRecord - -```typescript -const { mutate } = useCreateOrgGetSubordinatesRecordMutation({ - selection: { fields: { id: true } }, -}); -mutate({ depth: '', userId: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/org-limit-aggregate.md b/.agents/skills/hooks-admin/references/org-limit-aggregate.md deleted file mode 100644 index b6393046ff..0000000000 --- a/.agents/skills/hooks-admin/references/org-limit-aggregate.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgLimitAggregate - - - -Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) - -## Usage - -```typescript -useOrgLimitAggregatesQuery({ selection: { fields: { id: true, name: true, entityId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, reserved: true, organizationId: true, entityType: true } } }) -useOrgLimitAggregateQuery({ id: '', selection: { fields: { id: true, name: true, entityId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, reserved: true, organizationId: true, entityType: true } } }) -useCreateOrgLimitAggregateMutation({ selection: { fields: { id: true } } }) -useUpdateOrgLimitAggregateMutation({ selection: { fields: { id: true } } }) -useDeleteOrgLimitAggregateMutation({}) -``` - -## Examples - -### List all orgLimitAggregates - -```typescript -const { data, isLoading } = useOrgLimitAggregatesQuery({ - selection: { fields: { id: true, name: true, entityId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, reserved: true, organizationId: true, entityType: true } }, -}); -``` - -### Create a orgLimitAggregate - -```typescript -const { mutate } = useCreateOrgLimitAggregateMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '', entityId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '', reserved: '', organizationId: '', entityType: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/org-limit-cap.md b/.agents/skills/hooks-admin/references/org-limit-cap.md deleted file mode 100644 index 8ab258d56c..0000000000 --- a/.agents/skills/hooks-admin/references/org-limit-cap.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgLimitCap - - - -Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. - -## Usage - -```typescript -useOrgLimitCapsQuery({ selection: { fields: { id: true, name: true, entityId: true, max: true } } }) -useOrgLimitCapQuery({ id: '', selection: { fields: { id: true, name: true, entityId: true, max: true } } }) -useCreateOrgLimitCapMutation({ selection: { fields: { id: true } } }) -useUpdateOrgLimitCapMutation({ selection: { fields: { id: true } } }) -useDeleteOrgLimitCapMutation({}) -``` - -## Examples - -### List all orgLimitCaps - -```typescript -const { data, isLoading } = useOrgLimitCapsQuery({ - selection: { fields: { id: true, name: true, entityId: true, max: true } }, -}); -``` - -### Create a orgLimitCap - -```typescript -const { mutate } = useCreateOrgLimitCapMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '', entityId: '', max: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/org-limit-caps-default.md b/.agents/skills/hooks-admin/references/org-limit-caps-default.md deleted file mode 100644 index 7c0a14b6da..0000000000 --- a/.agents/skills/hooks-admin/references/org-limit-caps-default.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgLimitCapsDefault - - - -Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. - -## Usage - -```typescript -useOrgLimitCapsDefaultsQuery({ selection: { fields: { id: true, name: true, max: true } } }) -useOrgLimitCapsDefaultQuery({ id: '', selection: { fields: { id: true, name: true, max: true } } }) -useCreateOrgLimitCapsDefaultMutation({ selection: { fields: { id: true } } }) -useUpdateOrgLimitCapsDefaultMutation({ selection: { fields: { id: true } } }) -useDeleteOrgLimitCapsDefaultMutation({}) -``` - -## Examples - -### List all orgLimitCapsDefaults - -```typescript -const { data, isLoading } = useOrgLimitCapsDefaultsQuery({ - selection: { fields: { id: true, name: true, max: true } }, -}); -``` - -### Create a orgLimitCapsDefault - -```typescript -const { mutate } = useCreateOrgLimitCapsDefaultMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '', max: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/org-limit-credit.md b/.agents/skills/hooks-admin/references/org-limit-credit.md deleted file mode 100644 index a23f6f2c43..0000000000 --- a/.agents/skills/hooks-admin/references/org-limit-credit.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgLimitCredit - - - -Append-only ledger of credit grants that automatically update limit ceilings - -## Usage - -```typescript -useOrgLimitCreditsQuery({ selection: { fields: { id: true, defaultLimitId: true, actorId: true, entityId: true, amount: true, creditType: true, reason: true } } }) -useOrgLimitCreditQuery({ id: '', selection: { fields: { id: true, defaultLimitId: true, actorId: true, entityId: true, amount: true, creditType: true, reason: true } } }) -useCreateOrgLimitCreditMutation({ selection: { fields: { id: true } } }) -useUpdateOrgLimitCreditMutation({ selection: { fields: { id: true } } }) -useDeleteOrgLimitCreditMutation({}) -``` - -## Examples - -### List all orgLimitCredits - -```typescript -const { data, isLoading } = useOrgLimitCreditsQuery({ - selection: { fields: { id: true, defaultLimitId: true, actorId: true, entityId: true, amount: true, creditType: true, reason: true } }, -}); -``` - -### Create a orgLimitCredit - -```typescript -const { mutate } = useCreateOrgLimitCreditMutation({ - selection: { fields: { id: true } }, -}); -mutate({ defaultLimitId: '', actorId: '', entityId: '', amount: '', creditType: '', reason: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/org-limit-default.md b/.agents/skills/hooks-admin/references/org-limit-default.md deleted file mode 100644 index 343480af82..0000000000 --- a/.agents/skills/hooks-admin/references/org-limit-default.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgLimitDefault - - - -Default maximum values for each named limit, applied when no per-actor override exists - -## Usage - -```typescript -useOrgLimitDefaultsQuery({ selection: { fields: { id: true, name: true, max: true, softMax: true } } }) -useOrgLimitDefaultQuery({ id: '', selection: { fields: { id: true, name: true, max: true, softMax: true } } }) -useCreateOrgLimitDefaultMutation({ selection: { fields: { id: true } } }) -useUpdateOrgLimitDefaultMutation({ selection: { fields: { id: true } } }) -useDeleteOrgLimitDefaultMutation({}) -``` - -## Examples - -### List all orgLimitDefaults - -```typescript -const { data, isLoading } = useOrgLimitDefaultsQuery({ - selection: { fields: { id: true, name: true, max: true, softMax: true } }, -}); -``` - -### Create a orgLimitDefault - -```typescript -const { mutate } = useCreateOrgLimitDefaultMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '', max: '', softMax: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/org-limit-event.md b/.agents/skills/hooks-admin/references/org-limit-event.md deleted file mode 100644 index 2ac2bb1bd4..0000000000 --- a/.agents/skills/hooks-admin/references/org-limit-event.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgLimitEvent - - - -Append-only log of limit events for historical reporting and audit - -## Usage - -```typescript -useOrgLimitEventsQuery({ selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } } }) -useOrgLimitEventQuery({ id: '', selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } } }) -useCreateOrgLimitEventMutation({ selection: { fields: { id: true } } }) -useUpdateOrgLimitEventMutation({ selection: { fields: { id: true } } }) -useDeleteOrgLimitEventMutation({}) -``` - -## Examples - -### List all orgLimitEvents - -```typescript -const { data, isLoading } = useOrgLimitEventsQuery({ - selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }, -}); -``` - -### Create a orgLimitEvent - -```typescript -const { mutate } = useCreateOrgLimitEventMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '', actorId: '', entityId: '', organizationId: '', entityType: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/org-limit-warning.md b/.agents/skills/hooks-admin/references/org-limit-warning.md deleted file mode 100644 index da526e5870..0000000000 --- a/.agents/skills/hooks-admin/references/org-limit-warning.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgLimitWarning - - - -Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. - -## Usage - -```typescript -useOrgLimitWarningsQuery({ selection: { fields: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true, entityId: true } } }) -useOrgLimitWarningQuery({ id: '', selection: { fields: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true, entityId: true } } }) -useCreateOrgLimitWarningMutation({ selection: { fields: { id: true } } }) -useUpdateOrgLimitWarningMutation({ selection: { fields: { id: true } } }) -useDeleteOrgLimitWarningMutation({}) -``` - -## Examples - -### List all orgLimitWarnings - -```typescript -const { data, isLoading } = useOrgLimitWarningsQuery({ - selection: { fields: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true, entityId: true } }, -}); -``` - -### Create a orgLimitWarning - -```typescript -const { mutate } = useCreateOrgLimitWarningMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '', warningType: '', thresholdValue: '', taskIdentifier: '', entityId: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/org-limit.md b/.agents/skills/hooks-admin/references/org-limit.md deleted file mode 100644 index 1fbfda8c71..0000000000 --- a/.agents/skills/hooks-admin/references/org-limit.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgLimit - - - -Tracks per-actor usage counts against configurable maximum limits - -## Usage - -```typescript -useOrgLimitsQuery({ selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, entityId: true, organizationId: true, entityType: true } } }) -useOrgLimitQuery({ id: '', selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, entityId: true, organizationId: true, entityType: true } } }) -useCreateOrgLimitMutation({ selection: { fields: { id: true } } }) -useUpdateOrgLimitMutation({ selection: { fields: { id: true } } }) -useDeleteOrgLimitMutation({}) -``` - -## Examples - -### List all orgLimits - -```typescript -const { data, isLoading } = useOrgLimitsQuery({ - selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, entityId: true, organizationId: true, entityType: true } }, -}); -``` - -### Create a orgLimit - -```typescript -const { mutate } = useCreateOrgLimitMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '', entityId: '', organizationId: '', entityType: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/org-membership-profile.md b/.agents/skills/hooks-admin/references/org-membership-profile.md deleted file mode 100644 index 3d6bc3f020..0000000000 --- a/.agents/skills/hooks-admin/references/org-membership-profile.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgMembershipProfile - - - -Every profile a membership holds; memberships.profile_id points at one of them - -## Usage - -```typescript -useOrgMembershipProfilesQuery({ selection: { fields: { actorId: true, createdAt: true, id: true, membershipId: true, profileId: true, updatedAt: true } } }) -useOrgMembershipProfileQuery({ id: '', selection: { fields: { actorId: true, createdAt: true, id: true, membershipId: true, profileId: true, updatedAt: true } } }) -useCreateOrgMembershipProfileMutation({ selection: { fields: { id: true } } }) -useUpdateOrgMembershipProfileMutation({ selection: { fields: { id: true } } }) -useDeleteOrgMembershipProfileMutation({}) -``` - -## Examples - -### List all orgMembershipProfiles - -```typescript -const { data, isLoading } = useOrgMembershipProfilesQuery({ - selection: { fields: { actorId: true, createdAt: true, id: true, membershipId: true, profileId: true, updatedAt: true } }, -}); -``` - -### Create a orgMembershipProfile - -```typescript -const { mutate } = useCreateOrgMembershipProfileMutation({ - selection: { fields: { id: true } }, -}); -mutate({ actorId: '', membershipId: '', profileId: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/org-permission-default-grant.md b/.agents/skills/hooks-admin/references/org-permission-default-grant.md deleted file mode 100644 index 89633d7f7c..0000000000 --- a/.agents/skills/hooks-admin/references/org-permission-default-grant.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgPermissionDefaultGrant - - - -Audit log of permission additions and removals from the defaults bitmask - -## Usage - -```typescript -useOrgPermissionDefaultGrantsQuery({ selection: { fields: { createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, permissionId: true, updatedAt: true } } }) -useOrgPermissionDefaultGrantQuery({ id: '', selection: { fields: { createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, permissionId: true, updatedAt: true } } }) -useCreateOrgPermissionDefaultGrantMutation({ selection: { fields: { id: true } } }) -useUpdateOrgPermissionDefaultGrantMutation({ selection: { fields: { id: true } } }) -useDeleteOrgPermissionDefaultGrantMutation({}) -``` - -## Examples - -### List all orgPermissionDefaultGrants - -```typescript -const { data, isLoading } = useOrgPermissionDefaultGrantsQuery({ - selection: { fields: { createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, permissionId: true, updatedAt: true } }, -}); -``` - -### Create a orgPermissionDefaultGrant - -```typescript -const { mutate } = useCreateOrgPermissionDefaultGrantMutation({ - selection: { fields: { id: true } }, -}); -mutate({ entityId: '', grantorId: '', isGrant: '', permissionId: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/org-permission-default-permission.md b/.agents/skills/hooks-admin/references/org-permission-default-permission.md deleted file mode 100644 index 1abc790bdd..0000000000 --- a/.agents/skills/hooks-admin/references/org-permission-default-permission.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgPermissionDefaultPermission - - - -Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask - -## Usage - -```typescript -useOrgPermissionDefaultPermissionsQuery({ selection: { fields: { createdAt: true, entityId: true, id: true, permissionId: true, updatedAt: true } } }) -useOrgPermissionDefaultPermissionQuery({ id: '', selection: { fields: { createdAt: true, entityId: true, id: true, permissionId: true, updatedAt: true } } }) -useCreateOrgPermissionDefaultPermissionMutation({ selection: { fields: { id: true } } }) -useUpdateOrgPermissionDefaultPermissionMutation({ selection: { fields: { id: true } } }) -useDeleteOrgPermissionDefaultPermissionMutation({}) -``` - -## Examples - -### List all orgPermissionDefaultPermissions - -```typescript -const { data, isLoading } = useOrgPermissionDefaultPermissionsQuery({ - selection: { fields: { createdAt: true, entityId: true, id: true, permissionId: true, updatedAt: true } }, -}); -``` - -### Create a orgPermissionDefaultPermission - -```typescript -const { mutate } = useCreateOrgPermissionDefaultPermissionMutation({ - selection: { fields: { id: true } }, -}); -mutate({ entityId: '', permissionId: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/org-permission-default.md b/.agents/skills/hooks-admin/references/org-permission-default.md deleted file mode 100644 index c04babbb4d..0000000000 --- a/.agents/skills/hooks-admin/references/org-permission-default.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgPermissionDefault - - - -Stores the default permission bitmask assigned to new members upon joining - -## Usage - -```typescript -useOrgPermissionDefaultsQuery({ selection: { fields: { entityId: true, id: true, permissions: true } } }) -useOrgPermissionDefaultQuery({ id: '', selection: { fields: { entityId: true, id: true, permissions: true } } }) -useCreateOrgPermissionDefaultMutation({ selection: { fields: { id: true } } }) -useUpdateOrgPermissionDefaultMutation({ selection: { fields: { id: true } } }) -useDeleteOrgPermissionDefaultMutation({}) -``` - -## Examples - -### List all orgPermissionDefaults - -```typescript -const { data, isLoading } = useOrgPermissionDefaultsQuery({ - selection: { fields: { entityId: true, id: true, permissions: true } }, -}); -``` - -### Create a orgPermissionDefault - -```typescript -const { mutate } = useCreateOrgPermissionDefaultMutation({ - selection: { fields: { id: true } }, -}); -mutate({ entityId: '', permissions: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/org-permission.md b/.agents/skills/hooks-admin/references/org-permission.md deleted file mode 100644 index ddb30ce523..0000000000 --- a/.agents/skills/hooks-admin/references/org-permission.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgPermission - - - -Defines available permissions as named bits within a bitmask, used by the RBAC system for access control - -## Usage - -```typescript -useOrgPermissionsQuery({ selection: { fields: { bitnum: true, bitstr: true, description: true, id: true, name: true } } }) -useOrgPermissionQuery({ id: '', selection: { fields: { bitnum: true, bitstr: true, description: true, id: true, name: true } } }) -useCreateOrgPermissionMutation({ selection: { fields: { id: true } } }) -useUpdateOrgPermissionMutation({ selection: { fields: { id: true } } }) -useDeleteOrgPermissionMutation({}) -``` - -## Examples - -### List all orgPermissions - -```typescript -const { data, isLoading } = useOrgPermissionsQuery({ - selection: { fields: { bitnum: true, bitstr: true, description: true, id: true, name: true } }, -}); -``` - -### Create a orgPermission - -```typescript -const { mutate } = useCreateOrgPermissionMutation({ - selection: { fields: { id: true } }, -}); -mutate({ bitnum: '', bitstr: '', description: '', name: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/org-permissions-get-by-mask.md b/.agents/skills/hooks-admin/references/org-permissions-get-by-mask.md deleted file mode 100644 index 5cb706b9c6..0000000000 --- a/.agents/skills/hooks-admin/references/org-permissions-get-by-mask.md +++ /dev/null @@ -1,19 +0,0 @@ -# orgPermissionsGetByMask - - - -Reads and enables pagination through a set of `OrgPermission`. - -## Usage - -```typescript -useOrgPermissionsGetByMaskQuery({ after: '', first: '', mask: '', offset: '' }) -``` - -## Examples - -### Use useOrgPermissionsGetByMaskQuery - -```typescript -const { data, isLoading } = useOrgPermissionsGetByMaskQuery({ after: '', first: '', mask: '', offset: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/org-permissions-get-mask-by-names.md b/.agents/skills/hooks-admin/references/org-permissions-get-mask-by-names.md deleted file mode 100644 index 18296a0852..0000000000 --- a/.agents/skills/hooks-admin/references/org-permissions-get-mask-by-names.md +++ /dev/null @@ -1,19 +0,0 @@ -# orgPermissionsGetMaskByNames - - - -React Query query hook for orgPermissionsGetMaskByNames - -## Usage - -```typescript -useOrgPermissionsGetMaskByNamesQuery({ names: '' }) -``` - -## Examples - -### Use useOrgPermissionsGetMaskByNamesQuery - -```typescript -const { data, isLoading } = useOrgPermissionsGetMaskByNamesQuery({ names: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/org-permissions-get-mask.md b/.agents/skills/hooks-admin/references/org-permissions-get-mask.md deleted file mode 100644 index 90c6e8d79c..0000000000 --- a/.agents/skills/hooks-admin/references/org-permissions-get-mask.md +++ /dev/null @@ -1,19 +0,0 @@ -# orgPermissionsGetMask - - - -React Query query hook for orgPermissionsGetMask - -## Usage - -```typescript -useOrgPermissionsGetMaskQuery({ ids: '' }) -``` - -## Examples - -### Use useOrgPermissionsGetMaskQuery - -```typescript -const { data, isLoading } = useOrgPermissionsGetMaskQuery({ ids: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/org-permissions-get-padded-mask.md b/.agents/skills/hooks-admin/references/org-permissions-get-padded-mask.md deleted file mode 100644 index 2e8bf1bd7f..0000000000 --- a/.agents/skills/hooks-admin/references/org-permissions-get-padded-mask.md +++ /dev/null @@ -1,19 +0,0 @@ -# orgPermissionsGetPaddedMask - - - -React Query query hook for orgPermissionsGetPaddedMask - -## Usage - -```typescript -useOrgPermissionsGetPaddedMaskQuery({ mask: '' }) -``` - -## Examples - -### Use useOrgPermissionsGetPaddedMaskQuery - -```typescript -const { data, isLoading } = useOrgPermissionsGetPaddedMaskQuery({ mask: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/org-profile-capability.md b/.agents/skills/hooks-admin/references/org-profile-capability.md deleted file mode 100644 index bb0d69f345..0000000000 --- a/.agents/skills/hooks-admin/references/org-profile-capability.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgProfileCapability - - - -Join table linking profiles to individual capabilities they include - -## Usage - -```typescript -useOrgProfileCapabilitiesQuery({ selection: { fields: { capabilityId: true, createdAt: true, id: true, profileId: true, updatedAt: true } } }) -useOrgProfileCapabilityQuery({ id: '', selection: { fields: { capabilityId: true, createdAt: true, id: true, profileId: true, updatedAt: true } } }) -useCreateOrgProfileCapabilityMutation({ selection: { fields: { id: true } } }) -useUpdateOrgProfileCapabilityMutation({ selection: { fields: { id: true } } }) -useDeleteOrgProfileCapabilityMutation({}) -``` - -## Examples - -### List all orgProfileCapabilities - -```typescript -const { data, isLoading } = useOrgProfileCapabilitiesQuery({ - selection: { fields: { capabilityId: true, createdAt: true, id: true, profileId: true, updatedAt: true } }, -}); -``` - -### Create a orgProfileCapability - -```typescript -const { mutate } = useCreateOrgProfileCapabilityMutation({ - selection: { fields: { id: true } }, -}); -mutate({ capabilityId: '', profileId: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/org-profile-definition-grant.md b/.agents/skills/hooks-admin/references/org-profile-definition-grant.md deleted file mode 100644 index 4dc00a46a6..0000000000 --- a/.agents/skills/hooks-admin/references/org-profile-definition-grant.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgProfileDefinitionGrant - - - -Audit log of capability additions and removals from profile definitions - -## Usage - -```typescript -useOrgProfileDefinitionGrantsQuery({ selection: { fields: { capabilityId: true, createdAt: true, grantorId: true, id: true, isGrant: true, profileId: true, updatedAt: true } } }) -useOrgProfileDefinitionGrantQuery({ id: '', selection: { fields: { capabilityId: true, createdAt: true, grantorId: true, id: true, isGrant: true, profileId: true, updatedAt: true } } }) -useCreateOrgProfileDefinitionGrantMutation({ selection: { fields: { id: true } } }) -useUpdateOrgProfileDefinitionGrantMutation({ selection: { fields: { id: true } } }) -useDeleteOrgProfileDefinitionGrantMutation({}) -``` - -## Examples - -### List all orgProfileDefinitionGrants - -```typescript -const { data, isLoading } = useOrgProfileDefinitionGrantsQuery({ - selection: { fields: { capabilityId: true, createdAt: true, grantorId: true, id: true, isGrant: true, profileId: true, updatedAt: true } }, -}); -``` - -### Create a orgProfileDefinitionGrant - -```typescript -const { mutate } = useCreateOrgProfileDefinitionGrantMutation({ - selection: { fields: { id: true } }, -}); -mutate({ capabilityId: '', grantorId: '', isGrant: '', profileId: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/org-profile-grant.md b/.agents/skills/hooks-admin/references/org-profile-grant.md deleted file mode 100644 index abfffbc947..0000000000 --- a/.agents/skills/hooks-admin/references/org-profile-grant.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgProfileGrant - - - -Audit log of profile assignments and revocations for members - -## Usage - -```typescript -useOrgProfileGrantsQuery({ selection: { fields: { createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, membershipId: true, profileId: true, updatedAt: true } } }) -useOrgProfileGrantQuery({ id: '', selection: { fields: { createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, membershipId: true, profileId: true, updatedAt: true } } }) -useCreateOrgProfileGrantMutation({ selection: { fields: { id: true } } }) -useUpdateOrgProfileGrantMutation({ selection: { fields: { id: true } } }) -useDeleteOrgProfileGrantMutation({}) -``` - -## Examples - -### List all orgProfileGrants - -```typescript -const { data, isLoading } = useOrgProfileGrantsQuery({ - selection: { fields: { createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, membershipId: true, profileId: true, updatedAt: true } }, -}); -``` - -### Create a orgProfileGrant - -```typescript -const { mutate } = useCreateOrgProfileGrantMutation({ - selection: { fields: { id: true } }, -}); -mutate({ entityId: '', grantorId: '', isGrant: '', membershipId: '', profileId: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/org-profile-template.md b/.agents/skills/hooks-admin/references/org-profile-template.md deleted file mode 100644 index 84b0c10a80..0000000000 --- a/.agents/skills/hooks-admin/references/org-profile-template.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgProfileTemplate - - - -Template profiles that are automatically seeded into new entities when created - -## Usage - -```typescript -useOrgProfileTemplatesQuery({ selection: { fields: { capabilities: true, createdAt: true, description: true, id: true, isDefault: true, name: true, slug: true, updatedAt: true } } }) -useOrgProfileTemplateQuery({ id: '', selection: { fields: { capabilities: true, createdAt: true, description: true, id: true, isDefault: true, name: true, slug: true, updatedAt: true } } }) -useCreateOrgProfileTemplateMutation({ selection: { fields: { id: true } } }) -useUpdateOrgProfileTemplateMutation({ selection: { fields: { id: true } } }) -useDeleteOrgProfileTemplateMutation({}) -``` - -## Examples - -### List all orgProfileTemplates - -```typescript -const { data, isLoading } = useOrgProfileTemplatesQuery({ - selection: { fields: { capabilities: true, createdAt: true, description: true, id: true, isDefault: true, name: true, slug: true, updatedAt: true } }, -}); -``` - -### Create a orgProfileTemplate - -```typescript -const { mutate } = useCreateOrgProfileTemplateMutation({ - selection: { fields: { id: true } }, -}); -mutate({ capabilities: '', description: '', isDefault: '', name: '', slug: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/org-profile.md b/.agents/skills/hooks-admin/references/org-profile.md deleted file mode 100644 index e25055bad8..0000000000 --- a/.agents/skills/hooks-admin/references/org-profile.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgProfile - - - -Named capability bundles (roles) that group multiple capabilities into reusable profiles - -## Usage - -```typescript -useOrgProfilesQuery({ selection: { fields: { capabilities: true, createdAt: true, description: true, entityId: true, id: true, isDefault: true, isSystem: true, name: true, slug: true, updatedAt: true } } }) -useOrgProfileQuery({ id: '', selection: { fields: { capabilities: true, createdAt: true, description: true, entityId: true, id: true, isDefault: true, isSystem: true, name: true, slug: true, updatedAt: true } } }) -useCreateOrgProfileMutation({ selection: { fields: { id: true } } }) -useUpdateOrgProfileMutation({ selection: { fields: { id: true } } }) -useDeleteOrgProfileMutation({}) -``` - -## Examples - -### List all orgProfiles - -```typescript -const { data, isLoading } = useOrgProfilesQuery({ - selection: { fields: { capabilities: true, createdAt: true, description: true, entityId: true, id: true, isDefault: true, isSystem: true, name: true, slug: true, updatedAt: true } }, -}); -``` - -### Create a orgProfile - -```typescript -const { mutate } = useCreateOrgProfileMutation({ - selection: { fields: { id: true } }, -}); -mutate({ capabilities: '', description: '', entityId: '', isDefault: '', isSystem: '', name: '', slug: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/request-upload-url.md b/.agents/skills/hooks-admin/references/request-upload-url.md deleted file mode 100644 index 9be983e132..0000000000 --- a/.agents/skills/hooks-admin/references/request-upload-url.md +++ /dev/null @@ -1,23 +0,0 @@ -# requestUploadUrl - - - -Request a presigned URL for uploading a file directly to S3. -Client computes SHA-256 of the file content and provides it here. -If a file with the same hash already exists (dedup), returns the -existing file ID and deduplicated=true with no uploadUrl. - -## Usage - -```typescript -const { mutate } = useRequestUploadUrlMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useRequestUploadUrlMutation - -```typescript -const { mutate, isLoading } = useRequestUploadUrlMutation(); -mutate({ input: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/steps-achieved.md b/.agents/skills/hooks-admin/references/steps-achieved.md deleted file mode 100644 index 2574c1fb3c..0000000000 --- a/.agents/skills/hooks-admin/references/steps-achieved.md +++ /dev/null @@ -1,19 +0,0 @@ -# stepsAchieved - - - -React Query query hook for stepsAchieved - -## Usage - -```typescript -useStepsAchievedQuery({ level: '', roleId: '' }) -``` - -## Examples - -### Use useStepsAchievedQuery - -```typescript -const { data, isLoading } = useStepsAchievedQuery({ level: '', roleId: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/steps-required.md b/.agents/skills/hooks-admin/references/steps-required.md deleted file mode 100644 index 9256ec674e..0000000000 --- a/.agents/skills/hooks-admin/references/steps-required.md +++ /dev/null @@ -1,19 +0,0 @@ -# stepsRequired - - - -Reads and enables pagination through a set of `AppLevelRequirement`. - -## Usage - -```typescript -useStepsRequiredQuery({ level: '', roleId: '', first: '', offset: '', after: '' }) -``` - -## Examples - -### Use useStepsRequiredQuery - -```typescript -const { data, isLoading } = useStepsRequiredQuery({ level: '', roleId: '', first: '', offset: '', after: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/submit-invite-code.md b/.agents/skills/hooks-admin/references/submit-invite-code.md deleted file mode 100644 index 7df2125e2e..0000000000 --- a/.agents/skills/hooks-admin/references/submit-invite-code.md +++ /dev/null @@ -1,20 +0,0 @@ -# submitInviteCode - - - -React Query mutation hook for submitInviteCode - -## Usage - -```typescript -const { mutate } = useSubmitInviteCodeMutation(); mutate({ input: { token: '' } }); -``` - -## Examples - -### Use useSubmitInviteCodeMutation - -```typescript -const { mutate, isLoading } = useSubmitInviteCodeMutation(); -mutate({ input: { token: '' } }); -``` diff --git a/.agents/skills/hooks-admin/references/usage-snapshot.md b/.agents/skills/hooks-admin/references/usage-snapshot.md deleted file mode 100644 index e197751213..0000000000 --- a/.agents/skills/hooks-admin/references/usage-snapshot.md +++ /dev/null @@ -1,34 +0,0 @@ -# usageSnapshot - - - -Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. - -## Usage - -```typescript -useUsageSnapshotsQuery({ selection: { fields: { databaseId: true, metricName: true, metricValue: true, dimensions: true, capturedAt: true, id: true } } }) -useUsageSnapshotQuery({ id: '', selection: { fields: { databaseId: true, metricName: true, metricValue: true, dimensions: true, capturedAt: true, id: true } } }) -useCreateUsageSnapshotMutation({ selection: { fields: { id: true } } }) -useUpdateUsageSnapshotMutation({ selection: { fields: { id: true } } }) -useDeleteUsageSnapshotMutation({}) -``` - -## Examples - -### List all usageSnapshots - -```typescript -const { data, isLoading } = useUsageSnapshotsQuery({ - selection: { fields: { databaseId: true, metricName: true, metricValue: true, dimensions: true, capturedAt: true, id: true } }, -}); -``` - -### Create a usageSnapshot - -```typescript -const { mutate } = useCreateUsageSnapshotMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', metricName: '', metricValue: '', dimensions: '', capturedAt: '' }); -``` diff --git a/.agents/skills/hooks-agent/references/agent-resource-chunk.md b/.agents/skills/hooks-agent/references/agent-resource-chunk.md index e12a0d4538..81c4bc5578 100644 --- a/.agents/skills/hooks-agent/references/agent-resource-chunk.md +++ b/.agents/skills/hooks-agent/references/agent-resource-chunk.md @@ -30,5 +30,5 @@ const { data, isLoading } = useAgentResourceChunksQuery({ const { mutate } = useCreateAgentResourceChunkMutation({ selection: { fields: { id: true } }, }); -mutate({ agentResourceId: '', body: '', chunkIndex: '', databaseId: '', embedding: '', embeddingVectorDistance: '', metadata: '', searchScore: '' }); +mutate({ agentResourceId: '', body: '', chunkIndex: '', databaseId: '', embedding: '', metadata: '' }); ``` diff --git a/.agents/skills/hooks-agent/references/agent-resource.md b/.agents/skills/hooks-agent/references/agent-resource.md index 9e1943b71b..4cbaad03b2 100644 --- a/.agents/skills/hooks-agent/references/agent-resource.md +++ b/.agents/skills/hooks-agent/references/agent-resource.md @@ -7,8 +7,8 @@ Unified skills and knowledge resources for agent retrieval ## Usage ```typescript -useAgentResourcesQuery({ selection: { fields: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) -useAgentResourceQuery({ id: '', selection: { fields: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +useAgentResourcesQuery({ selection: { fields: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +useAgentResourceQuery({ id: '', selection: { fields: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) useCreateAgentResourceMutation({ selection: { fields: { id: true } } }) useUpdateAgentResourceMutation({ selection: { fields: { id: true } } }) useDeleteAgentResourceMutation({}) @@ -20,7 +20,7 @@ useDeleteAgentResourceMutation({}) ```typescript const { data, isLoading } = useAgentResourcesQuery({ - selection: { fields: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, + selection: { fields: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useAgentResourcesQuery({ const { mutate } = useCreateAgentResourceMutation({ selection: { fields: { id: true } }, }); -mutate({ archivedAt: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', isActive: '', isArchived: '', keywords: '', kind: '', kindTrgmSimilarity: '', metadata: '', search: '', searchScore: '', searchTsvRank: '', slug: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }); +mutate({ archivedAt: '', body: '', createdBy: '', createdByPrincipal: '', databaseId: '', description: '', embedding: '', isActive: '', isArchived: '', keywords: '', kind: '', metadata: '', slug: '', title: '', updatedBy: '', updatedByPrincipal: '' }); ``` diff --git a/.agents/skills/hooks-agent/references/platform-agent-resource-chunk.md b/.agents/skills/hooks-agent/references/platform-agent-resource-chunk.md index da6cb796b0..b323c5e16a 100644 --- a/.agents/skills/hooks-agent/references/platform-agent-resource-chunk.md +++ b/.agents/skills/hooks-agent/references/platform-agent-resource-chunk.md @@ -30,5 +30,5 @@ const { data, isLoading } = usePlatformAgentResourceChunksQuery({ const { mutate } = useCreatePlatformAgentResourceChunkMutation({ selection: { fields: { id: true } }, }); -mutate({ body: '', chunkIndex: '', embedding: '', embeddingVectorDistance: '', metadata: '', platformAgentResourceId: '', searchScore: '' }); +mutate({ body: '', chunkIndex: '', embedding: '', metadata: '', platformAgentResourceId: '' }); ``` diff --git a/.agents/skills/hooks-agent/references/platform-agent-resource.md b/.agents/skills/hooks-agent/references/platform-agent-resource.md index 949b128265..c322342f61 100644 --- a/.agents/skills/hooks-agent/references/platform-agent-resource.md +++ b/.agents/skills/hooks-agent/references/platform-agent-resource.md @@ -7,8 +7,8 @@ Unified skills and knowledge resources for agent retrieval ## Usage ```typescript -usePlatformAgentResourcesQuery({ selection: { fields: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) -usePlatformAgentResourceQuery({ id: '', selection: { fields: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +usePlatformAgentResourcesQuery({ selection: { fields: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +usePlatformAgentResourceQuery({ id: '', selection: { fields: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) useCreatePlatformAgentResourceMutation({ selection: { fields: { id: true } } }) useUpdatePlatformAgentResourceMutation({ selection: { fields: { id: true } } }) useDeletePlatformAgentResourceMutation({}) @@ -20,7 +20,7 @@ useDeletePlatformAgentResourceMutation({}) ```typescript const { data, isLoading } = usePlatformAgentResourcesQuery({ - selection: { fields: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, + selection: { fields: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = usePlatformAgentResourcesQuery({ const { mutate } = useCreatePlatformAgentResourceMutation({ selection: { fields: { id: true } }, }); -mutate({ archivedAt: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', isActive: '', isArchived: '', keywords: '', kind: '', kindTrgmSimilarity: '', metadata: '', search: '', searchScore: '', searchTsvRank: '', slug: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }); +mutate({ archivedAt: '', body: '', createdBy: '', createdByPrincipal: '', description: '', embedding: '', isActive: '', isArchived: '', keywords: '', kind: '', metadata: '', slug: '', title: '', updatedBy: '', updatedByPrincipal: '' }); ``` diff --git a/.agents/skills/hooks-api/SKILL.md b/.agents/skills/hooks-api/SKILL.md index ddadf430a3..467ad85f2b 100644 --- a/.agents/skills/hooks-api/SKILL.md +++ b/.agents/skills/hooks-api/SKILL.md @@ -1,13 +1,13 @@ --- name: hooks-api -description: React Query hooks for the api API — provides typed query and mutation hooks for 90 tables and 49 custom operations +description: React Query hooks for the api API — provides typed query and mutation hooks for 91 tables and 45 custom operations --- # hooks-api -React Query hooks for the api API — provides typed query and mutation hooks for 90 tables and 49 custom operations +React Query hooks for the api API — provides typed query and mutation hooks for 91 tables and 45 custom operations ## Usage @@ -87,6 +87,7 @@ See the `references/` directory for detailed per-entity API documentation: - [platform-get-site-previews-record](references/platform-get-site-previews-record.md) - [platform-managed-domain](references/platform-managed-domain.md) - [platform-page](references/platform-page.md) +- [platform-reserved-subdomain](references/platform-reserved-subdomain.md) - [platform-site-app-link](references/platform-site-app-link.md) - [platform-site](references/platform-site.md) - [platform-site-deep-link](references/platform-site-deep-link.md) @@ -128,7 +129,6 @@ See the `references/` directory for detailed per-entity API documentation: - [view-rule](references/view-rule.md) - [view-table](references/view-table.md) - [webauthn-setting](references/webauthn-setting.md) -- [api-schema-names](references/api-schema-names.md) - [apply-registry-defaults](references/apply-registry-defaults.md) - [email-shared-account](references/email-shared-account.md) - [get-site-preview-commit](references/get-site-preview-commit.md) @@ -140,9 +140,6 @@ See the `references/` directory for detailed per-entity API documentation: - [platform-sites-deep-link-url](references/platform-sites-deep-link-url.md) - [platform-sites-site-origin](references/platform-sites-site-origin.md) - [platform-verify-site-preview-token](references/platform-verify-site-preview-token.md) -- [resolve-deep-link](references/resolve-deep-link.md) -- [resolve-route](references/resolve-route.md) -- [resolve-site-app-links](references/resolve-site-app-links.md) - [sites-deep-link-url](references/sites-deep-link-url.md) - [sites-site-origin](references/sites-site-origin.md) - [verify-site-preview-token](references/verify-site-preview-token.md) diff --git a/.agents/skills/hooks-api/references/api-module.md b/.agents/skills/hooks-api/references/api-module.md deleted file mode 100644 index 41e1dc6b5e..0000000000 --- a/.agents/skills/hooks-api/references/api-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# apiModule - - - -Server-side module configuration for an API surface; stores module name and JSON settings - -## Usage - -```typescript -useApiModulesQuery({ selection: { fields: { apiId: true, createdAt: true, data: true, databaseId: true, id: true, name: true, updatedAt: true } } }) -useApiModuleQuery({ id: '', selection: { fields: { apiId: true, createdAt: true, data: true, databaseId: true, id: true, name: true, updatedAt: true } } }) -useCreateApiModuleMutation({ selection: { fields: { id: true } } }) -useUpdateApiModuleMutation({ selection: { fields: { id: true } } }) -useDeleteApiModuleMutation({}) -``` - -## Examples - -### List all apiModules - -```typescript -const { data, isLoading } = useApiModulesQuery({ - selection: { fields: { apiId: true, createdAt: true, data: true, databaseId: true, id: true, name: true, updatedAt: true } }, -}); -``` - -### Create a apiModule - -```typescript -const { mutate } = useCreateApiModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ apiId: '', data: '', databaseId: '', name: '' }); -``` diff --git a/.agents/skills/hooks-api/references/api-schema-names.md b/.agents/skills/hooks-api/references/api-schema-names.md deleted file mode 100644 index a4beab1577..0000000000 --- a/.agents/skills/hooks-api/references/api-schema-names.md +++ /dev/null @@ -1,19 +0,0 @@ -# apiSchemaNames - - - -React Query query hook for apiSchemaNames - -## Usage - -```typescript -useApiSchemaNamesQuery({ targetApiId: '' }) -``` - -## Examples - -### Use useApiSchemaNamesQuery - -```typescript -const { data, isLoading } = useApiSchemaNamesQuery({ targetApiId: '' }); -``` diff --git a/.agents/skills/hooks-api/references/api-setting.md b/.agents/skills/hooks-api/references/api-setting.md index 40fed017c8..272d769542 100644 --- a/.agents/skills/hooks-api/references/api-setting.md +++ b/.agents/skills/hooks-api/references/api-setting.md @@ -7,8 +7,8 @@ Per-API feature flag overrides; NULL columns inherit from database_settings ## Usage ```typescript -useApiSettingsQuery({ selection: { fields: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } } }) -useApiSettingQuery({ id: '', selection: { fields: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } } }) +useApiSettingsQuery({ selection: { fields: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } } }) +useApiSettingQuery({ id: '', selection: { fields: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } } }) useCreateApiSettingMutation({ selection: { fields: { id: true } } }) useUpdateApiSettingMutation({ selection: { fields: { id: true } } }) useDeleteApiSettingMutation({}) @@ -20,7 +20,7 @@ useDeleteApiSettingMutation({}) ```typescript const { data, isLoading } = useApiSettingsQuery({ - selection: { fields: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }, + selection: { fields: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useApiSettingsQuery({ const { mutate } = useCreateApiSettingMutation({ selection: { fields: { id: true } }, }); -mutate({ apiId: '', databaseId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }); +mutate({ apiId: '', databaseId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }); ``` diff --git a/.agents/skills/hooks-api/references/api.md b/.agents/skills/hooks-api/references/api.md index 30167e3754..ad0dd64deb 100644 --- a/.agents/skills/hooks-api/references/api.md +++ b/.agents/skills/hooks-api/references/api.md @@ -7,8 +7,8 @@ API surfaces exposed by this scope; publication makes a surface bindable from ot ## Usage ```typescript -useApisQuery({ selection: { fields: { anonRole: true, config: true, createdAt: true, databaseId: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } } }) -useApiQuery({ id: '', selection: { fields: { anonRole: true, config: true, createdAt: true, databaseId: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } } }) +useApisQuery({ selection: { fields: { anonRole: true, config: true, createdAt: true, databaseId: true, id: true, isPublished: true, name: true, roleName: true, serviceHostname: true, updatedAt: true } } }) +useApiQuery({ id: '', selection: { fields: { anonRole: true, config: true, createdAt: true, databaseId: true, id: true, isPublished: true, name: true, roleName: true, serviceHostname: true, updatedAt: true } } }) useCreateApiMutation({ selection: { fields: { id: true } } }) useUpdateApiMutation({ selection: { fields: { id: true } } }) useDeleteApiMutation({}) @@ -20,7 +20,7 @@ useDeleteApiMutation({}) ```typescript const { data, isLoading } = useApisQuery({ - selection: { fields: { anonRole: true, config: true, createdAt: true, databaseId: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }, + selection: { fields: { anonRole: true, config: true, createdAt: true, databaseId: true, id: true, isPublished: true, name: true, roleName: true, serviceHostname: true, updatedAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useApisQuery({ const { mutate } = useCreateApiMutation({ selection: { fields: { id: true } }, }); -mutate({ anonRole: '', config: '', databaseId: '', dbname: '', isPublished: '', name: '', roleName: '' }); +mutate({ anonRole: '', config: '', databaseId: '', isPublished: '', name: '', roleName: '' }); ``` diff --git a/.agents/skills/hooks-api/references/apis.md b/.agents/skills/hooks-api/references/apis.md deleted file mode 100644 index e37871f88e..0000000000 --- a/.agents/skills/hooks-api/references/apis.md +++ /dev/null @@ -1,34 +0,0 @@ -# apis - - - -API surfaces exposed by this scope; publication makes a surface bindable from other scopes - -## Usage - -```typescript -useApisesQuery({ selection: { fields: { anonRole: true, config: true, createdAt: true, databaseId: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } } }) -useApisQuery({ id: '', selection: { fields: { anonRole: true, config: true, createdAt: true, databaseId: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } } }) -useCreateApisMutation({ selection: { fields: { id: true } } }) -useUpdateApisMutation({ selection: { fields: { id: true } } }) -useDeleteApisMutation({}) -``` - -## Examples - -### List all apises - -```typescript -const { data, isLoading } = useApisesQuery({ - selection: { fields: { anonRole: true, config: true, createdAt: true, databaseId: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }, -}); -``` - -### Create a apis - -```typescript -const { mutate } = useCreateApisMutation({ - selection: { fields: { id: true } }, -}); -mutate({ anonRole: '', config: '', databaseId: '', dbname: '', isPublished: '', name: '', roleName: '' }); -``` diff --git a/.agents/skills/hooks-api/references/app-component.md b/.agents/skills/hooks-api/references/app-component.md deleted file mode 100644 index f6646203e8..0000000000 --- a/.agents/skills/hooks-api/references/app-component.md +++ /dev/null @@ -1,34 +0,0 @@ -# appComponent - - - -App component rows binding an app to typed catalog rows (exactly one typed component reference per row) - -## Usage - -```typescript -useAppComponentsQuery({ selection: { fields: { appId: true, componentApiId: true, componentDomainId: true, componentInstallationId: true, componentSiteId: true, componentType: true, config: true, createdAt: true, databaseId: true, id: true, updatedAt: true } } }) -useAppComponentQuery({ id: '', selection: { fields: { appId: true, componentApiId: true, componentDomainId: true, componentInstallationId: true, componentSiteId: true, componentType: true, config: true, createdAt: true, databaseId: true, id: true, updatedAt: true } } }) -useCreateAppComponentMutation({ selection: { fields: { id: true } } }) -useUpdateAppComponentMutation({ selection: { fields: { id: true } } }) -useDeleteAppComponentMutation({}) -``` - -## Examples - -### List all appComponents - -```typescript -const { data, isLoading } = useAppComponentsQuery({ - selection: { fields: { appId: true, componentApiId: true, componentDomainId: true, componentInstallationId: true, componentSiteId: true, componentType: true, config: true, createdAt: true, databaseId: true, id: true, updatedAt: true } }, -}); -``` - -### Create a appComponent - -```typescript -const { mutate } = useCreateAppComponentMutation({ - selection: { fields: { id: true } }, -}); -mutate({ appId: '', componentApiId: '', componentDomainId: '', componentInstallationId: '', componentSiteId: '', componentType: '', config: '', databaseId: '' }); -``` diff --git a/.agents/skills/hooks-api/references/app.md b/.agents/skills/hooks-api/references/app.md deleted file mode 100644 index 5bb394ed19..0000000000 --- a/.agents/skills/hooks-api/references/app.md +++ /dev/null @@ -1,34 +0,0 @@ -# app - - - -App aggregates: thin identity rows whose components are global catalog references - -## Usage - -```typescript -useAppsQuery({ selection: { fields: { config: true, createdAt: true, databaseId: true, description: true, id: true, isPublished: true, name: true, status: true, title: true, updatedAt: true } } }) -useAppQuery({ id: '', selection: { fields: { config: true, createdAt: true, databaseId: true, description: true, id: true, isPublished: true, name: true, status: true, title: true, updatedAt: true } } }) -useCreateAppMutation({ selection: { fields: { id: true } } }) -useUpdateAppMutation({ selection: { fields: { id: true } } }) -useDeleteAppMutation({}) -``` - -## Examples - -### List all apps - -```typescript -const { data, isLoading } = useAppsQuery({ - selection: { fields: { config: true, createdAt: true, databaseId: true, description: true, id: true, isPublished: true, name: true, status: true, title: true, updatedAt: true } }, -}); -``` - -### Create a app - -```typescript -const { mutate } = useCreateAppMutation({ - selection: { fields: { id: true } }, -}); -mutate({ config: '', databaseId: '', description: '', isPublished: '', name: '', status: '', title: '' }); -``` diff --git a/.agents/skills/hooks-api/references/apps-install-app.md b/.agents/skills/hooks-api/references/apps-install-app.md deleted file mode 100644 index de5d653c2b..0000000000 --- a/.agents/skills/hooks-api/references/apps-install-app.md +++ /dev/null @@ -1,20 +0,0 @@ -# appsInstallApp - - - -React Query mutation hook for appsInstallApp - -## Usage - -```typescript -const { mutate } = useAppsInstallAppMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useAppsInstallAppMutation - -```typescript -const { mutate, isLoading } = useAppsInstallAppMutation(); -mutate({ input: '' }); -``` diff --git a/.agents/skills/hooks-api/references/apps-uninstall-app.md b/.agents/skills/hooks-api/references/apps-uninstall-app.md deleted file mode 100644 index 68664998bf..0000000000 --- a/.agents/skills/hooks-api/references/apps-uninstall-app.md +++ /dev/null @@ -1,20 +0,0 @@ -# appsUninstallApp - - - -React Query mutation hook for appsUninstallApp - -## Usage - -```typescript -const { mutate } = useAppsUninstallAppMutation(); mutate({ input: { targetAppId: '' } }); -``` - -## Examples - -### Use useAppsUninstallAppMutation - -```typescript -const { mutate, isLoading } = useAppsUninstallAppMutation(); -mutate({ input: { targetAppId: '' } }); -``` diff --git a/.agents/skills/hooks-api/references/apps-upgrade-app.md b/.agents/skills/hooks-api/references/apps-upgrade-app.md deleted file mode 100644 index 5b19254d70..0000000000 --- a/.agents/skills/hooks-api/references/apps-upgrade-app.md +++ /dev/null @@ -1,20 +0,0 @@ -# appsUpgradeApp - - - -React Query mutation hook for appsUpgradeApp - -## Usage - -```typescript -const { mutate } = useAppsUpgradeAppMutation(); mutate({ input: { newParams: '', targetAppId: '' } }); -``` - -## Examples - -### Use useAppsUpgradeAppMutation - -```typescript -const { mutate, isLoading } = useAppsUpgradeAppMutation(); -mutate({ input: { newParams: '', targetAppId: '' } }); -``` diff --git a/.agents/skills/hooks-api/references/ast-migration.md b/.agents/skills/hooks-api/references/ast-migration.md index 9e09f7c1c2..3d2cf951e8 100644 --- a/.agents/skills/hooks-api/references/ast-migration.md +++ b/.agents/skills/hooks-api/references/ast-migration.md @@ -9,7 +9,6 @@ React Query hooks for AstMigration data operations ```typescript useAstMigrationsQuery({ selection: { fields: { actionId: true, actionName: true, actorId: true, createdAt: true, databaseId: true, deploy: true, deploys: true, id: true, name: true, payload: true, requires: true, revert: true, verify: true } } }) useAstMigrationQuery({ id: '', selection: { fields: { actionId: true, actionName: true, actorId: true, createdAt: true, databaseId: true, deploy: true, deploys: true, id: true, name: true, payload: true, requires: true, revert: true, verify: true } } }) -useCreateAstMigrationMutation({ selection: { fields: { id: true } } }) useUpdateAstMigrationMutation({ selection: { fields: { id: true } } }) useDeleteAstMigrationMutation({}) ``` @@ -23,12 +22,3 @@ const { data, isLoading } = useAstMigrationsQuery({ selection: { fields: { actionId: true, actionName: true, actorId: true, createdAt: true, databaseId: true, deploy: true, deploys: true, id: true, name: true, payload: true, requires: true, revert: true, verify: true } }, }); ``` - -### Create a astMigration - -```typescript -const { mutate } = useCreateAstMigrationMutation({ - selection: { fields: { id: true } }, -}); -mutate({ actionId: '', actionName: '', actorId: '', databaseId: '', deploy: '', deploys: '', name: '', payload: '', requires: '', revert: '', verify: '' }); -``` diff --git a/.agents/skills/hooks-api/references/bootstrap-user.md b/.agents/skills/hooks-api/references/bootstrap-user.md deleted file mode 100644 index c7401dcb6b..0000000000 --- a/.agents/skills/hooks-api/references/bootstrap-user.md +++ /dev/null @@ -1,20 +0,0 @@ -# bootstrapUser - - - -React Query mutation hook for bootstrapUser - -## Usage - -```typescript -const { mutate } = useBootstrapUserMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useBootstrapUserMutation - -```typescript -const { mutate, isLoading } = useBootstrapUserMutation(); -mutate({ input: '' }); -``` diff --git a/.agents/skills/hooks-api/references/create-user-database.md b/.agents/skills/hooks-api/references/create-user-database.md deleted file mode 100644 index fadd746a4f..0000000000 --- a/.agents/skills/hooks-api/references/create-user-database.md +++ /dev/null @@ -1,36 +0,0 @@ -# createUserDatabase - - - -Creates a new user database with all required modules, permissions, and RLS policies. - -Parameters: - - database_name: Name for the new database (required) - - owner_id: UUID of the owner user (required) - - include_invites: Include invite system (default: true) - - include_groups: Include group-level memberships (default: false) - - include_levels: Include events/analytics (default: false) - - bitlen: Bit length for permission masks (default: 64) - - tokens_expiration: Token expiration interval (default: 30 days) - -Returns the database_id UUID of the newly created database. - -Example usage: - SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid); - SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid, true, true); -- with invites and groups - - -## Usage - -```typescript -const { mutate } = useCreateUserDatabaseMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useCreateUserDatabaseMutation - -```typescript -const { mutate, isLoading } = useCreateUserDatabaseMutation(); -mutate({ input: '' }); -``` diff --git a/.agents/skills/hooks-api/references/database-setting.md b/.agents/skills/hooks-api/references/database-setting.md index f80adea2c9..179727b59d 100644 --- a/.agents/skills/hooks-api/references/database-setting.md +++ b/.agents/skills/hooks-api/references/database-setting.md @@ -7,8 +7,8 @@ Scope-wide feature flags and settings; controls which platform features are avai ## Usage ```typescript -useDatabaseSettingsQuery({ selection: { fields: { annotations: true, createdAt: true, creditsPerCent: true, databaseId: true, enableAggregates: true, enableBilling: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, labels: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } } }) -useDatabaseSettingQuery({ id: '', selection: { fields: { annotations: true, createdAt: true, creditsPerCent: true, databaseId: true, enableAggregates: true, enableBilling: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, labels: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } } }) +useDatabaseSettingsQuery({ selection: { fields: { annotations: true, createdAt: true, creditsPerCent: true, databaseId: true, enableAggregates: true, enableBilling: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, labels: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } } }) +useDatabaseSettingQuery({ id: '', selection: { fields: { annotations: true, createdAt: true, creditsPerCent: true, databaseId: true, enableAggregates: true, enableBilling: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, labels: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } } }) useCreateDatabaseSettingMutation({ selection: { fields: { id: true } } }) useUpdateDatabaseSettingMutation({ selection: { fields: { id: true } } }) useDeleteDatabaseSettingMutation({}) @@ -20,7 +20,7 @@ useDeleteDatabaseSettingMutation({}) ```typescript const { data, isLoading } = useDatabaseSettingsQuery({ - selection: { fields: { annotations: true, createdAt: true, creditsPerCent: true, databaseId: true, enableAggregates: true, enableBilling: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, labels: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }, + selection: { fields: { annotations: true, createdAt: true, creditsPerCent: true, databaseId: true, enableAggregates: true, enableBilling: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, labels: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useDatabaseSettingsQuery({ const { mutate } = useCreateDatabaseSettingMutation({ selection: { fields: { id: true } }, }); -mutate({ annotations: '', creditsPerCent: '', databaseId: '', enableAggregates: '', enableBilling: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', labels: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }); +mutate({ annotations: '', creditsPerCent: '', databaseId: '', enableAggregates: '', enableBilling: '', enableBulk: '', enableConnectionFilter: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', labels: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }); ``` diff --git a/.agents/skills/hooks-api/references/database.md b/.agents/skills/hooks-api/references/database.md index 873a0ec6a6..4b02fee5e3 100644 --- a/.agents/skills/hooks-api/references/database.md +++ b/.agents/skills/hooks-api/references/database.md @@ -30,5 +30,5 @@ const { data, isLoading } = useDatabasesQuery({ const { mutate } = useCreateDatabaseMutation({ selection: { fields: { id: true } }, }); -mutate({ hash: '', label: '', name: '', ownerId: '', platform: '', suspendedAt: '', suspendedReason: '' }); +mutate({ hash: '', label: '', name: '', ownerId: '', platform: '' }); ``` diff --git a/.agents/skills/hooks-api/references/get-site-previews-record.md b/.agents/skills/hooks-api/references/get-site-previews-record.md index 69caaec7ff..e390acb788 100644 --- a/.agents/skills/hooks-api/references/get-site-previews-record.md +++ b/.agents/skills/hooks-api/references/get-site-previews-record.md @@ -8,7 +8,6 @@ React Query hooks for GetSitePreviewsRecord data operations ```typescript useGetSitePreviewsQuery({ selection: { fields: { commitId: true, name: true } } }) -useCreateGetSitePreviewsRecordMutation({ selection: { fields: { id: true } } }) ``` ## Examples @@ -20,12 +19,3 @@ const { data, isLoading } = useGetSitePreviewsQuery({ selection: { fields: { commitId: true, name: true } }, }); ``` - -### Create a getSitePreviewsRecord - -```typescript -const { mutate } = useCreateGetSitePreviewsRecordMutation({ - selection: { fields: { id: true } }, -}); -mutate({ commitId: '', name: '' }); -``` diff --git a/.agents/skills/hooks-api/references/hostname-binding.md b/.agents/skills/hooks-api/references/hostname-binding.md deleted file mode 100644 index befd97e2a7..0000000000 --- a/.agents/skills/hooks-api/references/hostname-binding.md +++ /dev/null @@ -1,34 +0,0 @@ -# hostnameBinding - - - -Compiled hostname index maintained by domain sync triggers; read only through the resolver - -## Usage - -```typescript -useHostnameBindingsQuery({ selection: { fields: { domainId: true, hostname: true, id: true, isWildcard: true, managed: true, parentHostname: true, tlsSecretName: true, tlsStatus: true, updatedAt: true, verificationStatus: true } } }) -useHostnameBindingQuery({ id: '', selection: { fields: { domainId: true, hostname: true, id: true, isWildcard: true, managed: true, parentHostname: true, tlsSecretName: true, tlsStatus: true, updatedAt: true, verificationStatus: true } } }) -useCreateHostnameBindingMutation({ selection: { fields: { id: true } } }) -useUpdateHostnameBindingMutation({ selection: { fields: { id: true } } }) -useDeleteHostnameBindingMutation({}) -``` - -## Examples - -### List all hostnameBindings - -```typescript -const { data, isLoading } = useHostnameBindingsQuery({ - selection: { fields: { domainId: true, hostname: true, id: true, isWildcard: true, managed: true, parentHostname: true, tlsSecretName: true, tlsStatus: true, updatedAt: true, verificationStatus: true } }, -}); -``` - -### Create a hostnameBinding - -```typescript -const { mutate } = useCreateHostnameBindingMutation({ - selection: { fields: { id: true } }, -}); -mutate({ domainId: '', hostname: '', isWildcard: '', managed: '', parentHostname: '', tlsSecretName: '', tlsStatus: '', verificationStatus: '' }); -``` diff --git a/.agents/skills/hooks-api/references/http-route.md b/.agents/skills/hooks-api/references/http-route.md deleted file mode 100644 index eb2c1426f2..0000000000 --- a/.agents/skills/hooks-api/references/http-route.md +++ /dev/null @@ -1,34 +0,0 @@ -# httpRoute - - - -Request-time HTTP routing authority: registered domain plus path prefix and optional method to a typed target - -## Usage - -```typescript -useHttpRoutesQuery({ selection: { fields: { createdAt: true, createdBy: true, databaseId: true, domainId: true, id: true, isActive: true, method: true, path: true, priority: true, targetId: true, targetKind: true, updatedAt: true, updatedBy: true } } }) -useHttpRouteQuery({ id: '', selection: { fields: { createdAt: true, createdBy: true, databaseId: true, domainId: true, id: true, isActive: true, method: true, path: true, priority: true, targetId: true, targetKind: true, updatedAt: true, updatedBy: true } } }) -useCreateHttpRouteMutation({ selection: { fields: { id: true } } }) -useUpdateHttpRouteMutation({ selection: { fields: { id: true } } }) -useDeleteHttpRouteMutation({}) -``` - -## Examples - -### List all httpRoutes - -```typescript -const { data, isLoading } = useHttpRoutesQuery({ - selection: { fields: { createdAt: true, createdBy: true, databaseId: true, domainId: true, id: true, isActive: true, method: true, path: true, priority: true, targetId: true, targetKind: true, updatedAt: true, updatedBy: true } }, -}); -``` - -### Create a httpRoute - -```typescript -const { mutate } = useCreateHttpRouteMutation({ - selection: { fields: { id: true } }, -}); -mutate({ createdBy: '', databaseId: '', domainId: '', isActive: '', method: '', path: '', priority: '', targetId: '', targetKind: '', updatedBy: '' }); -``` diff --git a/.agents/skills/hooks-api/references/list-suspended-databases-record.md b/.agents/skills/hooks-api/references/list-suspended-databases-record.md index e244c3b578..1f043293e3 100644 --- a/.agents/skills/hooks-api/references/list-suspended-databases-record.md +++ b/.agents/skills/hooks-api/references/list-suspended-databases-record.md @@ -9,7 +9,6 @@ React Query hooks for ListSuspendedDatabasesRecord data operations ```typescript useListSuspendedDatabasesQuery({ selection: { fields: { id: true, name: true, ownerId: true, suspendedAt: true, suspendedReason: true } } }) useListSuspendedDatabasesRecordQuery({ id: '', selection: { fields: { id: true, name: true, ownerId: true, suspendedAt: true, suspendedReason: true } } }) -useCreateListSuspendedDatabasesRecordMutation({ selection: { fields: { id: true } } }) useUpdateListSuspendedDatabasesRecordMutation({ selection: { fields: { id: true } } }) useDeleteListSuspendedDatabasesRecordMutation({}) ``` @@ -23,12 +22,3 @@ const { data, isLoading } = useListSuspendedDatabasesQuery({ selection: { fields: { id: true, name: true, ownerId: true, suspendedAt: true, suspendedReason: true } }, }); ``` - -### Create a listSuspendedDatabasesRecord - -```typescript -const { mutate } = useCreateListSuspendedDatabasesRecordMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '', ownerId: '', suspendedAt: '', suspendedReason: '' }); -``` diff --git a/.agents/skills/hooks-api/references/migrate-file.md b/.agents/skills/hooks-api/references/migrate-file.md deleted file mode 100644 index b2be30b17a..0000000000 --- a/.agents/skills/hooks-api/references/migrate-file.md +++ /dev/null @@ -1,34 +0,0 @@ -# migrateFile - - - -React Query hooks for MigrateFile data operations - -## Usage - -```typescript -useMigrateFilesQuery({ selection: { fields: { databaseId: true, id: true, upload: true } } }) -useMigrateFileQuery({ id: '', selection: { fields: { databaseId: true, id: true, upload: true } } }) -useCreateMigrateFileMutation({ selection: { fields: { id: true } } }) -useUpdateMigrateFileMutation({ selection: { fields: { id: true } } }) -useDeleteMigrateFileMutation({}) -``` - -## Examples - -### List all migrateFiles - -```typescript -const { data, isLoading } = useMigrateFilesQuery({ - selection: { fields: { databaseId: true, id: true, upload: true } }, -}); -``` - -### Create a migrateFile - -```typescript -const { mutate } = useCreateMigrateFileMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', upload: '' }); -``` diff --git a/.agents/skills/hooks-api/references/platform-api-module.md b/.agents/skills/hooks-api/references/platform-api-module.md deleted file mode 100644 index 9108b75d68..0000000000 --- a/.agents/skills/hooks-api/references/platform-api-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# platformApiModule - - - -Server-side module configuration for an API surface; stores module name and JSON settings - -## Usage - -```typescript -usePlatformApiModulesQuery({ selection: { fields: { apiId: true, createdAt: true, data: true, id: true, name: true, updatedAt: true } } }) -usePlatformApiModuleQuery({ id: '', selection: { fields: { apiId: true, createdAt: true, data: true, id: true, name: true, updatedAt: true } } }) -useCreatePlatformApiModuleMutation({ selection: { fields: { id: true } } }) -useUpdatePlatformApiModuleMutation({ selection: { fields: { id: true } } }) -useDeletePlatformApiModuleMutation({}) -``` - -## Examples - -### List all platformApiModules - -```typescript -const { data, isLoading } = usePlatformApiModulesQuery({ - selection: { fields: { apiId: true, createdAt: true, data: true, id: true, name: true, updatedAt: true } }, -}); -``` - -### Create a platformApiModule - -```typescript -const { mutate } = useCreatePlatformApiModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ apiId: '', data: '', name: '' }); -``` diff --git a/.agents/skills/hooks-api/references/platform-api-setting.md b/.agents/skills/hooks-api/references/platform-api-setting.md index 3b8d6e4821..7461092f6e 100644 --- a/.agents/skills/hooks-api/references/platform-api-setting.md +++ b/.agents/skills/hooks-api/references/platform-api-setting.md @@ -7,8 +7,8 @@ Per-API feature flag overrides; NULL columns inherit from database_settings ## Usage ```typescript -usePlatformApiSettingsQuery({ selection: { fields: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } } }) -usePlatformApiSettingQuery({ id: '', selection: { fields: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } } }) +usePlatformApiSettingsQuery({ selection: { fields: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } } }) +usePlatformApiSettingQuery({ id: '', selection: { fields: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } } }) useCreatePlatformApiSettingMutation({ selection: { fields: { id: true } } }) useUpdatePlatformApiSettingMutation({ selection: { fields: { id: true } } }) useDeletePlatformApiSettingMutation({}) @@ -20,7 +20,7 @@ useDeletePlatformApiSettingMutation({}) ```typescript const { data, isLoading } = usePlatformApiSettingsQuery({ - selection: { fields: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }, + selection: { fields: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = usePlatformApiSettingsQuery({ const { mutate } = useCreatePlatformApiSettingMutation({ selection: { fields: { id: true } }, }); -mutate({ apiId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }); +mutate({ apiId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }); ``` diff --git a/.agents/skills/hooks-api/references/platform-api.md b/.agents/skills/hooks-api/references/platform-api.md index 27d363ff58..6bf70db1e6 100644 --- a/.agents/skills/hooks-api/references/platform-api.md +++ b/.agents/skills/hooks-api/references/platform-api.md @@ -7,8 +7,8 @@ API surfaces exposed by this scope; publication makes a surface bindable from ot ## Usage ```typescript -usePlatformApisQuery({ selection: { fields: { anonRole: true, config: true, createdAt: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } } }) -usePlatformApiQuery({ id: '', selection: { fields: { anonRole: true, config: true, createdAt: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } } }) +usePlatformApisQuery({ selection: { fields: { anonRole: true, config: true, createdAt: true, id: true, isPublished: true, name: true, roleName: true, serviceHostname: true, updatedAt: true } } }) +usePlatformApiQuery({ id: '', selection: { fields: { anonRole: true, config: true, createdAt: true, id: true, isPublished: true, name: true, roleName: true, serviceHostname: true, updatedAt: true } } }) useCreatePlatformApiMutation({ selection: { fields: { id: true } } }) useUpdatePlatformApiMutation({ selection: { fields: { id: true } } }) useDeletePlatformApiMutation({}) @@ -20,7 +20,7 @@ useDeletePlatformApiMutation({}) ```typescript const { data, isLoading } = usePlatformApisQuery({ - selection: { fields: { anonRole: true, config: true, createdAt: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }, + selection: { fields: { anonRole: true, config: true, createdAt: true, id: true, isPublished: true, name: true, roleName: true, serviceHostname: true, updatedAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = usePlatformApisQuery({ const { mutate } = useCreatePlatformApiMutation({ selection: { fields: { id: true } }, }); -mutate({ anonRole: '', config: '', dbname: '', isPublished: '', name: '', roleName: '' }); +mutate({ anonRole: '', config: '', isPublished: '', name: '', roleName: '' }); ``` diff --git a/.agents/skills/hooks-api/references/platform-apis.md b/.agents/skills/hooks-api/references/platform-apis.md deleted file mode 100644 index dba09dddfb..0000000000 --- a/.agents/skills/hooks-api/references/platform-apis.md +++ /dev/null @@ -1,34 +0,0 @@ -# platformApis - - - -API surfaces exposed by this scope; publication makes a surface bindable from other scopes - -## Usage - -```typescript -usePlatformApisesQuery({ selection: { fields: { anonRole: true, config: true, createdAt: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } } }) -usePlatformApisQuery({ id: '', selection: { fields: { anonRole: true, config: true, createdAt: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } } }) -useCreatePlatformApisMutation({ selection: { fields: { id: true } } }) -useUpdatePlatformApisMutation({ selection: { fields: { id: true } } }) -useDeletePlatformApisMutation({}) -``` - -## Examples - -### List all platformApises - -```typescript -const { data, isLoading } = usePlatformApisesQuery({ - selection: { fields: { anonRole: true, config: true, createdAt: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }, -}); -``` - -### Create a platformApis - -```typescript -const { mutate } = useCreatePlatformApisMutation({ - selection: { fields: { id: true } }, -}); -mutate({ anonRole: '', config: '', dbname: '', isPublished: '', name: '', roleName: '' }); -``` diff --git a/.agents/skills/hooks-api/references/platform-get-site-previews-record.md b/.agents/skills/hooks-api/references/platform-get-site-previews-record.md index 5c90fa0be3..ab618cedf4 100644 --- a/.agents/skills/hooks-api/references/platform-get-site-previews-record.md +++ b/.agents/skills/hooks-api/references/platform-get-site-previews-record.md @@ -8,7 +8,6 @@ React Query hooks for PlatformGetSitePreviewsRecord data operations ```typescript usePlatformGetSitePreviewsQuery({ selection: { fields: { commitId: true, name: true } } }) -useCreatePlatformGetSitePreviewsRecordMutation({ selection: { fields: { id: true } } }) ``` ## Examples @@ -20,12 +19,3 @@ const { data, isLoading } = usePlatformGetSitePreviewsQuery({ selection: { fields: { commitId: true, name: true } }, }); ``` - -### Create a platformGetSitePreviewsRecord - -```typescript -const { mutate } = useCreatePlatformGetSitePreviewsRecordMutation({ - selection: { fields: { id: true } }, -}); -mutate({ commitId: '', name: '' }); -``` diff --git a/.agents/skills/hooks-api/references/platform-reserved-subdomain.md b/.agents/skills/hooks-api/references/platform-reserved-subdomain.md new file mode 100644 index 0000000000..e5de5be5e7 --- /dev/null +++ b/.agents/skills/hooks-api/references/platform-reserved-subdomain.md @@ -0,0 +1,34 @@ +# platformReservedSubdomain + + + +Subdomain labels no tenant may claim under a platform apex + +## Usage + +```typescript +usePlatformReservedSubdomainsQuery({ selection: { fields: { createdAt: true, createdByPrincipal: true, id: true, label: true, match: true, reason: true, updatedAt: true, updatedByPrincipal: true } } }) +usePlatformReservedSubdomainQuery({ id: '', selection: { fields: { createdAt: true, createdByPrincipal: true, id: true, label: true, match: true, reason: true, updatedAt: true, updatedByPrincipal: true } } }) +useCreatePlatformReservedSubdomainMutation({ selection: { fields: { id: true } } }) +useUpdatePlatformReservedSubdomainMutation({ selection: { fields: { id: true } } }) +useDeletePlatformReservedSubdomainMutation({}) +``` + +## Examples + +### List all platformReservedSubdomains + +```typescript +const { data, isLoading } = usePlatformReservedSubdomainsQuery({ + selection: { fields: { createdAt: true, createdByPrincipal: true, id: true, label: true, match: true, reason: true, updatedAt: true, updatedByPrincipal: true } }, +}); +``` + +### Create a platformReservedSubdomain + +```typescript +const { mutate } = useCreatePlatformReservedSubdomainMutation({ + selection: { fields: { id: true } }, +}); +mutate({ createdByPrincipal: '', label: '', match: '', reason: '', updatedByPrincipal: '' }); +``` diff --git a/.agents/skills/hooks-api/references/provision-database-with-user.md b/.agents/skills/hooks-api/references/provision-database-with-user.md deleted file mode 100644 index 99f34945ba..0000000000 --- a/.agents/skills/hooks-api/references/provision-database-with-user.md +++ /dev/null @@ -1,20 +0,0 @@ -# provisionDatabaseWithUser - - - -React Query mutation hook for provisionDatabaseWithUser - -## Usage - -```typescript -const { mutate } = useProvisionDatabaseWithUserMutation(); mutate({ input: { pDatabaseName: '', pDomain: '', pSubdomain: '', pModules: '', pOptions: '' } }); -``` - -## Examples - -### Use useProvisionDatabaseWithUserMutation - -```typescript -const { mutate, isLoading } = useProvisionDatabaseWithUserMutation(); -mutate({ input: { pDatabaseName: '', pDomain: '', pSubdomain: '', pModules: '', pOptions: '' } }); -``` diff --git a/.agents/skills/hooks-api/references/resolve-deep-link.md b/.agents/skills/hooks-api/references/resolve-deep-link.md deleted file mode 100644 index a5ebfd45fd..0000000000 --- a/.agents/skills/hooks-api/references/resolve-deep-link.md +++ /dev/null @@ -1,19 +0,0 @@ -# resolveDeepLink - - - -React Query query hook for resolveDeepLink - -## Usage - -```typescript -useResolveDeepLinkQuery({ linkSlug: '', targetSiteId: '' }) -``` - -## Examples - -### Use useResolveDeepLinkQuery - -```typescript -const { data, isLoading } = useResolveDeepLinkQuery({ linkSlug: '', targetSiteId: '' }); -``` diff --git a/.agents/skills/hooks-api/references/resolve-http-route.md b/.agents/skills/hooks-api/references/resolve-http-route.md deleted file mode 100644 index 602f0df62b..0000000000 --- a/.agents/skills/hooks-api/references/resolve-http-route.md +++ /dev/null @@ -1,19 +0,0 @@ -# resolveHttpRoute - - - -React Query query hook for resolveHttpRoute - -## Usage - -```typescript -useResolveHttpRouteQuery({ requestHost: '', requestMethod: '', requestPath: '' }) -``` - -## Examples - -### Use useResolveHttpRouteQuery - -```typescript -const { data, isLoading } = useResolveHttpRouteQuery({ requestHost: '', requestMethod: '', requestPath: '' }); -``` diff --git a/.agents/skills/hooks-api/references/resolve-route.md b/.agents/skills/hooks-api/references/resolve-route.md deleted file mode 100644 index 445e5877bb..0000000000 --- a/.agents/skills/hooks-api/references/resolve-route.md +++ /dev/null @@ -1,19 +0,0 @@ -# resolveRoute - - - -React Query query hook for resolveRoute - -## Usage - -```typescript -useResolveRouteQuery({ requestHost: '', requestMethod: '', requestPath: '' }) -``` - -## Examples - -### Use useResolveRouteQuery - -```typescript -const { data, isLoading } = useResolveRouteQuery({ requestHost: '', requestMethod: '', requestPath: '' }); -``` diff --git a/.agents/skills/hooks-api/references/resolve-site-app-links.md b/.agents/skills/hooks-api/references/resolve-site-app-links.md deleted file mode 100644 index 166ca01989..0000000000 --- a/.agents/skills/hooks-api/references/resolve-site-app-links.md +++ /dev/null @@ -1,19 +0,0 @@ -# resolveSiteAppLinks - - - -React Query query hook for resolveSiteAppLinks - -## Usage - -```typescript -useResolveSiteAppLinksQuery({ targetSiteId: '' }) -``` - -## Examples - -### Use useResolveSiteAppLinksQuery - -```typescript -const { data, isLoading } = useResolveSiteAppLinksQuery({ targetSiteId: '' }); -``` diff --git a/.agents/skills/hooks-api/references/route-binding.md b/.agents/skills/hooks-api/references/route-binding.md deleted file mode 100644 index db7f993c14..0000000000 --- a/.agents/skills/hooks-api/references/route-binding.md +++ /dev/null @@ -1,34 +0,0 @@ -# routeBinding - - - -Compiled route precedence index maintained by route sync triggers; carries typed target ids only, read through the resolver - -## Usage - -```typescript -useRouteBindingsQuery({ selection: { fields: { domainId: true, id: true, isActive: true, method: true, path: true, priority: true, servingSiteId: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, targetRedirectId: true, targetServiceId: true, targetSiteId: true, updatedAt: true } } }) -useRouteBindingQuery({ id: '', selection: { fields: { domainId: true, id: true, isActive: true, method: true, path: true, priority: true, servingSiteId: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, targetRedirectId: true, targetServiceId: true, targetSiteId: true, updatedAt: true } } }) -useCreateRouteBindingMutation({ selection: { fields: { id: true } } }) -useUpdateRouteBindingMutation({ selection: { fields: { id: true } } }) -useDeleteRouteBindingMutation({}) -``` - -## Examples - -### List all routeBindings - -```typescript -const { data, isLoading } = useRouteBindingsQuery({ - selection: { fields: { domainId: true, id: true, isActive: true, method: true, path: true, priority: true, servingSiteId: true, targetApiId: true, targetBucketId: true, targetFunctionId: true, targetRedirectId: true, targetServiceId: true, targetSiteId: true, updatedAt: true } }, -}); -``` - -### Create a routeBinding - -```typescript -const { mutate } = useCreateRouteBindingMutation({ - selection: { fields: { id: true } }, -}); -mutate({ domainId: '', isActive: '', method: '', path: '', priority: '', servingSiteId: '', targetApiId: '', targetBucketId: '', targetFunctionId: '', targetRedirectId: '', targetServiceId: '', targetSiteId: '' }); -``` diff --git a/.agents/skills/hooks-api/references/sql-action.md b/.agents/skills/hooks-api/references/sql-action.md index 061a015953..588731ed5c 100644 --- a/.agents/skills/hooks-api/references/sql-action.md +++ b/.agents/skills/hooks-api/references/sql-action.md @@ -9,7 +9,6 @@ React Query hooks for SqlAction data operations ```typescript useSqlActionsQuery({ selection: { fields: { actionId: true, actionName: true, actorId: true, content: true, createdAt: true, databaseId: true, deploy: true, deps: true, id: true, name: true, payload: true, revert: true, verify: true } } }) useSqlActionQuery({ id: '', selection: { fields: { actionId: true, actionName: true, actorId: true, content: true, createdAt: true, databaseId: true, deploy: true, deps: true, id: true, name: true, payload: true, revert: true, verify: true } } }) -useCreateSqlActionMutation({ selection: { fields: { id: true } } }) useUpdateSqlActionMutation({ selection: { fields: { id: true } } }) useDeleteSqlActionMutation({}) ``` @@ -23,12 +22,3 @@ const { data, isLoading } = useSqlActionsQuery({ selection: { fields: { actionId: true, actionName: true, actorId: true, content: true, createdAt: true, databaseId: true, deploy: true, deps: true, id: true, name: true, payload: true, revert: true, verify: true } }, }); ``` - -### Create a sqlAction - -```typescript -const { mutate } = useCreateSqlActionMutation({ - selection: { fields: { id: true } }, -}); -mutate({ actionId: '', actionName: '', actorId: '', content: '', databaseId: '', deploy: '', deps: '', name: '', payload: '', revert: '', verify: '' }); -``` diff --git a/.agents/skills/hooks-auth/SKILL.md b/.agents/skills/hooks-auth/SKILL.md index c2930123b3..3dffc5a404 100644 --- a/.agents/skills/hooks-auth/SKILL.md +++ b/.agents/skills/hooks-auth/SKILL.md @@ -1,13 +1,13 @@ --- name: hooks-auth -description: React Query hooks for the auth API — provides typed query and mutation hooks for 15 tables and 61 custom operations +description: React Query hooks for the auth API — provides typed query and mutation hooks for 15 tables and 66 custom operations --- # hooks-auth -React Query hooks for the auth API — provides typed query and mutation hooks for 15 tables and 61 custom operations +React Query hooks for the auth API — provides typed query and mutation hooks for 15 tables and 66 custom operations ## Usage @@ -59,6 +59,7 @@ See the `references/` directory for detailed per-entity API documentation: - [current-user-id](references/current-user-id.md) - [get-mfa-status](references/get-mfa-status.md) - [require-step-up](references/require-step-up.md) +- [sign-in-options](references/sign-in-options.md) - [approve-device](references/approve-device.md) - [check-password](references/check-password.md) - [complete-mfa-challenge](references/complete-mfa-challenge.md) @@ -68,6 +69,7 @@ See the `references/` directory for detailed per-entity API documentation: - [create-child-principal](references/create-child-principal.md) - [create-org-api-key](references/create-org-api-key.md) - [create-org-principal](references/create-org-principal.md) +- [create-principal](references/create-principal.md) - [create-principal-from-preset](references/create-principal-from-preset.md) - [delete-org-principal](references/delete-org-principal.md) - [delete-principal](references/delete-principal.md) @@ -78,6 +80,8 @@ See the `references/` directory for detailed per-entity API documentation: - [enable-email-mfa](references/enable-email-mfa.md) - [enable-sms-mfa](references/enable-sms-mfa.md) - [enable-totp](references/enable-totp.md) +- [ensure-auth-csrf](references/ensure-auth-csrf.md) +- [exchange-native-handoff](references/exchange-native-handoff.md) - [extend-token-expires](references/extend-token-expires.md) - [forgot-password](references/forgot-password.md) - [generate-backup-codes](references/generate-backup-codes.md) @@ -86,6 +90,7 @@ See the `references/` directory for detailed per-entity API documentation: - [provision-bucket](references/provision-bucket.md) - [refresh-access-token](references/refresh-access-token.md) - [request-cross-origin-token](references/request-cross-origin-token.md) +- [request-device-approval](references/request-device-approval.md) - [request-magic-link](references/request-magic-link.md) - [reset-password](references/reset-password.md) - [revoke-api-key](references/revoke-api-key.md) diff --git a/.agents/skills/hooks-auth/references/audit-log.md b/.agents/skills/hooks-auth/references/audit-log.md deleted file mode 100644 index f1c30b1846..0000000000 --- a/.agents/skills/hooks-auth/references/audit-log.md +++ /dev/null @@ -1,34 +0,0 @@ -# auditLog - - - -Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) - -## Usage - -```typescript -useAuditLogsQuery({ selection: { fields: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true } } }) -useAuditLogQuery({ id: '', selection: { fields: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true } } }) -useCreateAuditLogMutation({ selection: { fields: { id: true } } }) -useUpdateAuditLogMutation({ selection: { fields: { id: true } } }) -useDeleteAuditLogMutation({}) -``` - -## Examples - -### List all auditLogs - -```typescript -const { data, isLoading } = useAuditLogsQuery({ - selection: { fields: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true } }, -}); -``` - -### Create a auditLog - -```typescript -const { mutate } = useCreateAuditLogMutation({ - selection: { fields: { id: true } }, -}); -mutate({ event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }); -``` diff --git a/.agents/skills/hooks-auth/references/confirm-upload.md b/.agents/skills/hooks-auth/references/confirm-upload.md deleted file mode 100644 index 774bdf12e2..0000000000 --- a/.agents/skills/hooks-auth/references/confirm-upload.md +++ /dev/null @@ -1,22 +0,0 @@ -# confirmUpload - - - -Confirm that a file has been uploaded to S3. -Verifies the object exists in S3, checks content-type, -and transitions the file status from 'pending' to 'ready'. - -## Usage - -```typescript -const { mutate } = useConfirmUploadMutation(); mutate({ input: { fileId: '' } }); -``` - -## Examples - -### Use useConfirmUploadMutation - -```typescript -const { mutate, isLoading } = useConfirmUploadMutation(); -mutate({ input: { fileId: '' } }); -``` diff --git a/.agents/skills/hooks-auth/references/connected-account.md b/.agents/skills/hooks-auth/references/connected-account.md deleted file mode 100644 index e0a68c2247..0000000000 --- a/.agents/skills/hooks-auth/references/connected-account.md +++ /dev/null @@ -1,34 +0,0 @@ -# connectedAccount - - - -OAuth and social login connections linking external service accounts to users - -## Usage - -```typescript -useConnectedAccountsQuery({ selection: { fields: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } } }) -useConnectedAccountQuery({ id: '', selection: { fields: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } } }) -useCreateConnectedAccountMutation({ selection: { fields: { id: true } } }) -useUpdateConnectedAccountMutation({ selection: { fields: { id: true } } }) -useDeleteConnectedAccountMutation({}) -``` - -## Examples - -### List all connectedAccounts - -```typescript -const { data, isLoading } = useConnectedAccountsQuery({ - selection: { fields: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a connectedAccount - -```typescript -const { mutate } = useCreateConnectedAccountMutation({ - selection: { fields: { id: true } }, -}); -mutate({ ownerId: '', service: '', identifier: '', details: '', isVerified: '' }); -``` diff --git a/.agents/skills/hooks-auth/references/create-api-key.md b/.agents/skills/hooks-auth/references/create-api-key.md index f90173478d..06fbe08d54 100644 --- a/.agents/skills/hooks-auth/references/create-api-key.md +++ b/.agents/skills/hooks-auth/references/create-api-key.md @@ -2,7 +2,7 @@ -React Query mutation hook for createApiKey +Mint an API key for the current user; the plaintext key is returned once. access_level: full_access (default) or read_only. mfa_level: none (default) or verified; verified needs a fresh MFA proof on the calling session. A key minted while authenticated by another API key never outlives that key. ## Usage diff --git a/.agents/skills/hooks-auth/references/create-principal.md b/.agents/skills/hooks-auth/references/create-principal.md new file mode 100644 index 0000000000..0a1ee702e4 --- /dev/null +++ b/.agents/skills/hooks-auth/references/create-principal.md @@ -0,0 +1,20 @@ +# createPrincipal + + + +React Query mutation hook for createPrincipal + +## Usage + +```typescript +const { mutate } = useCreatePrincipalMutation(); mutate({ input: { bypassStepUp: '', entityIds: '', isReadOnly: '', name: '', useAdminOwner: '' } }); +``` + +## Examples + +### Use useCreatePrincipalMutation + +```typescript +const { mutate, isLoading } = useCreatePrincipalMutation(); +mutate({ input: { bypassStepUp: '', entityIds: '', isReadOnly: '', name: '', useAdminOwner: '' } }); +``` diff --git a/.agents/skills/hooks-auth/references/ensure-auth-csrf.md b/.agents/skills/hooks-auth/references/ensure-auth-csrf.md new file mode 100644 index 0000000000..d04ae69d3d --- /dev/null +++ b/.agents/skills/hooks-auth/references/ensure-auth-csrf.md @@ -0,0 +1,20 @@ +# ensureAuthCsrf + + + +React Query mutation hook for ensureAuthCsrf + +## Usage + +```typescript +const { mutate } = useEnsureAuthCsrfMutation(); mutate({ input: { existingToken: '' } }); +``` + +## Examples + +### Use useEnsureAuthCsrfMutation + +```typescript +const { mutate, isLoading } = useEnsureAuthCsrfMutation(); +mutate({ input: { existingToken: '' } }); +``` diff --git a/.agents/skills/hooks-auth/references/exchange-native-handoff.md b/.agents/skills/hooks-auth/references/exchange-native-handoff.md new file mode 100644 index 0000000000..b99bbc0c4a --- /dev/null +++ b/.agents/skills/hooks-auth/references/exchange-native-handoff.md @@ -0,0 +1,20 @@ +# exchangeNativeHandoff + + + +React Query mutation hook for exchangeNativeHandoff + +## Usage + +```typescript +const { mutate } = useExchangeNativeHandoffMutation(); mutate({ input: { code: '', codeVerifier: '', credentialKind: '' } }); +``` + +## Examples + +### Use useExchangeNativeHandoffMutation + +```typescript +const { mutate, isLoading } = useExchangeNativeHandoffMutation(); +mutate({ input: { code: '', codeVerifier: '', credentialKind: '' } }); +``` diff --git a/.agents/skills/hooks-auth/references/identity-provider.md b/.agents/skills/hooks-auth/references/identity-provider.md index 69322b6b16..123083f23a 100644 --- a/.agents/skills/hooks-auth/references/identity-provider.md +++ b/.agents/skills/hooks-auth/references/identity-provider.md @@ -8,7 +8,6 @@ React Query hooks for IdentityProvider data operations ```typescript useIdentityProvidersQuery({ selection: { fields: { displayName: true, enabled: true, kind: true, slug: true } } }) -useCreateIdentityProviderMutation({ selection: { fields: { id: true } } }) ``` ## Examples @@ -20,12 +19,3 @@ const { data, isLoading } = useIdentityProvidersQuery({ selection: { fields: { displayName: true, enabled: true, kind: true, slug: true } }, }); ``` - -### Create a identityProvider - -```typescript -const { mutate } = useCreateIdentityProviderMutation({ - selection: { fields: { id: true } }, -}); -mutate({ displayName: '', enabled: '', kind: '', slug: '' }); -``` diff --git a/.agents/skills/hooks-auth/references/one-time-token.md b/.agents/skills/hooks-auth/references/one-time-token.md deleted file mode 100644 index ad931a6988..0000000000 --- a/.agents/skills/hooks-auth/references/one-time-token.md +++ /dev/null @@ -1,20 +0,0 @@ -# oneTimeToken - - - -React Query mutation hook for oneTimeToken - -## Usage - -```typescript -const { mutate } = useOneTimeTokenMutation(); mutate({ input: { email: '', password: '', origin: '', rememberMe: '' } }); -``` - -## Examples - -### Use useOneTimeTokenMutation - -```typescript -const { mutate, isLoading } = useOneTimeTokenMutation(); -mutate({ input: { email: '', password: '', origin: '', rememberMe: '' } }); -``` diff --git a/.agents/skills/hooks-auth/references/org-api-key-list.md b/.agents/skills/hooks-auth/references/org-api-key-list.md index 965eedcc1a..54b8e68dd8 100644 --- a/.agents/skills/hooks-auth/references/org-api-key-list.md +++ b/.agents/skills/hooks-auth/references/org-api-key-list.md @@ -9,7 +9,6 @@ React Query hooks for OrgApiKeyList data operations ```typescript useOrgApiKeyListsQuery({ selection: { fields: { accessLevel: true, createdAt: true, expiresAt: true, id: true, keyId: true, lastUsedAt: true, mfaLevel: true, name: true, orgId: true, principalId: true, revokedAt: true, updatedAt: true } } }) useOrgApiKeyListQuery({ id: '', selection: { fields: { accessLevel: true, createdAt: true, expiresAt: true, id: true, keyId: true, lastUsedAt: true, mfaLevel: true, name: true, orgId: true, principalId: true, revokedAt: true, updatedAt: true } } }) -useCreateOrgApiKeyListMutation({ selection: { fields: { id: true } } }) useUpdateOrgApiKeyListMutation({ selection: { fields: { id: true } } }) useDeleteOrgApiKeyListMutation({}) ``` @@ -23,12 +22,3 @@ const { data, isLoading } = useOrgApiKeyListsQuery({ selection: { fields: { accessLevel: true, createdAt: true, expiresAt: true, id: true, keyId: true, lastUsedAt: true, mfaLevel: true, name: true, orgId: true, principalId: true, revokedAt: true, updatedAt: true } }, }); ``` - -### Create a orgApiKeyList - -```typescript -const { mutate } = useCreateOrgApiKeyListMutation({ - selection: { fields: { id: true } }, -}); -mutate({ accessLevel: '', expiresAt: '', keyId: '', lastUsedAt: '', mfaLevel: '', name: '', orgId: '', principalId: '', revokedAt: '' }); -``` diff --git a/.agents/skills/hooks-auth/references/principal-entity.md b/.agents/skills/hooks-auth/references/principal-entity.md index 189cf1d605..50a33090f9 100644 --- a/.agents/skills/hooks-auth/references/principal-entity.md +++ b/.agents/skills/hooks-auth/references/principal-entity.md @@ -9,7 +9,6 @@ Association table scoping principals to specific organizations ```typescript usePrincipalEntitiesQuery({ selection: { fields: { createdAt: true, entityId: true, id: true, ownerId: true, principalId: true, updatedAt: true } } }) usePrincipalEntityQuery({ id: '', selection: { fields: { createdAt: true, entityId: true, id: true, ownerId: true, principalId: true, updatedAt: true } } }) -useCreatePrincipalEntityMutation({ selection: { fields: { id: true } } }) useUpdatePrincipalEntityMutation({ selection: { fields: { id: true } } }) useDeletePrincipalEntityMutation({}) ``` @@ -23,12 +22,3 @@ const { data, isLoading } = usePrincipalEntitiesQuery({ selection: { fields: { createdAt: true, entityId: true, id: true, ownerId: true, principalId: true, updatedAt: true } }, }); ``` - -### Create a principalEntity - -```typescript -const { mutate } = useCreatePrincipalEntityMutation({ - selection: { fields: { id: true } }, -}); -mutate({ entityId: '', ownerId: '', principalId: '' }); -``` diff --git a/.agents/skills/hooks-auth/references/principal-scope-override.md b/.agents/skills/hooks-auth/references/principal-scope-override.md index 05e8536225..8b18f93722 100644 --- a/.agents/skills/hooks-auth/references/principal-scope-override.md +++ b/.agents/skills/hooks-auth/references/principal-scope-override.md @@ -9,7 +9,6 @@ Per-scope capability overrides for principals. No row = full access; row exists ```typescript usePrincipalScopeOverridesQuery({ selection: { fields: { allowedMask: true, createdAt: true, id: true, isActive: true, isReadOnly: true, membershipType: true, principalId: true, updatedAt: true, useAdminOwner: true } } }) usePrincipalScopeOverrideQuery({ id: '', selection: { fields: { allowedMask: true, createdAt: true, id: true, isActive: true, isReadOnly: true, membershipType: true, principalId: true, updatedAt: true, useAdminOwner: true } } }) -useCreatePrincipalScopeOverrideMutation({ selection: { fields: { id: true } } }) useUpdatePrincipalScopeOverrideMutation({ selection: { fields: { id: true } } }) useDeletePrincipalScopeOverrideMutation({}) ``` @@ -23,12 +22,3 @@ const { data, isLoading } = usePrincipalScopeOverridesQuery({ selection: { fields: { allowedMask: true, createdAt: true, id: true, isActive: true, isReadOnly: true, membershipType: true, principalId: true, updatedAt: true, useAdminOwner: true } }, }); ``` - -### Create a principalScopeOverride - -```typescript -const { mutate } = useCreatePrincipalScopeOverrideMutation({ - selection: { fields: { id: true } }, -}); -mutate({ allowedMask: '', isActive: '', isReadOnly: '', membershipType: '', principalId: '', useAdminOwner: '' }); -``` diff --git a/.agents/skills/hooks-auth/references/principal.md b/.agents/skills/hooks-auth/references/principal.md index 02066a3381..cad6a2154f 100644 --- a/.agents/skills/hooks-auth/references/principal.md +++ b/.agents/skills/hooks-auth/references/principal.md @@ -9,7 +9,6 @@ Scoped sub-identities (API keys and agents) with precomputed SPRT ```typescript usePrincipalsQuery({ selection: { fields: { apiKeyMaxDuration: true, bypassStepUp: true, createdAt: true, createdBySessionId: true, depth: true, expiresAt: true, id: true, isReadOnly: true, name: true, ownerId: true, parentPrincipalId: true, updatedAt: true, useAdminOwner: true, userId: true } } }) usePrincipalQuery({ principalId: '', selection: { fields: { apiKeyMaxDuration: true, bypassStepUp: true, createdAt: true, createdBySessionId: true, depth: true, expiresAt: true, id: true, isReadOnly: true, name: true, ownerId: true, parentPrincipalId: true, updatedAt: true, useAdminOwner: true, userId: true } } }) -useCreatePrincipalMutation({ selection: { fields: { principalId: true } } }) useUpdatePrincipalMutation({ selection: { fields: { principalId: true } } }) useDeletePrincipalMutation({}) ``` @@ -23,12 +22,3 @@ const { data, isLoading } = usePrincipalsQuery({ selection: { fields: { apiKeyMaxDuration: true, bypassStepUp: true, createdAt: true, createdBySessionId: true, depth: true, expiresAt: true, id: true, isReadOnly: true, name: true, ownerId: true, parentPrincipalId: true, updatedAt: true, useAdminOwner: true, userId: true } }, }); ``` - -### Create a principal - -```typescript -const { mutate } = useCreatePrincipalMutation({ - selection: { fields: { principalId: true } }, -}); -mutate({ apiKeyMaxDuration: '', bypassStepUp: '', createdBySessionId: '', depth: '', expiresAt: '', id: '', isReadOnly: '', name: '', ownerId: '', parentPrincipalId: '', useAdminOwner: '', userId: '' }); -``` diff --git a/.agents/skills/hooks-auth/references/provision-new-user.md b/.agents/skills/hooks-auth/references/provision-new-user.md deleted file mode 100644 index b9b1f9abe5..0000000000 --- a/.agents/skills/hooks-auth/references/provision-new-user.md +++ /dev/null @@ -1,20 +0,0 @@ -# provisionNewUser - - - -React Query mutation hook for provisionNewUser - -## Usage - -```typescript -const { mutate } = useProvisionNewUserMutation(); mutate({ input: { email: '', password: '' } }); -``` - -## Examples - -### Use useProvisionNewUserMutation - -```typescript -const { mutate, isLoading } = useProvisionNewUserMutation(); -mutate({ input: { email: '', password: '' } }); -``` diff --git a/.agents/skills/hooks-auth/references/request-device-approval.md b/.agents/skills/hooks-auth/references/request-device-approval.md new file mode 100644 index 0000000000..71a4005c32 --- /dev/null +++ b/.agents/skills/hooks-auth/references/request-device-approval.md @@ -0,0 +1,20 @@ +# requestDeviceApproval + + + +React Query mutation hook for requestDeviceApproval + +## Usage + +```typescript +const { mutate } = useRequestDeviceApprovalMutation(); mutate({ input: { deviceToken: '', next: '', userId: '' } }); +``` + +## Examples + +### Use useRequestDeviceApprovalMutation + +```typescript +const { mutate, isLoading } = useRequestDeviceApprovalMutation(); +mutate({ input: { deviceToken: '', next: '', userId: '' } }); +``` diff --git a/.agents/skills/hooks-auth/references/request-magic-link.md b/.agents/skills/hooks-auth/references/request-magic-link.md index 249240c4d5..159f386d5d 100644 --- a/.agents/skills/hooks-auth/references/request-magic-link.md +++ b/.agents/skills/hooks-auth/references/request-magic-link.md @@ -7,7 +7,7 @@ React Query mutation hook for requestMagicLink ## Usage ```typescript -const { mutate } = useRequestMagicLinkMutation(); mutate({ input: { email: '', next: '' } }); +const { mutate } = useRequestMagicLinkMutation(); mutate({ input: { codeChallenge: '', email: '', nativeRedirectUri: '', next: '' } }); ``` ## Examples @@ -16,5 +16,5 @@ const { mutate } = useRequestMagicLinkMutation(); mutate({ input: { email: '', next: '' } }); +mutate({ input: { codeChallenge: '', email: '', nativeRedirectUri: '', next: '' } }); ``` diff --git a/.agents/skills/hooks-auth/references/request-upload-url.md b/.agents/skills/hooks-auth/references/request-upload-url.md deleted file mode 100644 index 9be983e132..0000000000 --- a/.agents/skills/hooks-auth/references/request-upload-url.md +++ /dev/null @@ -1,23 +0,0 @@ -# requestUploadUrl - - - -Request a presigned URL for uploading a file directly to S3. -Client computes SHA-256 of the file content and provides it here. -If a file with the same hash already exists (dedup), returns the -existing file ID and deduplicated=true with no uploadUrl. - -## Usage - -```typescript -const { mutate } = useRequestUploadUrlMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useRequestUploadUrlMutation - -```typescript -const { mutate, isLoading } = useRequestUploadUrlMutation(); -mutate({ input: '' }); -``` diff --git a/.agents/skills/hooks-auth/references/set-password.md b/.agents/skills/hooks-auth/references/set-password.md index 91b80a3d53..ff091798bb 100644 --- a/.agents/skills/hooks-auth/references/set-password.md +++ b/.agents/skills/hooks-auth/references/set-password.md @@ -7,7 +7,7 @@ React Query mutation hook for setPassword ## Usage ```typescript -const { mutate } = useSetPasswordMutation(); mutate({ input: { currentPassword: '', newPassword: '' } }); +const { mutate } = useSetPasswordMutation(); mutate({ input: { currentPassword: '', newPassword: '', signOutOtherSessions: '' } }); ``` ## Examples @@ -16,5 +16,5 @@ const { mutate } = useSetPasswordMutation(); mutate({ input: { currentPassword: ```typescript const { mutate, isLoading } = useSetPasswordMutation(); -mutate({ input: { currentPassword: '', newPassword: '' } }); +mutate({ input: { currentPassword: '', newPassword: '', signOutOtherSessions: '' } }); ``` diff --git a/.agents/skills/hooks-auth/references/sign-in-one-time-token.md b/.agents/skills/hooks-auth/references/sign-in-one-time-token.md deleted file mode 100644 index da7912283a..0000000000 --- a/.agents/skills/hooks-auth/references/sign-in-one-time-token.md +++ /dev/null @@ -1,20 +0,0 @@ -# signInOneTimeToken - - - -React Query mutation hook for signInOneTimeToken - -## Usage - -```typescript -const { mutate } = useSignInOneTimeTokenMutation(); mutate({ input: { token: '', credentialKind: '' } }); -``` - -## Examples - -### Use useSignInOneTimeTokenMutation - -```typescript -const { mutate, isLoading } = useSignInOneTimeTokenMutation(); -mutate({ input: { token: '', credentialKind: '' } }); -``` diff --git a/.agents/skills/hooks-auth/references/sign-in-options.md b/.agents/skills/hooks-auth/references/sign-in-options.md new file mode 100644 index 0000000000..33b93083b1 --- /dev/null +++ b/.agents/skills/hooks-auth/references/sign-in-options.md @@ -0,0 +1,19 @@ +# signInOptions + + + +React Query query hook for signInOptions + +## Usage + +```typescript +useSignInOptionsQuery() +``` + +## Examples + +### Use useSignInOptionsQuery + +```typescript +const { data, isLoading } = useSignInOptionsQuery(); +``` diff --git a/.agents/skills/hooks-auth/references/user-connected-account.md b/.agents/skills/hooks-auth/references/user-connected-account.md index 2a89f114f1..12c6ac26d2 100644 --- a/.agents/skills/hooks-auth/references/user-connected-account.md +++ b/.agents/skills/hooks-auth/references/user-connected-account.md @@ -9,7 +9,6 @@ React Query hooks for UserConnectedAccount data operations ```typescript useUserConnectedAccountsQuery({ selection: { fields: { createdAt: true, details: true, id: true, identifier: true, isVerified: true, ownerId: true, service: true, updatedAt: true } } }) useUserConnectedAccountQuery({ id: '', selection: { fields: { createdAt: true, details: true, id: true, identifier: true, isVerified: true, ownerId: true, service: true, updatedAt: true } } }) -useCreateUserConnectedAccountMutation({ selection: { fields: { id: true } } }) useUpdateUserConnectedAccountMutation({ selection: { fields: { id: true } } }) useDeleteUserConnectedAccountMutation({}) ``` @@ -23,12 +22,3 @@ const { data, isLoading } = useUserConnectedAccountsQuery({ selection: { fields: { createdAt: true, details: true, id: true, identifier: true, isVerified: true, ownerId: true, service: true, updatedAt: true } }, }); ``` - -### Create a userConnectedAccount - -```typescript -const { mutate } = useCreateUserConnectedAccountMutation({ - selection: { fields: { id: true } }, -}); -mutate({ details: '', identifier: '', isVerified: '', ownerId: '', service: '' }); -``` diff --git a/.agents/skills/hooks-auth/references/user.md b/.agents/skills/hooks-auth/references/user.md index edcd995b1e..4bd6e12ba8 100644 --- a/.agents/skills/hooks-auth/references/user.md +++ b/.agents/skills/hooks-auth/references/user.md @@ -30,5 +30,5 @@ const { data, isLoading } = useUsersQuery({ const { mutate } = useCreateUserMutation({ selection: { fields: { id: true } }, }); -mutate({ displayName: '', displayNameTrgmSimilarity: '', profilePicture: '', searchScore: '', searchTsv: '', searchTsvRank: '', type: '', username: '' }); +mutate({ displayName: '', profilePicture: '', type: '', username: '' }); ``` diff --git a/.agents/skills/hooks-auth/references/verify-email.md b/.agents/skills/hooks-auth/references/verify-email.md index 1f404805ba..703aa8a4ff 100644 --- a/.agents/skills/hooks-auth/references/verify-email.md +++ b/.agents/skills/hooks-auth/references/verify-email.md @@ -7,7 +7,7 @@ React Query mutation hook for verifyEmail ## Usage ```typescript -const { mutate } = useVerifyEmailMutation(); mutate({ input: { emailId: '', token: '' } }); +const { mutate } = useVerifyEmailMutation(); mutate({ input: { emailId: '', password: '', token: '' } }); ``` ## Examples @@ -16,5 +16,5 @@ const { mutate } = useVerifyEmailMutation(); mutate({ input: { emailId: '' ```typescript const { mutate, isLoading } = useVerifyEmailMutation(); -mutate({ input: { emailId: '', token: '' } }); +mutate({ input: { emailId: '', password: '', token: '' } }); ``` diff --git a/.agents/skills/hooks-compute/SKILL.md b/.agents/skills/hooks-compute/SKILL.md index e5bdfffbe0..b8dcbad4c8 100644 --- a/.agents/skills/hooks-compute/SKILL.md +++ b/.agents/skills/hooks-compute/SKILL.md @@ -1,13 +1,13 @@ --- name: hooks-compute -description: React Query hooks for the compute API — provides typed query and mutation hooks for 123 tables and 64 custom operations +description: React Query hooks for the compute API — provides typed query and mutation hooks for 123 tables and 65 custom operations --- # hooks-compute -React Query hooks for the compute API — provides typed query and mutation hooks for 123 tables and 64 custom operations +React Query hooks for the compute API — provides typed query and mutation hooks for 123 tables and 65 custom operations ## Usage @@ -40,7 +40,6 @@ See the `references/` directory for detailed per-entity API documentation: - [build](references/build.md) - [build-step](references/build-step.md) -- [builder-binding](references/builder-binding.md) - [content-preset](references/content-preset.md) - [database-function-graph](references/database-function-graph.md) - [database-function-graph-execution-cancel-request](references/database-function-graph-execution-cancel-request.md) @@ -84,7 +83,6 @@ See the `references/` directory for detailed per-entity API documentation: - [namespace-event](references/namespace-event.md) - [platform-build](references/platform-build.md) - [platform-build-step](references/platform-build-step.md) -- [platform-builder-binding](references/platform-builder-binding.md) - [platform-function-api-binding](references/platform-function-api-binding.md) - [platform-function-capability-binding](references/platform-function-capability-binding.md) - [platform-function-definition](references/platform-function-definition.md) @@ -131,6 +129,7 @@ See the `references/` directory for detailed per-entity API documentation: - [platform-resources-health](references/platform-resources-health.md) - [platform-resources-requirements-state](references/platform-resources-requirements-state.md) - [platform-resources-resolved-requirement](references/platform-resources-resolved-requirement.md) +- [platform-service-binding](references/platform-service-binding.md) - [platform-webhook-endpoint](references/platform-webhook-endpoint.md) - [platform-webhook-event](references/platform-webhook-event.md) - [proposal-comment](references/proposal-comment.md) @@ -159,6 +158,7 @@ See the `references/` directory for detailed per-entity API documentation: - [resources-health](references/resources-health.md) - [resources-requirements-state](references/resources-requirements-state.md) - [resources-resolved-requirement](references/resources-resolved-requirement.md) +- [service-binding](references/service-binding.md) - [webhook-endpoint](references/webhook-endpoint.md) - [webhook-event](references/webhook-event.md) - [database-read-function-graph](references/database-read-function-graph.md) @@ -169,6 +169,7 @@ See the `references/` directory for detailed per-entity API documentation: - [add-node-and-save](references/add-node-and-save.md) - [approve-node](references/approve-node.md) - [copy-graph](references/copy-graph.md) +- [create-function-graph](references/create-function-graph.md) - [database-add-edge](references/database-add-edge.md) - [database-add-edge-and-save](references/database-add-edge-and-save.md) - [database-add-node](references/database-add-node.md) diff --git a/.agents/skills/hooks-compute/references/builder-binding.md b/.agents/skills/hooks-compute/references/builder-binding.md deleted file mode 100644 index 7c020d2bcc..0000000000 --- a/.agents/skills/hooks-compute/references/builder-binding.md +++ /dev/null @@ -1,34 +0,0 @@ -# builderBinding - - - -Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST - -## Usage - -```typescript -useBuilderBindingsQuery({ selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, installationId: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) -useBuilderBindingQuery({ id: '', selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, installationId: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) -useCreateBuilderBindingMutation({ selection: { fields: { id: true } } }) -useUpdateBuilderBindingMutation({ selection: { fields: { id: true } } }) -useDeleteBuilderBindingMutation({}) -``` - -## Examples - -### List all builderBindings - -```typescript -const { data, isLoading } = useBuilderBindingsQuery({ - selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, installationId: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, -}); -``` - -### Create a builderBinding - -```typescript -const { mutate } = useCreateBuilderBindingMutation({ - selection: { fields: { id: true } }, -}); -mutate({ createdBy: '', createdByPrincipal: '', databaseId: '', installationId: '', lastError: '', metadata: '', namespaceId: '', observedHost: '', realm: '', status: '', updatedBy: '', updatedByPrincipal: '' }); -``` diff --git a/.agents/skills/hooks-compute/references/create-function-graph.md b/.agents/skills/hooks-compute/references/create-function-graph.md new file mode 100644 index 0000000000..5b37361187 --- /dev/null +++ b/.agents/skills/hooks-compute/references/create-function-graph.md @@ -0,0 +1,20 @@ +# createFunctionGraph + + + +React Query mutation hook for createFunctionGraph + +## Usage + +```typescript +const { mutate } = useCreateFunctionGraphMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useCreateFunctionGraphMutation + +```typescript +const { mutate, isLoading } = useCreateFunctionGraphMutation(); +mutate({ input: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/database-function-graph.md b/.agents/skills/hooks-compute/references/database-function-graph.md index 7a6d045cba..35232fbbdc 100644 --- a/.agents/skills/hooks-compute/references/database-function-graph.md +++ b/.agents/skills/hooks-compute/references/database-function-graph.md @@ -9,7 +9,6 @@ Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store ```typescript useDatabaseFunctionGraphsQuery({ selection: { fields: { context: true, createdAt: true, createdBy: true, databaseId: true, definitionsCommitId: true, description: true, id: true, isValid: true, name: true, storeId: true, updatedAt: true, validationErrors: true } } }) useDatabaseFunctionGraphQuery({ id: '', selection: { fields: { context: true, createdAt: true, createdBy: true, databaseId: true, definitionsCommitId: true, description: true, id: true, isValid: true, name: true, storeId: true, updatedAt: true, validationErrors: true } } }) -useCreateDatabaseFunctionGraphMutation({ selection: { fields: { id: true } } }) useUpdateDatabaseFunctionGraphMutation({ selection: { fields: { id: true } } }) useDeleteDatabaseFunctionGraphMutation({}) ``` @@ -23,12 +22,3 @@ const { data, isLoading } = useDatabaseFunctionGraphsQuery({ selection: { fields: { context: true, createdAt: true, createdBy: true, databaseId: true, definitionsCommitId: true, description: true, id: true, isValid: true, name: true, storeId: true, updatedAt: true, validationErrors: true } }, }); ``` - -### Create a databaseFunctionGraph - -```typescript -const { mutate } = useCreateDatabaseFunctionGraphMutation({ - selection: { fields: { id: true } }, -}); -mutate({ context: '', createdBy: '', databaseId: '', definitionsCommitId: '', description: '', isValid: '', name: '', storeId: '', validationErrors: '' }); -``` diff --git a/.agents/skills/hooks-compute/references/database-graph-get-all-tree-nodes-record.md b/.agents/skills/hooks-compute/references/database-graph-get-all-tree-nodes-record.md index b5367ab410..63d3125854 100644 --- a/.agents/skills/hooks-compute/references/database-graph-get-all-tree-nodes-record.md +++ b/.agents/skills/hooks-compute/references/database-graph-get-all-tree-nodes-record.md @@ -8,7 +8,6 @@ React Query hooks for DatabaseGraphGetAllTreeNodesRecord data operations ```typescript useDatabaseGraphGetAllTreeNodesQuery({ selection: { fields: { data: true, path: true } } }) -useCreateDatabaseGraphGetAllTreeNodesRecordMutation({ selection: { fields: { id: true } } }) ``` ## Examples @@ -20,12 +19,3 @@ const { data, isLoading } = useDatabaseGraphGetAllTreeNodesQuery({ selection: { fields: { data: true, path: true } }, }); ``` - -### Create a databaseGraphGetAllTreeNodesRecord - -```typescript -const { mutate } = useCreateDatabaseGraphGetAllTreeNodesRecordMutation({ - selection: { fields: { id: true } }, -}); -mutate({ data: '', path: '' }); -``` diff --git a/.agents/skills/hooks-compute/references/declared-capacity.md b/.agents/skills/hooks-compute/references/declared-capacity.md deleted file mode 100644 index 568d90eb46..0000000000 --- a/.agents/skills/hooks-compute/references/declared-capacity.md +++ /dev/null @@ -1,31 +0,0 @@ -# declaredCapacity - - - -React Query hooks for DeclaredCapacity data operations - -## Usage - -```typescript -useDeclaredCapacitiesQuery({ selection: { fields: { cpuLimitMillicores: true, cpuRequestMillicores: true, installationId: true, isTransient: true, kind: true, memoryLimitBytes: true, memoryRequestBytes: true, namespaceId: true, podCountMax: true, podCountMin: true, source: true, sourceId: true, storageSizeBytes: true } } }) -useCreateDeclaredCapacityMutation({ selection: { fields: { id: true } } }) -``` - -## Examples - -### List all declaredCapacities - -```typescript -const { data, isLoading } = useDeclaredCapacitiesQuery({ - selection: { fields: { cpuLimitMillicores: true, cpuRequestMillicores: true, installationId: true, isTransient: true, kind: true, memoryLimitBytes: true, memoryRequestBytes: true, namespaceId: true, podCountMax: true, podCountMin: true, source: true, sourceId: true, storageSizeBytes: true } }, -}); -``` - -### Create a declaredCapacity - -```typescript -const { mutate } = useCreateDeclaredCapacityMutation({ - selection: { fields: { id: true } }, -}); -mutate({ cpuLimitMillicores: '', cpuRequestMillicores: '', installationId: '', isTransient: '', kind: '', memoryLimitBytes: '', memoryRequestBytes: '', namespaceId: '', podCountMax: '', podCountMin: '', source: '', sourceId: '', storageSizeBytes: '' }); -``` diff --git a/.agents/skills/hooks-compute/references/function-definition.md b/.agents/skills/hooks-compute/references/function-definition.md index 0685edcdb7..e468f2524e 100644 --- a/.agents/skills/hooks-compute/references/function-definition.md +++ b/.agents/skills/hooks-compute/references/function-definition.md @@ -7,8 +7,8 @@ Function definitions — registered cloud functions with routing, queue, and ret ## Usage ```typescript -useFunctionDefinitionsQuery({ selection: { fields: { accessChannels: true, anonymousCallable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdByPrincipal: true, databaseId: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredCapabilities: true, requiredConfigs: true, requiredModels: true, requiredModules: true, requiredSecrets: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, updatedByPrincipal: true, volatile: true } } }) -useFunctionDefinitionQuery({ id: '', selection: { fields: { accessChannels: true, anonymousCallable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdByPrincipal: true, databaseId: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredCapabilities: true, requiredConfigs: true, requiredModels: true, requiredModules: true, requiredSecrets: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, updatedByPrincipal: true, volatile: true } } }) +useFunctionDefinitionsQuery({ selection: { fields: { accessChannels: true, anonymousCallable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdByPrincipal: true, databaseId: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredCapabilities: true, requiredModels: true, requiredModules: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, updatedByPrincipal: true, volatile: true } } }) +useFunctionDefinitionQuery({ id: '', selection: { fields: { accessChannels: true, anonymousCallable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdByPrincipal: true, databaseId: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredCapabilities: true, requiredModels: true, requiredModules: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, updatedByPrincipal: true, volatile: true } } }) useCreateFunctionDefinitionMutation({ selection: { fields: { id: true } } }) useUpdateFunctionDefinitionMutation({ selection: { fields: { id: true } } }) useDeleteFunctionDefinitionMutation({}) @@ -20,7 +20,7 @@ useDeleteFunctionDefinitionMutation({}) ```typescript const { data, isLoading } = useFunctionDefinitionsQuery({ - selection: { fields: { accessChannels: true, anonymousCallable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdByPrincipal: true, databaseId: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredCapabilities: true, requiredConfigs: true, requiredModels: true, requiredModules: true, requiredSecrets: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, updatedByPrincipal: true, volatile: true } }, + selection: { fields: { accessChannels: true, anonymousCallable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdByPrincipal: true, databaseId: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredCapabilities: true, requiredModels: true, requiredModules: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, updatedByPrincipal: true, volatile: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useFunctionDefinitionsQuery({ const { mutate } = useCreateFunctionDefinitionMutation({ selection: { fields: { id: true } }, }); -mutate({ accessChannels: '', anonymousCallable: '', category: '', concurrency: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdByPrincipal: '', databaseId: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', memoryLimitBytes: '', memoryRequestBytes: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredCapabilities: '', requiredConfigs: '', requiredModels: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', updatedByPrincipal: '', volatile: '' }); +mutate({ accessChannels: '', anonymousCallable: '', category: '', concurrency: '', createdByPrincipal: '', databaseId: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredCapabilities: '', requiredConfigs: '', requiredModels: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', targetFunction: '', targetSchema: '', timeoutSeconds: '', updatedByPrincipal: '', volatile: '' }); ``` diff --git a/.agents/skills/hooks-compute/references/function-graph.md b/.agents/skills/hooks-compute/references/function-graph.md index b727bffefd..1120170741 100644 --- a/.agents/skills/hooks-compute/references/function-graph.md +++ b/.agents/skills/hooks-compute/references/function-graph.md @@ -9,7 +9,6 @@ Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store ```typescript useFunctionGraphsQuery({ selection: { fields: { context: true, createdAt: true, createdBy: true, definitionsCommitId: true, description: true, id: true, isValid: true, name: true, scopeId: true, storeId: true, updatedAt: true, validationErrors: true } } }) useFunctionGraphQuery({ id: '', selection: { fields: { context: true, createdAt: true, createdBy: true, definitionsCommitId: true, description: true, id: true, isValid: true, name: true, scopeId: true, storeId: true, updatedAt: true, validationErrors: true } } }) -useCreateFunctionGraphMutation({ selection: { fields: { id: true } } }) useUpdateFunctionGraphMutation({ selection: { fields: { id: true } } }) useDeleteFunctionGraphMutation({}) ``` @@ -23,12 +22,3 @@ const { data, isLoading } = useFunctionGraphsQuery({ selection: { fields: { context: true, createdAt: true, createdBy: true, definitionsCommitId: true, description: true, id: true, isValid: true, name: true, scopeId: true, storeId: true, updatedAt: true, validationErrors: true } }, }); ``` - -### Create a functionGraph - -```typescript -const { mutate } = useCreateFunctionGraphMutation({ - selection: { fields: { id: true } }, -}); -mutate({ context: '', createdBy: '', definitionsCommitId: '', description: '', isValid: '', name: '', scopeId: '', storeId: '', validationErrors: '' }); -``` diff --git a/.agents/skills/hooks-compute/references/get-all-record.md b/.agents/skills/hooks-compute/references/get-all-record.md deleted file mode 100644 index 370dc21681..0000000000 --- a/.agents/skills/hooks-compute/references/get-all-record.md +++ /dev/null @@ -1,31 +0,0 @@ -# getAllRecord - - - -React Query hooks for GetAllRecord data operations - -## Usage - -```typescript -useGetAllQuery({ selection: { fields: { data: true, path: true } } }) -useCreateGetAllRecordMutation({ selection: { fields: { id: true } } }) -``` - -## Examples - -### List all getAll - -```typescript -const { data, isLoading } = useGetAllQuery({ - selection: { fields: { data: true, path: true } }, -}); -``` - -### Create a getAllRecord - -```typescript -const { mutate } = useCreateGetAllRecordMutation({ - selection: { fields: { id: true } }, -}); -mutate({ data: '', path: '' }); -``` diff --git a/.agents/skills/hooks-compute/references/get-all-tree-nodes-record.md b/.agents/skills/hooks-compute/references/get-all-tree-nodes-record.md index 4bd0d0c0bd..d7494a9f6d 100644 --- a/.agents/skills/hooks-compute/references/get-all-tree-nodes-record.md +++ b/.agents/skills/hooks-compute/references/get-all-tree-nodes-record.md @@ -8,7 +8,6 @@ React Query hooks for GetAllTreeNodesRecord data operations ```typescript useGetAllTreeNodesQuery({ selection: { fields: { data: true, path: true } } }) -useCreateGetAllTreeNodesRecordMutation({ selection: { fields: { id: true } } }) ``` ## Examples @@ -20,12 +19,3 @@ const { data, isLoading } = useGetAllTreeNodesQuery({ selection: { fields: { data: true, path: true } }, }); ``` - -### Create a getAllTreeNodesRecord - -```typescript -const { mutate } = useCreateGetAllTreeNodesRecordMutation({ - selection: { fields: { id: true } }, -}); -mutate({ data: '', path: '' }); -``` diff --git a/.agents/skills/hooks-compute/references/infra-get-all-record.md b/.agents/skills/hooks-compute/references/infra-get-all-record.md deleted file mode 100644 index f0342a86ba..0000000000 --- a/.agents/skills/hooks-compute/references/infra-get-all-record.md +++ /dev/null @@ -1,31 +0,0 @@ -# infraGetAllRecord - - - -React Query hooks for InfraGetAllRecord data operations - -## Usage - -```typescript -useInfraGetAllQuery({ selection: { fields: { data: true, path: true } } }) -useCreateInfraGetAllRecordMutation({ selection: { fields: { id: true } } }) -``` - -## Examples - -### List all infraGetAll - -```typescript -const { data, isLoading } = useInfraGetAllQuery({ - selection: { fields: { data: true, path: true } }, -}); -``` - -### Create a infraGetAllRecord - -```typescript -const { mutate } = useCreateInfraGetAllRecordMutation({ - selection: { fields: { id: true } }, -}); -mutate({ data: '', path: '' }); -``` diff --git a/.agents/skills/hooks-compute/references/infra-get-all-tree-nodes-record.md b/.agents/skills/hooks-compute/references/infra-get-all-tree-nodes-record.md index 9da55ec5b2..9170bb9305 100644 --- a/.agents/skills/hooks-compute/references/infra-get-all-tree-nodes-record.md +++ b/.agents/skills/hooks-compute/references/infra-get-all-tree-nodes-record.md @@ -8,7 +8,6 @@ React Query hooks for InfraGetAllTreeNodesRecord data operations ```typescript useInfraGetAllTreeNodesQuery({ selection: { fields: { data: true, path: true } } }) -useCreateInfraGetAllTreeNodesRecordMutation({ selection: { fields: { id: true } } }) ``` ## Examples @@ -20,12 +19,3 @@ const { data, isLoading } = useInfraGetAllTreeNodesQuery({ selection: { fields: { data: true, path: true } }, }); ``` - -### Create a infraGetAllTreeNodesRecord - -```typescript -const { mutate } = useCreateInfraGetAllTreeNodesRecordMutation({ - selection: { fields: { id: true } }, -}); -mutate({ data: '', path: '' }); -``` diff --git a/.agents/skills/hooks-compute/references/integration-provider.md b/.agents/skills/hooks-compute/references/integration-provider.md index 52558b616c..43d3b30b7c 100644 --- a/.agents/skills/hooks-compute/references/integration-provider.md +++ b/.agents/skills/hooks-compute/references/integration-provider.md @@ -7,8 +7,8 @@ Branded catalog of external service integrations and their canonical secret/conf ## Usage ```typescript -useIntegrationProvidersQuery({ selection: { fields: { brand: true, category: true, createdAt: true, description: true, icon: true, id: true, logo: true, name: true, requiredConfigs: true, requiredSecrets: true, slug: true, updatedAt: true } } }) -useIntegrationProviderQuery({ id: '', selection: { fields: { brand: true, category: true, createdAt: true, description: true, icon: true, id: true, logo: true, name: true, requiredConfigs: true, requiredSecrets: true, slug: true, updatedAt: true } } }) +useIntegrationProvidersQuery({ selection: { fields: { brand: true, category: true, createdAt: true, description: true, icon: true, id: true, logo: true, name: true, slug: true, updatedAt: true } } }) +useIntegrationProviderQuery({ id: '', selection: { fields: { brand: true, category: true, createdAt: true, description: true, icon: true, id: true, logo: true, name: true, slug: true, updatedAt: true } } }) useCreateIntegrationProviderMutation({ selection: { fields: { id: true } } }) useUpdateIntegrationProviderMutation({ selection: { fields: { id: true } } }) useDeleteIntegrationProviderMutation({}) @@ -20,7 +20,7 @@ useDeleteIntegrationProviderMutation({}) ```typescript const { data, isLoading } = useIntegrationProvidersQuery({ - selection: { fields: { brand: true, category: true, createdAt: true, description: true, icon: true, id: true, logo: true, name: true, requiredConfigs: true, requiredSecrets: true, slug: true, updatedAt: true } }, + selection: { fields: { brand: true, category: true, createdAt: true, description: true, icon: true, id: true, logo: true, name: true, slug: true, updatedAt: true } }, }); ``` diff --git a/.agents/skills/hooks-compute/references/org-function-execution-log.md b/.agents/skills/hooks-compute/references/org-function-execution-log.md deleted file mode 100644 index d29c450a52..0000000000 --- a/.agents/skills/hooks-compute/references/org-function-execution-log.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgFunctionExecutionLog - - - -Function execution logs — structured console output per invocation - -## Usage - -```typescript -useOrgFunctionExecutionLogsQuery({ selection: { fields: { createdAt: true, id: true, invocationId: true, taskIdentifier: true, logLevel: true, message: true, metadata: true, actorId: true } } }) -useOrgFunctionExecutionLogQuery({ id: '', selection: { fields: { createdAt: true, id: true, invocationId: true, taskIdentifier: true, logLevel: true, message: true, metadata: true, actorId: true } } }) -useCreateOrgFunctionExecutionLogMutation({ selection: { fields: { id: true } } }) -useUpdateOrgFunctionExecutionLogMutation({ selection: { fields: { id: true } } }) -useDeleteOrgFunctionExecutionLogMutation({}) -``` - -## Examples - -### List all orgFunctionExecutionLogs - -```typescript -const { data, isLoading } = useOrgFunctionExecutionLogsQuery({ - selection: { fields: { createdAt: true, id: true, invocationId: true, taskIdentifier: true, logLevel: true, message: true, metadata: true, actorId: true } }, -}); -``` - -### Create a orgFunctionExecutionLog - -```typescript -const { mutate } = useCreateOrgFunctionExecutionLogMutation({ - selection: { fields: { id: true } }, -}); -mutate({ invocationId: '', taskIdentifier: '', logLevel: '', message: '', metadata: '', actorId: '' }); -``` diff --git a/.agents/skills/hooks-compute/references/org-function-invocation.md b/.agents/skills/hooks-compute/references/org-function-invocation.md deleted file mode 100644 index d8489f9e97..0000000000 --- a/.agents/skills/hooks-compute/references/org-function-invocation.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgFunctionInvocation - - - -Function invocation log — INSERT to call a function (business-layer, metered). Linked to definitions by task_identifier string. - -## Usage - -```typescript -useOrgFunctionInvocationsQuery({ selection: { fields: { createdAt: true, id: true, actorId: true, taskIdentifier: true, payload: true, status: true, result: true, error: true, durationMs: true, jobId: true, startedAt: true, completedAt: true, parentInvocationId: true, graphExecutionId: true } } }) -useOrgFunctionInvocationQuery({ id: '', selection: { fields: { createdAt: true, id: true, actorId: true, taskIdentifier: true, payload: true, status: true, result: true, error: true, durationMs: true, jobId: true, startedAt: true, completedAt: true, parentInvocationId: true, graphExecutionId: true } } }) -useCreateOrgFunctionInvocationMutation({ selection: { fields: { id: true } } }) -useUpdateOrgFunctionInvocationMutation({ selection: { fields: { id: true } } }) -useDeleteOrgFunctionInvocationMutation({}) -``` - -## Examples - -### List all orgFunctionInvocations - -```typescript -const { data, isLoading } = useOrgFunctionInvocationsQuery({ - selection: { fields: { createdAt: true, id: true, actorId: true, taskIdentifier: true, payload: true, status: true, result: true, error: true, durationMs: true, jobId: true, startedAt: true, completedAt: true, parentInvocationId: true, graphExecutionId: true } }, -}); -``` - -### Create a orgFunctionInvocation - -```typescript -const { mutate } = useCreateOrgFunctionInvocationMutation({ - selection: { fields: { id: true } }, -}); -mutate({ actorId: '', taskIdentifier: '', payload: '', status: '', result: '', error: '', durationMs: '', jobId: '', startedAt: '', completedAt: '', parentInvocationId: '', graphExecutionId: '' }); -``` diff --git a/.agents/skills/hooks-compute/references/platform-builder-binding.md b/.agents/skills/hooks-compute/references/platform-builder-binding.md deleted file mode 100644 index fe049dc644..0000000000 --- a/.agents/skills/hooks-compute/references/platform-builder-binding.md +++ /dev/null @@ -1,34 +0,0 @@ -# platformBuilderBinding - - - -Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST - -## Usage - -```typescript -usePlatformBuilderBindingsQuery({ selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, installationId: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) -usePlatformBuilderBindingQuery({ id: '', selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, installationId: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) -useCreatePlatformBuilderBindingMutation({ selection: { fields: { id: true } } }) -useUpdatePlatformBuilderBindingMutation({ selection: { fields: { id: true } } }) -useDeletePlatformBuilderBindingMutation({}) -``` - -## Examples - -### List all platformBuilderBindings - -```typescript -const { data, isLoading } = usePlatformBuilderBindingsQuery({ - selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, installationId: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, -}); -``` - -### Create a platformBuilderBinding - -```typescript -const { mutate } = useCreatePlatformBuilderBindingMutation({ - selection: { fields: { id: true } }, -}); -mutate({ createdBy: '', createdByPrincipal: '', installationId: '', lastError: '', metadata: '', namespaceId: '', observedHost: '', realm: '', status: '', updatedBy: '', updatedByPrincipal: '' }); -``` diff --git a/.agents/skills/hooks-compute/references/platform-declared-capacity.md b/.agents/skills/hooks-compute/references/platform-declared-capacity.md deleted file mode 100644 index 01c1b55581..0000000000 --- a/.agents/skills/hooks-compute/references/platform-declared-capacity.md +++ /dev/null @@ -1,31 +0,0 @@ -# platformDeclaredCapacity - - - -React Query hooks for PlatformDeclaredCapacity data operations - -## Usage - -```typescript -usePlatformDeclaredCapacitiesQuery({ selection: { fields: { cpuLimitMillicores: true, cpuRequestMillicores: true, installationId: true, isTransient: true, kind: true, memoryLimitBytes: true, memoryRequestBytes: true, namespaceId: true, podCountMax: true, podCountMin: true, source: true, sourceId: true, storageSizeBytes: true } } }) -useCreatePlatformDeclaredCapacityMutation({ selection: { fields: { id: true } } }) -``` - -## Examples - -### List all platformDeclaredCapacities - -```typescript -const { data, isLoading } = usePlatformDeclaredCapacitiesQuery({ - selection: { fields: { cpuLimitMillicores: true, cpuRequestMillicores: true, installationId: true, isTransient: true, kind: true, memoryLimitBytes: true, memoryRequestBytes: true, namespaceId: true, podCountMax: true, podCountMin: true, source: true, sourceId: true, storageSizeBytes: true } }, -}); -``` - -### Create a platformDeclaredCapacity - -```typescript -const { mutate } = useCreatePlatformDeclaredCapacityMutation({ - selection: { fields: { id: true } }, -}); -mutate({ cpuLimitMillicores: '', cpuRequestMillicores: '', installationId: '', isTransient: '', kind: '', memoryLimitBytes: '', memoryRequestBytes: '', namespaceId: '', podCountMax: '', podCountMin: '', source: '', sourceId: '', storageSizeBytes: '' }); -``` diff --git a/.agents/skills/hooks-compute/references/platform-function-definition.md b/.agents/skills/hooks-compute/references/platform-function-definition.md index 05b009fa7c..62f856079b 100644 --- a/.agents/skills/hooks-compute/references/platform-function-definition.md +++ b/.agents/skills/hooks-compute/references/platform-function-definition.md @@ -7,8 +7,8 @@ Function definitions — registered cloud functions with routing, queue, and ret ## Usage ```typescript -usePlatformFunctionDefinitionsQuery({ selection: { fields: { accessChannels: true, anonymousCallable: true, billable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdByPrincipal: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredCapabilities: true, requiredConfigs: true, requiredModels: true, requiredModules: true, requiredSecrets: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, system: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, updatedByPrincipal: true, volatile: true } } }) -usePlatformFunctionDefinitionQuery({ id: '', selection: { fields: { accessChannels: true, anonymousCallable: true, billable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdByPrincipal: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredCapabilities: true, requiredConfigs: true, requiredModels: true, requiredModules: true, requiredSecrets: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, system: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, updatedByPrincipal: true, volatile: true } } }) +usePlatformFunctionDefinitionsQuery({ selection: { fields: { accessChannels: true, anonymousCallable: true, billable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdByPrincipal: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredCapabilities: true, requiredModels: true, requiredModules: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, system: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, updatedByPrincipal: true, volatile: true } } }) +usePlatformFunctionDefinitionQuery({ id: '', selection: { fields: { accessChannels: true, anonymousCallable: true, billable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdByPrincipal: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredCapabilities: true, requiredModels: true, requiredModules: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, system: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, updatedByPrincipal: true, volatile: true } } }) useCreatePlatformFunctionDefinitionMutation({ selection: { fields: { id: true } } }) useUpdatePlatformFunctionDefinitionMutation({ selection: { fields: { id: true } } }) useDeletePlatformFunctionDefinitionMutation({}) @@ -20,7 +20,7 @@ useDeletePlatformFunctionDefinitionMutation({}) ```typescript const { data, isLoading } = usePlatformFunctionDefinitionsQuery({ - selection: { fields: { accessChannels: true, anonymousCallable: true, billable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdByPrincipal: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredCapabilities: true, requiredConfigs: true, requiredModels: true, requiredModules: true, requiredSecrets: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, system: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, updatedByPrincipal: true, volatile: true } }, + selection: { fields: { accessChannels: true, anonymousCallable: true, billable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdByPrincipal: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredCapabilities: true, requiredModels: true, requiredModules: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, system: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, updatedByPrincipal: true, volatile: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = usePlatformFunctionDefinitionsQuery({ const { mutate } = useCreatePlatformFunctionDefinitionMutation({ selection: { fields: { id: true } }, }); -mutate({ accessChannels: '', anonymousCallable: '', billable: '', category: '', concurrency: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdByPrincipal: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', memoryLimitBytes: '', memoryRequestBytes: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredCapabilities: '', requiredConfigs: '', requiredModels: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', system: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', updatedByPrincipal: '', volatile: '' }); +mutate({ accessChannels: '', anonymousCallable: '', billable: '', category: '', concurrency: '', createdByPrincipal: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredCapabilities: '', requiredConfigs: '', requiredModels: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', system: '', targetFunction: '', targetSchema: '', timeoutSeconds: '', updatedByPrincipal: '', volatile: '' }); ``` diff --git a/.agents/skills/hooks-compute/references/platform-infra-get-all-tree-nodes-record.md b/.agents/skills/hooks-compute/references/platform-infra-get-all-tree-nodes-record.md index bccdb05379..182cdab1f4 100644 --- a/.agents/skills/hooks-compute/references/platform-infra-get-all-tree-nodes-record.md +++ b/.agents/skills/hooks-compute/references/platform-infra-get-all-tree-nodes-record.md @@ -8,7 +8,6 @@ React Query hooks for PlatformInfraGetAllTreeNodesRecord data operations ```typescript usePlatformInfraGetAllTreeNodesQuery({ selection: { fields: { data: true, path: true } } }) -useCreatePlatformInfraGetAllTreeNodesRecordMutation({ selection: { fields: { id: true } } }) ``` ## Examples @@ -20,12 +19,3 @@ const { data, isLoading } = usePlatformInfraGetAllTreeNodesQuery({ selection: { fields: { data: true, path: true } }, }); ``` - -### Create a platformInfraGetAllTreeNodesRecord - -```typescript -const { mutate } = useCreatePlatformInfraGetAllTreeNodesRecordMutation({ - selection: { fields: { id: true } }, -}); -mutate({ data: '', path: '' }); -``` diff --git a/.agents/skills/hooks-compute/references/platform-proposal-comment.md b/.agents/skills/hooks-compute/references/platform-proposal-comment.md index 96b29d7bac..7331ea45ee 100644 --- a/.agents/skills/hooks-compute/references/platform-proposal-comment.md +++ b/.agents/skills/hooks-compute/references/platform-proposal-comment.md @@ -7,8 +7,8 @@ Comments on a local proposal, optionally anchored to a line ## Usage ```typescript -usePlatformProposalCommentsQuery({ selection: { fields: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) -usePlatformProposalCommentQuery({ id: '', selection: { fields: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +usePlatformProposalCommentsQuery({ selection: { fields: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +usePlatformProposalCommentQuery({ id: '', selection: { fields: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) useCreatePlatformProposalCommentMutation({ selection: { fields: { id: true } } }) useUpdatePlatformProposalCommentMutation({ selection: { fields: { id: true } } }) useDeletePlatformProposalCommentMutation({}) @@ -20,7 +20,7 @@ useDeletePlatformProposalCommentMutation({}) ```typescript const { data, isLoading } = usePlatformProposalCommentsQuery({ - selection: { fields: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, + selection: { fields: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = usePlatformProposalCommentsQuery({ const { mutate } = useCreatePlatformProposalCommentMutation({ selection: { fields: { id: true } }, }); -mutate({ actorId: '', attachments: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', line: '', outdatedAt: '', path: '', pathTrgmSimilarity: '', proposalId: '', resolvedAt: '', search: '', searchScore: '', searchTsvRank: '', updatedBy: '', updatedByPrincipal: '' }); +mutate({ actorId: '', attachments: '', body: '', createdBy: '', createdByPrincipal: '', embedding: '', line: '', outdatedAt: '', path: '', proposalId: '', resolvedAt: '', updatedBy: '', updatedByPrincipal: '' }); ``` diff --git a/.agents/skills/hooks-compute/references/platform-proposal-review.md b/.agents/skills/hooks-compute/references/platform-proposal-review.md index 034e1bc7d2..ea79f4cf49 100644 --- a/.agents/skills/hooks-compute/references/platform-proposal-review.md +++ b/.agents/skills/hooks-compute/references/platform-proposal-review.md @@ -30,5 +30,5 @@ const { data, isLoading } = usePlatformProposalReviewsQuery({ const { mutate } = useCreatePlatformProposalReviewMutation({ selection: { fields: { id: true } }, }); -mutate({ body: '', bodyTrgmSimilarity: '', commitSha: '', commitShaTrgmSimilarity: '', createdByPrincipal: '', proposalId: '', reviewerId: '', search: '', searchScore: '', searchTsvRank: '', submittedAt: '', updatedByPrincipal: '', verdict: '', verdictTrgmSimilarity: '' }); +mutate({ body: '', commitSha: '', createdByPrincipal: '', proposalId: '', reviewerId: '', submittedAt: '', updatedByPrincipal: '', verdict: '' }); ``` diff --git a/.agents/skills/hooks-compute/references/platform-proposal.md b/.agents/skills/hooks-compute/references/platform-proposal.md index a0a959571e..843e9d300a 100644 --- a/.agents/skills/hooks-compute/references/platform-proposal.md +++ b/.agents/skills/hooks-compute/references/platform-proposal.md @@ -7,8 +7,8 @@ Proposals against a repository: issues, changes to merge, discussions and decisi ## Usage ```typescript -usePlatformProposalsQuery({ selection: { fields: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) -usePlatformProposalQuery({ id: '', selection: { fields: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +usePlatformProposalsQuery({ selection: { fields: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, decidedAt: true, dueAt: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +usePlatformProposalQuery({ id: '', selection: { fields: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, decidedAt: true, dueAt: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) useCreatePlatformProposalMutation({ selection: { fields: { id: true } } }) useUpdatePlatformProposalMutation({ selection: { fields: { id: true } } }) useDeletePlatformProposalMutation({}) @@ -20,7 +20,7 @@ useDeletePlatformProposalMutation({}) ```typescript const { data, isLoading } = usePlatformProposalsQuery({ - selection: { fields: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, + selection: { fields: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, decidedAt: true, dueAt: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = usePlatformProposalsQuery({ const { mutate } = useCreatePlatformProposalMutation({ selection: { fields: { id: true } }, }); -mutate({ actorId: '', body: '', bodyTrgmSimilarity: '', closedReason: '', closedReasonTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', decidedAt: '', dueAt: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', kind: '', kindTrgmSimilarity: '', labels: '', mergeCommit: '', mergeCommitTrgmSimilarity: '', mergeMethod: '', mergeMethodTrgmSimilarity: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', resolutionTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', sourceRef: '', sourceRefTrgmSimilarity: '', status: '', statusTrgmSimilarity: '', targetRef: '', targetRefTrgmSimilarity: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }); +mutate({ actorId: '', body: '', closedReason: '', createdBy: '', createdByPrincipal: '', decidedAt: '', dueAt: '', embedding: '', kind: '', labels: '', mergeCommit: '', mergeMethod: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', sourceRef: '', status: '', targetRef: '', title: '', updatedBy: '', updatedByPrincipal: '' }); ``` diff --git a/.agents/skills/hooks-compute/references/platform-proposals-chunk.md b/.agents/skills/hooks-compute/references/platform-proposals-chunk.md index 6d85b6c4f9..0a80915676 100644 --- a/.agents/skills/hooks-compute/references/platform-proposals-chunk.md +++ b/.agents/skills/hooks-compute/references/platform-proposals-chunk.md @@ -30,5 +30,5 @@ const { data, isLoading } = usePlatformProposalsChunksQuery({ const { mutate } = useCreatePlatformProposalsChunkMutation({ selection: { fields: { id: true } }, }); -mutate({ actorId: '', body: '', chunkIndex: '', embedding: '', embeddingVectorDistance: '', metadata: '', platformProposalsId: '', searchScore: '' }); +mutate({ actorId: '', body: '', chunkIndex: '', embedding: '', metadata: '', platformProposalsId: '' }); ``` diff --git a/.agents/skills/hooks-compute/references/platform-repository.md b/.agents/skills/hooks-compute/references/platform-repository.md index 7cab10e5de..592a89e9d4 100644 --- a/.agents/skills/hooks-compute/references/platform-repository.md +++ b/.agents/skills/hooks-compute/references/platform-repository.md @@ -7,8 +7,8 @@ Source repositories, hosted locally or on an external provider ## Usage ```typescript -usePlatformRepositoriesQuery({ selection: { fields: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } } }) -usePlatformRepositoryQuery({ id: '', selection: { fields: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } } }) +usePlatformRepositoriesQuery({ selection: { fields: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } } }) +usePlatformRepositoryQuery({ id: '', selection: { fields: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } } }) useCreatePlatformRepositoryMutation({ selection: { fields: { id: true } } }) useUpdatePlatformRepositoryMutation({ selection: { fields: { id: true } } }) useDeletePlatformRepositoryMutation({}) @@ -20,7 +20,7 @@ useDeletePlatformRepositoryMutation({}) ```typescript const { data, isLoading } = usePlatformRepositoriesQuery({ - selection: { fields: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }, + selection: { fields: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = usePlatformRepositoriesQuery({ const { mutate } = useCreatePlatformRepositoryMutation({ selection: { fields: { id: true } }, }); -mutate({ cloneUrl: '', cloneUrlTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', defaultBranch: '', defaultBranchTrgmSimilarity: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', externalId: '', externalIdTrgmSimilarity: '', isArchived: '', metadata: '', name: '', nameTrgmSimilarity: '', ownerId: '', provider: '', providerTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', slug: '', slugTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '', visibility: '', visibilityTrgmSimilarity: '' }); +mutate({ cloneUrl: '', createdBy: '', createdByPrincipal: '', defaultBranch: '', description: '', embedding: '', externalId: '', isArchived: '', metadata: '', name: '', ownerId: '', provider: '', slug: '', updatedBy: '', updatedByPrincipal: '', visibility: '' }); ``` diff --git a/.agents/skills/hooks-compute/references/platform-resource-declared-capacity.md b/.agents/skills/hooks-compute/references/platform-resource-declared-capacity.md index 802a3d2f5a..58b0f21372 100644 --- a/.agents/skills/hooks-compute/references/platform-resource-declared-capacity.md +++ b/.agents/skills/hooks-compute/references/platform-resource-declared-capacity.md @@ -8,7 +8,6 @@ React Query hooks for PlatformResourceDeclaredCapacity data operations ```typescript usePlatformResourceDeclaredCapacitiesQuery({ selection: { fields: { cpuLimitMillicores: true, cpuRequestMillicores: true, installationId: true, isTransient: true, kind: true, memoryLimitBytes: true, memoryRequestBytes: true, namespaceId: true, podCountMax: true, podCountMin: true, source: true, sourceId: true, storageSizeBytes: true, storageTotalBytes: true } } }) -useCreatePlatformResourceDeclaredCapacityMutation({ selection: { fields: { id: true } } }) ``` ## Examples @@ -20,12 +19,3 @@ const { data, isLoading } = usePlatformResourceDeclaredCapacitiesQuery({ selection: { fields: { cpuLimitMillicores: true, cpuRequestMillicores: true, installationId: true, isTransient: true, kind: true, memoryLimitBytes: true, memoryRequestBytes: true, namespaceId: true, podCountMax: true, podCountMin: true, source: true, sourceId: true, storageSizeBytes: true, storageTotalBytes: true } }, }); ``` - -### Create a platformResourceDeclaredCapacity - -```typescript -const { mutate } = useCreatePlatformResourceDeclaredCapacityMutation({ - selection: { fields: { id: true } }, -}); -mutate({ cpuLimitMillicores: '', cpuRequestMillicores: '', installationId: '', isTransient: '', kind: '', memoryLimitBytes: '', memoryRequestBytes: '', namespaceId: '', podCountMax: '', podCountMin: '', source: '', sourceId: '', storageSizeBytes: '', storageTotalBytes: '' }); -``` diff --git a/.agents/skills/hooks-compute/references/platform-resource-definition.md b/.agents/skills/hooks-compute/references/platform-resource-definition.md index 3ea98424ec..1be6347044 100644 --- a/.agents/skills/hooks-compute/references/platform-resource-definition.md +++ b/.agents/skills/hooks-compute/references/platform-resource-definition.md @@ -7,8 +7,8 @@ Resource definitions — templates for resource kinds declaring default spec and ## Usage ```typescript -usePlatformResourceDefinitionsQuery({ selection: { fields: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) -usePlatformResourceDefinitionQuery({ id: '', selection: { fields: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +usePlatformResourceDefinitionsQuery({ selection: { fields: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +usePlatformResourceDefinitionQuery({ id: '', selection: { fields: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) useCreatePlatformResourceDefinitionMutation({ selection: { fields: { id: true } } }) useUpdatePlatformResourceDefinitionMutation({ selection: { fields: { id: true } } }) useDeletePlatformResourceDefinitionMutation({}) @@ -20,7 +20,7 @@ useDeletePlatformResourceDefinitionMutation({}) ```typescript const { data, isLoading } = usePlatformResourceDefinitionsQuery({ - selection: { fields: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, + selection: { fields: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); ``` diff --git a/.agents/skills/hooks-compute/references/platform-resource-observed-storage.md b/.agents/skills/hooks-compute/references/platform-resource-observed-storage.md index faa5c6c104..1647e7be6b 100644 --- a/.agents/skills/hooks-compute/references/platform-resource-observed-storage.md +++ b/.agents/skills/hooks-compute/references/platform-resource-observed-storage.md @@ -8,7 +8,6 @@ React Query hooks for PlatformResourceObservedStorage data operations ```typescript usePlatformResourceObservedStoragesQuery({ selection: { fields: { capacity: true, capacityBytes: true, claimName: true, declaredStorageClass: true, declaredStorageSizeBytes: true, declaredStorageTotalBytes: true, installationId: true, isBound: true, kind: true, namespaceId: true, phase: true, requested: true, requestedBytes: true, resourceId: true, resourceStatus: true, slug: true, storageClass: true, storageName: true } } }) -useCreatePlatformResourceObservedStorageMutation({ selection: { fields: { id: true } } }) ``` ## Examples @@ -20,12 +19,3 @@ const { data, isLoading } = usePlatformResourceObservedStoragesQuery({ selection: { fields: { capacity: true, capacityBytes: true, claimName: true, declaredStorageClass: true, declaredStorageSizeBytes: true, declaredStorageTotalBytes: true, installationId: true, isBound: true, kind: true, namespaceId: true, phase: true, requested: true, requestedBytes: true, resourceId: true, resourceStatus: true, slug: true, storageClass: true, storageName: true } }, }); ``` - -### Create a platformResourceObservedStorage - -```typescript -const { mutate } = useCreatePlatformResourceObservedStorageMutation({ - selection: { fields: { id: true } }, -}); -mutate({ capacity: '', capacityBytes: '', claimName: '', declaredStorageClass: '', declaredStorageSizeBytes: '', declaredStorageTotalBytes: '', installationId: '', isBound: '', kind: '', namespaceId: '', phase: '', requested: '', requestedBytes: '', resourceId: '', resourceStatus: '', slug: '', storageClass: '', storageName: '' }); -``` diff --git a/.agents/skills/hooks-compute/references/platform-resource-utilization-daily.md b/.agents/skills/hooks-compute/references/platform-resource-utilization-daily.md deleted file mode 100644 index 82e9b7da66..0000000000 --- a/.agents/skills/hooks-compute/references/platform-resource-utilization-daily.md +++ /dev/null @@ -1,31 +0,0 @@ -# platformResourceUtilizationDaily - - - -React Query hooks for PlatformResourceUtilizationDaily data operations - -## Usage - -```typescript -usePlatformResourceUtilizationDailiesQuery({ selection: { fields: { avgMemoryBytes: true, cpuLimitMillicores: true, cpuPeakUtilization: true, cpuRequestHeadroomMillicores: true, cpuRequestMillicores: true, date: true, gbSeconds: true, kind: true, maxCpuMillicores: true, maxMemoryBytes: true, memoryLimitBytes: true, memoryPeakUtilization: true, memoryRequestBytes: true, memoryRequestHeadroomBytes: true, namespaceId: true, replicas: true, resourceId: true, runtimeSeconds: true, sampleCount: true } } }) -useCreatePlatformResourceUtilizationDailyMutation({ selection: { fields: { id: true } } }) -``` - -## Examples - -### List all platformResourceUtilizationDailies - -```typescript -const { data, isLoading } = usePlatformResourceUtilizationDailiesQuery({ - selection: { fields: { avgMemoryBytes: true, cpuLimitMillicores: true, cpuPeakUtilization: true, cpuRequestHeadroomMillicores: true, cpuRequestMillicores: true, date: true, gbSeconds: true, kind: true, maxCpuMillicores: true, maxMemoryBytes: true, memoryLimitBytes: true, memoryPeakUtilization: true, memoryRequestBytes: true, memoryRequestHeadroomBytes: true, namespaceId: true, replicas: true, resourceId: true, runtimeSeconds: true, sampleCount: true } }, -}); -``` - -### Create a platformResourceUtilizationDaily - -```typescript -const { mutate } = useCreatePlatformResourceUtilizationDailyMutation({ - selection: { fields: { id: true } }, -}); -mutate({ avgMemoryBytes: '', cpuLimitMillicores: '', cpuPeakUtilization: '', cpuRequestHeadroomMillicores: '', cpuRequestMillicores: '', date: '', gbSeconds: '', kind: '', maxCpuMillicores: '', maxMemoryBytes: '', memoryLimitBytes: '', memoryPeakUtilization: '', memoryRequestBytes: '', memoryRequestHeadroomBytes: '', namespaceId: '', replicas: '', resourceId: '', runtimeSeconds: '', sampleCount: '' }); -``` diff --git a/.agents/skills/hooks-compute/references/platform-resource-utilization.md b/.agents/skills/hooks-compute/references/platform-resource-utilization.md index 445ced6e91..2e0922da7c 100644 --- a/.agents/skills/hooks-compute/references/platform-resource-utilization.md +++ b/.agents/skills/hooks-compute/references/platform-resource-utilization.md @@ -8,7 +8,6 @@ React Query hooks for PlatformResourceUtilization data operations ```typescript usePlatformResourceUtilizationsQuery({ selection: { fields: { avgMemoryBytes: true, cpuLimitMillicores: true, cpuPeakUtilization: true, cpuRequestHeadroomMillicores: true, cpuRequestMillicores: true, date: true, gbSeconds: true, kind: true, maxCpuMillicores: true, maxMemoryBytes: true, memoryLimitBytes: true, memoryPeakUtilization: true, memoryRequestBytes: true, memoryRequestHeadroomBytes: true, namespaceId: true, replicas: true, resourceId: true, runtimeSeconds: true, sampleCount: true } } }) -useCreatePlatformResourceUtilizationMutation({ selection: { fields: { id: true } } }) ``` ## Examples @@ -20,12 +19,3 @@ const { data, isLoading } = usePlatformResourceUtilizationsQuery({ selection: { fields: { avgMemoryBytes: true, cpuLimitMillicores: true, cpuPeakUtilization: true, cpuRequestHeadroomMillicores: true, cpuRequestMillicores: true, date: true, gbSeconds: true, kind: true, maxCpuMillicores: true, maxMemoryBytes: true, memoryLimitBytes: true, memoryPeakUtilization: true, memoryRequestBytes: true, memoryRequestHeadroomBytes: true, namespaceId: true, replicas: true, resourceId: true, runtimeSeconds: true, sampleCount: true } }, }); ``` - -### Create a platformResourceUtilization - -```typescript -const { mutate } = useCreatePlatformResourceUtilizationMutation({ - selection: { fields: { id: true } }, -}); -mutate({ avgMemoryBytes: '', cpuLimitMillicores: '', cpuPeakUtilization: '', cpuRequestHeadroomMillicores: '', cpuRequestMillicores: '', date: '', gbSeconds: '', kind: '', maxCpuMillicores: '', maxMemoryBytes: '', memoryLimitBytes: '', memoryPeakUtilization: '', memoryRequestBytes: '', memoryRequestHeadroomBytes: '', namespaceId: '', replicas: '', resourceId: '', runtimeSeconds: '', sampleCount: '' }); -``` diff --git a/.agents/skills/hooks-compute/references/platform-resource.md b/.agents/skills/hooks-compute/references/platform-resource.md index 594c5ae5f0..d1ffda2f9c 100644 --- a/.agents/skills/hooks-compute/references/platform-resource.md +++ b/.agents/skills/hooks-compute/references/platform-resource.md @@ -7,8 +7,8 @@ Unified K8s resource declarations — stores desired state (spec) and observed s ## Usage ```typescript -usePlatformResourcesQuery({ selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) -usePlatformResourceQuery({ id: '', selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +usePlatformResourcesQuery({ selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +usePlatformResourceQuery({ id: '', selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) useCreatePlatformResourceMutation({ selection: { fields: { id: true } } }) useUpdatePlatformResourceMutation({ selection: { fields: { id: true } } }) useDeletePlatformResourceMutation({}) @@ -20,7 +20,7 @@ useDeletePlatformResourceMutation({}) ```typescript const { data, isLoading } = usePlatformResourcesQuery({ - selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, + selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = usePlatformResourcesQuery({ const { mutate } = useCreatePlatformResourceMutation({ selection: { fields: { id: true } }, }); -mutate({ annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }); +mutate({ annotations: '', createdBy: '', createdByPrincipal: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', name: '', namespaceId: '', realm: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', updatedBy: '', updatedByPrincipal: '' }); ``` diff --git a/.agents/skills/hooks-compute/references/platform-resources-health.md b/.agents/skills/hooks-compute/references/platform-resources-health.md index 21c583cfbb..9ed32a4e17 100644 --- a/.agents/skills/hooks-compute/references/platform-resources-health.md +++ b/.agents/skills/hooks-compute/references/platform-resources-health.md @@ -7,9 +7,8 @@ React Query hooks for PlatformResourcesHealth data operations ## Usage ```typescript -usePlatformResourcesHealthsQuery({ selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) -usePlatformResourcesHealthQuery({ id: '', selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) -useCreatePlatformResourcesHealthMutation({ selection: { fields: { id: true } } }) +usePlatformResourcesHealthsQuery({ selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +usePlatformResourcesHealthQuery({ id: '', selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) useUpdatePlatformResourcesHealthMutation({ selection: { fields: { id: true } } }) useDeletePlatformResourcesHealthMutation({}) ``` @@ -20,15 +19,6 @@ useDeletePlatformResourcesHealthMutation({}) ```typescript const { data, isLoading } = usePlatformResourcesHealthsQuery({ - selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, + selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); ``` - -### Create a platformResourcesHealth - -```typescript -const { mutate } = useCreatePlatformResourcesHealthMutation({ - selection: { fields: { id: true } }, -}); -mutate({ annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusDetail: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }); -``` diff --git a/.agents/skills/hooks-compute/references/platform-resources-requirements-state.md b/.agents/skills/hooks-compute/references/platform-resources-requirements-state.md index 08a9e382f8..1ed8acb7be 100644 --- a/.agents/skills/hooks-compute/references/platform-resources-requirements-state.md +++ b/.agents/skills/hooks-compute/references/platform-resources-requirements-state.md @@ -8,7 +8,6 @@ React Query hooks for PlatformResourcesRequirementsState data operations ```typescript usePlatformResourcesRequirementsStatesQuery({ selection: { fields: { configHash: true, configObjectName: true, requirementsHash: true, resourceId: true, secretsHash: true, secretsObjectName: true, slug: true } } }) -useCreatePlatformResourcesRequirementsStateMutation({ selection: { fields: { id: true } } }) ``` ## Examples @@ -20,12 +19,3 @@ const { data, isLoading } = usePlatformResourcesRequirementsStatesQuery({ selection: { fields: { configHash: true, configObjectName: true, requirementsHash: true, resourceId: true, secretsHash: true, secretsObjectName: true, slug: true } }, }); ``` - -### Create a platformResourcesRequirementsState - -```typescript -const { mutate } = useCreatePlatformResourcesRequirementsStateMutation({ - selection: { fields: { id: true } }, -}); -mutate({ configHash: '', configObjectName: '', requirementsHash: '', resourceId: '', secretsHash: '', secretsObjectName: '', slug: '' }); -``` diff --git a/.agents/skills/hooks-compute/references/platform-resources-resolved-requirement.md b/.agents/skills/hooks-compute/references/platform-resources-resolved-requirement.md index 3a38f0b29c..7e461e350c 100644 --- a/.agents/skills/hooks-compute/references/platform-resources-resolved-requirement.md +++ b/.agents/skills/hooks-compute/references/platform-resources-resolved-requirement.md @@ -8,7 +8,6 @@ React Query hooks for PlatformResourcesResolvedRequirement data operations ```typescript usePlatformResourcesResolvedRequirementsQuery({ selection: { fields: { atomId: true, configObjectName: true, name: true, namespaceId: true, present: true, realm: true, required: true, requirementKind: true, resourceId: true, secretsObjectName: true, slug: true } } }) -useCreatePlatformResourcesResolvedRequirementMutation({ selection: { fields: { id: true } } }) ``` ## Examples @@ -20,12 +19,3 @@ const { data, isLoading } = usePlatformResourcesResolvedRequirementsQuery({ selection: { fields: { atomId: true, configObjectName: true, name: true, namespaceId: true, present: true, realm: true, required: true, requirementKind: true, resourceId: true, secretsObjectName: true, slug: true } }, }); ``` - -### Create a platformResourcesResolvedRequirement - -```typescript -const { mutate } = useCreatePlatformResourcesResolvedRequirementMutation({ - selection: { fields: { id: true } }, -}); -mutate({ atomId: '', configObjectName: '', name: '', namespaceId: '', present: '', realm: '', required: '', requirementKind: '', resourceId: '', secretsObjectName: '', slug: '' }); -``` diff --git a/.agents/skills/hooks-compute/references/platform-service-binding.md b/.agents/skills/hooks-compute/references/platform-service-binding.md new file mode 100644 index 0000000000..177616e9d3 --- /dev/null +++ b/.agents/skills/hooks-compute/references/platform-service-binding.md @@ -0,0 +1,34 @@ +# platformServiceBinding + + + +Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config + +## Usage + +```typescript +usePlatformServiceBindingsQuery({ selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, installationId: true, installationScope: true, kind: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +usePlatformServiceBindingQuery({ id: '', selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, installationId: true, installationScope: true, kind: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +useCreatePlatformServiceBindingMutation({ selection: { fields: { id: true } } }) +useUpdatePlatformServiceBindingMutation({ selection: { fields: { id: true } } }) +useDeletePlatformServiceBindingMutation({}) +``` + +## Examples + +### List all platformServiceBindings + +```typescript +const { data, isLoading } = usePlatformServiceBindingsQuery({ + selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, installationId: true, installationScope: true, kind: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, +}); +``` + +### Create a platformServiceBinding + +```typescript +const { mutate } = useCreatePlatformServiceBindingMutation({ + selection: { fields: { id: true } }, +}); +mutate({ createdBy: '', createdByPrincipal: '', installationId: '', installationScope: '', kind: '', lastError: '', metadata: '', namespaceId: '', observedHost: '', realm: '', status: '', updatedBy: '', updatedByPrincipal: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/proposal-comment.md b/.agents/skills/hooks-compute/references/proposal-comment.md index 43828d4365..45ed5d16a0 100644 --- a/.agents/skills/hooks-compute/references/proposal-comment.md +++ b/.agents/skills/hooks-compute/references/proposal-comment.md @@ -7,8 +7,8 @@ Comments on a local proposal, optionally anchored to a line ## Usage ```typescript -useProposalCommentsQuery({ selection: { fields: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) -useProposalCommentQuery({ id: '', selection: { fields: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +useProposalCommentsQuery({ selection: { fields: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +useProposalCommentQuery({ id: '', selection: { fields: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) useCreateProposalCommentMutation({ selection: { fields: { id: true } } }) useUpdateProposalCommentMutation({ selection: { fields: { id: true } } }) useDeleteProposalCommentMutation({}) @@ -20,7 +20,7 @@ useDeleteProposalCommentMutation({}) ```typescript const { data, isLoading } = useProposalCommentsQuery({ - selection: { fields: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, + selection: { fields: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useProposalCommentsQuery({ const { mutate } = useCreateProposalCommentMutation({ selection: { fields: { id: true } }, }); -mutate({ actorId: '', attachments: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', line: '', outdatedAt: '', path: '', pathTrgmSimilarity: '', proposalId: '', resolvedAt: '', search: '', searchScore: '', searchTsvRank: '', updatedBy: '', updatedByPrincipal: '' }); +mutate({ actorId: '', attachments: '', body: '', createdBy: '', createdByPrincipal: '', databaseId: '', embedding: '', line: '', outdatedAt: '', path: '', proposalId: '', resolvedAt: '', updatedBy: '', updatedByPrincipal: '' }); ``` diff --git a/.agents/skills/hooks-compute/references/proposal-review.md b/.agents/skills/hooks-compute/references/proposal-review.md index af911300a6..0e2c4eff88 100644 --- a/.agents/skills/hooks-compute/references/proposal-review.md +++ b/.agents/skills/hooks-compute/references/proposal-review.md @@ -30,5 +30,5 @@ const { data, isLoading } = useProposalReviewsQuery({ const { mutate } = useCreateProposalReviewMutation({ selection: { fields: { id: true } }, }); -mutate({ body: '', bodyTrgmSimilarity: '', commitSha: '', commitShaTrgmSimilarity: '', createdByPrincipal: '', databaseId: '', proposalId: '', reviewerId: '', search: '', searchScore: '', searchTsvRank: '', submittedAt: '', updatedByPrincipal: '', verdict: '', verdictTrgmSimilarity: '' }); +mutate({ body: '', commitSha: '', createdByPrincipal: '', databaseId: '', proposalId: '', reviewerId: '', submittedAt: '', updatedByPrincipal: '', verdict: '' }); ``` diff --git a/.agents/skills/hooks-compute/references/proposal.md b/.agents/skills/hooks-compute/references/proposal.md index 1dabe08642..e05575a778 100644 --- a/.agents/skills/hooks-compute/references/proposal.md +++ b/.agents/skills/hooks-compute/references/proposal.md @@ -7,8 +7,8 @@ Proposals against a repository: issues, changes to merge, discussions and decisi ## Usage ```typescript -useProposalsQuery({ selection: { fields: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) -useProposalQuery({ id: '', selection: { fields: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +useProposalsQuery({ selection: { fields: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, decidedAt: true, dueAt: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +useProposalQuery({ id: '', selection: { fields: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, decidedAt: true, dueAt: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) useCreateProposalMutation({ selection: { fields: { id: true } } }) useUpdateProposalMutation({ selection: { fields: { id: true } } }) useDeleteProposalMutation({}) @@ -20,7 +20,7 @@ useDeleteProposalMutation({}) ```typescript const { data, isLoading } = useProposalsQuery({ - selection: { fields: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, + selection: { fields: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, decidedAt: true, dueAt: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useProposalsQuery({ const { mutate } = useCreateProposalMutation({ selection: { fields: { id: true } }, }); -mutate({ actorId: '', body: '', bodyTrgmSimilarity: '', closedReason: '', closedReasonTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', decidedAt: '', dueAt: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', kind: '', kindTrgmSimilarity: '', labels: '', mergeCommit: '', mergeCommitTrgmSimilarity: '', mergeMethod: '', mergeMethodTrgmSimilarity: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', resolutionTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', sourceRef: '', sourceRefTrgmSimilarity: '', status: '', statusTrgmSimilarity: '', targetRef: '', targetRefTrgmSimilarity: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }); +mutate({ actorId: '', body: '', closedReason: '', createdBy: '', createdByPrincipal: '', databaseId: '', decidedAt: '', dueAt: '', embedding: '', kind: '', labels: '', mergeCommit: '', mergeMethod: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', sourceRef: '', status: '', targetRef: '', title: '', updatedBy: '', updatedByPrincipal: '' }); ``` diff --git a/.agents/skills/hooks-compute/references/proposals-chunk.md b/.agents/skills/hooks-compute/references/proposals-chunk.md index 919f0535a5..b2d968a925 100644 --- a/.agents/skills/hooks-compute/references/proposals-chunk.md +++ b/.agents/skills/hooks-compute/references/proposals-chunk.md @@ -30,5 +30,5 @@ const { data, isLoading } = useProposalsChunksQuery({ const { mutate } = useCreateProposalsChunkMutation({ selection: { fields: { id: true } }, }); -mutate({ actorId: '', body: '', chunkIndex: '', databaseId: '', embedding: '', embeddingVectorDistance: '', metadata: '', proposalsId: '', searchScore: '' }); +mutate({ actorId: '', body: '', chunkIndex: '', databaseId: '', embedding: '', metadata: '', proposalsId: '' }); ``` diff --git a/.agents/skills/hooks-compute/references/repository.md b/.agents/skills/hooks-compute/references/repository.md index 30eb2ec3f8..1b695911fa 100644 --- a/.agents/skills/hooks-compute/references/repository.md +++ b/.agents/skills/hooks-compute/references/repository.md @@ -7,8 +7,8 @@ Source repositories, hosted locally or on an external provider ## Usage ```typescript -useRepositoriesQuery({ selection: { fields: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } } }) -useRepositoryQuery({ id: '', selection: { fields: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } } }) +useRepositoriesQuery({ selection: { fields: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } } }) +useRepositoryQuery({ id: '', selection: { fields: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } } }) useCreateRepositoryMutation({ selection: { fields: { id: true } } }) useUpdateRepositoryMutation({ selection: { fields: { id: true } } }) useDeleteRepositoryMutation({}) @@ -20,7 +20,7 @@ useDeleteRepositoryMutation({}) ```typescript const { data, isLoading } = useRepositoriesQuery({ - selection: { fields: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }, + selection: { fields: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useRepositoriesQuery({ const { mutate } = useCreateRepositoryMutation({ selection: { fields: { id: true } }, }); -mutate({ cloneUrl: '', cloneUrlTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', defaultBranch: '', defaultBranchTrgmSimilarity: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', externalId: '', externalIdTrgmSimilarity: '', isArchived: '', metadata: '', name: '', nameTrgmSimilarity: '', ownerId: '', provider: '', providerTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', slug: '', slugTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '', visibility: '', visibilityTrgmSimilarity: '' }); +mutate({ cloneUrl: '', createdBy: '', createdByPrincipal: '', databaseId: '', defaultBranch: '', description: '', embedding: '', externalId: '', isArchived: '', metadata: '', name: '', ownerId: '', provider: '', slug: '', updatedBy: '', updatedByPrincipal: '', visibility: '' }); ``` diff --git a/.agents/skills/hooks-compute/references/resource-declared-capacity.md b/.agents/skills/hooks-compute/references/resource-declared-capacity.md index e2a64d8ac9..10bc429200 100644 --- a/.agents/skills/hooks-compute/references/resource-declared-capacity.md +++ b/.agents/skills/hooks-compute/references/resource-declared-capacity.md @@ -8,7 +8,6 @@ React Query hooks for ResourceDeclaredCapacity data operations ```typescript useResourceDeclaredCapacitiesQuery({ selection: { fields: { cpuLimitMillicores: true, cpuRequestMillicores: true, installationId: true, isTransient: true, kind: true, memoryLimitBytes: true, memoryRequestBytes: true, namespaceId: true, podCountMax: true, podCountMin: true, source: true, sourceId: true, storageSizeBytes: true, storageTotalBytes: true } } }) -useCreateResourceDeclaredCapacityMutation({ selection: { fields: { id: true } } }) ``` ## Examples @@ -20,12 +19,3 @@ const { data, isLoading } = useResourceDeclaredCapacitiesQuery({ selection: { fields: { cpuLimitMillicores: true, cpuRequestMillicores: true, installationId: true, isTransient: true, kind: true, memoryLimitBytes: true, memoryRequestBytes: true, namespaceId: true, podCountMax: true, podCountMin: true, source: true, sourceId: true, storageSizeBytes: true, storageTotalBytes: true } }, }); ``` - -### Create a resourceDeclaredCapacity - -```typescript -const { mutate } = useCreateResourceDeclaredCapacityMutation({ - selection: { fields: { id: true } }, -}); -mutate({ cpuLimitMillicores: '', cpuRequestMillicores: '', installationId: '', isTransient: '', kind: '', memoryLimitBytes: '', memoryRequestBytes: '', namespaceId: '', podCountMax: '', podCountMin: '', source: '', sourceId: '', storageSizeBytes: '', storageTotalBytes: '' }); -``` diff --git a/.agents/skills/hooks-compute/references/resource-definition.md b/.agents/skills/hooks-compute/references/resource-definition.md index 9d62a46a20..e6cc4cc226 100644 --- a/.agents/skills/hooks-compute/references/resource-definition.md +++ b/.agents/skills/hooks-compute/references/resource-definition.md @@ -7,8 +7,8 @@ Resource definitions — templates for resource kinds declaring default spec and ## Usage ```typescript -useResourceDefinitionsQuery({ selection: { fields: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) -useResourceDefinitionQuery({ id: '', selection: { fields: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +useResourceDefinitionsQuery({ selection: { fields: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +useResourceDefinitionQuery({ id: '', selection: { fields: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) useCreateResourceDefinitionMutation({ selection: { fields: { id: true } } }) useUpdateResourceDefinitionMutation({ selection: { fields: { id: true } } }) useDeleteResourceDefinitionMutation({}) @@ -20,7 +20,7 @@ useDeleteResourceDefinitionMutation({}) ```typescript const { data, isLoading } = useResourceDefinitionsQuery({ - selection: { fields: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, + selection: { fields: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); ``` diff --git a/.agents/skills/hooks-compute/references/resource-observed-storage.md b/.agents/skills/hooks-compute/references/resource-observed-storage.md index c16534b2a5..89ea7c0ce9 100644 --- a/.agents/skills/hooks-compute/references/resource-observed-storage.md +++ b/.agents/skills/hooks-compute/references/resource-observed-storage.md @@ -8,7 +8,6 @@ React Query hooks for ResourceObservedStorage data operations ```typescript useResourceObservedStoragesQuery({ selection: { fields: { capacity: true, capacityBytes: true, claimName: true, declaredStorageClass: true, declaredStorageSizeBytes: true, declaredStorageTotalBytes: true, installationId: true, isBound: true, kind: true, namespaceId: true, phase: true, requested: true, requestedBytes: true, resourceId: true, resourceStatus: true, slug: true, storageClass: true, storageName: true } } }) -useCreateResourceObservedStorageMutation({ selection: { fields: { id: true } } }) ``` ## Examples @@ -20,12 +19,3 @@ const { data, isLoading } = useResourceObservedStoragesQuery({ selection: { fields: { capacity: true, capacityBytes: true, claimName: true, declaredStorageClass: true, declaredStorageSizeBytes: true, declaredStorageTotalBytes: true, installationId: true, isBound: true, kind: true, namespaceId: true, phase: true, requested: true, requestedBytes: true, resourceId: true, resourceStatus: true, slug: true, storageClass: true, storageName: true } }, }); ``` - -### Create a resourceObservedStorage - -```typescript -const { mutate } = useCreateResourceObservedStorageMutation({ - selection: { fields: { id: true } }, -}); -mutate({ capacity: '', capacityBytes: '', claimName: '', declaredStorageClass: '', declaredStorageSizeBytes: '', declaredStorageTotalBytes: '', installationId: '', isBound: '', kind: '', namespaceId: '', phase: '', requested: '', requestedBytes: '', resourceId: '', resourceStatus: '', slug: '', storageClass: '', storageName: '' }); -``` diff --git a/.agents/skills/hooks-compute/references/resource-utilization-daily.md b/.agents/skills/hooks-compute/references/resource-utilization-daily.md deleted file mode 100644 index 309cb2d2a6..0000000000 --- a/.agents/skills/hooks-compute/references/resource-utilization-daily.md +++ /dev/null @@ -1,31 +0,0 @@ -# resourceUtilizationDaily - - - -React Query hooks for ResourceUtilizationDaily data operations - -## Usage - -```typescript -useResourceUtilizationDailiesQuery({ selection: { fields: { avgMemoryBytes: true, cpuLimitMillicores: true, cpuPeakUtilization: true, cpuRequestHeadroomMillicores: true, cpuRequestMillicores: true, date: true, gbSeconds: true, kind: true, maxCpuMillicores: true, maxMemoryBytes: true, memoryLimitBytes: true, memoryPeakUtilization: true, memoryRequestBytes: true, memoryRequestHeadroomBytes: true, namespaceId: true, replicas: true, resourceId: true, runtimeSeconds: true, sampleCount: true } } }) -useCreateResourceUtilizationDailyMutation({ selection: { fields: { id: true } } }) -``` - -## Examples - -### List all resourceUtilizationDailies - -```typescript -const { data, isLoading } = useResourceUtilizationDailiesQuery({ - selection: { fields: { avgMemoryBytes: true, cpuLimitMillicores: true, cpuPeakUtilization: true, cpuRequestHeadroomMillicores: true, cpuRequestMillicores: true, date: true, gbSeconds: true, kind: true, maxCpuMillicores: true, maxMemoryBytes: true, memoryLimitBytes: true, memoryPeakUtilization: true, memoryRequestBytes: true, memoryRequestHeadroomBytes: true, namespaceId: true, replicas: true, resourceId: true, runtimeSeconds: true, sampleCount: true } }, -}); -``` - -### Create a resourceUtilizationDaily - -```typescript -const { mutate } = useCreateResourceUtilizationDailyMutation({ - selection: { fields: { id: true } }, -}); -mutate({ avgMemoryBytes: '', cpuLimitMillicores: '', cpuPeakUtilization: '', cpuRequestHeadroomMillicores: '', cpuRequestMillicores: '', date: '', gbSeconds: '', kind: '', maxCpuMillicores: '', maxMemoryBytes: '', memoryLimitBytes: '', memoryPeakUtilization: '', memoryRequestBytes: '', memoryRequestHeadroomBytes: '', namespaceId: '', replicas: '', resourceId: '', runtimeSeconds: '', sampleCount: '' }); -``` diff --git a/.agents/skills/hooks-compute/references/resource-utilization.md b/.agents/skills/hooks-compute/references/resource-utilization.md index bac248c8da..91e193d03c 100644 --- a/.agents/skills/hooks-compute/references/resource-utilization.md +++ b/.agents/skills/hooks-compute/references/resource-utilization.md @@ -8,7 +8,6 @@ React Query hooks for ResourceUtilization data operations ```typescript useResourceUtilizationsQuery({ selection: { fields: { avgMemoryBytes: true, cpuLimitMillicores: true, cpuPeakUtilization: true, cpuRequestHeadroomMillicores: true, cpuRequestMillicores: true, date: true, gbSeconds: true, kind: true, maxCpuMillicores: true, maxMemoryBytes: true, memoryLimitBytes: true, memoryPeakUtilization: true, memoryRequestBytes: true, memoryRequestHeadroomBytes: true, namespaceId: true, replicas: true, resourceId: true, runtimeSeconds: true, sampleCount: true } } }) -useCreateResourceUtilizationMutation({ selection: { fields: { id: true } } }) ``` ## Examples @@ -20,12 +19,3 @@ const { data, isLoading } = useResourceUtilizationsQuery({ selection: { fields: { avgMemoryBytes: true, cpuLimitMillicores: true, cpuPeakUtilization: true, cpuRequestHeadroomMillicores: true, cpuRequestMillicores: true, date: true, gbSeconds: true, kind: true, maxCpuMillicores: true, maxMemoryBytes: true, memoryLimitBytes: true, memoryPeakUtilization: true, memoryRequestBytes: true, memoryRequestHeadroomBytes: true, namespaceId: true, replicas: true, resourceId: true, runtimeSeconds: true, sampleCount: true } }, }); ``` - -### Create a resourceUtilization - -```typescript -const { mutate } = useCreateResourceUtilizationMutation({ - selection: { fields: { id: true } }, -}); -mutate({ avgMemoryBytes: '', cpuLimitMillicores: '', cpuPeakUtilization: '', cpuRequestHeadroomMillicores: '', cpuRequestMillicores: '', date: '', gbSeconds: '', kind: '', maxCpuMillicores: '', maxMemoryBytes: '', memoryLimitBytes: '', memoryPeakUtilization: '', memoryRequestBytes: '', memoryRequestHeadroomBytes: '', namespaceId: '', replicas: '', resourceId: '', runtimeSeconds: '', sampleCount: '' }); -``` diff --git a/.agents/skills/hooks-compute/references/resource.md b/.agents/skills/hooks-compute/references/resource.md index 04155304c9..26028b61de 100644 --- a/.agents/skills/hooks-compute/references/resource.md +++ b/.agents/skills/hooks-compute/references/resource.md @@ -7,8 +7,8 @@ Unified K8s resource declarations — stores desired state (spec) and observed s ## Usage ```typescript -useResourcesQuery({ selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) -useResourceQuery({ id: '', selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +useResourcesQuery({ selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +useResourceQuery({ id: '', selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) useCreateResourceMutation({ selection: { fields: { id: true } } }) useUpdateResourceMutation({ selection: { fields: { id: true } } }) useDeleteResourceMutation({}) @@ -20,7 +20,7 @@ useDeleteResourceMutation({}) ```typescript const { data, isLoading } = useResourcesQuery({ - selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, + selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useResourcesQuery({ const { mutate } = useCreateResourceMutation({ selection: { fields: { id: true } }, }); -mutate({ annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', databaseId: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }); +mutate({ annotations: '', createdBy: '', createdByPrincipal: '', databaseId: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', name: '', namespaceId: '', realm: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', updatedBy: '', updatedByPrincipal: '' }); ``` diff --git a/.agents/skills/hooks-compute/references/resources-health.md b/.agents/skills/hooks-compute/references/resources-health.md index 014be82473..9096a6d17c 100644 --- a/.agents/skills/hooks-compute/references/resources-health.md +++ b/.agents/skills/hooks-compute/references/resources-health.md @@ -7,9 +7,8 @@ React Query hooks for ResourcesHealth data operations ## Usage ```typescript -useResourcesHealthsQuery({ selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) -useResourcesHealthQuery({ id: '', selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) -useCreateResourcesHealthMutation({ selection: { fields: { id: true } } }) +useResourcesHealthsQuery({ selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +useResourcesHealthQuery({ id: '', selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) useUpdateResourcesHealthMutation({ selection: { fields: { id: true } } }) useDeleteResourcesHealthMutation({}) ``` @@ -20,15 +19,6 @@ useDeleteResourcesHealthMutation({}) ```typescript const { data, isLoading } = useResourcesHealthsQuery({ - selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, + selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); ``` - -### Create a resourcesHealth - -```typescript -const { mutate } = useCreateResourcesHealthMutation({ - selection: { fields: { id: true } }, -}); -mutate({ annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', databaseId: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusDetail: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }); -``` diff --git a/.agents/skills/hooks-compute/references/resources-requirements-state.md b/.agents/skills/hooks-compute/references/resources-requirements-state.md index b9837f47dc..50f89fc072 100644 --- a/.agents/skills/hooks-compute/references/resources-requirements-state.md +++ b/.agents/skills/hooks-compute/references/resources-requirements-state.md @@ -8,7 +8,6 @@ React Query hooks for ResourcesRequirementsState data operations ```typescript useResourcesRequirementsStatesQuery({ selection: { fields: { configHash: true, configObjectName: true, requirementsHash: true, resourceId: true, secretsHash: true, secretsObjectName: true, slug: true } } }) -useCreateResourcesRequirementsStateMutation({ selection: { fields: { id: true } } }) ``` ## Examples @@ -20,12 +19,3 @@ const { data, isLoading } = useResourcesRequirementsStatesQuery({ selection: { fields: { configHash: true, configObjectName: true, requirementsHash: true, resourceId: true, secretsHash: true, secretsObjectName: true, slug: true } }, }); ``` - -### Create a resourcesRequirementsState - -```typescript -const { mutate } = useCreateResourcesRequirementsStateMutation({ - selection: { fields: { id: true } }, -}); -mutate({ configHash: '', configObjectName: '', requirementsHash: '', resourceId: '', secretsHash: '', secretsObjectName: '', slug: '' }); -``` diff --git a/.agents/skills/hooks-compute/references/resources-resolved-requirement.md b/.agents/skills/hooks-compute/references/resources-resolved-requirement.md index 57db567f6d..491764d4d8 100644 --- a/.agents/skills/hooks-compute/references/resources-resolved-requirement.md +++ b/.agents/skills/hooks-compute/references/resources-resolved-requirement.md @@ -8,7 +8,6 @@ React Query hooks for ResourcesResolvedRequirement data operations ```typescript useResourcesResolvedRequirementsQuery({ selection: { fields: { atomId: true, configObjectName: true, name: true, namespaceId: true, present: true, realm: true, required: true, requirementKind: true, resourceId: true, secretsObjectName: true, slug: true } } }) -useCreateResourcesResolvedRequirementMutation({ selection: { fields: { id: true } } }) ``` ## Examples @@ -20,12 +19,3 @@ const { data, isLoading } = useResourcesResolvedRequirementsQuery({ selection: { fields: { atomId: true, configObjectName: true, name: true, namespaceId: true, present: true, realm: true, required: true, requirementKind: true, resourceId: true, secretsObjectName: true, slug: true } }, }); ``` - -### Create a resourcesResolvedRequirement - -```typescript -const { mutate } = useCreateResourcesResolvedRequirementMutation({ - selection: { fields: { id: true } }, -}); -mutate({ atomId: '', configObjectName: '', name: '', namespaceId: '', present: '', realm: '', required: '', requirementKind: '', resourceId: '', secretsObjectName: '', slug: '' }); -``` diff --git a/.agents/skills/hooks-compute/references/secret-definition.md b/.agents/skills/hooks-compute/references/secret-definition.md deleted file mode 100644 index a851bc46b8..0000000000 --- a/.agents/skills/hooks-compute/references/secret-definition.md +++ /dev/null @@ -1,34 +0,0 @@ -# secretDefinition - - - -Global secret name registry — declares which secrets the platform recognizes. Actual values live in app_secrets. - -## Usage - -```typescript -useSecretDefinitionsQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, name: true, description: true, isBuiltIn: true, labels: true, annotations: true, databaseId: true } } }) -useSecretDefinitionQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, name: true, description: true, isBuiltIn: true, labels: true, annotations: true, databaseId: true } } }) -useCreateSecretDefinitionMutation({ selection: { fields: { id: true } } }) -useUpdateSecretDefinitionMutation({ selection: { fields: { id: true } } }) -useDeleteSecretDefinitionMutation({}) -``` - -## Examples - -### List all secretDefinitions - -```typescript -const { data, isLoading } = useSecretDefinitionsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, name: true, description: true, isBuiltIn: true, labels: true, annotations: true, databaseId: true } }, -}); -``` - -### Create a secretDefinition - -```typescript -const { mutate } = useCreateSecretDefinitionMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '', description: '', isBuiltIn: '', labels: '', annotations: '', databaseId: '' }); -``` diff --git a/.agents/skills/hooks-compute/references/service-binding.md b/.agents/skills/hooks-compute/references/service-binding.md new file mode 100644 index 0000000000..4728410b9b --- /dev/null +++ b/.agents/skills/hooks-compute/references/service-binding.md @@ -0,0 +1,34 @@ +# serviceBinding + + + +Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config + +## Usage + +```typescript +useServiceBindingsQuery({ selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, installationId: true, installationScope: true, kind: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +useServiceBindingQuery({ id: '', selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, installationId: true, installationScope: true, kind: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +useCreateServiceBindingMutation({ selection: { fields: { id: true } } }) +useUpdateServiceBindingMutation({ selection: { fields: { id: true } } }) +useDeleteServiceBindingMutation({}) +``` + +## Examples + +### List all serviceBindings + +```typescript +const { data, isLoading } = useServiceBindingsQuery({ + selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, installationId: true, installationScope: true, kind: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, +}); +``` + +### Create a serviceBinding + +```typescript +const { mutate } = useCreateServiceBindingMutation({ + selection: { fields: { id: true } }, +}); +mutate({ createdBy: '', createdByPrincipal: '', databaseId: '', installationId: '', installationScope: '', kind: '', lastError: '', metadata: '', namespaceId: '', observedHost: '', realm: '', status: '', updatedBy: '', updatedByPrincipal: '' }); +``` diff --git a/.agents/skills/hooks-config/references/app-internal-secret.md b/.agents/skills/hooks-config/references/app-internal-secret.md index 6c18c578d1..716713247e 100644 --- a/.agents/skills/hooks-config/references/app-internal-secret.md +++ b/.agents/skills/hooks-config/references/app-internal-secret.md @@ -9,7 +9,6 @@ React Query hooks for AppInternalSecret data operations ```typescript useAppInternalSecretsQuery({ selection: { fields: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } } }) useAppInternalSecretQuery({ id: '', selection: { fields: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } } }) -useCreateAppInternalSecretMutation({ selection: { fields: { id: true } } }) useUpdateAppInternalSecretMutation({ selection: { fields: { id: true } } }) useDeleteAppInternalSecretMutation({}) ``` @@ -23,12 +22,3 @@ const { data, isLoading } = useAppInternalSecretsQuery({ selection: { fields: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }, }); ``` - -### Create a appInternalSecret - -```typescript -const { mutate } = useCreateAppInternalSecretMutation({ - selection: { fields: { id: true } }, -}); -mutate({ annotations: '', description: '', labels: '', name: '', realm: '', retiredAt: '', rotatedAt: '' }); -``` diff --git a/.agents/skills/hooks-config/references/internal-secret.md b/.agents/skills/hooks-config/references/internal-secret.md index 3f1ccf4c46..0db404a984 100644 --- a/.agents/skills/hooks-config/references/internal-secret.md +++ b/.agents/skills/hooks-config/references/internal-secret.md @@ -9,7 +9,6 @@ React Query hooks for InternalSecret data operations ```typescript useInternalSecretsQuery({ selection: { fields: { annotations: true, createdAt: true, databaseId: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } } }) useInternalSecretQuery({ id: '', selection: { fields: { annotations: true, createdAt: true, databaseId: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } } }) -useCreateInternalSecretMutation({ selection: { fields: { id: true } } }) useUpdateInternalSecretMutation({ selection: { fields: { id: true } } }) useDeleteInternalSecretMutation({}) ``` @@ -23,12 +22,3 @@ const { data, isLoading } = useInternalSecretsQuery({ selection: { fields: { annotations: true, createdAt: true, databaseId: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }, }); ``` - -### Create a internalSecret - -```typescript -const { mutate } = useCreateInternalSecretMutation({ - selection: { fields: { id: true } }, -}); -mutate({ annotations: '', databaseId: '', description: '', labels: '', name: '', realm: '', retiredAt: '', rotatedAt: '' }); -``` diff --git a/.agents/skills/hooks-config/references/org-secrets-del.md b/.agents/skills/hooks-config/references/org-secrets-del.md deleted file mode 100644 index 7d9ff042f0..0000000000 --- a/.agents/skills/hooks-config/references/org-secrets-del.md +++ /dev/null @@ -1,20 +0,0 @@ -# orgSecretsDel - - - -React Query mutation hook for orgSecretsDel - -## Usage - -```typescript -const { mutate } = useOrgSecretsDelMutation(); mutate({ input: { ownerId: '', secretName: '', namespaceId: '' } }); -``` - -## Examples - -### Use useOrgSecretsDelMutation - -```typescript -const { mutate, isLoading } = useOrgSecretsDelMutation(); -mutate({ input: { ownerId: '', secretName: '', namespaceId: '' } }); -``` diff --git a/.agents/skills/hooks-config/references/org-secrets-remove-array.md b/.agents/skills/hooks-config/references/org-secrets-remove-array.md deleted file mode 100644 index b5a4f6e88c..0000000000 --- a/.agents/skills/hooks-config/references/org-secrets-remove-array.md +++ /dev/null @@ -1,20 +0,0 @@ -# orgSecretsRemoveArray - - - -React Query mutation hook for orgSecretsRemoveArray - -## Usage - -```typescript -const { mutate } = useOrgSecretsRemoveArrayMutation(); mutate({ input: { ownerId: '', secretNames: '', namespaceId: '' } }); -``` - -## Examples - -### Use useOrgSecretsRemoveArrayMutation - -```typescript -const { mutate, isLoading } = useOrgSecretsRemoveArrayMutation(); -mutate({ input: { ownerId: '', secretNames: '', namespaceId: '' } }); -``` diff --git a/.agents/skills/hooks-config/references/org-secrets-rotate.md b/.agents/skills/hooks-config/references/org-secrets-rotate.md deleted file mode 100644 index 8fb09ca5cf..0000000000 --- a/.agents/skills/hooks-config/references/org-secrets-rotate.md +++ /dev/null @@ -1,20 +0,0 @@ -# orgSecretsRotate - - - -React Query mutation hook for orgSecretsRotate - -## Usage - -```typescript -const { mutate } = useOrgSecretsRotateMutation(); mutate({ input: { ownerId: '', secretName: '', secretValue: '', namespaceId: '', algo: '' } }); -``` - -## Examples - -### Use useOrgSecretsRotateMutation - -```typescript -const { mutate, isLoading } = useOrgSecretsRotateMutation(); -mutate({ input: { ownerId: '', secretName: '', secretValue: '', namespaceId: '', algo: '' } }); -``` diff --git a/.agents/skills/hooks-config/references/org-secrets-set.md b/.agents/skills/hooks-config/references/org-secrets-set.md deleted file mode 100644 index 93dd259fb6..0000000000 --- a/.agents/skills/hooks-config/references/org-secrets-set.md +++ /dev/null @@ -1,20 +0,0 @@ -# orgSecretsSet - - - -React Query mutation hook for orgSecretsSet - -## Usage - -```typescript -const { mutate } = useOrgSecretsSetMutation(); mutate({ input: { scopeOwnerId: '', secretName: '', secretValue: '', secretNamespaceId: '', algo: '' } }); -``` - -## Examples - -### Use useOrgSecretsSetMutation - -```typescript -const { mutate, isLoading } = useOrgSecretsSetMutation(); -mutate({ input: { scopeOwnerId: '', secretName: '', secretValue: '', secretNamespaceId: '', algo: '' } }); -``` diff --git a/.agents/skills/hooks-config/references/platform-config-definition.md b/.agents/skills/hooks-config/references/platform-config-definition.md deleted file mode 100644 index 3fbec7f84b..0000000000 --- a/.agents/skills/hooks-config/references/platform-config-definition.md +++ /dev/null @@ -1,34 +0,0 @@ -# platformConfigDefinition - - - -Registry of valid config keys — declares which config entries the platform recognizes - -## Usage - -```typescript -usePlatformConfigDefinitionsQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, name: true, description: true, defaultValue: true, isBuiltIn: true, labels: true, annotations: true } } }) -usePlatformConfigDefinitionQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, name: true, description: true, defaultValue: true, isBuiltIn: true, labels: true, annotations: true } } }) -useCreatePlatformConfigDefinitionMutation({ selection: { fields: { id: true } } }) -useUpdatePlatformConfigDefinitionMutation({ selection: { fields: { id: true } } }) -useDeletePlatformConfigDefinitionMutation({}) -``` - -## Examples - -### List all platformConfigDefinitions - -```typescript -const { data, isLoading } = usePlatformConfigDefinitionsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, name: true, description: true, defaultValue: true, isBuiltIn: true, labels: true, annotations: true } }, -}); -``` - -### Create a platformConfigDefinition - -```typescript -const { mutate } = useCreatePlatformConfigDefinitionMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '', description: '', defaultValue: '', isBuiltIn: '', labels: '', annotations: '' }); -``` diff --git a/.agents/skills/hooks-config/references/platform-internal-secret.md b/.agents/skills/hooks-config/references/platform-internal-secret.md index d305bbbd27..2b3ddec3c0 100644 --- a/.agents/skills/hooks-config/references/platform-internal-secret.md +++ b/.agents/skills/hooks-config/references/platform-internal-secret.md @@ -9,7 +9,6 @@ React Query hooks for PlatformInternalSecret data operations ```typescript usePlatformInternalSecretsQuery({ selection: { fields: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } } }) usePlatformInternalSecretQuery({ id: '', selection: { fields: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } } }) -useCreatePlatformInternalSecretMutation({ selection: { fields: { id: true } } }) useUpdatePlatformInternalSecretMutation({ selection: { fields: { id: true } } }) useDeletePlatformInternalSecretMutation({}) ``` @@ -23,12 +22,3 @@ const { data, isLoading } = usePlatformInternalSecretsQuery({ selection: { fields: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }, }); ``` - -### Create a platformInternalSecret - -```typescript -const { mutate } = useCreatePlatformInternalSecretMutation({ - selection: { fields: { id: true } }, -}); -mutate({ annotations: '', description: '', labels: '', name: '', realm: '', retiredAt: '', rotatedAt: '' }); -``` diff --git a/.agents/skills/hooks-config/references/platform-secret.md b/.agents/skills/hooks-config/references/platform-secret.md index a5e119597a..f1d43d5497 100644 --- a/.agents/skills/hooks-config/references/platform-secret.md +++ b/.agents/skills/hooks-config/references/platform-secret.md @@ -9,7 +9,6 @@ React Query hooks for PlatformSecret data operations ```typescript usePlatformSecretsQuery({ selection: { fields: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } } }) usePlatformSecretQuery({ id: '', selection: { fields: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } } }) -useCreatePlatformSecretMutation({ selection: { fields: { id: true } } }) useUpdatePlatformSecretMutation({ selection: { fields: { id: true } } }) useDeletePlatformSecretMutation({}) ``` @@ -23,12 +22,3 @@ const { data, isLoading } = usePlatformSecretsQuery({ selection: { fields: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }, }); ``` - -### Create a platformSecret - -```typescript -const { mutate } = useCreatePlatformSecretMutation({ - selection: { fields: { id: true } }, -}); -mutate({ annotations: '', description: '', labels: '', name: '', namespaceId: '', provider: '', realm: '', retiredAt: '', rotatedAt: '' }); -``` diff --git a/.agents/skills/hooks-config/references/secret.md b/.agents/skills/hooks-config/references/secret.md index 9a91078106..a26a0b7353 100644 --- a/.agents/skills/hooks-config/references/secret.md +++ b/.agents/skills/hooks-config/references/secret.md @@ -9,7 +9,6 @@ React Query hooks for Secret data operations ```typescript useSecretsQuery({ selection: { fields: { annotations: true, createdAt: true, databaseId: true, description: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } } }) useSecretQuery({ id: '', selection: { fields: { annotations: true, createdAt: true, databaseId: true, description: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } } }) -useCreateSecretMutation({ selection: { fields: { id: true } } }) useUpdateSecretMutation({ selection: { fields: { id: true } } }) useDeleteSecretMutation({}) ``` @@ -23,12 +22,3 @@ const { data, isLoading } = useSecretsQuery({ selection: { fields: { annotations: true, createdAt: true, databaseId: true, description: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }, }); ``` - -### Create a secret - -```typescript -const { mutate } = useCreateSecretMutation({ - selection: { fields: { id: true } }, -}); -mutate({ annotations: '', databaseId: '', description: '', labels: '', name: '', namespaceId: '', provider: '', realm: '', retiredAt: '', rotatedAt: '' }); -``` diff --git a/.agents/skills/hooks-infra/references/infra-commit.md b/.agents/skills/hooks-infra/references/infra-commit.md deleted file mode 100644 index 0bb59f90aa..0000000000 --- a/.agents/skills/hooks-infra/references/infra-commit.md +++ /dev/null @@ -1,34 +0,0 @@ -# infraCommit - - - -Commit history — each commit snapshots a tree root for a store - -## Usage - -```typescript -useInfraCommitsQuery({ selection: { fields: { authorId: true, committerId: true, date: true, id: true, message: true, parentIds: true, scopeId: true, storeId: true, treeId: true } } }) -useInfraCommitQuery({ id: '', selection: { fields: { authorId: true, committerId: true, date: true, id: true, message: true, parentIds: true, scopeId: true, storeId: true, treeId: true } } }) -useCreateInfraCommitMutation({ selection: { fields: { id: true } } }) -useUpdateInfraCommitMutation({ selection: { fields: { id: true } } }) -useDeleteInfraCommitMutation({}) -``` - -## Examples - -### List all infraCommits - -```typescript -const { data, isLoading } = useInfraCommitsQuery({ - selection: { fields: { authorId: true, committerId: true, date: true, id: true, message: true, parentIds: true, scopeId: true, storeId: true, treeId: true } }, -}); -``` - -### Create a infraCommit - -```typescript -const { mutate } = useCreateInfraCommitMutation({ - selection: { fields: { id: true } }, -}); -mutate({ authorId: '', committerId: '', date: '', message: '', parentIds: '', scopeId: '', storeId: '', treeId: '' }); -``` diff --git a/.agents/skills/hooks-infra/references/infra-get-all-record.md b/.agents/skills/hooks-infra/references/infra-get-all-record.md deleted file mode 100644 index f0342a86ba..0000000000 --- a/.agents/skills/hooks-infra/references/infra-get-all-record.md +++ /dev/null @@ -1,31 +0,0 @@ -# infraGetAllRecord - - - -React Query hooks for InfraGetAllRecord data operations - -## Usage - -```typescript -useInfraGetAllQuery({ selection: { fields: { data: true, path: true } } }) -useCreateInfraGetAllRecordMutation({ selection: { fields: { id: true } } }) -``` - -## Examples - -### List all infraGetAll - -```typescript -const { data, isLoading } = useInfraGetAllQuery({ - selection: { fields: { data: true, path: true } }, -}); -``` - -### Create a infraGetAllRecord - -```typescript -const { mutate } = useCreateInfraGetAllRecordMutation({ - selection: { fields: { id: true } }, -}); -mutate({ data: '', path: '' }); -``` diff --git a/.agents/skills/hooks-infra/references/infra-init-empty-repo.md b/.agents/skills/hooks-infra/references/infra-init-empty-repo.md deleted file mode 100644 index fe097995fa..0000000000 --- a/.agents/skills/hooks-infra/references/infra-init-empty-repo.md +++ /dev/null @@ -1,20 +0,0 @@ -# infraInitEmptyRepo - - - -React Query mutation hook for infraInitEmptyRepo - -## Usage - -```typescript -const { mutate } = useInfraInitEmptyRepoMutation(); mutate({ input: { sId: '', storeId: '' } }); -``` - -## Examples - -### Use useInfraInitEmptyRepoMutation - -```typescript -const { mutate, isLoading } = useInfraInitEmptyRepoMutation(); -mutate({ input: { sId: '', storeId: '' } }); -``` diff --git a/.agents/skills/hooks-infra/references/infra-insert-node-at-path.md b/.agents/skills/hooks-infra/references/infra-insert-node-at-path.md deleted file mode 100644 index 3f9cb06354..0000000000 --- a/.agents/skills/hooks-infra/references/infra-insert-node-at-path.md +++ /dev/null @@ -1,20 +0,0 @@ -# infraInsertNodeAtPath - - - -React Query mutation hook for infraInsertNodeAtPath - -## Usage - -```typescript -const { mutate } = useInfraInsertNodeAtPathMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useInfraInsertNodeAtPathMutation - -```typescript -const { mutate, isLoading } = useInfraInsertNodeAtPathMutation(); -mutate({ input: '' }); -``` diff --git a/.agents/skills/hooks-infra/references/infra-object.md b/.agents/skills/hooks-infra/references/infra-object.md deleted file mode 100644 index bf8e13d0a9..0000000000 --- a/.agents/skills/hooks-infra/references/infra-object.md +++ /dev/null @@ -1,34 +0,0 @@ -# infraObject - - - -Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children - -## Usage - -```typescript -useInfraObjectsQuery({ selection: { fields: { createdAt: true, data: true, id: true, kids: true, ktree: true, scopeId: true } } }) -useInfraObjectQuery({ id: '', selection: { fields: { createdAt: true, data: true, id: true, kids: true, ktree: true, scopeId: true } } }) -useCreateInfraObjectMutation({ selection: { fields: { id: true } } }) -useUpdateInfraObjectMutation({ selection: { fields: { id: true } } }) -useDeleteInfraObjectMutation({}) -``` - -## Examples - -### List all infraObjects - -```typescript -const { data, isLoading } = useInfraObjectsQuery({ - selection: { fields: { createdAt: true, data: true, id: true, kids: true, ktree: true, scopeId: true } }, -}); -``` - -### Create a infraObject - -```typescript -const { mutate } = useCreateInfraObjectMutation({ - selection: { fields: { id: true } }, -}); -mutate({ data: '', kids: '', ktree: '', scopeId: '' }); -``` diff --git a/.agents/skills/hooks-infra/references/infra-ref.md b/.agents/skills/hooks-infra/references/infra-ref.md deleted file mode 100644 index 1304c06850..0000000000 --- a/.agents/skills/hooks-infra/references/infra-ref.md +++ /dev/null @@ -1,34 +0,0 @@ -# infraRef - - - -Branch heads — mutable pointers into the commit chain - -## Usage - -```typescript -useInfraRefsQuery({ selection: { fields: { commitId: true, id: true, name: true, scopeId: true, storeId: true } } }) -useInfraRefQuery({ id: '', selection: { fields: { commitId: true, id: true, name: true, scopeId: true, storeId: true } } }) -useCreateInfraRefMutation({ selection: { fields: { id: true } } }) -useUpdateInfraRefMutation({ selection: { fields: { id: true } } }) -useDeleteInfraRefMutation({}) -``` - -## Examples - -### List all infraRefs - -```typescript -const { data, isLoading } = useInfraRefsQuery({ - selection: { fields: { commitId: true, id: true, name: true, scopeId: true, storeId: true } }, -}); -``` - -### Create a infraRef - -```typescript -const { mutate } = useCreateInfraRefMutation({ - selection: { fields: { id: true } }, -}); -mutate({ commitId: '', name: '', scopeId: '', storeId: '' }); -``` diff --git a/.agents/skills/hooks-infra/references/infra-set-data-at-path.md b/.agents/skills/hooks-infra/references/infra-set-data-at-path.md deleted file mode 100644 index 526cbf273f..0000000000 --- a/.agents/skills/hooks-infra/references/infra-set-data-at-path.md +++ /dev/null @@ -1,20 +0,0 @@ -# infraSetDataAtPath - - - -React Query mutation hook for infraSetDataAtPath - -## Usage - -```typescript -const { mutate } = useInfraSetDataAtPathMutation(); mutate({ input: { data: '', path: '', root: '', sId: '' } }); -``` - -## Examples - -### Use useInfraSetDataAtPathMutation - -```typescript -const { mutate, isLoading } = useInfraSetDataAtPathMutation(); -mutate({ input: { data: '', path: '', root: '', sId: '' } }); -``` diff --git a/.agents/skills/hooks-infra/references/infra-store.md b/.agents/skills/hooks-infra/references/infra-store.md deleted file mode 100644 index 092c08a179..0000000000 --- a/.agents/skills/hooks-infra/references/infra-store.md +++ /dev/null @@ -1,34 +0,0 @@ -# infraStore - - - -Named stores — one per version-controlled tree (e.g. one graph, one definition set) - -## Usage - -```typescript -useInfraStoresQuery({ selection: { fields: { createdAt: true, hash: true, id: true, name: true, scopeId: true } } }) -useInfraStoreQuery({ id: '', selection: { fields: { createdAt: true, hash: true, id: true, name: true, scopeId: true } } }) -useCreateInfraStoreMutation({ selection: { fields: { id: true } } }) -useUpdateInfraStoreMutation({ selection: { fields: { id: true } } }) -useDeleteInfraStoreMutation({}) -``` - -## Examples - -### List all infraStores - -```typescript -const { data, isLoading } = useInfraStoresQuery({ - selection: { fields: { createdAt: true, hash: true, id: true, name: true, scopeId: true } }, -}); -``` - -### Create a infraStore - -```typescript -const { mutate } = useCreateInfraStoreMutation({ - selection: { fields: { id: true } }, -}); -mutate({ hash: '', name: '', scopeId: '' }); -``` diff --git a/.agents/skills/hooks-infra/references/platform-infra-get-all-tree-nodes-record.md b/.agents/skills/hooks-infra/references/platform-infra-get-all-tree-nodes-record.md index bccdb05379..182cdab1f4 100644 --- a/.agents/skills/hooks-infra/references/platform-infra-get-all-tree-nodes-record.md +++ b/.agents/skills/hooks-infra/references/platform-infra-get-all-tree-nodes-record.md @@ -8,7 +8,6 @@ React Query hooks for PlatformInfraGetAllTreeNodesRecord data operations ```typescript usePlatformInfraGetAllTreeNodesQuery({ selection: { fields: { data: true, path: true } } }) -useCreatePlatformInfraGetAllTreeNodesRecordMutation({ selection: { fields: { id: true } } }) ``` ## Examples @@ -20,12 +19,3 @@ const { data, isLoading } = usePlatformInfraGetAllTreeNodesQuery({ selection: { fields: { data: true, path: true } }, }); ``` - -### Create a platformInfraGetAllTreeNodesRecord - -```typescript -const { mutate } = useCreatePlatformInfraGetAllTreeNodesRecordMutation({ - selection: { fields: { id: true } }, -}); -mutate({ data: '', path: '' }); -``` diff --git a/.agents/skills/hooks-modules/references/blueprint-construction.md b/.agents/skills/hooks-modules/references/blueprint-construction.md index 62644e566a..84f4a51edf 100644 --- a/.agents/skills/hooks-modules/references/blueprint-construction.md +++ b/.agents/skills/hooks-modules/references/blueprint-construction.md @@ -2,13 +2,13 @@ -Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts. +Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here as pending and a blueprint:construct job builds it in the background. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts, including failed ones. ## Usage ```typescript -useBlueprintConstructionsQuery({ selection: { fields: { blueprintId: true, constructedAt: true, constructedDefinition: true, createdAt: true, databaseId: true, id: true, schemaId: true, status: true, tableMap: true, updatedAt: true } } }) -useBlueprintConstructionQuery({ id: '', selection: { fields: { blueprintId: true, constructedAt: true, constructedDefinition: true, createdAt: true, databaseId: true, id: true, schemaId: true, status: true, tableMap: true, updatedAt: true } } }) +useBlueprintConstructionsQuery({ selection: { fields: { blueprintId: true, constructedAt: true, constructedDefinition: true, createdAt: true, databaseId: true, error: true, id: true, schemaId: true, status: true, tableMap: true, updatedAt: true } } }) +useBlueprintConstructionQuery({ id: '', selection: { fields: { blueprintId: true, constructedAt: true, constructedDefinition: true, createdAt: true, databaseId: true, error: true, id: true, schemaId: true, status: true, tableMap: true, updatedAt: true } } }) useCreateBlueprintConstructionMutation({ selection: { fields: { id: true } } }) useUpdateBlueprintConstructionMutation({ selection: { fields: { id: true } } }) useDeleteBlueprintConstructionMutation({}) @@ -20,7 +20,7 @@ useDeleteBlueprintConstructionMutation({}) ```typescript const { data, isLoading } = useBlueprintConstructionsQuery({ - selection: { fields: { blueprintId: true, constructedAt: true, constructedDefinition: true, createdAt: true, databaseId: true, id: true, schemaId: true, status: true, tableMap: true, updatedAt: true } }, + selection: { fields: { blueprintId: true, constructedAt: true, constructedDefinition: true, createdAt: true, databaseId: true, error: true, id: true, schemaId: true, status: true, tableMap: true, updatedAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useBlueprintConstructionsQuery({ const { mutate } = useCreateBlueprintConstructionMutation({ selection: { fields: { id: true } }, }); -mutate({ blueprintId: '', constructedAt: '', constructedDefinition: '', databaseId: '', schemaId: '', status: '', tableMap: '' }); +mutate({ blueprintId: '', constructedAt: '', constructedDefinition: '', databaseId: '', error: '', schemaId: '', status: '', tableMap: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/config-secrets-module.md b/.agents/skills/hooks-modules/references/config-secrets-module.md deleted file mode 100644 index b47d2ce099..0000000000 --- a/.agents/skills/hooks-modules/references/config-secrets-module.md +++ /dev/null @@ -1,36 +0,0 @@ -# configSecretsModule - - - -Entity-aware PGP-encrypted key-value config/secrets module. Supports app-level (admin-only) - and org-scoped (per-org secrets with manage_secrets permission) via the scope column. - User-scoped bcrypt credentials are handled by user_credentials_module. - -## Usage - -```typescript -useConfigSecretsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, configDefinitionsTableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, hasConfig: true } } }) -useConfigSecretsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, configDefinitionsTableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, hasConfig: true } } }) -useCreateConfigSecretsModuleMutation({ selection: { fields: { id: true } } }) -useUpdateConfigSecretsModuleMutation({ selection: { fields: { id: true } } }) -useDeleteConfigSecretsModuleMutation({}) -``` - -## Examples - -### List all configSecretsModules - -```typescript -const { data, isLoading } = useConfigSecretsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, configDefinitionsTableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, hasConfig: true } }, -}); -``` - -### Create a configSecretsModule - -```typescript -const { mutate } = useCreateConfigSecretsModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', configDefinitionsTableId: '', tableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', hasConfig: '' }); -``` diff --git a/.agents/skills/hooks-modules/references/config-secrets-org-module.md b/.agents/skills/hooks-modules/references/config-secrets-org-module.md deleted file mode 100644 index 2c27a2f31f..0000000000 --- a/.agents/skills/hooks-modules/references/config-secrets-org-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# configSecretsOrgModule - - - -Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. - -## Usage - -```typescript -useConfigSecretsOrgModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, apiName: true, privateApiName: true } } }) -useConfigSecretsOrgModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, apiName: true, privateApiName: true } } }) -useCreateConfigSecretsOrgModuleMutation({ selection: { fields: { id: true } } }) -useUpdateConfigSecretsOrgModuleMutation({ selection: { fields: { id: true } } }) -useDeleteConfigSecretsOrgModuleMutation({}) -``` - -## Examples - -### List all configSecretsOrgModules - -```typescript -const { data, isLoading } = useConfigSecretsOrgModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, apiName: true, privateApiName: true } }, -}); -``` - -### Create a configSecretsOrgModule - -```typescript -const { mutate } = useCreateConfigSecretsOrgModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', tableId: '', tableName: '', apiName: '', privateApiName: '' }); -``` diff --git a/.agents/skills/hooks-modules/references/config-secrets-user-module.md b/.agents/skills/hooks-modules/references/config-secrets-user-module.md deleted file mode 100644 index f124870d9c..0000000000 --- a/.agents/skills/hooks-modules/references/config-secrets-user-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# configSecretsUserModule - - - -React Query hooks for ConfigSecretsUserModule data operations - -## Usage - -```typescript -useConfigSecretsUserModulesQuery({ selection: { fields: { apiName: true, databaseId: true, entityField: true, id: true, privateApiName: true, schemaId: true, tableId: true, tableName: true } } }) -useConfigSecretsUserModuleQuery({ id: '', selection: { fields: { apiName: true, databaseId: true, entityField: true, id: true, privateApiName: true, schemaId: true, tableId: true, tableName: true } } }) -useCreateConfigSecretsUserModuleMutation({ selection: { fields: { id: true } } }) -useUpdateConfigSecretsUserModuleMutation({ selection: { fields: { id: true } } }) -useDeleteConfigSecretsUserModuleMutation({}) -``` - -## Examples - -### List all configSecretsUserModules - -```typescript -const { data, isLoading } = useConfigSecretsUserModulesQuery({ - selection: { fields: { apiName: true, databaseId: true, entityField: true, id: true, privateApiName: true, schemaId: true, tableId: true, tableName: true } }, -}); -``` - -### Create a configSecretsUserModule - -```typescript -const { mutate } = useCreateConfigSecretsUserModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ apiName: '', databaseId: '', entityField: '', privateApiName: '', schemaId: '', tableId: '', tableName: '' }); -``` diff --git a/.agents/skills/hooks-modules/references/construct-blueprint.md b/.agents/skills/hooks-modules/references/construct-blueprint.md index d36ddac233..c6f310ce01 100644 --- a/.agents/skills/hooks-modules/references/construct-blueprint.md +++ b/.agents/skills/hooks-modules/references/construct-blueprint.md @@ -2,7 +2,7 @@ -Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). A table entry either names its table (table_name plus optional schema_name) or references one an installed module generated ("module": {"type": "agent", "scope": "org", "table": "message"}), which resolves through the module row's recorded table ids and raises when it matches nothing instead of creating an empty table. After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID. A failure raises its coded error to the caller and rolls back the whole construction, including the construction record. +Requests a build of a blueprint: snapshots its definition into a pending blueprint_construction row, enqueues the blueprint:construct job that runs metaschema_private.construct_blueprint_run on it, and returns the construction id immediately. Poll the row: pending -> constructing -> constructed (table_map populated) or failed (error holds the coded error). schema_id is the default schema for tables without an explicit schema_name. ## Usage diff --git a/.agents/skills/hooks-modules/references/db-usage-module.md b/.agents/skills/hooks-modules/references/db-usage-module.md index f97d403ca7..a7608b7059 100644 --- a/.agents/skills/hooks-modules/references/db-usage-module.md +++ b/.agents/skills/hooks-modules/references/db-usage-module.md @@ -7,8 +7,8 @@ React Query hooks for DbUsageModule data operations ## Usage ```typescript -useDbUsageModulesQuery({ selection: { fields: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultCapabilities: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } } }) -useDbUsageModuleQuery({ id: '', selection: { fields: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultCapabilities: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } } }) +useDbUsageModulesQuery({ selection: { fields: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultCapabilities: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, readDbQueryStatsUsagePeriodFunction: true, readDbTableStatsUsagePeriodFunction: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } } }) +useDbUsageModuleQuery({ id: '', selection: { fields: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultCapabilities: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, readDbQueryStatsUsagePeriodFunction: true, readDbTableStatsUsagePeriodFunction: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } } }) useCreateDbUsageModuleMutation({ selection: { fields: { id: true } } }) useUpdateDbUsageModuleMutation({ selection: { fields: { id: true } } }) useDeleteDbUsageModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteDbUsageModuleMutation({}) ```typescript const { data, isLoading } = useDbUsageModulesQuery({ - selection: { fields: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultCapabilities: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } }, + selection: { fields: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultCapabilities: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, readDbQueryStatsUsagePeriodFunction: true, readDbTableStatsUsagePeriodFunction: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useDbUsageModulesQuery({ const { mutate } = useCreateDbUsageModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ apiName: '', collectDbQueryStatsFunction: '', collectDbTableStatsFunction: '', databaseId: '', defaultCapabilities: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsSummaryTableId: '', queryStatsSummaryTableName: '', retention: '', rollupDbQueryStatsUsageSummaryFunction: '', rollupDbTableStatsUsageSummaryFunction: '', schemaId: '', scope: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsSummaryTableId: '', tableStatsSummaryTableName: '' }); +mutate({ apiName: '', collectDbQueryStatsFunction: '', collectDbTableStatsFunction: '', databaseId: '', defaultCapabilities: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsSummaryTableId: '', queryStatsSummaryTableName: '', readDbQueryStatsUsagePeriodFunction: '', readDbTableStatsUsagePeriodFunction: '', retention: '', rollupDbQueryStatsUsageSummaryFunction: '', rollupDbTableStatsUsageSummaryFunction: '', schemaId: '', scope: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsSummaryTableId: '', tableStatsSummaryTableName: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/domain-module.md b/.agents/skills/hooks-modules/references/domain-module.md index 0eb8fd223c..bb4e4ebc40 100644 --- a/.agents/skills/hooks-modules/references/domain-module.md +++ b/.agents/skills/hooks-modules/references/domain-module.md @@ -7,8 +7,8 @@ React Query hooks for DomainModule data operations ## Usage ```typescript -useDomainModulesQuery({ selection: { fields: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } } }) -useDomainModuleQuery({ id: '', selection: { fields: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } } }) +useDomainModulesQuery({ selection: { fields: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, defaultReservedSubdomains: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, reservedSubdomainsTableId: true, reservedSubdomainsTableName: true, schemaId: true, scope: true, sweepUnverifiedDomainsFunction: true } } }) +useDomainModuleQuery({ id: '', selection: { fields: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, defaultReservedSubdomains: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, reservedSubdomainsTableId: true, reservedSubdomainsTableName: true, schemaId: true, scope: true, sweepUnverifiedDomainsFunction: true } } }) useCreateDomainModuleMutation({ selection: { fields: { id: true } } }) useUpdateDomainModuleMutation({ selection: { fields: { id: true } } }) useDeleteDomainModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteDomainModuleMutation({}) ```typescript const { data, isLoading } = useDomainModulesQuery({ - selection: { fields: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }, + selection: { fields: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, defaultReservedSubdomains: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, reservedSubdomainsTableId: true, reservedSubdomainsTableName: true, schemaId: true, scope: true, sweepUnverifiedDomainsFunction: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useDomainModulesQuery({ const { mutate } = useCreateDomainModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ apiName: '', catalogModuleId: '', databaseId: '', defaultCapabilities: '', domainEventsTableId: '', domainEventsTableName: '', domainVerificationsTableId: '', domainVerificationsTableName: '', domainsTableId: '', domainsTableName: '', entityField: '', entityTableId: '', managedDomainsTableId: '', managedDomainsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }); +mutate({ apiName: '', catalogModuleId: '', databaseId: '', defaultCapabilities: '', defaultReservedSubdomains: '', domainEventsTableId: '', domainEventsTableName: '', domainVerificationsTableId: '', domainVerificationsTableName: '', domainsTableId: '', domainsTableName: '', entityField: '', entityTableId: '', managedDomainsTableId: '', managedDomainsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', reservedSubdomainsTableId: '', reservedSubdomainsTableName: '', schemaId: '', scope: '', sweepUnverifiedDomainsFunction: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/http-route-module.md b/.agents/skills/hooks-modules/references/http-route-module.md deleted file mode 100644 index 646c765dc5..0000000000 --- a/.agents/skills/hooks-modules/references/http-route-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# httpRouteModule - - - -React Query hooks for HttpRouteModule data operations - -## Usage - -```typescript -useHttpRouteModulesQuery({ selection: { fields: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, functionModuleId: true, httpRoutesTableId: true, httpRoutesTableName: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, resolverFunctionName: true, resourceModuleId: true, schemaId: true, scope: true, storageModuleId: true } } }) -useHttpRouteModuleQuery({ id: '', selection: { fields: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, functionModuleId: true, httpRoutesTableId: true, httpRoutesTableName: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, resolverFunctionName: true, resourceModuleId: true, schemaId: true, scope: true, storageModuleId: true } } }) -useCreateHttpRouteModuleMutation({ selection: { fields: { id: true } } }) -useUpdateHttpRouteModuleMutation({ selection: { fields: { id: true } } }) -useDeleteHttpRouteModuleMutation({}) -``` - -## Examples - -### List all httpRouteModules - -```typescript -const { data, isLoading } = useHttpRouteModulesQuery({ - selection: { fields: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, functionModuleId: true, httpRoutesTableId: true, httpRoutesTableName: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, resolverFunctionName: true, resourceModuleId: true, schemaId: true, scope: true, storageModuleId: true } }, -}); -``` - -### Create a httpRouteModule - -```typescript -const { mutate } = useCreateHttpRouteModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', functionModuleId: '', httpRoutesTableId: '', httpRoutesTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', resolverFunctionName: '', resourceModuleId: '', schemaId: '', scope: '', storageModuleId: '' }); -``` diff --git a/.agents/skills/hooks-modules/references/permissions-module.md b/.agents/skills/hooks-modules/references/permissions-module.md deleted file mode 100644 index 466e4f2e02..0000000000 --- a/.agents/skills/hooks-modules/references/permissions-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# permissionsModule - - - -React Query hooks for PermissionsModule data operations - -## Usage - -```typescript -usePermissionsModulesQuery({ selection: { fields: { actorTableId: true, apiName: true, bitlen: true, databaseId: true, defaultTableId: true, defaultTableName: true, entityField: true, entityTableId: true, getByMask: true, getMask: true, getMaskByName: true, getPaddedMask: true, id: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, schemaId: true, scope: true, tableId: true, tableName: true } } }) -usePermissionsModuleQuery({ id: '', selection: { fields: { actorTableId: true, apiName: true, bitlen: true, databaseId: true, defaultTableId: true, defaultTableName: true, entityField: true, entityTableId: true, getByMask: true, getMask: true, getMaskByName: true, getPaddedMask: true, id: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, schemaId: true, scope: true, tableId: true, tableName: true } } }) -useCreatePermissionsModuleMutation({ selection: { fields: { id: true } } }) -useUpdatePermissionsModuleMutation({ selection: { fields: { id: true } } }) -useDeletePermissionsModuleMutation({}) -``` - -## Examples - -### List all permissionsModules - -```typescript -const { data, isLoading } = usePermissionsModulesQuery({ - selection: { fields: { actorTableId: true, apiName: true, bitlen: true, databaseId: true, defaultTableId: true, defaultTableName: true, entityField: true, entityTableId: true, getByMask: true, getMask: true, getMaskByName: true, getPaddedMask: true, id: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, schemaId: true, scope: true, tableId: true, tableName: true } }, -}); -``` - -### Create a permissionsModule - -```typescript -const { mutate } = useCreatePermissionsModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ actorTableId: '', apiName: '', bitlen: '', databaseId: '', defaultTableId: '', defaultTableName: '', entityField: '', entityTableId: '', getByMask: '', getMask: '', getMaskByName: '', getPaddedMask: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', schemaId: '', scope: '', tableId: '', tableName: '' }); -``` diff --git a/.agents/skills/hooks-modules/references/provision-check-constraint.md b/.agents/skills/hooks-modules/references/provision-check-constraint.md deleted file mode 100644 index 088b0508dd..0000000000 --- a/.agents/skills/hooks-modules/references/provision-check-constraint.md +++ /dev/null @@ -1,20 +0,0 @@ -# provisionCheckConstraint - - - -Creates a check constraint on a table from a $type + data blueprint definition. Supports: CheckOneOf (enum validation via = ANY(ARRAY[...])), CheckGreaterThan (single-column > value or cross-column), CheckLessThan (single-column < value or cross-column), CheckNotEqual (cross-column inequality). Builds AST expressions via ast_helpers and inserts into metaschema_public.check_constraint. Graceful: skips if a constraint with the same name already exists. - -## Usage - -```typescript -const { mutate } = useProvisionCheckConstraintMutation(); mutate({ input: { databaseId: '', definition: '', tableId: '' } }); -``` - -## Examples - -### Use useProvisionCheckConstraintMutation - -```typescript -const { mutate, isLoading } = useProvisionCheckConstraintMutation(); -mutate({ input: { databaseId: '', definition: '', tableId: '' } }); -``` diff --git a/.agents/skills/hooks-modules/references/provision-full-text-search.md b/.agents/skills/hooks-modules/references/provision-full-text-search.md deleted file mode 100644 index 7c946cec91..0000000000 --- a/.agents/skills/hooks-modules/references/provision-full-text-search.md +++ /dev/null @@ -1,20 +0,0 @@ -# provisionFullTextSearch - - - -Creates a full-text search configuration on a table. Accepts a jsonb definition with field (tsvector column name) and sources (array of {field, weight, lang}). Graceful: skips if FTS config already exists for the same (table_id, field_id). Returns the fts_id. - -## Usage - -```typescript -const { mutate } = useProvisionFullTextSearchMutation(); mutate({ input: { databaseId: '', definition: '', tableId: '' } }); -``` - -## Examples - -### Use useProvisionFullTextSearchMutation - -```typescript -const { mutate, isLoading } = useProvisionFullTextSearchMutation(); -mutate({ input: { databaseId: '', definition: '', tableId: '' } }); -``` diff --git a/.agents/skills/hooks-modules/references/provision-index.md b/.agents/skills/hooks-modules/references/provision-index.md deleted file mode 100644 index e8c0a6dd58..0000000000 --- a/.agents/skills/hooks-modules/references/provision-index.md +++ /dev/null @@ -1,20 +0,0 @@ -# provisionIndex - - - -Creates an index on a table. Accepts a jsonb definition with columns (array of names or single column string), access_method (default BTREE), is_unique, op_classes, options, and name (auto-generated if omitted). Graceful: skips if an index with the same (table_id, field_ids, access_method) already exists. Returns the index_id. - -## Usage - -```typescript -const { mutate } = useProvisionIndexMutation(); mutate({ input: { databaseId: '', definition: '', tableId: '' } }); -``` - -## Examples - -### Use useProvisionIndexMutation - -```typescript -const { mutate, isLoading } = useProvisionIndexMutation(); -mutate({ input: { databaseId: '', definition: '', tableId: '' } }); -``` diff --git a/.agents/skills/hooks-modules/references/provision-relation.md b/.agents/skills/hooks-modules/references/provision-relation.md deleted file mode 100644 index 54eb612139..0000000000 --- a/.agents/skills/hooks-modules/references/provision-relation.md +++ /dev/null @@ -1,20 +0,0 @@ -# provisionRelation - - - -Composable relation provisioning: creates FK fields, indexes, unique constraints, and junction tables depending on the relation_type. Supports RelationBelongsTo, RelationHasOne, RelationHasMany, and RelationManyToMany. ManyToMany uses provision_table() internally for junction table creation with full node/grant/policy support. All operations are graceful (skip existing). Returns (out_field_id, out_junction_table_id, out_source_field_id, out_target_field_id). - -## Usage - -```typescript -const { mutate } = useProvisionRelationMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useProvisionRelationMutation - -```typescript -const { mutate, isLoading } = useProvisionRelationMutation(); -mutate({ input: '' }); -``` diff --git a/.agents/skills/hooks-modules/references/provision-spatial-relation.md b/.agents/skills/hooks-modules/references/provision-spatial-relation.md deleted file mode 100644 index 9392c24136..0000000000 --- a/.agents/skills/hooks-modules/references/provision-spatial-relation.md +++ /dev/null @@ -1,20 +0,0 @@ -# provisionSpatialRelation - - - -Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row declaring a spatial predicate between two geometry/geography columns (owner and target). Called from construct_blueprint when a relation entry has $type=RelationSpatial. Graceful: re-running with the same (source_table_id, name) returns the existing id without modifying the row. Operator whitelist and st_dwithin ↔ param_name pairing are enforced by the spatial_relation table CHECKs. Both fields must already exist — this is a metadata-only insert. - -## Usage - -```typescript -const { mutate } = useProvisionSpatialRelationMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useProvisionSpatialRelationMutation - -```typescript -const { mutate, isLoading } = useProvisionSpatialRelationMutation(); -mutate({ input: '' }); -``` diff --git a/.agents/skills/hooks-modules/references/provision-table.md b/.agents/skills/hooks-modules/references/provision-table.md deleted file mode 100644 index 0f8ec3553f..0000000000 --- a/.agents/skills/hooks-modules/references/provision-table.md +++ /dev/null @@ -1,20 +0,0 @@ -# provisionTable - - - -Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). - -## Usage - -```typescript -const { mutate } = useProvisionTableMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useProvisionTableMutation - -```typescript -const { mutate, isLoading } = useProvisionTableMutation(); -mutate({ input: '' }); -``` diff --git a/.agents/skills/hooks-modules/references/provision-unique-constraint.md b/.agents/skills/hooks-modules/references/provision-unique-constraint.md deleted file mode 100644 index 3a85affe2d..0000000000 --- a/.agents/skills/hooks-modules/references/provision-unique-constraint.md +++ /dev/null @@ -1,20 +0,0 @@ -# provisionUniqueConstraint - - - -Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists. - -## Usage - -```typescript -const { mutate } = useProvisionUniqueConstraintMutation(); mutate({ input: { databaseId: '', definition: '', tableId: '' } }); -``` - -## Examples - -### Use useProvisionUniqueConstraintMutation - -```typescript -const { mutate, isLoading } = useProvisionUniqueConstraintMutation(); -mutate({ input: { databaseId: '', definition: '', tableId: '' } }); -``` diff --git a/.agents/skills/hooks-modules/references/resolve-blueprint-field.md b/.agents/skills/hooks-modules/references/resolve-blueprint-field.md deleted file mode 100644 index 79d706829b..0000000000 --- a/.agents/skills/hooks-modules/references/resolve-blueprint-field.md +++ /dev/null @@ -1,19 +0,0 @@ -# resolveBlueprintField - - - -Resolves a field_name within a given table_id to a field_id. Throws if no match is found. Used by construct_blueprint to translate user-authored field names (e.g. "location") into field UUIDs for downstream provisioning procedures. table_id must already be resolved (via resolve_blueprint_table) before calling this. - -## Usage - -```typescript -useResolveBlueprintFieldQuery({ databaseId: '', fieldName: '', tableId: '' }) -``` - -## Examples - -### Use useResolveBlueprintFieldQuery - -```typescript -const { data, isLoading } = useResolveBlueprintFieldQuery({ databaseId: '', fieldName: '', tableId: '' }); -``` diff --git a/.agents/skills/hooks-modules/references/resolve-blueprint-table.md b/.agents/skills/hooks-modules/references/resolve-blueprint-table.md deleted file mode 100644 index cf314da383..0000000000 --- a/.agents/skills/hooks-modules/references/resolve-blueprint-table.md +++ /dev/null @@ -1,19 +0,0 @@ -# resolveBlueprintTable - - - -Resolves a table_name (with optional schema_name) to a table_id. Resolution order: (1) if schema_name provided, exact lookup via metaschema_public.schema.name + metaschema_public.table; (2) check local table_map (tables created in current blueprint); (3) search metaschema_public.table by name across all schemas; (4) if multiple matches, throw ambiguous error asking for schema_name; (5) if no match, throw not-found error. - -## Usage - -```typescript -useResolveBlueprintTableQuery({ databaseId: '', defaultSchemaId: '', schemaName: '', tableMap: '', tableName: '' }) -``` - -## Examples - -### Use useResolveBlueprintTableQuery - -```typescript -const { data, isLoading } = useResolveBlueprintTableQuery({ databaseId: '', defaultSchemaId: '', schemaName: '', tableMap: '', tableName: '' }); -``` diff --git a/.agents/skills/hooks-modules/references/resource-module.md b/.agents/skills/hooks-modules/references/resource-module.md index 547951ab8c..91bfc86b40 100644 --- a/.agents/skills/hooks-modules/references/resource-module.md +++ b/.agents/skills/hooks-modules/references/resource-module.md @@ -7,8 +7,8 @@ React Query hooks for ResourceModule data operations ## Usage ```typescript -useResourceModulesQuery({ selection: { fields: { apiName: true, builderBindingsTableId: true, builderBindingsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, registryBindingsTableId: true, registryBindingsTableName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true } } }) -useResourceModuleQuery({ id: '', selection: { fields: { apiName: true, builderBindingsTableId: true, builderBindingsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, registryBindingsTableId: true, registryBindingsTableName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true } } }) +useResourceModulesQuery({ selection: { fields: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, registryBindingsTableId: true, registryBindingsTableName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true, serviceBindingsTableId: true, serviceBindingsTableName: true } } }) +useResourceModuleQuery({ id: '', selection: { fields: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, registryBindingsTableId: true, registryBindingsTableName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true, serviceBindingsTableId: true, serviceBindingsTableName: true } } }) useCreateResourceModuleMutation({ selection: { fields: { id: true } } }) useUpdateResourceModuleMutation({ selection: { fields: { id: true } } }) useDeleteResourceModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteResourceModuleMutation({}) ```typescript const { data, isLoading } = useResourceModulesQuery({ - selection: { fields: { apiName: true, builderBindingsTableId: true, builderBindingsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, registryBindingsTableId: true, registryBindingsTableName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true } }, + selection: { fields: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, registryBindingsTableId: true, registryBindingsTableName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true, serviceBindingsTableId: true, serviceBindingsTableName: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useResourceModulesQuery({ const { mutate } = useCreateResourceModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ apiName: '', builderBindingsTableId: '', builderBindingsTableName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', installationStoreName: '', merkleStoreModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', registryBindingsTableId: '', registryBindingsTableName: '', requirementsStateViewName: '', resolvedRequirementsViewName: '', resourceBillingRollupFunction: '', resourceDefinitionsTableId: '', resourceDefinitionsTableName: '', resourceEventsTableId: '', resourceEventsTableName: '', resourceInstallationsTableId: '', resourceInstallationsTableName: '', resourceStatusChecksTableId: '', resourceStatusChecksTableName: '', resourceUsageLogTableId: '', resourceUsageLogTableName: '', resourceUsageSummaryTableId: '', resourceUsageSummaryTableName: '', resourcesTableId: '', resourcesTableName: '', rollupResourceUsageSummaryFunction: '', schemaId: '', scope: '' }); +mutate({ apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', installationStoreName: '', merkleStoreModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', registryBindingsTableId: '', registryBindingsTableName: '', requirementsStateViewName: '', resolvedRequirementsViewName: '', resourceBillingRollupFunction: '', resourceDefinitionsTableId: '', resourceDefinitionsTableName: '', resourceEventsTableId: '', resourceEventsTableName: '', resourceInstallationsTableId: '', resourceInstallationsTableName: '', resourceStatusChecksTableId: '', resourceStatusChecksTableName: '', resourceUsageLogTableId: '', resourceUsageLogTableName: '', resourceUsageSummaryTableId: '', resourceUsageSummaryTableName: '', resourcesTableId: '', resourcesTableName: '', rollupResourceUsageSummaryFunction: '', schemaId: '', scope: '', serviceBindingsTableId: '', serviceBindingsTableName: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/storage-log-module.md b/.agents/skills/hooks-modules/references/storage-log-module.md index ee5d76203a..4ef56b12da 100644 --- a/.agents/skills/hooks-modules/references/storage-log-module.md +++ b/.agents/skills/hooks-modules/references/storage-log-module.md @@ -7,8 +7,8 @@ React Query hooks for StorageLogModule data operations ## Usage ```typescript -useStorageLogModulesQuery({ selection: { fields: { apiName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } } }) -useStorageLogModuleQuery({ id: '', selection: { fields: { apiName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } } }) +useStorageLogModulesQuery({ selection: { fields: { apiName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, readStorageUsagePeriodFunction: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } } }) +useStorageLogModuleQuery({ id: '', selection: { fields: { apiName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, readStorageUsagePeriodFunction: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } } }) useCreateStorageLogModuleMutation({ selection: { fields: { id: true } } }) useUpdateStorageLogModuleMutation({ selection: { fields: { id: true } } }) useDeleteStorageLogModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteStorageLogModuleMutation({}) ```typescript const { data, isLoading } = useStorageLogModulesQuery({ - selection: { fields: { apiName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }, + selection: { fields: { apiName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, readStorageUsagePeriodFunction: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useStorageLogModulesQuery({ const { mutate } = useCreateStorageLogModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ apiName: '', databaseId: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', rollupFunctionName: '', schemaId: '', scope: '', storageLogTableId: '', storageLogTableName: '', usageSummaryTableId: '', usageSummaryTableName: '' }); +mutate({ apiName: '', databaseId: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', readStorageUsagePeriodFunction: '', retention: '', rollupFunctionName: '', schemaId: '', scope: '', storageLogTableId: '', storageLogTableName: '', usageSummaryTableId: '', usageSummaryTableName: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/storage-module.md b/.agents/skills/hooks-modules/references/storage-module.md index 772da59447..e2979b54b8 100644 --- a/.agents/skills/hooks-modules/references/storage-module.md +++ b/.agents/skills/hooks-modules/references/storage-module.md @@ -7,8 +7,8 @@ React Query hooks for StorageModule data operations ## Usage ```typescript -useStorageModulesQuery({ selection: { fields: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, region: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } } }) -useStorageModuleQuery({ id: '', selection: { fields: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, region: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } } }) +useStorageModulesQuery({ selection: { fields: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, region: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } } }) +useStorageModuleQuery({ id: '', selection: { fields: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, region: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } } }) useCreateStorageModuleMutation({ selection: { fields: { id: true } } }) useUpdateStorageModuleMutation({ selection: { fields: { id: true } } }) useDeleteStorageModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteStorageModuleMutation({}) ```typescript const { data, isLoading } = useStorageModulesQuery({ - selection: { fields: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, region: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }, + selection: { fields: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, region: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useStorageModulesQuery({ const { mutate } = useCreateStorageModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ allowedOrigins: '', apiName: '', bucketsTableId: '', bucketsTableName: '', cacheTtlSeconds: '', catalogModuleId: '', confirmUploadDelay: '', databaseId: '', defaultCapabilities: '', defaultMaxFileSize: '', downloadUrlExpirySeconds: '', endpoint: '', entityField: '', entityTableId: '', fileEventsTableId: '', filesTableId: '', filesTableName: '', hasAuditLog: '', hasConfirmUpload: '', hasContentHash: '', hasCustomKeys: '', hasPathShares: '', hasVersioning: '', key: '', maxBulkFiles: '', maxBulkTotalSize: '', maxFilenameLength: '', pathSharesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provider: '', provisions: '', publicSchemaName: '', publicUrlPrefix: '', region: '', restrictReads: '', schemaId: '', scope: '', uploadUrlExpirySeconds: '' }); +mutate({ allowedOrigins: '', apiName: '', bucketsTableId: '', bucketsTableName: '', cacheTtlSeconds: '', catalogModuleId: '', confirmUploadDelay: '', databaseId: '', defaultCapabilities: '', defaultMaxFileSize: '', downloadUrlExpirySeconds: '', endpoint: '', entityField: '', entityTableId: '', fileEventsTableId: '', filesTableId: '', filesTableName: '', hasAuditLog: '', hasContentHash: '', hasCustomKeys: '', hasPathShares: '', hasVersioning: '', key: '', maxBulkFiles: '', maxBulkTotalSize: '', maxFilenameLength: '', pathSharesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provider: '', provisions: '', publicSchemaName: '', publicUrlPrefix: '', region: '', restrictReads: '', schemaId: '', scope: '', uploadUrlExpirySeconds: '' }); ``` diff --git a/.agents/skills/hooks-objects/references/confirm-upload.md b/.agents/skills/hooks-objects/references/confirm-upload.md deleted file mode 100644 index 774bdf12e2..0000000000 --- a/.agents/skills/hooks-objects/references/confirm-upload.md +++ /dev/null @@ -1,22 +0,0 @@ -# confirmUpload - - - -Confirm that a file has been uploaded to S3. -Verifies the object exists in S3, checks content-type, -and transitions the file status from 'pending' to 'ready'. - -## Usage - -```typescript -const { mutate } = useConfirmUploadMutation(); mutate({ input: { fileId: '' } }); -``` - -## Examples - -### Use useConfirmUploadMutation - -```typescript -const { mutate, isLoading } = useConfirmUploadMutation(); -mutate({ input: { fileId: '' } }); -``` diff --git a/.agents/skills/hooks-objects/references/freeze-objects.md b/.agents/skills/hooks-objects/references/freeze-objects.md deleted file mode 100644 index bbb6e628f3..0000000000 --- a/.agents/skills/hooks-objects/references/freeze-objects.md +++ /dev/null @@ -1,20 +0,0 @@ -# freezeObjects - - - -React Query mutation hook for freezeObjects - -## Usage - -```typescript -const { mutate } = useFreezeObjectsMutation(); mutate({ input: { databaseId: '', id: '' } }); -``` - -## Examples - -### Use useFreezeObjectsMutation - -```typescript -const { mutate, isLoading } = useFreezeObjectsMutation(); -mutate({ input: { databaseId: '', id: '' } }); -``` diff --git a/.agents/skills/hooks-objects/references/get-all-objects-from-root.md b/.agents/skills/hooks-objects/references/get-all-objects-from-root.md deleted file mode 100644 index 8b80aa7df4..0000000000 --- a/.agents/skills/hooks-objects/references/get-all-objects-from-root.md +++ /dev/null @@ -1,19 +0,0 @@ -# getAllObjectsFromRoot - - - -Reads and enables pagination through a set of `Object`. - -## Usage - -```typescript -useGetAllObjectsFromRootQuery({ databaseId: '', id: '', first: '', offset: '', after: '' }) -``` - -## Examples - -### Use useGetAllObjectsFromRootQuery - -```typescript -const { data, isLoading } = useGetAllObjectsFromRootQuery({ databaseId: '', id: '', first: '', offset: '', after: '' }); -``` diff --git a/.agents/skills/hooks-objects/references/get-all-record.md b/.agents/skills/hooks-objects/references/get-all-record.md deleted file mode 100644 index 370dc21681..0000000000 --- a/.agents/skills/hooks-objects/references/get-all-record.md +++ /dev/null @@ -1,31 +0,0 @@ -# getAllRecord - - - -React Query hooks for GetAllRecord data operations - -## Usage - -```typescript -useGetAllQuery({ selection: { fields: { data: true, path: true } } }) -useCreateGetAllRecordMutation({ selection: { fields: { id: true } } }) -``` - -## Examples - -### List all getAll - -```typescript -const { data, isLoading } = useGetAllQuery({ - selection: { fields: { data: true, path: true } }, -}); -``` - -### Create a getAllRecord - -```typescript -const { mutate } = useCreateGetAllRecordMutation({ - selection: { fields: { id: true } }, -}); -mutate({ data: '', path: '' }); -``` diff --git a/.agents/skills/hooks-objects/references/get-all-tree-nodes-record.md b/.agents/skills/hooks-objects/references/get-all-tree-nodes-record.md index 4bd0d0c0bd..d7494a9f6d 100644 --- a/.agents/skills/hooks-objects/references/get-all-tree-nodes-record.md +++ b/.agents/skills/hooks-objects/references/get-all-tree-nodes-record.md @@ -8,7 +8,6 @@ React Query hooks for GetAllTreeNodesRecord data operations ```typescript useGetAllTreeNodesQuery({ selection: { fields: { data: true, path: true } } }) -useCreateGetAllTreeNodesRecordMutation({ selection: { fields: { id: true } } }) ``` ## Examples @@ -20,12 +19,3 @@ const { data, isLoading } = useGetAllTreeNodesQuery({ selection: { fields: { data: true, path: true } }, }); ``` - -### Create a getAllTreeNodesRecord - -```typescript -const { mutate } = useCreateGetAllTreeNodesRecordMutation({ - selection: { fields: { id: true } }, -}); -mutate({ data: '', path: '' }); -``` diff --git a/.agents/skills/hooks-objects/references/get-object-at-path.md b/.agents/skills/hooks-objects/references/get-object-at-path.md deleted file mode 100644 index 7c01530d9d..0000000000 --- a/.agents/skills/hooks-objects/references/get-object-at-path.md +++ /dev/null @@ -1,19 +0,0 @@ -# getObjectAtPath - - - -React Query query hook for getObjectAtPath - -## Usage - -```typescript -useGetObjectAtPathQuery({ dbId: '', storeId: '', path: '', refname: '' }) -``` - -## Examples - -### Use useGetObjectAtPathQuery - -```typescript -const { data, isLoading } = useGetObjectAtPathQuery({ dbId: '', storeId: '', path: '', refname: '' }); -``` diff --git a/.agents/skills/hooks-objects/references/get-path-objects-from-root.md b/.agents/skills/hooks-objects/references/get-path-objects-from-root.md deleted file mode 100644 index 7a0bc57eda..0000000000 --- a/.agents/skills/hooks-objects/references/get-path-objects-from-root.md +++ /dev/null @@ -1,19 +0,0 @@ -# getPathObjectsFromRoot - - - -Reads and enables pagination through a set of `Object`. - -## Usage - -```typescript -useGetPathObjectsFromRootQuery({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }) -``` - -## Examples - -### Use useGetPathObjectsFromRootQuery - -```typescript -const { data, isLoading } = useGetPathObjectsFromRootQuery({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }); -``` diff --git a/.agents/skills/hooks-objects/references/remove-node-at-path.md b/.agents/skills/hooks-objects/references/remove-node-at-path.md deleted file mode 100644 index 49129cd05c..0000000000 --- a/.agents/skills/hooks-objects/references/remove-node-at-path.md +++ /dev/null @@ -1,20 +0,0 @@ -# removeNodeAtPath - - - -React Query mutation hook for removeNodeAtPath - -## Usage - -```typescript -const { mutate } = useRemoveNodeAtPathMutation(); mutate({ input: { dbId: '', root: '', path: '' } }); -``` - -## Examples - -### Use useRemoveNodeAtPathMutation - -```typescript -const { mutate, isLoading } = useRemoveNodeAtPathMutation(); -mutate({ input: { dbId: '', root: '', path: '' } }); -``` diff --git a/.agents/skills/hooks-objects/references/request-upload-url.md b/.agents/skills/hooks-objects/references/request-upload-url.md deleted file mode 100644 index 9be983e132..0000000000 --- a/.agents/skills/hooks-objects/references/request-upload-url.md +++ /dev/null @@ -1,23 +0,0 @@ -# requestUploadUrl - - - -Request a presigned URL for uploading a file directly to S3. -Client computes SHA-256 of the file content and provides it here. -If a file with the same hash already exists (dedup), returns the -existing file ID and deduplicated=true with no uploadUrl. - -## Usage - -```typescript -const { mutate } = useRequestUploadUrlMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useRequestUploadUrlMutation - -```typescript -const { mutate, isLoading } = useRequestUploadUrlMutation(); -mutate({ input: '' }); -``` diff --git a/.agents/skills/hooks-objects/references/rev-parse.md b/.agents/skills/hooks-objects/references/rev-parse.md deleted file mode 100644 index eaaf37b062..0000000000 --- a/.agents/skills/hooks-objects/references/rev-parse.md +++ /dev/null @@ -1,19 +0,0 @@ -# revParse - - - -React Query query hook for revParse - -## Usage - -```typescript -useRevParseQuery({ dbId: '', storeId: '', refname: '' }) -``` - -## Examples - -### Use useRevParseQuery - -```typescript -const { data, isLoading } = useRevParseQuery({ dbId: '', storeId: '', refname: '' }); -``` diff --git a/.agents/skills/hooks-objects/references/set-props-and-commit.md b/.agents/skills/hooks-objects/references/set-props-and-commit.md deleted file mode 100644 index b02527816a..0000000000 --- a/.agents/skills/hooks-objects/references/set-props-and-commit.md +++ /dev/null @@ -1,20 +0,0 @@ -# setPropsAndCommit - - - -React Query mutation hook for setPropsAndCommit - -## Usage - -```typescript -const { mutate } = useSetPropsAndCommitMutation(); mutate({ input: { dbId: '', storeId: '', refname: '', path: '', data: '' } }); -``` - -## Examples - -### Use useSetPropsAndCommitMutation - -```typescript -const { mutate, isLoading } = useSetPropsAndCommitMutation(); -mutate({ input: { dbId: '', storeId: '', refname: '', path: '', data: '' } }); -``` diff --git a/.agents/skills/hooks-objects/references/update-node-at-path.md b/.agents/skills/hooks-objects/references/update-node-at-path.md deleted file mode 100644 index 2ad5bc28fc..0000000000 --- a/.agents/skills/hooks-objects/references/update-node-at-path.md +++ /dev/null @@ -1,20 +0,0 @@ -# updateNodeAtPath - - - -React Query mutation hook for updateNodeAtPath - -## Usage - -```typescript -const { mutate } = useUpdateNodeAtPathMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useUpdateNodeAtPathMutation - -```typescript -const { mutate, isLoading } = useUpdateNodeAtPathMutation(); -mutate({ input: '' }); -``` diff --git a/.agents/skills/hooks-public/SKILL.md b/.agents/skills/hooks-public/SKILL.md deleted file mode 100644 index aeaa7bff98..0000000000 --- a/.agents/skills/hooks-public/SKILL.md +++ /dev/null @@ -1,248 +0,0 @@ ---- -name: hooks-public -description: React Query hooks for the public API — provides typed query and mutation hooks for 150 tables and 58 custom operations ---- - -# hooks-public - - - -React Query hooks for the public API — provides typed query and mutation hooks for 150 tables and 58 custom operations - -## Usage - -```typescript -// Import hooks -import { useOrgGetManagersQuery } from './hooks'; - -// Query hooks: useQuery, usesQuery -// Mutation hooks: useCreateMutation, useUpdateMutation, useDeleteMutation -// Bulk mutation hooks (when enabled): useBulkCreateMutation, useBulkUpsertMutation, etc. - -const { data, isLoading } = useOrgGetManagersQuery({ - selection: { fields: { id: true } }, -}); -``` - -## Examples - -### Query records - -```typescript -const { data, isLoading } = useOrgGetManagersQuery({ - selection: { fields: { id: true } }, -}); -``` - -## References - -See the `references/` directory for detailed per-entity API documentation: - -- [org-get-managers-record](references/org-get-managers-record.md) -- [org-get-subordinates-record](references/org-get-subordinates-record.md) -- [app-permission](references/app-permission.md) -- [org-permission](references/org-permission.md) -- [database](references/database.md) -- [schema](references/schema.md) -- [table](references/table.md) -- [check-constraint](references/check-constraint.md) -- [field](references/field.md) -- [spatial-relation](references/spatial-relation.md) -- [foreign-key-constraint](references/foreign-key-constraint.md) -- [full-text-search](references/full-text-search.md) -- [index](references/index.md) -- [policy](references/policy.md) -- [primary-key-constraint](references/primary-key-constraint.md) -- [table-grant](references/table-grant.md) -- [trigger](references/trigger.md) -- [unique-constraint](references/unique-constraint.md) -- [view](references/view.md) -- [view-table](references/view-table.md) -- [view-grant](references/view-grant.md) -- [view-rule](references/view-rule.md) -- [embedding-chunk](references/embedding-chunk.md) -- [secure-table-provision](references/secure-table-provision.md) -- [relation-provision](references/relation-provision.md) -- [session-secrets-module](references/session-secrets-module.md) -- [identity-providers-module](references/identity-providers-module.md) -- [realtime-module](references/realtime-module.md) -- [config-secrets-org-module](references/config-secrets-org-module.md) -- [schema-grant](references/schema-grant.md) -- [default-privilege](references/default-privilege.md) -- [enum](references/enum.md) -- [function](references/function.md) -- [api-schema](references/api-schema.md) -- [api-module](references/api-module.md) -- [domain](references/domain.md) -- [site-metadatum](references/site-metadatum.md) -- [site-module](references/site-module.md) -- [site-theme](references/site-theme.md) -- [cors-setting](references/cors-setting.md) -- [merkle-store-module](references/merkle-store-module.md) -- [graph-module](references/graph-module.md) -- [trigger-function](references/trigger-function.md) -- [partition](references/partition.md) -- [database-transfer](references/database-transfer.md) -- [api](references/api.md) -- [site](references/site.md) -- [app](references/app.md) -- [api-setting](references/api-setting.md) -- [connected-accounts-module](references/connected-accounts-module.md) -- [crypto-addresses-module](references/crypto-addresses-module.md) -- [crypto-auth-module](references/crypto-auth-module.md) -- [default-ids-module](references/default-ids-module.md) -- [denormalized-table-field](references/denormalized-table-field.md) -- [emails-module](references/emails-module.md) -- [config-secrets-user-module](references/config-secrets-user-module.md) -- [invites-module](references/invites-module.md) -- [events-module](references/events-module.md) -- [limits-module](references/limits-module.md) -- [membership-types-module](references/membership-types-module.md) -- [memberships-module](references/memberships-module.md) -- [permissions-module](references/permissions-module.md) -- [phone-numbers-module](references/phone-numbers-module.md) -- [profiles-module](references/profiles-module.md) -- [user-state-module](references/user-state-module.md) -- [sessions-module](references/sessions-module.md) -- [user-auth-module](references/user-auth-module.md) -- [users-module](references/users-module.md) -- [blueprint](references/blueprint.md) -- [blueprint-template](references/blueprint-template.md) -- [blueprint-construction](references/blueprint-construction.md) -- [storage-module](references/storage-module.md) -- [entity-type-provision](references/entity-type-provision.md) -- [webauthn-credentials-module](references/webauthn-credentials-module.md) -- [webauthn-auth-module](references/webauthn-auth-module.md) -- [notifications-module](references/notifications-module.md) -- [inference-log-module](references/inference-log-module.md) -- [compute-log-module](references/compute-log-module.md) -- [transfer-log-module](references/transfer-log-module.md) -- [storage-log-module](references/storage-log-module.md) -- [db-usage-module](references/db-usage-module.md) -- [agent-module](references/agent-module.md) -- [namespace-module](references/namespace-module.md) -- [function-module](references/function-module.md) -- [database-provision-module](references/database-provision-module.md) -- [app-admin-grant](references/app-admin-grant.md) -- [app-owner-grant](references/app-owner-grant.md) -- [app-grant](references/app-grant.md) -- [org-membership](references/org-membership.md) -- [org-member](references/org-member.md) -- [org-admin-grant](references/org-admin-grant.md) -- [org-owner-grant](references/org-owner-grant.md) -- [org-member-profile](references/org-member-profile.md) -- [org-grant](references/org-grant.md) -- [org-chart-edge](references/org-chart-edge.md) -- [org-chart-edge-grant](references/org-chart-edge-grant.md) -- [org-permission-default](references/org-permission-default.md) -- [app-limit](references/app-limit.md) -- [app-limit-credit](references/app-limit-credit.md) -- [app-limit-credit-code-item](references/app-limit-credit-code-item.md) -- [app-limit-credit-redemption](references/app-limit-credit-redemption.md) -- [org-limit](references/org-limit.md) -- [org-limit-credit](references/org-limit-credit.md) -- [org-limit-aggregate](references/org-limit-aggregate.md) -- [org-limit-warning](references/org-limit-warning.md) -- [email](references/email.md) -- [phone-number](references/phone-number.md) -- [crypto-address](references/crypto-address.md) -- [webauthn-credential](references/webauthn-credential.md) -- [app-invite](references/app-invite.md) -- [app-claimed-invite](references/app-claimed-invite.md) -- [org-invite](references/org-invite.md) -- [org-claimed-invite](references/org-claimed-invite.md) -- [audit-log-auth](references/audit-log-auth.md) -- [identity-provider](references/identity-provider.md) -- [app-permission-default](references/app-permission-default.md) -- [role-type](references/role-type.md) -- [migrate-file](references/migrate-file.md) -- [devices-module](references/devices-module.md) -- [app-membership-default](references/app-membership-default.md) -- [org-membership-default](references/org-membership-default.md) -- [node-type-registry](references/node-type-registry.md) -- [app-limit-caps-default](references/app-limit-caps-default.md) -- [org-limit-caps-default](references/org-limit-caps-default.md) -- [app-limit-cap](references/app-limit-cap.md) -- [org-limit-cap](references/org-limit-cap.md) -- [user-connected-account](references/user-connected-account.md) -- [app-limit-default](references/app-limit-default.md) -- [org-limit-default](references/org-limit-default.md) -- [app-limit-credit-code](references/app-limit-credit-code.md) -- [app-limit-warning](references/app-limit-warning.md) -- [pubkey-setting](references/pubkey-setting.md) -- [rate-limits-module](references/rate-limits-module.md) -- [membership-type](references/membership-type.md) -- [rls-setting](references/rls-setting.md) -- [rls-module](references/rls-module.md) -- [rate-limit-meters-module](references/rate-limit-meters-module.md) -- [plans-module](references/plans-module.md) -- [sql-action](references/sql-action.md) -- [database-setting](references/database-setting.md) -- [org-membership-setting](references/org-membership-setting.md) -- [app-limit-event](references/app-limit-event.md) -- [org-limit-event](references/org-limit-event.md) -- [app-membership](references/app-membership.md) -- [user](references/user.md) -- [ast-migration](references/ast-migration.md) -- [webauthn-setting](references/webauthn-setting.md) -- [billing-module](references/billing-module.md) -- [billing-provider-module](references/billing-provider-module.md) -- [hierarchy-module](references/hierarchy-module.md) -- [current-user-id](references/current-user-id.md) -- [current-user-agent](references/current-user-agent.md) -- [current-ip-address](references/current-ip-address.md) -- [require-step-up](references/require-step-up.md) -- [app-permissions-get-padded-mask](references/app-permissions-get-padded-mask.md) -- [org-permissions-get-padded-mask](references/org-permissions-get-padded-mask.md) -- [apply-registry-defaults](references/apply-registry-defaults.md) -- [resolve-blueprint-field](references/resolve-blueprint-field.md) -- [resolve-blueprint-table](references/resolve-blueprint-table.md) -- [org-is-manager-of](references/org-is-manager-of.md) -- [app-permissions-get-mask](references/app-permissions-get-mask.md) -- [org-permissions-get-mask](references/org-permissions-get-mask.md) -- [app-permissions-get-mask-by-names](references/app-permissions-get-mask-by-names.md) -- [org-permissions-get-mask-by-names](references/org-permissions-get-mask-by-names.md) -- [app-permissions-get-by-mask](references/app-permissions-get-by-mask.md) -- [org-permissions-get-by-mask](references/org-permissions-get-by-mask.md) -- [current-user](references/current-user.md) -- [send-account-deletion-email](references/send-account-deletion-email.md) -- [sign-out](references/sign-out.md) -- [accept-database-transfer](references/accept-database-transfer.md) -- [cancel-database-transfer](references/cancel-database-transfer.md) -- [reject-database-transfer](references/reject-database-transfer.md) -- [disconnect-account](references/disconnect-account.md) -- [revoke-api-key](references/revoke-api-key.md) -- [revoke-session](references/revoke-session.md) -- [verify-password](references/verify-password.md) -- [verify-totp](references/verify-totp.md) -- [submit-app-invite-code](references/submit-app-invite-code.md) -- [submit-org-invite-code](references/submit-org-invite-code.md) -- [check-password](references/check-password.md) -- [confirm-delete-account](references/confirm-delete-account.md) -- [set-password](references/set-password.md) -- [verify-email](references/verify-email.md) -- [construct-blueprint](references/construct-blueprint.md) -- [provision-new-user](references/provision-new-user.md) -- [reset-password](references/reset-password.md) -- [provision-check-constraint](references/provision-check-constraint.md) -- [provision-unique-constraint](references/provision-unique-constraint.md) -- [provision-full-text-search](references/provision-full-text-search.md) -- [provision-index](references/provision-index.md) -- [copy-template-to-blueprint](references/copy-template-to-blueprint.md) -- [provision-spatial-relation](references/provision-spatial-relation.md) -- [sign-in-cross-origin](references/sign-in-cross-origin.md) -- [bootstrap-user](references/bootstrap-user.md) -- [sign-up](references/sign-up.md) -- [sign-in](references/sign-in.md) -- [provision-relation](references/provision-relation.md) -- [set-field-order](references/set-field-order.md) -- [apply-rls](references/apply-rls.md) -- [provision-database-with-user](references/provision-database-with-user.md) -- [create-user-database](references/create-user-database.md) -- [extend-token-expires](references/extend-token-expires.md) -- [create-api-key](references/create-api-key.md) -- [request-cross-origin-token](references/request-cross-origin-token.md) -- [provision-table](references/provision-table.md) -- [send-verification-email](references/send-verification-email.md) -- [forgot-password](references/forgot-password.md) -- [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/hooks-public/references/accept-database-transfer.md b/.agents/skills/hooks-public/references/accept-database-transfer.md deleted file mode 100644 index f65ac99295..0000000000 --- a/.agents/skills/hooks-public/references/accept-database-transfer.md +++ /dev/null @@ -1,20 +0,0 @@ -# acceptDatabaseTransfer - - - -React Query mutation hook for acceptDatabaseTransfer - -## Usage - -```typescript -const { mutate } = useAcceptDatabaseTransferMutation(); mutate({ input: { transferId: '' } }); -``` - -## Examples - -### Use useAcceptDatabaseTransferMutation - -```typescript -const { mutate, isLoading } = useAcceptDatabaseTransferMutation(); -mutate({ input: { transferId: '' } }); -``` diff --git a/.agents/skills/hooks-public/references/agent-message.md b/.agents/skills/hooks-public/references/agent-message.md deleted file mode 100644 index 679cbd05be..0000000000 --- a/.agents/skills/hooks-public/references/agent-message.md +++ /dev/null @@ -1,34 +0,0 @@ -# agentMessage - - - -A single message in an agent_thread. The full client-rendered content (TextPart and ToolPart, including the ToolPart state machine and inline approval object) lives in the `parts` jsonb column — there is no separate agent_tool_call or agent_tool_approval table in v1. Cascade-deleted with the parent thread; RLS is owner-only. - -## Usage - -```typescript -useAgentMessagesQuery({ selection: { fields: { threadId: true, entityId: true, authorRole: true, id: true, createdAt: true, updatedAt: true, ownerId: true, parts: true } } }) -useAgentMessageQuery({ id: '', selection: { fields: { threadId: true, entityId: true, authorRole: true, id: true, createdAt: true, updatedAt: true, ownerId: true, parts: true } } }) -useCreateAgentMessageMutation({ selection: { fields: { id: true } } }) -useUpdateAgentMessageMutation({ selection: { fields: { id: true } } }) -useDeleteAgentMessageMutation({}) -``` - -## Examples - -### List all agentMessages - -```typescript -const { data, isLoading } = useAgentMessagesQuery({ - selection: { fields: { threadId: true, entityId: true, authorRole: true, id: true, createdAt: true, updatedAt: true, ownerId: true, parts: true } }, -}); -``` - -### Create a agentMessage - -```typescript -const { mutate } = useCreateAgentMessageMutation({ - selection: { fields: { id: true } }, -}); -mutate({ threadId: '', entityId: '', authorRole: '', ownerId: '', parts: '' }); -``` diff --git a/.agents/skills/hooks-public/references/agent-module.md b/.agents/skills/hooks-public/references/agent-module.md deleted file mode 100644 index dbb3b84df9..0000000000 --- a/.agents/skills/hooks-public/references/agent-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# agentModule - - - -React Query hooks for AgentModule data operations - -## Usage - -```typescript -useAgentModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, knowledgeTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, knowledgeTableName: true, hasKnowledge: true, apiName: true, membershipType: true, key: true, entityTableId: true, policies: true, knowledgeConfig: true, knowledgePolicies: true, provisions: true } } }) -useAgentModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, knowledgeTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, knowledgeTableName: true, hasKnowledge: true, apiName: true, membershipType: true, key: true, entityTableId: true, policies: true, knowledgeConfig: true, knowledgePolicies: true, provisions: true } } }) -useCreateAgentModuleMutation({ selection: { fields: { id: true } } }) -useUpdateAgentModuleMutation({ selection: { fields: { id: true } } }) -useDeleteAgentModuleMutation({}) -``` - -## Examples - -### List all agentModules - -```typescript -const { data, isLoading } = useAgentModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, knowledgeTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, knowledgeTableName: true, hasKnowledge: true, apiName: true, membershipType: true, key: true, entityTableId: true, policies: true, knowledgeConfig: true, knowledgePolicies: true, provisions: true } }, -}); -``` - -### Create a agentModule - -```typescript -const { mutate } = useCreateAgentModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', threadTableId: '', messageTableId: '', taskTableId: '', promptsTableId: '', knowledgeTableId: '', threadTableName: '', messageTableName: '', taskTableName: '', promptsTableName: '', knowledgeTableName: '', hasKnowledge: '', apiName: '', membershipType: '', key: '', entityTableId: '', policies: '', knowledgeConfig: '', knowledgePolicies: '', provisions: '' }); -``` diff --git a/.agents/skills/hooks-public/references/agent-task.md b/.agents/skills/hooks-public/references/agent-task.md deleted file mode 100644 index dbc7b25935..0000000000 --- a/.agents/skills/hooks-public/references/agent-task.md +++ /dev/null @@ -1,34 +0,0 @@ -# agentTask - - - -An agent- or user-authored todo item attached to an agent_thread. Captures the planning surface for agent-mode conversations: each row is a single discrete unit of work with a status lifecycle (pending → in-progress → done|failed). Cascade-deleted with the parent thread; RLS is owner-only. - -## Usage - -```typescript -useAgentTasksQuery({ selection: { fields: { threadId: true, entityId: true, description: true, source: true, error: true, id: true, createdAt: true, updatedAt: true, ownerId: true, status: true } } }) -useAgentTaskQuery({ id: '', selection: { fields: { threadId: true, entityId: true, description: true, source: true, error: true, id: true, createdAt: true, updatedAt: true, ownerId: true, status: true } } }) -useCreateAgentTaskMutation({ selection: { fields: { id: true } } }) -useUpdateAgentTaskMutation({ selection: { fields: { id: true } } }) -useDeleteAgentTaskMutation({}) -``` - -## Examples - -### List all agentTasks - -```typescript -const { data, isLoading } = useAgentTasksQuery({ - selection: { fields: { threadId: true, entityId: true, description: true, source: true, error: true, id: true, createdAt: true, updatedAt: true, ownerId: true, status: true } }, -}); -``` - -### Create a agentTask - -```typescript -const { mutate } = useCreateAgentTaskMutation({ - selection: { fields: { id: true } }, -}); -mutate({ threadId: '', entityId: '', description: '', source: '', error: '', ownerId: '', status: '' }); -``` diff --git a/.agents/skills/hooks-public/references/agent-thread.md b/.agents/skills/hooks-public/references/agent-thread.md deleted file mode 100644 index 0ecb452632..0000000000 --- a/.agents/skills/hooks-public/references/agent-thread.md +++ /dev/null @@ -1,34 +0,0 @@ -# agentThread - - - -Top-level AI/LLM conversation. Owns the chat-mode + model + system-prompt snapshot for the lifetime of the conversation, and is the entity-scoping anchor — descendants (agent_message, agent_task) inherit entity_id from this row via DataInheritFromParent. RLS is owner-only (AuthzDirectOwner); entity_id is a grouping dimension, not a security dimension. - -## Usage - -```typescript -useAgentThreadsQuery({ selection: { fields: { title: true, mode: true, model: true, systemPrompt: true, id: true, createdAt: true, updatedAt: true, ownerId: true, entityId: true, status: true } } }) -useAgentThreadQuery({ id: '', selection: { fields: { title: true, mode: true, model: true, systemPrompt: true, id: true, createdAt: true, updatedAt: true, ownerId: true, entityId: true, status: true } } }) -useCreateAgentThreadMutation({ selection: { fields: { id: true } } }) -useUpdateAgentThreadMutation({ selection: { fields: { id: true } } }) -useDeleteAgentThreadMutation({}) -``` - -## Examples - -### List all agentThreads - -```typescript -const { data, isLoading } = useAgentThreadsQuery({ - selection: { fields: { title: true, mode: true, model: true, systemPrompt: true, id: true, createdAt: true, updatedAt: true, ownerId: true, entityId: true, status: true } }, -}); -``` - -### Create a agentThread - -```typescript -const { mutate } = useCreateAgentThreadMutation({ - selection: { fields: { id: true } }, -}); -mutate({ title: '', mode: '', model: '', systemPrompt: '', ownerId: '', entityId: '', status: '' }); -``` diff --git a/.agents/skills/hooks-public/references/api-module.md b/.agents/skills/hooks-public/references/api-module.md deleted file mode 100644 index 8a76c77ee4..0000000000 --- a/.agents/skills/hooks-public/references/api-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# apiModule - - - -Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server - -## Usage - -```typescript -useApiModulesQuery({ selection: { fields: { id: true, databaseId: true, apiId: true, name: true, data: true } } }) -useApiModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, apiId: true, name: true, data: true } } }) -useCreateApiModuleMutation({ selection: { fields: { id: true } } }) -useUpdateApiModuleMutation({ selection: { fields: { id: true } } }) -useDeleteApiModuleMutation({}) -``` - -## Examples - -### List all apiModules - -```typescript -const { data, isLoading } = useApiModulesQuery({ - selection: { fields: { id: true, databaseId: true, apiId: true, name: true, data: true } }, -}); -``` - -### Create a apiModule - -```typescript -const { mutate } = useCreateApiModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', apiId: '', name: '', data: '' }); -``` diff --git a/.agents/skills/hooks-public/references/api-schema.md b/.agents/skills/hooks-public/references/api-schema.md deleted file mode 100644 index 2e0bb4023e..0000000000 --- a/.agents/skills/hooks-public/references/api-schema.md +++ /dev/null @@ -1,34 +0,0 @@ -# apiSchema - - - -Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API - -## Usage - -```typescript -useApiSchemasQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, apiId: true } } }) -useApiSchemaQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, apiId: true } } }) -useCreateApiSchemaMutation({ selection: { fields: { id: true } } }) -useUpdateApiSchemaMutation({ selection: { fields: { id: true } } }) -useDeleteApiSchemaMutation({}) -``` - -## Examples - -### List all apiSchemas - -```typescript -const { data, isLoading } = useApiSchemasQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, apiId: true } }, -}); -``` - -### Create a apiSchema - -```typescript -const { mutate } = useCreateApiSchemaMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', apiId: '' }); -``` diff --git a/.agents/skills/hooks-public/references/api-setting.md b/.agents/skills/hooks-public/references/api-setting.md deleted file mode 100644 index aa3763b2bb..0000000000 --- a/.agents/skills/hooks-public/references/api-setting.md +++ /dev/null @@ -1,34 +0,0 @@ -# apiSetting - - - -Per-API feature flag overrides; NULL columns inherit from database_settings, explicit true/false overrides the database default - -## Usage - -```typescript -useApiSettingsQuery({ selection: { fields: { id: true, databaseId: true, apiId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, enableBulk: true, options: true } } }) -useApiSettingQuery({ id: '', selection: { fields: { id: true, databaseId: true, apiId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, enableBulk: true, options: true } } }) -useCreateApiSettingMutation({ selection: { fields: { id: true } } }) -useUpdateApiSettingMutation({ selection: { fields: { id: true } } }) -useDeleteApiSettingMutation({}) -``` - -## Examples - -### List all apiSettings - -```typescript -const { data, isLoading } = useApiSettingsQuery({ - selection: { fields: { id: true, databaseId: true, apiId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, enableBulk: true, options: true } }, -}); -``` - -### Create a apiSetting - -```typescript -const { mutate } = useCreateApiSettingMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', apiId: '', enableAggregates: '', enablePostgis: '', enableSearch: '', enableDirectUploads: '', enablePresignedUploads: '', enableManyToMany: '', enableConnectionFilter: '', enableLtree: '', enableLlm: '', enableRealtime: '', enableBulk: '', options: '' }); -``` diff --git a/.agents/skills/hooks-public/references/api.md b/.agents/skills/hooks-public/references/api.md deleted file mode 100644 index 9f88f46b0a..0000000000 --- a/.agents/skills/hooks-public/references/api.md +++ /dev/null @@ -1,34 +0,0 @@ -# api - - - -API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings - -## Usage - -```typescript -useApisQuery({ selection: { fields: { id: true, databaseId: true, name: true, dbname: true, roleName: true, anonRole: true, isPublic: true } } }) -useApiQuery({ id: '', selection: { fields: { id: true, databaseId: true, name: true, dbname: true, roleName: true, anonRole: true, isPublic: true } } }) -useCreateApiMutation({ selection: { fields: { id: true } } }) -useUpdateApiMutation({ selection: { fields: { id: true } } }) -useDeleteApiMutation({}) -``` - -## Examples - -### List all apis - -```typescript -const { data, isLoading } = useApisQuery({ - selection: { fields: { id: true, databaseId: true, name: true, dbname: true, roleName: true, anonRole: true, isPublic: true } }, -}); -``` - -### Create a api - -```typescript -const { mutate } = useCreateApiMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', name: '', dbname: '', roleName: '', anonRole: '', isPublic: '' }); -``` diff --git a/.agents/skills/hooks-public/references/app-achievement.md b/.agents/skills/hooks-public/references/app-achievement.md deleted file mode 100644 index bd39147d83..0000000000 --- a/.agents/skills/hooks-public/references/app-achievement.md +++ /dev/null @@ -1,34 +0,0 @@ -# appAchievement - - - -Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually - -## Usage - -```typescript -useAppAchievementsQuery({ selection: { fields: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } } }) -useAppAchievementQuery({ id: '', selection: { fields: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } } }) -useCreateAppAchievementMutation({ selection: { fields: { id: true } } }) -useUpdateAppAchievementMutation({ selection: { fields: { id: true } } }) -useDeleteAppAchievementMutation({}) -``` - -## Examples - -### List all appAchievements - -```typescript -const { data, isLoading } = useAppAchievementsQuery({ - selection: { fields: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a appAchievement - -```typescript -const { mutate } = useCreateAppAchievementMutation({ - selection: { fields: { id: true } }, -}); -mutate({ actorId: '', name: '', count: '' }); -``` diff --git a/.agents/skills/hooks-public/references/app-admin-grant.md b/.agents/skills/hooks-public/references/app-admin-grant.md deleted file mode 100644 index 9d1cdae837..0000000000 --- a/.agents/skills/hooks-public/references/app-admin-grant.md +++ /dev/null @@ -1,34 +0,0 @@ -# appAdminGrant - - - -Records of admin role grants and revocations between members - -## Usage - -```typescript -useAppAdminGrantsQuery({ selection: { fields: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } } }) -useAppAdminGrantQuery({ id: '', selection: { fields: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } } }) -useCreateAppAdminGrantMutation({ selection: { fields: { id: true } } }) -useUpdateAppAdminGrantMutation({ selection: { fields: { id: true } } }) -useDeleteAppAdminGrantMutation({}) -``` - -## Examples - -### List all appAdminGrants - -```typescript -const { data, isLoading } = useAppAdminGrantsQuery({ - selection: { fields: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a appAdminGrant - -```typescript -const { mutate } = useCreateAppAdminGrantMutation({ - selection: { fields: { id: true } }, -}); -mutate({ isGrant: '', actorId: '', grantorId: '' }); -``` diff --git a/.agents/skills/hooks-public/references/app-claimed-invite.md b/.agents/skills/hooks-public/references/app-claimed-invite.md deleted file mode 100644 index aa1761ab13..0000000000 --- a/.agents/skills/hooks-public/references/app-claimed-invite.md +++ /dev/null @@ -1,34 +0,0 @@ -# appClaimedInvite - - - -Records of successfully claimed invitations, linking senders to receivers - -## Usage - -```typescript -useAppClaimedInvitesQuery({ selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } } }) -useAppClaimedInviteQuery({ id: '', selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } } }) -useCreateAppClaimedInviteMutation({ selection: { fields: { id: true } } }) -useUpdateAppClaimedInviteMutation({ selection: { fields: { id: true } } }) -useDeleteAppClaimedInviteMutation({}) -``` - -## Examples - -### List all appClaimedInvites - -```typescript -const { data, isLoading } = useAppClaimedInvitesQuery({ - selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a appClaimedInvite - -```typescript -const { mutate } = useCreateAppClaimedInviteMutation({ - selection: { fields: { id: true } }, -}); -mutate({ data: '', senderId: '', receiverId: '' }); -``` diff --git a/.agents/skills/hooks-public/references/app-grant.md b/.agents/skills/hooks-public/references/app-grant.md deleted file mode 100644 index 9c426950a8..0000000000 --- a/.agents/skills/hooks-public/references/app-grant.md +++ /dev/null @@ -1,34 +0,0 @@ -# appGrant - - - -Records of individual permission grants and revocations for members via bitmask - -## Usage - -```typescript -useAppGrantsQuery({ selection: { fields: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } } }) -useAppGrantQuery({ id: '', selection: { fields: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } } }) -useCreateAppGrantMutation({ selection: { fields: { id: true } } }) -useUpdateAppGrantMutation({ selection: { fields: { id: true } } }) -useDeleteAppGrantMutation({}) -``` - -## Examples - -### List all appGrants - -```typescript -const { data, isLoading } = useAppGrantsQuery({ - selection: { fields: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a appGrant - -```typescript -const { mutate } = useCreateAppGrantMutation({ - selection: { fields: { id: true } }, -}); -mutate({ permissions: '', isGrant: '', actorId: '', grantorId: '' }); -``` diff --git a/.agents/skills/hooks-public/references/app-invite.md b/.agents/skills/hooks-public/references/app-invite.md deleted file mode 100644 index 8697f64c50..0000000000 --- a/.agents/skills/hooks-public/references/app-invite.md +++ /dev/null @@ -1,34 +0,0 @@ -# appInvite - - - -Invitation records sent to prospective members via email, with token-based redemption and expiration - -## Usage - -```typescript -useAppInvitesQuery({ selection: { fields: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true } } }) -useAppInviteQuery({ id: '', selection: { fields: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true } } }) -useCreateAppInviteMutation({ selection: { fields: { id: true } } }) -useUpdateAppInviteMutation({ selection: { fields: { id: true } } }) -useDeleteAppInviteMutation({}) -``` - -## Examples - -### List all appInvites - -```typescript -const { data, isLoading } = useAppInvitesQuery({ - selection: { fields: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a appInvite - -```typescript -const { mutate } = useCreateAppInviteMutation({ - selection: { fields: { id: true } }, -}); -mutate({ email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', expiresAt: '' }); -``` diff --git a/.agents/skills/hooks-public/references/app-level-requirement.md b/.agents/skills/hooks-public/references/app-level-requirement.md deleted file mode 100644 index 76e552bfb9..0000000000 --- a/.agents/skills/hooks-public/references/app-level-requirement.md +++ /dev/null @@ -1,34 +0,0 @@ -# appLevelRequirement - - - -Defines the specific requirements that must be met to achieve a level - -## Usage - -```typescript -useAppLevelRequirementsQuery({ selection: { fields: { id: true, name: true, level: true, description: true, requiredCount: true, priority: true, createdAt: true, updatedAt: true } } }) -useAppLevelRequirementQuery({ id: '', selection: { fields: { id: true, name: true, level: true, description: true, requiredCount: true, priority: true, createdAt: true, updatedAt: true } } }) -useCreateAppLevelRequirementMutation({ selection: { fields: { id: true } } }) -useUpdateAppLevelRequirementMutation({ selection: { fields: { id: true } } }) -useDeleteAppLevelRequirementMutation({}) -``` - -## Examples - -### List all appLevelRequirements - -```typescript -const { data, isLoading } = useAppLevelRequirementsQuery({ - selection: { fields: { id: true, name: true, level: true, description: true, requiredCount: true, priority: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a appLevelRequirement - -```typescript -const { mutate } = useCreateAppLevelRequirementMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '', level: '', description: '', requiredCount: '', priority: '' }); -``` diff --git a/.agents/skills/hooks-public/references/app-level.md b/.agents/skills/hooks-public/references/app-level.md deleted file mode 100644 index f70a03ceed..0000000000 --- a/.agents/skills/hooks-public/references/app-level.md +++ /dev/null @@ -1,34 +0,0 @@ -# appLevel - - - -Defines available levels that users can achieve by completing requirements - -## Usage - -```typescript -useAppLevelsQuery({ selection: { fields: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true } } }) -useAppLevelQuery({ id: '', selection: { fields: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true } } }) -useCreateAppLevelMutation({ selection: { fields: { id: true } } }) -useUpdateAppLevelMutation({ selection: { fields: { id: true } } }) -useDeleteAppLevelMutation({}) -``` - -## Examples - -### List all appLevels - -```typescript -const { data, isLoading } = useAppLevelsQuery({ - selection: { fields: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a appLevel - -```typescript -const { mutate } = useCreateAppLevelMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '', description: '', image: '', ownerId: '' }); -``` diff --git a/.agents/skills/hooks-public/references/app-limit-cap.md b/.agents/skills/hooks-public/references/app-limit-cap.md deleted file mode 100644 index b219f8c7a6..0000000000 --- a/.agents/skills/hooks-public/references/app-limit-cap.md +++ /dev/null @@ -1,34 +0,0 @@ -# appLimitCap - - - -Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. - -## Usage - -```typescript -useAppLimitCapsQuery({ selection: { fields: { id: true, name: true, entityId: true, max: true } } }) -useAppLimitCapQuery({ id: '', selection: { fields: { id: true, name: true, entityId: true, max: true } } }) -useCreateAppLimitCapMutation({ selection: { fields: { id: true } } }) -useUpdateAppLimitCapMutation({ selection: { fields: { id: true } } }) -useDeleteAppLimitCapMutation({}) -``` - -## Examples - -### List all appLimitCaps - -```typescript -const { data, isLoading } = useAppLimitCapsQuery({ - selection: { fields: { id: true, name: true, entityId: true, max: true } }, -}); -``` - -### Create a appLimitCap - -```typescript -const { mutate } = useCreateAppLimitCapMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '', entityId: '', max: '' }); -``` diff --git a/.agents/skills/hooks-public/references/app-limit-caps-default.md b/.agents/skills/hooks-public/references/app-limit-caps-default.md deleted file mode 100644 index 6804054bd7..0000000000 --- a/.agents/skills/hooks-public/references/app-limit-caps-default.md +++ /dev/null @@ -1,34 +0,0 @@ -# appLimitCapsDefault - - - -Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. - -## Usage - -```typescript -useAppLimitCapsDefaultsQuery({ selection: { fields: { id: true, name: true, max: true } } }) -useAppLimitCapsDefaultQuery({ id: '', selection: { fields: { id: true, name: true, max: true } } }) -useCreateAppLimitCapsDefaultMutation({ selection: { fields: { id: true } } }) -useUpdateAppLimitCapsDefaultMutation({ selection: { fields: { id: true } } }) -useDeleteAppLimitCapsDefaultMutation({}) -``` - -## Examples - -### List all appLimitCapsDefaults - -```typescript -const { data, isLoading } = useAppLimitCapsDefaultsQuery({ - selection: { fields: { id: true, name: true, max: true } }, -}); -``` - -### Create a appLimitCapsDefault - -```typescript -const { mutate } = useCreateAppLimitCapsDefaultMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '', max: '' }); -``` diff --git a/.agents/skills/hooks-public/references/app-limit-credit-code-item.md b/.agents/skills/hooks-public/references/app-limit-credit-code-item.md deleted file mode 100644 index c65b5e90eb..0000000000 --- a/.agents/skills/hooks-public/references/app-limit-credit-code-item.md +++ /dev/null @@ -1,34 +0,0 @@ -# appLimitCreditCodeItem - - - -Items within a credit code — each row grants credits for a specific limit definition - -## Usage - -```typescript -useAppLimitCreditCodeItemsQuery({ selection: { fields: { id: true, creditCodeId: true, defaultLimitId: true, amount: true, creditType: true } } }) -useAppLimitCreditCodeItemQuery({ id: '', selection: { fields: { id: true, creditCodeId: true, defaultLimitId: true, amount: true, creditType: true } } }) -useCreateAppLimitCreditCodeItemMutation({ selection: { fields: { id: true } } }) -useUpdateAppLimitCreditCodeItemMutation({ selection: { fields: { id: true } } }) -useDeleteAppLimitCreditCodeItemMutation({}) -``` - -## Examples - -### List all appLimitCreditCodeItems - -```typescript -const { data, isLoading } = useAppLimitCreditCodeItemsQuery({ - selection: { fields: { id: true, creditCodeId: true, defaultLimitId: true, amount: true, creditType: true } }, -}); -``` - -### Create a appLimitCreditCodeItem - -```typescript -const { mutate } = useCreateAppLimitCreditCodeItemMutation({ - selection: { fields: { id: true } }, -}); -mutate({ creditCodeId: '', defaultLimitId: '', amount: '', creditType: '' }); -``` diff --git a/.agents/skills/hooks-public/references/app-limit-credit-code.md b/.agents/skills/hooks-public/references/app-limit-credit-code.md deleted file mode 100644 index e2102ea5c1..0000000000 --- a/.agents/skills/hooks-public/references/app-limit-credit-code.md +++ /dev/null @@ -1,34 +0,0 @@ -# appLimitCreditCode - - - -Redeemable credit codes managed by admins with the add_credits permission - -## Usage - -```typescript -useAppLimitCreditCodesQuery({ selection: { fields: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } } }) -useAppLimitCreditCodeQuery({ id: '', selection: { fields: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } } }) -useCreateAppLimitCreditCodeMutation({ selection: { fields: { id: true } } }) -useUpdateAppLimitCreditCodeMutation({ selection: { fields: { id: true } } }) -useDeleteAppLimitCreditCodeMutation({}) -``` - -## Examples - -### List all appLimitCreditCodes - -```typescript -const { data, isLoading } = useAppLimitCreditCodesQuery({ - selection: { fields: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }, -}); -``` - -### Create a appLimitCreditCode - -```typescript -const { mutate } = useCreateAppLimitCreditCodeMutation({ - selection: { fields: { id: true } }, -}); -mutate({ code: '', maxRedemptions: '', currentRedemptions: '', expiresAt: '' }); -``` diff --git a/.agents/skills/hooks-public/references/app-limit-credit-redemption.md b/.agents/skills/hooks-public/references/app-limit-credit-redemption.md deleted file mode 100644 index 5c80eceddb..0000000000 --- a/.agents/skills/hooks-public/references/app-limit-credit-redemption.md +++ /dev/null @@ -1,34 +0,0 @@ -# appLimitCreditRedemption - - - -Append-only ledger of code redemptions; AFTER INSERT trigger validates and cascades to limit_credits - -## Usage - -```typescript -useAppLimitCreditRedemptionsQuery({ selection: { fields: { id: true, creditCodeId: true, entityId: true } } }) -useAppLimitCreditRedemptionQuery({ id: '', selection: { fields: { id: true, creditCodeId: true, entityId: true } } }) -useCreateAppLimitCreditRedemptionMutation({ selection: { fields: { id: true } } }) -useUpdateAppLimitCreditRedemptionMutation({ selection: { fields: { id: true } } }) -useDeleteAppLimitCreditRedemptionMutation({}) -``` - -## Examples - -### List all appLimitCreditRedemptions - -```typescript -const { data, isLoading } = useAppLimitCreditRedemptionsQuery({ - selection: { fields: { id: true, creditCodeId: true, entityId: true } }, -}); -``` - -### Create a appLimitCreditRedemption - -```typescript -const { mutate } = useCreateAppLimitCreditRedemptionMutation({ - selection: { fields: { id: true } }, -}); -mutate({ creditCodeId: '', entityId: '' }); -``` diff --git a/.agents/skills/hooks-public/references/app-limit-credit.md b/.agents/skills/hooks-public/references/app-limit-credit.md deleted file mode 100644 index d37eb3fc36..0000000000 --- a/.agents/skills/hooks-public/references/app-limit-credit.md +++ /dev/null @@ -1,34 +0,0 @@ -# appLimitCredit - - - -Append-only ledger of credit grants that automatically update limit ceilings - -## Usage - -```typescript -useAppLimitCreditsQuery({ selection: { fields: { id: true, defaultLimitId: true, actorId: true, amount: true, creditType: true, reason: true } } }) -useAppLimitCreditQuery({ id: '', selection: { fields: { id: true, defaultLimitId: true, actorId: true, amount: true, creditType: true, reason: true } } }) -useCreateAppLimitCreditMutation({ selection: { fields: { id: true } } }) -useUpdateAppLimitCreditMutation({ selection: { fields: { id: true } } }) -useDeleteAppLimitCreditMutation({}) -``` - -## Examples - -### List all appLimitCredits - -```typescript -const { data, isLoading } = useAppLimitCreditsQuery({ - selection: { fields: { id: true, defaultLimitId: true, actorId: true, amount: true, creditType: true, reason: true } }, -}); -``` - -### Create a appLimitCredit - -```typescript -const { mutate } = useCreateAppLimitCreditMutation({ - selection: { fields: { id: true } }, -}); -mutate({ defaultLimitId: '', actorId: '', amount: '', creditType: '', reason: '' }); -``` diff --git a/.agents/skills/hooks-public/references/app-limit-default.md b/.agents/skills/hooks-public/references/app-limit-default.md deleted file mode 100644 index da6f1b58c4..0000000000 --- a/.agents/skills/hooks-public/references/app-limit-default.md +++ /dev/null @@ -1,34 +0,0 @@ -# appLimitDefault - - - -Default maximum values for each named limit, applied when no per-actor override exists - -## Usage - -```typescript -useAppLimitDefaultsQuery({ selection: { fields: { id: true, name: true, max: true, softMax: true } } }) -useAppLimitDefaultQuery({ id: '', selection: { fields: { id: true, name: true, max: true, softMax: true } } }) -useCreateAppLimitDefaultMutation({ selection: { fields: { id: true } } }) -useUpdateAppLimitDefaultMutation({ selection: { fields: { id: true } } }) -useDeleteAppLimitDefaultMutation({}) -``` - -## Examples - -### List all appLimitDefaults - -```typescript -const { data, isLoading } = useAppLimitDefaultsQuery({ - selection: { fields: { id: true, name: true, max: true, softMax: true } }, -}); -``` - -### Create a appLimitDefault - -```typescript -const { mutate } = useCreateAppLimitDefaultMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '', max: '', softMax: '' }); -``` diff --git a/.agents/skills/hooks-public/references/app-limit-event.md b/.agents/skills/hooks-public/references/app-limit-event.md deleted file mode 100644 index e4f0d5f714..0000000000 --- a/.agents/skills/hooks-public/references/app-limit-event.md +++ /dev/null @@ -1,34 +0,0 @@ -# appLimitEvent - - - -Append-only log of limit events for historical reporting and audit - -## Usage - -```typescript -useAppLimitEventsQuery({ selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } } }) -useAppLimitEventQuery({ id: '', selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } } }) -useCreateAppLimitEventMutation({ selection: { fields: { id: true } } }) -useUpdateAppLimitEventMutation({ selection: { fields: { id: true } } }) -useDeleteAppLimitEventMutation({}) -``` - -## Examples - -### List all appLimitEvents - -```typescript -const { data, isLoading } = useAppLimitEventsQuery({ - selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }, -}); -``` - -### Create a appLimitEvent - -```typescript -const { mutate } = useCreateAppLimitEventMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '', actorId: '', entityId: '', organizationId: '', entityType: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }); -``` diff --git a/.agents/skills/hooks-public/references/app-limit-warning.md b/.agents/skills/hooks-public/references/app-limit-warning.md deleted file mode 100644 index 4524bde668..0000000000 --- a/.agents/skills/hooks-public/references/app-limit-warning.md +++ /dev/null @@ -1,34 +0,0 @@ -# appLimitWarning - - - -Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. - -## Usage - -```typescript -useAppLimitWarningsQuery({ selection: { fields: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } } }) -useAppLimitWarningQuery({ id: '', selection: { fields: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } } }) -useCreateAppLimitWarningMutation({ selection: { fields: { id: true } } }) -useUpdateAppLimitWarningMutation({ selection: { fields: { id: true } } }) -useDeleteAppLimitWarningMutation({}) -``` - -## Examples - -### List all appLimitWarnings - -```typescript -const { data, isLoading } = useAppLimitWarningsQuery({ - selection: { fields: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }, -}); -``` - -### Create a appLimitWarning - -```typescript -const { mutate } = useCreateAppLimitWarningMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '', warningType: '', thresholdValue: '', taskIdentifier: '' }); -``` diff --git a/.agents/skills/hooks-public/references/app-limit.md b/.agents/skills/hooks-public/references/app-limit.md deleted file mode 100644 index 8bf12e1969..0000000000 --- a/.agents/skills/hooks-public/references/app-limit.md +++ /dev/null @@ -1,34 +0,0 @@ -# appLimit - - - -Tracks per-actor usage counts against configurable maximum limits - -## Usage - -```typescript -useAppLimitsQuery({ selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, organizationId: true, entityType: true } } }) -useAppLimitQuery({ id: '', selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, organizationId: true, entityType: true } } }) -useCreateAppLimitMutation({ selection: { fields: { id: true } } }) -useUpdateAppLimitMutation({ selection: { fields: { id: true } } }) -useDeleteAppLimitMutation({}) -``` - -## Examples - -### List all appLimits - -```typescript -const { data, isLoading } = useAppLimitsQuery({ - selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, organizationId: true, entityType: true } }, -}); -``` - -### Create a appLimit - -```typescript -const { mutate } = useCreateAppLimitMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '', organizationId: '', entityType: '' }); -``` diff --git a/.agents/skills/hooks-public/references/app-membership-default.md b/.agents/skills/hooks-public/references/app-membership-default.md deleted file mode 100644 index df8e788eee..0000000000 --- a/.agents/skills/hooks-public/references/app-membership-default.md +++ /dev/null @@ -1,34 +0,0 @@ -# appMembershipDefault - - - -Default membership settings per entity, controlling initial approval and verification state for new members - -## Usage - -```typescript -useAppMembershipDefaultsQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } } }) -useAppMembershipDefaultQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } } }) -useCreateAppMembershipDefaultMutation({ selection: { fields: { id: true } } }) -useUpdateAppMembershipDefaultMutation({ selection: { fields: { id: true } } }) -useDeleteAppMembershipDefaultMutation({}) -``` - -## Examples - -### List all appMembershipDefaults - -```typescript -const { data, isLoading } = useAppMembershipDefaultsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }, -}); -``` - -### Create a appMembershipDefault - -```typescript -const { mutate } = useCreateAppMembershipDefaultMutation({ - selection: { fields: { id: true } }, -}); -mutate({ createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }); -``` diff --git a/.agents/skills/hooks-public/references/app-membership.md b/.agents/skills/hooks-public/references/app-membership.md deleted file mode 100644 index b8d352ef86..0000000000 --- a/.agents/skills/hooks-public/references/app-membership.md +++ /dev/null @@ -1,34 +0,0 @@ -# appMembership - - - -Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status - -## Usage - -```typescript -useAppMembershipsQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } } }) -useAppMembershipQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } } }) -useCreateAppMembershipMutation({ selection: { fields: { id: true } } }) -useUpdateAppMembershipMutation({ selection: { fields: { id: true } } }) -useDeleteAppMembershipMutation({}) -``` - -## Examples - -### List all appMemberships - -```typescript -const { data, isLoading } = useAppMembershipsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }, -}); -``` - -### Create a appMembership - -```typescript -const { mutate } = useCreateAppMembershipMutation({ - selection: { fields: { id: true } }, -}); -mutate({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }); -``` diff --git a/.agents/skills/hooks-public/references/app-owner-grant.md b/.agents/skills/hooks-public/references/app-owner-grant.md deleted file mode 100644 index 95288b7a81..0000000000 --- a/.agents/skills/hooks-public/references/app-owner-grant.md +++ /dev/null @@ -1,34 +0,0 @@ -# appOwnerGrant - - - -Records of ownership transfers and grants between members - -## Usage - -```typescript -useAppOwnerGrantsQuery({ selection: { fields: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } } }) -useAppOwnerGrantQuery({ id: '', selection: { fields: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } } }) -useCreateAppOwnerGrantMutation({ selection: { fields: { id: true } } }) -useUpdateAppOwnerGrantMutation({ selection: { fields: { id: true } } }) -useDeleteAppOwnerGrantMutation({}) -``` - -## Examples - -### List all appOwnerGrants - -```typescript -const { data, isLoading } = useAppOwnerGrantsQuery({ - selection: { fields: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a appOwnerGrant - -```typescript -const { mutate } = useCreateAppOwnerGrantMutation({ - selection: { fields: { id: true } }, -}); -mutate({ isGrant: '', actorId: '', grantorId: '' }); -``` diff --git a/.agents/skills/hooks-public/references/app-permission-default.md b/.agents/skills/hooks-public/references/app-permission-default.md deleted file mode 100644 index 7b0c52a9e5..0000000000 --- a/.agents/skills/hooks-public/references/app-permission-default.md +++ /dev/null @@ -1,34 +0,0 @@ -# appPermissionDefault - - - -Stores the default permission bitmask assigned to new members upon joining - -## Usage - -```typescript -useAppPermissionDefaultsQuery({ selection: { fields: { id: true, permissions: true } } }) -useAppPermissionDefaultQuery({ id: '', selection: { fields: { id: true, permissions: true } } }) -useCreateAppPermissionDefaultMutation({ selection: { fields: { id: true } } }) -useUpdateAppPermissionDefaultMutation({ selection: { fields: { id: true } } }) -useDeleteAppPermissionDefaultMutation({}) -``` - -## Examples - -### List all appPermissionDefaults - -```typescript -const { data, isLoading } = useAppPermissionDefaultsQuery({ - selection: { fields: { id: true, permissions: true } }, -}); -``` - -### Create a appPermissionDefault - -```typescript -const { mutate } = useCreateAppPermissionDefaultMutation({ - selection: { fields: { id: true } }, -}); -mutate({ permissions: '' }); -``` diff --git a/.agents/skills/hooks-public/references/app-permission.md b/.agents/skills/hooks-public/references/app-permission.md deleted file mode 100644 index 0b2f9097eb..0000000000 --- a/.agents/skills/hooks-public/references/app-permission.md +++ /dev/null @@ -1,34 +0,0 @@ -# appPermission - - - -Defines available permissions as named bits within a bitmask, used by the RBAC system for access control - -## Usage - -```typescript -useAppPermissionsQuery({ selection: { fields: { id: true, name: true, bitnum: true, bitstr: true, description: true } } }) -useAppPermissionQuery({ id: '', selection: { fields: { id: true, name: true, bitnum: true, bitstr: true, description: true } } }) -useCreateAppPermissionMutation({ selection: { fields: { id: true } } }) -useUpdateAppPermissionMutation({ selection: { fields: { id: true } } }) -useDeleteAppPermissionMutation({}) -``` - -## Examples - -### List all appPermissions - -```typescript -const { data, isLoading } = useAppPermissionsQuery({ - selection: { fields: { id: true, name: true, bitnum: true, bitstr: true, description: true } }, -}); -``` - -### Create a appPermission - -```typescript -const { mutate } = useCreateAppPermissionMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '', bitnum: '', bitstr: '', description: '' }); -``` diff --git a/.agents/skills/hooks-public/references/app-permissions-get-by-mask.md b/.agents/skills/hooks-public/references/app-permissions-get-by-mask.md deleted file mode 100644 index 59d093e184..0000000000 --- a/.agents/skills/hooks-public/references/app-permissions-get-by-mask.md +++ /dev/null @@ -1,19 +0,0 @@ -# appPermissionsGetByMask - - - -Reads and enables pagination through a set of `AppPermission`. - -## Usage - -```typescript -useAppPermissionsGetByMaskQuery({ mask: '', first: '', offset: '', after: '' }) -``` - -## Examples - -### Use useAppPermissionsGetByMaskQuery - -```typescript -const { data, isLoading } = useAppPermissionsGetByMaskQuery({ mask: '', first: '', offset: '', after: '' }); -``` diff --git a/.agents/skills/hooks-public/references/app-permissions-get-mask-by-names.md b/.agents/skills/hooks-public/references/app-permissions-get-mask-by-names.md deleted file mode 100644 index 625a5a6cf5..0000000000 --- a/.agents/skills/hooks-public/references/app-permissions-get-mask-by-names.md +++ /dev/null @@ -1,19 +0,0 @@ -# appPermissionsGetMaskByNames - - - -React Query query hook for appPermissionsGetMaskByNames - -## Usage - -```typescript -useAppPermissionsGetMaskByNamesQuery({ names: '' }) -``` - -## Examples - -### Use useAppPermissionsGetMaskByNamesQuery - -```typescript -const { data, isLoading } = useAppPermissionsGetMaskByNamesQuery({ names: '' }); -``` diff --git a/.agents/skills/hooks-public/references/app-permissions-get-mask.md b/.agents/skills/hooks-public/references/app-permissions-get-mask.md deleted file mode 100644 index ea013a76d0..0000000000 --- a/.agents/skills/hooks-public/references/app-permissions-get-mask.md +++ /dev/null @@ -1,19 +0,0 @@ -# appPermissionsGetMask - - - -React Query query hook for appPermissionsGetMask - -## Usage - -```typescript -useAppPermissionsGetMaskQuery({ ids: '' }) -``` - -## Examples - -### Use useAppPermissionsGetMaskQuery - -```typescript -const { data, isLoading } = useAppPermissionsGetMaskQuery({ ids: '' }); -``` diff --git a/.agents/skills/hooks-public/references/app-permissions-get-padded-mask.md b/.agents/skills/hooks-public/references/app-permissions-get-padded-mask.md deleted file mode 100644 index 5905a73147..0000000000 --- a/.agents/skills/hooks-public/references/app-permissions-get-padded-mask.md +++ /dev/null @@ -1,19 +0,0 @@ -# appPermissionsGetPaddedMask - - - -React Query query hook for appPermissionsGetPaddedMask - -## Usage - -```typescript -useAppPermissionsGetPaddedMaskQuery({ mask: '' }) -``` - -## Examples - -### Use useAppPermissionsGetPaddedMaskQuery - -```typescript -const { data, isLoading } = useAppPermissionsGetPaddedMaskQuery({ mask: '' }); -``` diff --git a/.agents/skills/hooks-public/references/app-step.md b/.agents/skills/hooks-public/references/app-step.md deleted file mode 100644 index 93fdb6fbf2..0000000000 --- a/.agents/skills/hooks-public/references/app-step.md +++ /dev/null @@ -1,34 +0,0 @@ -# appStep - - - -Log of individual user actions toward level requirements; every single step ever taken is recorded here - -## Usage - -```typescript -useAppStepsQuery({ selection: { fields: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } } }) -useAppStepQuery({ id: '', selection: { fields: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } } }) -useCreateAppStepMutation({ selection: { fields: { id: true } } }) -useUpdateAppStepMutation({ selection: { fields: { id: true } } }) -useDeleteAppStepMutation({}) -``` - -## Examples - -### List all appSteps - -```typescript -const { data, isLoading } = useAppStepsQuery({ - selection: { fields: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a appStep - -```typescript -const { mutate } = useCreateAppStepMutation({ - selection: { fields: { id: true } }, -}); -mutate({ actorId: '', name: '', count: '' }); -``` diff --git a/.agents/skills/hooks-public/references/app.md b/.agents/skills/hooks-public/references/app.md deleted file mode 100644 index 6460a0a3e9..0000000000 --- a/.agents/skills/hooks-public/references/app.md +++ /dev/null @@ -1,34 +0,0 @@ -# app - - - -Mobile and native app configuration linked to a site, including store links and identifiers - -## Usage - -```typescript -useAppsQuery({ selection: { fields: { id: true, databaseId: true, siteId: true, name: true, appImage: true, appStoreLink: true, appStoreId: true, appIdPrefix: true, playStoreLink: true } } }) -useAppQuery({ id: '', selection: { fields: { id: true, databaseId: true, siteId: true, name: true, appImage: true, appStoreLink: true, appStoreId: true, appIdPrefix: true, playStoreLink: true } } }) -useCreateAppMutation({ selection: { fields: { id: true } } }) -useUpdateAppMutation({ selection: { fields: { id: true } } }) -useDeleteAppMutation({}) -``` - -## Examples - -### List all apps - -```typescript -const { data, isLoading } = useAppsQuery({ - selection: { fields: { id: true, databaseId: true, siteId: true, name: true, appImage: true, appStoreLink: true, appStoreId: true, appIdPrefix: true, playStoreLink: true } }, -}); -``` - -### Create a app - -```typescript -const { mutate } = useCreateAppMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', siteId: '', name: '', appImage: '', appStoreLink: '', appStoreId: '', appIdPrefix: '', playStoreLink: '' }); -``` diff --git a/.agents/skills/hooks-public/references/append-field-smart-tags.md b/.agents/skills/hooks-public/references/append-field-smart-tags.md deleted file mode 100644 index cf48588dab..0000000000 --- a/.agents/skills/hooks-public/references/append-field-smart-tags.md +++ /dev/null @@ -1,20 +0,0 @@ -# appendFieldSmartTags - - - -React Query mutation hook for appendFieldSmartTags - -## Usage - -```typescript -const { mutate } = useAppendFieldSmartTagsMutation(); mutate({ input: { pFieldId: '', pTags: '' } }); -``` - -## Examples - -### Use useAppendFieldSmartTagsMutation - -```typescript -const { mutate, isLoading } = useAppendFieldSmartTagsMutation(); -mutate({ input: { pFieldId: '', pTags: '' } }); -``` diff --git a/.agents/skills/hooks-public/references/append-smart-tags.md b/.agents/skills/hooks-public/references/append-smart-tags.md deleted file mode 100644 index 61816b1a8a..0000000000 --- a/.agents/skills/hooks-public/references/append-smart-tags.md +++ /dev/null @@ -1,20 +0,0 @@ -# appendSmartTags - - - -React Query mutation hook for appendSmartTags - -## Usage - -```typescript -const { mutate } = useAppendSmartTagsMutation(); mutate({ input: { pTableId: '', pTags: '' } }); -``` - -## Examples - -### Use useAppendSmartTagsMutation - -```typescript -const { mutate, isLoading } = useAppendSmartTagsMutation(); -mutate({ input: { pTableId: '', pTags: '' } }); -``` diff --git a/.agents/skills/hooks-public/references/append-table-smart-tags.md b/.agents/skills/hooks-public/references/append-table-smart-tags.md deleted file mode 100644 index cc99331b08..0000000000 --- a/.agents/skills/hooks-public/references/append-table-smart-tags.md +++ /dev/null @@ -1,20 +0,0 @@ -# appendTableSmartTags - - - -React Query mutation hook for appendTableSmartTags - -## Usage - -```typescript -const { mutate } = useAppendTableSmartTagsMutation(); mutate({ input: { pTableId: '', pTags: '' } }); -``` - -## Examples - -### Use useAppendTableSmartTagsMutation - -```typescript -const { mutate, isLoading } = useAppendTableSmartTagsMutation(); -mutate({ input: { pTableId: '', pTags: '' } }); -``` diff --git a/.agents/skills/hooks-public/references/apply-registry-defaults.md b/.agents/skills/hooks-public/references/apply-registry-defaults.md deleted file mode 100644 index fc5423c059..0000000000 --- a/.agents/skills/hooks-public/references/apply-registry-defaults.md +++ /dev/null @@ -1,19 +0,0 @@ -# applyRegistryDefaults - - - -React Query query hook for applyRegistryDefaults - -## Usage - -```typescript -useApplyRegistryDefaultsQuery({ nodeType: '', data: '' }) -``` - -## Examples - -### Use useApplyRegistryDefaultsQuery - -```typescript -const { data, isLoading } = useApplyRegistryDefaultsQuery({ nodeType: '', data: '' }); -``` diff --git a/.agents/skills/hooks-public/references/apply-rls.md b/.agents/skills/hooks-public/references/apply-rls.md deleted file mode 100644 index aaf274edbc..0000000000 --- a/.agents/skills/hooks-public/references/apply-rls.md +++ /dev/null @@ -1,20 +0,0 @@ -# applyRls - - - -React Query mutation hook for applyRls - -## Usage - -```typescript -const { mutate } = useApplyRlsMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useApplyRlsMutation - -```typescript -const { mutate, isLoading } = useApplyRlsMutation(); -mutate({ input: '' }); -``` diff --git a/.agents/skills/hooks-public/references/ast-migration.md b/.agents/skills/hooks-public/references/ast-migration.md deleted file mode 100644 index 8e141cf36f..0000000000 --- a/.agents/skills/hooks-public/references/ast-migration.md +++ /dev/null @@ -1,34 +0,0 @@ -# astMigration - - - -React Query hooks for AstMigration data operations - -## Usage - -```typescript -useAstMigrationsQuery({ selection: { fields: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } } }) -useAstMigrationQuery({ id: '', selection: { fields: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } } }) -useCreateAstMigrationMutation({ selection: { fields: { id: true } } }) -useUpdateAstMigrationMutation({ selection: { fields: { id: true } } }) -useDeleteAstMigrationMutation({}) -``` - -## Examples - -### List all astMigrations - -```typescript -const { data, isLoading } = useAstMigrationsQuery({ - selection: { fields: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }, -}); -``` - -### Create a astMigration - -```typescript -const { mutate } = useCreateAstMigrationMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', name: '', requires: '', payload: '', deploys: '', deploy: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }); -``` diff --git a/.agents/skills/hooks-public/references/audit-log-auth.md b/.agents/skills/hooks-public/references/audit-log-auth.md deleted file mode 100644 index 4764e57104..0000000000 --- a/.agents/skills/hooks-public/references/audit-log-auth.md +++ /dev/null @@ -1,34 +0,0 @@ -# auditLogAuth - - - -Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) - -## Usage - -```typescript -useAuditLogAuthsQuery({ selection: { fields: { createdAt: true, id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true } } }) -useAuditLogAuthQuery({ id: '', selection: { fields: { createdAt: true, id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true } } }) -useCreateAuditLogAuthMutation({ selection: { fields: { id: true } } }) -useUpdateAuditLogAuthMutation({ selection: { fields: { id: true } } }) -useDeleteAuditLogAuthMutation({}) -``` - -## Examples - -### List all auditLogAuths - -```typescript -const { data, isLoading } = useAuditLogAuthsQuery({ - selection: { fields: { createdAt: true, id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true } }, -}); -``` - -### Create a auditLogAuth - -```typescript -const { mutate } = useCreateAuditLogAuthMutation({ - selection: { fields: { id: true } }, -}); -mutate({ event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }); -``` diff --git a/.agents/skills/hooks-public/references/audit-log.md b/.agents/skills/hooks-public/references/audit-log.md deleted file mode 100644 index f1c30b1846..0000000000 --- a/.agents/skills/hooks-public/references/audit-log.md +++ /dev/null @@ -1,34 +0,0 @@ -# auditLog - - - -Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) - -## Usage - -```typescript -useAuditLogsQuery({ selection: { fields: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true } } }) -useAuditLogQuery({ id: '', selection: { fields: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true } } }) -useCreateAuditLogMutation({ selection: { fields: { id: true } } }) -useUpdateAuditLogMutation({ selection: { fields: { id: true } } }) -useDeleteAuditLogMutation({}) -``` - -## Examples - -### List all auditLogs - -```typescript -const { data, isLoading } = useAuditLogsQuery({ - selection: { fields: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true } }, -}); -``` - -### Create a auditLog - -```typescript -const { mutate } = useCreateAuditLogMutation({ - selection: { fields: { id: true } }, -}); -mutate({ event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }); -``` diff --git a/.agents/skills/hooks-public/references/billing-module.md b/.agents/skills/hooks-public/references/billing-module.md deleted file mode 100644 index 307e504dac..0000000000 --- a/.agents/skills/hooks-public/references/billing-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# billingModule - - - -React Query hooks for BillingModule data operations - -## Usage - -```typescript -useBillingModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, recordUsageFunction: true, prefix: true } } }) -useBillingModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, recordUsageFunction: true, prefix: true } } }) -useCreateBillingModuleMutation({ selection: { fields: { id: true } } }) -useUpdateBillingModuleMutation({ selection: { fields: { id: true } } }) -useDeleteBillingModuleMutation({}) -``` - -## Examples - -### List all billingModules - -```typescript -const { data, isLoading } = useBillingModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, recordUsageFunction: true, prefix: true } }, -}); -``` - -### Create a billingModule - -```typescript -const { mutate } = useCreateBillingModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', meterSourcesTableId: '', meterSourcesTableName: '', recordUsageFunction: '', prefix: '' }); -``` diff --git a/.agents/skills/hooks-public/references/billing-provider-module.md b/.agents/skills/hooks-public/references/billing-provider-module.md deleted file mode 100644 index b83384cb7b..0000000000 --- a/.agents/skills/hooks-public/references/billing-provider-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# billingProviderModule - - - -React Query hooks for BillingProviderModule data operations - -## Usage - -```typescript -useBillingProviderModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, provider: true, productsTableId: true, pricesTableId: true, subscriptionsTableId: true, billingCustomersTableId: true, billingCustomersTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, processBillingEventFunction: true, prefix: true } } }) -useBillingProviderModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, provider: true, productsTableId: true, pricesTableId: true, subscriptionsTableId: true, billingCustomersTableId: true, billingCustomersTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, processBillingEventFunction: true, prefix: true } } }) -useCreateBillingProviderModuleMutation({ selection: { fields: { id: true } } }) -useUpdateBillingProviderModuleMutation({ selection: { fields: { id: true } } }) -useDeleteBillingProviderModuleMutation({}) -``` - -## Examples - -### List all billingProviderModules - -```typescript -const { data, isLoading } = useBillingProviderModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, provider: true, productsTableId: true, pricesTableId: true, subscriptionsTableId: true, billingCustomersTableId: true, billingCustomersTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, processBillingEventFunction: true, prefix: true } }, -}); -``` - -### Create a billingProviderModule - -```typescript -const { mutate } = useCreateBillingProviderModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', provider: '', productsTableId: '', pricesTableId: '', subscriptionsTableId: '', billingCustomersTableId: '', billingCustomersTableName: '', billingProductsTableId: '', billingProductsTableName: '', billingPricesTableId: '', billingPricesTableName: '', billingSubscriptionsTableId: '', billingSubscriptionsTableName: '', billingWebhookEventsTableId: '', billingWebhookEventsTableName: '', processBillingEventFunction: '', prefix: '' }); -``` diff --git a/.agents/skills/hooks-public/references/blueprint-construction.md b/.agents/skills/hooks-public/references/blueprint-construction.md deleted file mode 100644 index 6eed6f40d5..0000000000 --- a/.agents/skills/hooks-public/references/blueprint-construction.md +++ /dev/null @@ -1,34 +0,0 @@ -# blueprintConstruction - - - -Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts. - -## Usage - -```typescript -useBlueprintConstructionsQuery({ selection: { fields: { id: true, blueprintId: true, databaseId: true, schemaId: true, status: true, errorDetails: true, tableMap: true, constructedDefinition: true, constructedAt: true, createdAt: true, updatedAt: true } } }) -useBlueprintConstructionQuery({ id: '', selection: { fields: { id: true, blueprintId: true, databaseId: true, schemaId: true, status: true, errorDetails: true, tableMap: true, constructedDefinition: true, constructedAt: true, createdAt: true, updatedAt: true } } }) -useCreateBlueprintConstructionMutation({ selection: { fields: { id: true } } }) -useUpdateBlueprintConstructionMutation({ selection: { fields: { id: true } } }) -useDeleteBlueprintConstructionMutation({}) -``` - -## Examples - -### List all blueprintConstructions - -```typescript -const { data, isLoading } = useBlueprintConstructionsQuery({ - selection: { fields: { id: true, blueprintId: true, databaseId: true, schemaId: true, status: true, errorDetails: true, tableMap: true, constructedDefinition: true, constructedAt: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a blueprintConstruction - -```typescript -const { mutate } = useCreateBlueprintConstructionMutation({ - selection: { fields: { id: true } }, -}); -mutate({ blueprintId: '', databaseId: '', schemaId: '', status: '', errorDetails: '', tableMap: '', constructedDefinition: '', constructedAt: '' }); -``` diff --git a/.agents/skills/hooks-public/references/blueprint-template.md b/.agents/skills/hooks-public/references/blueprint-template.md deleted file mode 100644 index c268969029..0000000000 --- a/.agents/skills/hooks-public/references/blueprint-template.md +++ /dev/null @@ -1,34 +0,0 @@ -# blueprintTemplate - - - -A shareable, versioned schema recipe for the blueprint marketplace. Templates define arrays of secure_table_provision + relation_provision inputs that together describe a complete domain schema (e.g. e-commerce, telemedicine, habit tracker). Templates are never executed directly — they are copied into a blueprint first via copy_template_to_blueprint(). Can be private (owner-only) or public (marketplace-visible). - -## Usage - -```typescript -useBlueprintTemplatesQuery({ selection: { fields: { id: true, name: true, version: true, displayName: true, description: true, ownerId: true, visibility: true, categories: true, tags: true, definition: true, definitionSchemaVersion: true, source: true, complexity: true, copyCount: true, forkCount: true, forkedFromId: true, definitionHash: true, tableHashes: true, createdAt: true, updatedAt: true } } }) -useBlueprintTemplateQuery({ id: '', selection: { fields: { id: true, name: true, version: true, displayName: true, description: true, ownerId: true, visibility: true, categories: true, tags: true, definition: true, definitionSchemaVersion: true, source: true, complexity: true, copyCount: true, forkCount: true, forkedFromId: true, definitionHash: true, tableHashes: true, createdAt: true, updatedAt: true } } }) -useCreateBlueprintTemplateMutation({ selection: { fields: { id: true } } }) -useUpdateBlueprintTemplateMutation({ selection: { fields: { id: true } } }) -useDeleteBlueprintTemplateMutation({}) -``` - -## Examples - -### List all blueprintTemplates - -```typescript -const { data, isLoading } = useBlueprintTemplatesQuery({ - selection: { fields: { id: true, name: true, version: true, displayName: true, description: true, ownerId: true, visibility: true, categories: true, tags: true, definition: true, definitionSchemaVersion: true, source: true, complexity: true, copyCount: true, forkCount: true, forkedFromId: true, definitionHash: true, tableHashes: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a blueprintTemplate - -```typescript -const { mutate } = useCreateBlueprintTemplateMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '', version: '', displayName: '', description: '', ownerId: '', visibility: '', categories: '', tags: '', definition: '', definitionSchemaVersion: '', source: '', complexity: '', copyCount: '', forkCount: '', forkedFromId: '', definitionHash: '', tableHashes: '' }); -``` diff --git a/.agents/skills/hooks-public/references/blueprint.md b/.agents/skills/hooks-public/references/blueprint.md deleted file mode 100644 index 4d551205c7..0000000000 --- a/.agents/skills/hooks-public/references/blueprint.md +++ /dev/null @@ -1,34 +0,0 @@ -# blueprint - - - -An owned, editable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition at any time. Execute it with construct_blueprint() which creates a separate blueprint_construction record to track the build. - -## Usage - -```typescript -useBlueprintsQuery({ selection: { fields: { id: true, ownerId: true, databaseId: true, name: true, displayName: true, description: true, definition: true, templateId: true, definitionHash: true, tableHashes: true, createdAt: true, updatedAt: true } } }) -useBlueprintQuery({ id: '', selection: { fields: { id: true, ownerId: true, databaseId: true, name: true, displayName: true, description: true, definition: true, templateId: true, definitionHash: true, tableHashes: true, createdAt: true, updatedAt: true } } }) -useCreateBlueprintMutation({ selection: { fields: { id: true } } }) -useUpdateBlueprintMutation({ selection: { fields: { id: true } } }) -useDeleteBlueprintMutation({}) -``` - -## Examples - -### List all blueprints - -```typescript -const { data, isLoading } = useBlueprintsQuery({ - selection: { fields: { id: true, ownerId: true, databaseId: true, name: true, displayName: true, description: true, definition: true, templateId: true, definitionHash: true, tableHashes: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a blueprint - -```typescript -const { mutate } = useCreateBlueprintMutation({ - selection: { fields: { id: true } }, -}); -mutate({ ownerId: '', databaseId: '', name: '', displayName: '', description: '', definition: '', templateId: '', definitionHash: '', tableHashes: '' }); -``` diff --git a/.agents/skills/hooks-public/references/bootstrap-user.md b/.agents/skills/hooks-public/references/bootstrap-user.md deleted file mode 100644 index c7401dcb6b..0000000000 --- a/.agents/skills/hooks-public/references/bootstrap-user.md +++ /dev/null @@ -1,20 +0,0 @@ -# bootstrapUser - - - -React Query mutation hook for bootstrapUser - -## Usage - -```typescript -const { mutate } = useBootstrapUserMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useBootstrapUserMutation - -```typescript -const { mutate, isLoading } = useBootstrapUserMutation(); -mutate({ input: '' }); -``` diff --git a/.agents/skills/hooks-public/references/cancel-database-transfer.md b/.agents/skills/hooks-public/references/cancel-database-transfer.md deleted file mode 100644 index 59953ca800..0000000000 --- a/.agents/skills/hooks-public/references/cancel-database-transfer.md +++ /dev/null @@ -1,20 +0,0 @@ -# cancelDatabaseTransfer - - - -React Query mutation hook for cancelDatabaseTransfer - -## Usage - -```typescript -const { mutate } = useCancelDatabaseTransferMutation(); mutate({ input: { transferId: '' } }); -``` - -## Examples - -### Use useCancelDatabaseTransferMutation - -```typescript -const { mutate, isLoading } = useCancelDatabaseTransferMutation(); -mutate({ input: { transferId: '' } }); -``` diff --git a/.agents/skills/hooks-public/references/check-constraint.md b/.agents/skills/hooks-public/references/check-constraint.md deleted file mode 100644 index acd3e522da..0000000000 --- a/.agents/skills/hooks-public/references/check-constraint.md +++ /dev/null @@ -1,34 +0,0 @@ -# checkConstraint - - - -React Query hooks for CheckConstraint data operations - -## Usage - -```typescript -useCheckConstraintsQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, expr: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) -useCheckConstraintQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, expr: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) -useCreateCheckConstraintMutation({ selection: { fields: { id: true } } }) -useUpdateCheckConstraintMutation({ selection: { fields: { id: true } } }) -useDeleteCheckConstraintMutation({}) -``` - -## Examples - -### List all checkConstraints - -```typescript -const { data, isLoading } = useCheckConstraintsQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, expr: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a checkConstraint - -```typescript -const { mutate } = useCreateCheckConstraintMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', tableId: '', name: '', type: '', fieldIds: '', expr: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); -``` diff --git a/.agents/skills/hooks-public/references/check-password.md b/.agents/skills/hooks-public/references/check-password.md deleted file mode 100644 index 8649e81c8a..0000000000 --- a/.agents/skills/hooks-public/references/check-password.md +++ /dev/null @@ -1,20 +0,0 @@ -# checkPassword - - - -React Query mutation hook for checkPassword - -## Usage - -```typescript -const { mutate } = useCheckPasswordMutation(); mutate({ input: { password: '' } }); -``` - -## Examples - -### Use useCheckPasswordMutation - -```typescript -const { mutate, isLoading } = useCheckPasswordMutation(); -mutate({ input: { password: '' } }); -``` diff --git a/.agents/skills/hooks-public/references/claimed-invite.md b/.agents/skills/hooks-public/references/claimed-invite.md deleted file mode 100644 index 3fb4dc3733..0000000000 --- a/.agents/skills/hooks-public/references/claimed-invite.md +++ /dev/null @@ -1,34 +0,0 @@ -# claimedInvite - - - -Records of successfully claimed invitations, linking senders to receivers - -## Usage - -```typescript -useClaimedInvitesQuery({ selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } } }) -useClaimedInviteQuery({ id: '', selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } } }) -useCreateClaimedInviteMutation({ selection: { fields: { id: true } } }) -useUpdateClaimedInviteMutation({ selection: { fields: { id: true } } }) -useDeleteClaimedInviteMutation({}) -``` - -## Examples - -### List all claimedInvites - -```typescript -const { data, isLoading } = useClaimedInvitesQuery({ - selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a claimedInvite - -```typescript -const { mutate } = useCreateClaimedInviteMutation({ - selection: { fields: { id: true } }, -}); -mutate({ data: '', senderId: '', receiverId: '' }); -``` diff --git a/.agents/skills/hooks-public/references/commit.md b/.agents/skills/hooks-public/references/commit.md deleted file mode 100644 index a6c4430011..0000000000 --- a/.agents/skills/hooks-public/references/commit.md +++ /dev/null @@ -1,34 +0,0 @@ -# commit - - - -A commit records changes to the repository. - -## Usage - -```typescript -useCommitsQuery({ selection: { fields: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } } }) -useCommitQuery({ id: '', selection: { fields: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } } }) -useCreateCommitMutation({ selection: { fields: { id: true } } }) -useUpdateCommitMutation({ selection: { fields: { id: true } } }) -useDeleteCommitMutation({}) -``` - -## Examples - -### List all commits - -```typescript -const { data, isLoading } = useCommitsQuery({ - selection: { fields: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }, -}); -``` - -### Create a commit - -```typescript -const { mutate } = useCreateCommitMutation({ - selection: { fields: { id: true } }, -}); -mutate({ message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }); -``` diff --git a/.agents/skills/hooks-public/references/compute-log-module.md b/.agents/skills/hooks-public/references/compute-log-module.md deleted file mode 100644 index e57ab1b035..0000000000 --- a/.agents/skills/hooks-public/references/compute-log-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# computeLogModule - - - -React Query hooks for ComputeLogModule data operations - -## Usage - -```typescript -useComputeLogModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } } }) -useComputeLogModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } } }) -useCreateComputeLogModuleMutation({ selection: { fields: { id: true } } }) -useUpdateComputeLogModuleMutation({ selection: { fields: { id: true } } }) -useDeleteComputeLogModuleMutation({}) -``` - -## Examples - -### List all computeLogModules - -```typescript -const { data, isLoading } = useComputeLogModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } }, -}); -``` - -### Create a computeLogModule - -```typescript -const { mutate } = useCreateComputeLogModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', computeLogTableId: '', computeLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '' }); -``` diff --git a/.agents/skills/hooks-public/references/config-secrets-org-module.md b/.agents/skills/hooks-public/references/config-secrets-org-module.md deleted file mode 100644 index 2ef82ecff1..0000000000 --- a/.agents/skills/hooks-public/references/config-secrets-org-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# configSecretsOrgModule - - - -Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. - -## Usage - -```typescript -useConfigSecretsOrgModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } } }) -useConfigSecretsOrgModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } } }) -useCreateConfigSecretsOrgModuleMutation({ selection: { fields: { id: true } } }) -useUpdateConfigSecretsOrgModuleMutation({ selection: { fields: { id: true } } }) -useDeleteConfigSecretsOrgModuleMutation({}) -``` - -## Examples - -### List all configSecretsOrgModules - -```typescript -const { data, isLoading } = useConfigSecretsOrgModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }, -}); -``` - -### Create a configSecretsOrgModule - -```typescript -const { mutate } = useCreateConfigSecretsOrgModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', tableId: '', tableName: '' }); -``` diff --git a/.agents/skills/hooks-public/references/config-secrets-user-module.md b/.agents/skills/hooks-public/references/config-secrets-user-module.md deleted file mode 100644 index 62ce1400b5..0000000000 --- a/.agents/skills/hooks-public/references/config-secrets-user-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# configSecretsUserModule - - - -React Query hooks for ConfigSecretsUserModule data operations - -## Usage - -```typescript -useConfigSecretsUserModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, configDefinitionsTableId: true } } }) -useConfigSecretsUserModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, configDefinitionsTableId: true } } }) -useCreateConfigSecretsUserModuleMutation({ selection: { fields: { id: true } } }) -useUpdateConfigSecretsUserModuleMutation({ selection: { fields: { id: true } } }) -useDeleteConfigSecretsUserModuleMutation({}) -``` - -## Examples - -### List all configSecretsUserModules - -```typescript -const { data, isLoading } = useConfigSecretsUserModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, configDefinitionsTableId: true } }, -}); -``` - -### Create a configSecretsUserModule - -```typescript -const { mutate } = useCreateConfigSecretsUserModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', tableId: '', tableName: '', configDefinitionsTableId: '' }); -``` diff --git a/.agents/skills/hooks-public/references/confirm-delete-account.md b/.agents/skills/hooks-public/references/confirm-delete-account.md deleted file mode 100644 index ac8f5cb59d..0000000000 --- a/.agents/skills/hooks-public/references/confirm-delete-account.md +++ /dev/null @@ -1,20 +0,0 @@ -# confirmDeleteAccount - - - -React Query mutation hook for confirmDeleteAccount - -## Usage - -```typescript -const { mutate } = useConfirmDeleteAccountMutation(); mutate({ input: { userId: '', token: '' } }); -``` - -## Examples - -### Use useConfirmDeleteAccountMutation - -```typescript -const { mutate, isLoading } = useConfirmDeleteAccountMutation(); -mutate({ input: { userId: '', token: '' } }); -``` diff --git a/.agents/skills/hooks-public/references/confirm-upload.md b/.agents/skills/hooks-public/references/confirm-upload.md deleted file mode 100644 index 774bdf12e2..0000000000 --- a/.agents/skills/hooks-public/references/confirm-upload.md +++ /dev/null @@ -1,22 +0,0 @@ -# confirmUpload - - - -Confirm that a file has been uploaded to S3. -Verifies the object exists in S3, checks content-type, -and transitions the file status from 'pending' to 'ready'. - -## Usage - -```typescript -const { mutate } = useConfirmUploadMutation(); mutate({ input: { fileId: '' } }); -``` - -## Examples - -### Use useConfirmUploadMutation - -```typescript -const { mutate, isLoading } = useConfirmUploadMutation(); -mutate({ input: { fileId: '' } }); -``` diff --git a/.agents/skills/hooks-public/references/connected-account.md b/.agents/skills/hooks-public/references/connected-account.md deleted file mode 100644 index e0a68c2247..0000000000 --- a/.agents/skills/hooks-public/references/connected-account.md +++ /dev/null @@ -1,34 +0,0 @@ -# connectedAccount - - - -OAuth and social login connections linking external service accounts to users - -## Usage - -```typescript -useConnectedAccountsQuery({ selection: { fields: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } } }) -useConnectedAccountQuery({ id: '', selection: { fields: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } } }) -useCreateConnectedAccountMutation({ selection: { fields: { id: true } } }) -useUpdateConnectedAccountMutation({ selection: { fields: { id: true } } }) -useDeleteConnectedAccountMutation({}) -``` - -## Examples - -### List all connectedAccounts - -```typescript -const { data, isLoading } = useConnectedAccountsQuery({ - selection: { fields: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a connectedAccount - -```typescript -const { mutate } = useCreateConnectedAccountMutation({ - selection: { fields: { id: true } }, -}); -mutate({ ownerId: '', service: '', identifier: '', details: '', isVerified: '' }); -``` diff --git a/.agents/skills/hooks-public/references/connected-accounts-module.md b/.agents/skills/hooks-public/references/connected-accounts-module.md deleted file mode 100644 index fb2920ac83..0000000000 --- a/.agents/skills/hooks-public/references/connected-accounts-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# connectedAccountsModule - - - -React Query hooks for ConnectedAccountsModule data operations - -## Usage - -```typescript -useConnectedAccountsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } } }) -useConnectedAccountsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } } }) -useCreateConnectedAccountsModuleMutation({ selection: { fields: { id: true } } }) -useUpdateConnectedAccountsModuleMutation({ selection: { fields: { id: true } } }) -useDeleteConnectedAccountsModuleMutation({}) -``` - -## Examples - -### List all connectedAccountsModules - -```typescript -const { data, isLoading } = useConnectedAccountsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }, -}); -``` - -### Create a connectedAccountsModule - -```typescript -const { mutate } = useCreateConnectedAccountsModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }); -``` diff --git a/.agents/skills/hooks-public/references/construct-blueprint.md b/.agents/skills/hooks-public/references/construct-blueprint.md deleted file mode 100644 index 8e2057c745..0000000000 --- a/.agents/skills/hooks-public/references/construct-blueprint.md +++ /dev/null @@ -1,20 +0,0 @@ -# constructBlueprint - - - -Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. - -## Usage - -```typescript -const { mutate } = useConstructBlueprintMutation(); mutate({ input: { blueprintId: '', schemaId: '' } }); -``` - -## Examples - -### Use useConstructBlueprintMutation - -```typescript -const { mutate, isLoading } = useConstructBlueprintMutation(); -mutate({ input: { blueprintId: '', schemaId: '' } }); -``` diff --git a/.agents/skills/hooks-public/references/copy-template-to-blueprint.md b/.agents/skills/hooks-public/references/copy-template-to-blueprint.md deleted file mode 100644 index 3a69acb0b8..0000000000 --- a/.agents/skills/hooks-public/references/copy-template-to-blueprint.md +++ /dev/null @@ -1,20 +0,0 @@ -# copyTemplateToBlueprint - - - -Creates a new blueprint by copying a template definition. Checks visibility: owners can always copy their own templates, others require public visibility. Increments the template copy_count. Returns the new blueprint ID. - -## Usage - -```typescript -const { mutate } = useCopyTemplateToBlueprintMutation(); mutate({ input: { templateId: '', databaseId: '', ownerId: '', nameOverride: '', displayNameOverride: '' } }); -``` - -## Examples - -### Use useCopyTemplateToBlueprintMutation - -```typescript -const { mutate, isLoading } = useCopyTemplateToBlueprintMutation(); -mutate({ input: { templateId: '', databaseId: '', ownerId: '', nameOverride: '', displayNameOverride: '' } }); -``` diff --git a/.agents/skills/hooks-public/references/cors-setting.md b/.agents/skills/hooks-public/references/cors-setting.md deleted file mode 100644 index fb9c468fdc..0000000000 --- a/.agents/skills/hooks-public/references/cors-setting.md +++ /dev/null @@ -1,34 +0,0 @@ -# corsSetting - - - -Per-database and per-API CORS origin configuration; typed replacement for api_modules cors JSONB entries - -## Usage - -```typescript -useCorsSettingsQuery({ selection: { fields: { id: true, databaseId: true, apiId: true, allowedOrigins: true } } }) -useCorsSettingQuery({ id: '', selection: { fields: { id: true, databaseId: true, apiId: true, allowedOrigins: true } } }) -useCreateCorsSettingMutation({ selection: { fields: { id: true } } }) -useUpdateCorsSettingMutation({ selection: { fields: { id: true } } }) -useDeleteCorsSettingMutation({}) -``` - -## Examples - -### List all corsSettings - -```typescript -const { data, isLoading } = useCorsSettingsQuery({ - selection: { fields: { id: true, databaseId: true, apiId: true, allowedOrigins: true } }, -}); -``` - -### Create a corsSetting - -```typescript -const { mutate } = useCreateCorsSettingMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', apiId: '', allowedOrigins: '' }); -``` diff --git a/.agents/skills/hooks-public/references/create-api-key.md b/.agents/skills/hooks-public/references/create-api-key.md deleted file mode 100644 index bf188b901d..0000000000 --- a/.agents/skills/hooks-public/references/create-api-key.md +++ /dev/null @@ -1,20 +0,0 @@ -# createApiKey - - - -React Query mutation hook for createApiKey - -## Usage - -```typescript -const { mutate } = useCreateApiKeyMutation(); mutate({ input: { keyName: '', accessLevel: '', mfaLevel: '', expiresIn: '' } }); -``` - -## Examples - -### Use useCreateApiKeyMutation - -```typescript -const { mutate, isLoading } = useCreateApiKeyMutation(); -mutate({ input: { keyName: '', accessLevel: '', mfaLevel: '', expiresIn: '' } }); -``` diff --git a/.agents/skills/hooks-public/references/create-user-database.md b/.agents/skills/hooks-public/references/create-user-database.md deleted file mode 100644 index fadd746a4f..0000000000 --- a/.agents/skills/hooks-public/references/create-user-database.md +++ /dev/null @@ -1,36 +0,0 @@ -# createUserDatabase - - - -Creates a new user database with all required modules, permissions, and RLS policies. - -Parameters: - - database_name: Name for the new database (required) - - owner_id: UUID of the owner user (required) - - include_invites: Include invite system (default: true) - - include_groups: Include group-level memberships (default: false) - - include_levels: Include events/analytics (default: false) - - bitlen: Bit length for permission masks (default: 64) - - tokens_expiration: Token expiration interval (default: 30 days) - -Returns the database_id UUID of the newly created database. - -Example usage: - SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid); - SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid, true, true); -- with invites and groups - - -## Usage - -```typescript -const { mutate } = useCreateUserDatabaseMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useCreateUserDatabaseMutation - -```typescript -const { mutate, isLoading } = useCreateUserDatabaseMutation(); -mutate({ input: '' }); -``` diff --git a/.agents/skills/hooks-public/references/crypto-address.md b/.agents/skills/hooks-public/references/crypto-address.md deleted file mode 100644 index 6ce9257834..0000000000 --- a/.agents/skills/hooks-public/references/crypto-address.md +++ /dev/null @@ -1,34 +0,0 @@ -# cryptoAddress - - - -Cryptocurrency wallet addresses owned by users, with network-specific validation and verification - -## Usage - -```typescript -useCryptoAddressesQuery({ selection: { fields: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, name: true, createdAt: true, updatedAt: true } } }) -useCryptoAddressQuery({ id: '', selection: { fields: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, name: true, createdAt: true, updatedAt: true } } }) -useCreateCryptoAddressMutation({ selection: { fields: { id: true } } }) -useUpdateCryptoAddressMutation({ selection: { fields: { id: true } } }) -useDeleteCryptoAddressMutation({}) -``` - -## Examples - -### List all cryptoAddresses - -```typescript -const { data, isLoading } = useCryptoAddressesQuery({ - selection: { fields: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, name: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a cryptoAddress - -```typescript -const { mutate } = useCreateCryptoAddressMutation({ - selection: { fields: { id: true } }, -}); -mutate({ ownerId: '', address: '', isVerified: '', isPrimary: '', name: '' }); -``` diff --git a/.agents/skills/hooks-public/references/crypto-addresses-module.md b/.agents/skills/hooks-public/references/crypto-addresses-module.md deleted file mode 100644 index 8c9356553f..0000000000 --- a/.agents/skills/hooks-public/references/crypto-addresses-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# cryptoAddressesModule - - - -React Query hooks for CryptoAddressesModule data operations - -## Usage - -```typescript -useCryptoAddressesModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, cryptoNetwork: true } } }) -useCryptoAddressesModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, cryptoNetwork: true } } }) -useCreateCryptoAddressesModuleMutation({ selection: { fields: { id: true } } }) -useUpdateCryptoAddressesModuleMutation({ selection: { fields: { id: true } } }) -useDeleteCryptoAddressesModuleMutation({}) -``` - -## Examples - -### List all cryptoAddressesModules - -```typescript -const { data, isLoading } = useCryptoAddressesModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, cryptoNetwork: true } }, -}); -``` - -### Create a cryptoAddressesModule - -```typescript -const { mutate } = useCreateCryptoAddressesModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', cryptoNetwork: '' }); -``` diff --git a/.agents/skills/hooks-public/references/crypto-auth-module.md b/.agents/skills/hooks-public/references/crypto-auth-module.md deleted file mode 100644 index 71a816b992..0000000000 --- a/.agents/skills/hooks-public/references/crypto-auth-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# cryptoAuthModule - - - -React Query hooks for CryptoAuthModule data operations - -## Usage - -```typescript -useCryptoAuthModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, usersTableId: true, secretsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, addressesTableId: true, userField: true, cryptoNetwork: true, signInRequestChallenge: true, signInRecordFailure: true, signUpWithKey: true, signInWithChallenge: true } } }) -useCryptoAuthModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, usersTableId: true, secretsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, addressesTableId: true, userField: true, cryptoNetwork: true, signInRequestChallenge: true, signInRecordFailure: true, signUpWithKey: true, signInWithChallenge: true } } }) -useCreateCryptoAuthModuleMutation({ selection: { fields: { id: true } } }) -useUpdateCryptoAuthModuleMutation({ selection: { fields: { id: true } } }) -useDeleteCryptoAuthModuleMutation({}) -``` - -## Examples - -### List all cryptoAuthModules - -```typescript -const { data, isLoading } = useCryptoAuthModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, usersTableId: true, secretsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, addressesTableId: true, userField: true, cryptoNetwork: true, signInRequestChallenge: true, signInRecordFailure: true, signUpWithKey: true, signInWithChallenge: true } }, -}); -``` - -### Create a cryptoAuthModule - -```typescript -const { mutate } = useCreateCryptoAuthModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', usersTableId: '', secretsTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', addressesTableId: '', userField: '', cryptoNetwork: '', signInRequestChallenge: '', signInRecordFailure: '', signUpWithKey: '', signInWithChallenge: '' }); -``` diff --git a/.agents/skills/hooks-public/references/current-ip-address.md b/.agents/skills/hooks-public/references/current-ip-address.md deleted file mode 100644 index ddb702e167..0000000000 --- a/.agents/skills/hooks-public/references/current-ip-address.md +++ /dev/null @@ -1,19 +0,0 @@ -# currentIpAddress - - - -React Query query hook for currentIpAddress - -## Usage - -```typescript -useCurrentIpAddressQuery() -``` - -## Examples - -### Use useCurrentIpAddressQuery - -```typescript -const { data, isLoading } = useCurrentIpAddressQuery(); -``` diff --git a/.agents/skills/hooks-public/references/current-user-agent.md b/.agents/skills/hooks-public/references/current-user-agent.md deleted file mode 100644 index 3bc483ff7c..0000000000 --- a/.agents/skills/hooks-public/references/current-user-agent.md +++ /dev/null @@ -1,19 +0,0 @@ -# currentUserAgent - - - -React Query query hook for currentUserAgent - -## Usage - -```typescript -useCurrentUserAgentQuery() -``` - -## Examples - -### Use useCurrentUserAgentQuery - -```typescript -const { data, isLoading } = useCurrentUserAgentQuery(); -``` diff --git a/.agents/skills/hooks-public/references/current-user-id.md b/.agents/skills/hooks-public/references/current-user-id.md deleted file mode 100644 index 0dcf21a7f9..0000000000 --- a/.agents/skills/hooks-public/references/current-user-id.md +++ /dev/null @@ -1,19 +0,0 @@ -# currentUserId - - - -React Query query hook for currentUserId - -## Usage - -```typescript -useCurrentUserIdQuery() -``` - -## Examples - -### Use useCurrentUserIdQuery - -```typescript -const { data, isLoading } = useCurrentUserIdQuery(); -``` diff --git a/.agents/skills/hooks-public/references/current-user.md b/.agents/skills/hooks-public/references/current-user.md deleted file mode 100644 index 3411f59516..0000000000 --- a/.agents/skills/hooks-public/references/current-user.md +++ /dev/null @@ -1,19 +0,0 @@ -# currentUser - - - -React Query query hook for currentUser - -## Usage - -```typescript -useCurrentUserQuery() -``` - -## Examples - -### Use useCurrentUserQuery - -```typescript -const { data, isLoading } = useCurrentUserQuery(); -``` diff --git a/.agents/skills/hooks-public/references/database-provision-module.md b/.agents/skills/hooks-public/references/database-provision-module.md deleted file mode 100644 index 940f791445..0000000000 --- a/.agents/skills/hooks-public/references/database-provision-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# databaseProvisionModule - - - -Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. - -## Usage - -```typescript -useDatabaseProvisionModulesQuery({ selection: { fields: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true } } }) -useDatabaseProvisionModuleQuery({ id: '', selection: { fields: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true } } }) -useCreateDatabaseProvisionModuleMutation({ selection: { fields: { id: true } } }) -useUpdateDatabaseProvisionModuleMutation({ selection: { fields: { id: true } } }) -useDeleteDatabaseProvisionModuleMutation({}) -``` - -## Examples - -### List all databaseProvisionModules - -```typescript -const { data, isLoading } = useDatabaseProvisionModulesQuery({ - selection: { fields: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true } }, -}); -``` - -### Create a databaseProvisionModule - -```typescript -const { mutate } = useCreateDatabaseProvisionModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseName: '', ownerId: '', subdomain: '', domain: '', modules: '', options: '', bootstrapUser: '', status: '', errorMessage: '', databaseId: '', completedAt: '' }); -``` diff --git a/.agents/skills/hooks-public/references/database-setting.md b/.agents/skills/hooks-public/references/database-setting.md deleted file mode 100644 index 6d9c9317d1..0000000000 --- a/.agents/skills/hooks-public/references/database-setting.md +++ /dev/null @@ -1,34 +0,0 @@ -# databaseSetting - - - -Database-wide feature flags and settings; controls which platform features are available to all APIs in this database - -## Usage - -```typescript -useDatabaseSettingsQuery({ selection: { fields: { id: true, databaseId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, enableBulk: true, options: true } } }) -useDatabaseSettingQuery({ id: '', selection: { fields: { id: true, databaseId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, enableBulk: true, options: true } } }) -useCreateDatabaseSettingMutation({ selection: { fields: { id: true } } }) -useUpdateDatabaseSettingMutation({ selection: { fields: { id: true } } }) -useDeleteDatabaseSettingMutation({}) -``` - -## Examples - -### List all databaseSettings - -```typescript -const { data, isLoading } = useDatabaseSettingsQuery({ - selection: { fields: { id: true, databaseId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, enableBulk: true, options: true } }, -}); -``` - -### Create a databaseSetting - -```typescript -const { mutate } = useCreateDatabaseSettingMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', enableAggregates: '', enablePostgis: '', enableSearch: '', enableDirectUploads: '', enablePresignedUploads: '', enableManyToMany: '', enableConnectionFilter: '', enableLtree: '', enableLlm: '', enableRealtime: '', enableBulk: '', options: '' }); -``` diff --git a/.agents/skills/hooks-public/references/database-transfer.md b/.agents/skills/hooks-public/references/database-transfer.md deleted file mode 100644 index 614057bf93..0000000000 --- a/.agents/skills/hooks-public/references/database-transfer.md +++ /dev/null @@ -1,34 +0,0 @@ -# databaseTransfer - - - -React Query hooks for DatabaseTransfer data operations - -## Usage - -```typescript -useDatabaseTransfersQuery({ selection: { fields: { id: true, databaseId: true, targetOwnerId: true, sourceApproved: true, targetApproved: true, sourceApprovedAt: true, targetApprovedAt: true, status: true, initiatedBy: true, notes: true, expiresAt: true, createdAt: true, updatedAt: true, completedAt: true } } }) -useDatabaseTransferQuery({ id: '', selection: { fields: { id: true, databaseId: true, targetOwnerId: true, sourceApproved: true, targetApproved: true, sourceApprovedAt: true, targetApprovedAt: true, status: true, initiatedBy: true, notes: true, expiresAt: true, createdAt: true, updatedAt: true, completedAt: true } } }) -useCreateDatabaseTransferMutation({ selection: { fields: { id: true } } }) -useUpdateDatabaseTransferMutation({ selection: { fields: { id: true } } }) -useDeleteDatabaseTransferMutation({}) -``` - -## Examples - -### List all databaseTransfers - -```typescript -const { data, isLoading } = useDatabaseTransfersQuery({ - selection: { fields: { id: true, databaseId: true, targetOwnerId: true, sourceApproved: true, targetApproved: true, sourceApprovedAt: true, targetApprovedAt: true, status: true, initiatedBy: true, notes: true, expiresAt: true, createdAt: true, updatedAt: true, completedAt: true } }, -}); -``` - -### Create a databaseTransfer - -```typescript -const { mutate } = useCreateDatabaseTransferMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', targetOwnerId: '', sourceApproved: '', targetApproved: '', sourceApprovedAt: '', targetApprovedAt: '', status: '', initiatedBy: '', notes: '', expiresAt: '', completedAt: '' }); -``` diff --git a/.agents/skills/hooks-public/references/database.md b/.agents/skills/hooks-public/references/database.md deleted file mode 100644 index 5bc69199a6..0000000000 --- a/.agents/skills/hooks-public/references/database.md +++ /dev/null @@ -1,34 +0,0 @@ -# database - - - -React Query hooks for Database data operations - -## Usage - -```typescript -useDatabasesQuery({ selection: { fields: { id: true, ownerId: true, schemaHash: true, name: true, label: true, hash: true, createdAt: true, updatedAt: true } } }) -useDatabaseQuery({ id: '', selection: { fields: { id: true, ownerId: true, schemaHash: true, name: true, label: true, hash: true, createdAt: true, updatedAt: true } } }) -useCreateDatabaseMutation({ selection: { fields: { id: true } } }) -useUpdateDatabaseMutation({ selection: { fields: { id: true } } }) -useDeleteDatabaseMutation({}) -``` - -## Examples - -### List all databases - -```typescript -const { data, isLoading } = useDatabasesQuery({ - selection: { fields: { id: true, ownerId: true, schemaHash: true, name: true, label: true, hash: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a database - -```typescript -const { mutate } = useCreateDatabaseMutation({ - selection: { fields: { id: true } }, -}); -mutate({ ownerId: '', schemaHash: '', name: '', label: '', hash: '' }); -``` diff --git a/.agents/skills/hooks-public/references/db-usage-module.md b/.agents/skills/hooks-public/references/db-usage-module.md deleted file mode 100644 index 33b68aa1ac..0000000000 --- a/.agents/skills/hooks-public/references/db-usage-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# dbUsageModule - - - -React Query hooks for DbUsageModule data operations - -## Usage - -```typescript -useDbUsageModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, interval: true, retention: true, premake: true, scope: true, prefix: true } } }) -useDbUsageModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, interval: true, retention: true, premake: true, scope: true, prefix: true } } }) -useCreateDbUsageModuleMutation({ selection: { fields: { id: true } } }) -useUpdateDbUsageModuleMutation({ selection: { fields: { id: true } } }) -useDeleteDbUsageModuleMutation({}) -``` - -## Examples - -### List all dbUsageModules - -```typescript -const { data, isLoading } = useDbUsageModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, interval: true, retention: true, premake: true, scope: true, prefix: true } }, -}); -``` - -### Create a dbUsageModule - -```typescript -const { mutate } = useCreateDbUsageModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsDailyTableId: '', tableStatsDailyTableName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsDailyTableId: '', queryStatsDailyTableName: '', interval: '', retention: '', premake: '', scope: '', prefix: '' }); -``` diff --git a/.agents/skills/hooks-public/references/default-ids-module.md b/.agents/skills/hooks-public/references/default-ids-module.md deleted file mode 100644 index 7359d36450..0000000000 --- a/.agents/skills/hooks-public/references/default-ids-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# defaultIdsModule - - - -React Query hooks for DefaultIdsModule data operations - -## Usage - -```typescript -useDefaultIdsModulesQuery({ selection: { fields: { id: true, databaseId: true } } }) -useDefaultIdsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true } } }) -useCreateDefaultIdsModuleMutation({ selection: { fields: { id: true } } }) -useUpdateDefaultIdsModuleMutation({ selection: { fields: { id: true } } }) -useDeleteDefaultIdsModuleMutation({}) -``` - -## Examples - -### List all defaultIdsModules - -```typescript -const { data, isLoading } = useDefaultIdsModulesQuery({ - selection: { fields: { id: true, databaseId: true } }, -}); -``` - -### Create a defaultIdsModule - -```typescript -const { mutate } = useCreateDefaultIdsModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '' }); -``` diff --git a/.agents/skills/hooks-public/references/default-privilege.md b/.agents/skills/hooks-public/references/default-privilege.md deleted file mode 100644 index b887c2dca1..0000000000 --- a/.agents/skills/hooks-public/references/default-privilege.md +++ /dev/null @@ -1,34 +0,0 @@ -# defaultPrivilege - - - -React Query hooks for DefaultPrivilege data operations - -## Usage - -```typescript -useDefaultPrivilegesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, objectType: true, privilege: true, granteeName: true, isGrant: true } } }) -useDefaultPrivilegeQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, objectType: true, privilege: true, granteeName: true, isGrant: true } } }) -useCreateDefaultPrivilegeMutation({ selection: { fields: { id: true } } }) -useUpdateDefaultPrivilegeMutation({ selection: { fields: { id: true } } }) -useDeleteDefaultPrivilegeMutation({}) -``` - -## Examples - -### List all defaultPrivileges - -```typescript -const { data, isLoading } = useDefaultPrivilegesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, objectType: true, privilege: true, granteeName: true, isGrant: true } }, -}); -``` - -### Create a defaultPrivilege - -```typescript -const { mutate } = useCreateDefaultPrivilegeMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', objectType: '', privilege: '', granteeName: '', isGrant: '' }); -``` diff --git a/.agents/skills/hooks-public/references/denormalized-table-field.md b/.agents/skills/hooks-public/references/denormalized-table-field.md deleted file mode 100644 index 5c4fcd7ab0..0000000000 --- a/.agents/skills/hooks-public/references/denormalized-table-field.md +++ /dev/null @@ -1,34 +0,0 @@ -# denormalizedTableField - - - -React Query hooks for DenormalizedTableField data operations - -## Usage - -```typescript -useDenormalizedTableFieldsQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, fieldId: true, setIds: true, refTableId: true, refFieldId: true, refIds: true, useUpdates: true, updateDefaults: true, funcName: true, funcOrder: true } } }) -useDenormalizedTableFieldQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, fieldId: true, setIds: true, refTableId: true, refFieldId: true, refIds: true, useUpdates: true, updateDefaults: true, funcName: true, funcOrder: true } } }) -useCreateDenormalizedTableFieldMutation({ selection: { fields: { id: true } } }) -useUpdateDenormalizedTableFieldMutation({ selection: { fields: { id: true } } }) -useDeleteDenormalizedTableFieldMutation({}) -``` - -## Examples - -### List all denormalizedTableFields - -```typescript -const { data, isLoading } = useDenormalizedTableFieldsQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, fieldId: true, setIds: true, refTableId: true, refFieldId: true, refIds: true, useUpdates: true, updateDefaults: true, funcName: true, funcOrder: true } }, -}); -``` - -### Create a denormalizedTableField - -```typescript -const { mutate } = useCreateDenormalizedTableFieldMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', tableId: '', fieldId: '', setIds: '', refTableId: '', refFieldId: '', refIds: '', useUpdates: '', updateDefaults: '', funcName: '', funcOrder: '' }); -``` diff --git a/.agents/skills/hooks-public/references/devices-module.md b/.agents/skills/hooks-public/references/devices-module.md deleted file mode 100644 index d1c5489cd8..0000000000 --- a/.agents/skills/hooks-public/references/devices-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# devicesModule - - - -React Query hooks for DevicesModule data operations - -## Usage - -```typescript -useDevicesModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, userDevicesTableId: true, deviceSettingsTableId: true, userDevicesTable: true, deviceSettingsTable: true } } }) -useDevicesModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, userDevicesTableId: true, deviceSettingsTableId: true, userDevicesTable: true, deviceSettingsTable: true } } }) -useCreateDevicesModuleMutation({ selection: { fields: { id: true } } }) -useUpdateDevicesModuleMutation({ selection: { fields: { id: true } } }) -useDeleteDevicesModuleMutation({}) -``` - -## Examples - -### List all devicesModules - -```typescript -const { data, isLoading } = useDevicesModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, userDevicesTableId: true, deviceSettingsTableId: true, userDevicesTable: true, deviceSettingsTable: true } }, -}); -``` - -### Create a devicesModule - -```typescript -const { mutate } = useCreateDevicesModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', userDevicesTableId: '', deviceSettingsTableId: '', userDevicesTable: '', deviceSettingsTable: '' }); -``` diff --git a/.agents/skills/hooks-public/references/disconnect-account.md b/.agents/skills/hooks-public/references/disconnect-account.md deleted file mode 100644 index b328054bb3..0000000000 --- a/.agents/skills/hooks-public/references/disconnect-account.md +++ /dev/null @@ -1,20 +0,0 @@ -# disconnectAccount - - - -React Query mutation hook for disconnectAccount - -## Usage - -```typescript -const { mutate } = useDisconnectAccountMutation(); mutate({ input: { accountId: '' } }); -``` - -## Examples - -### Use useDisconnectAccountMutation - -```typescript -const { mutate, isLoading } = useDisconnectAccountMutation(); -mutate({ input: { accountId: '' } }); -``` diff --git a/.agents/skills/hooks-public/references/domain.md b/.agents/skills/hooks-public/references/domain.md deleted file mode 100644 index 2d6cc26b9b..0000000000 --- a/.agents/skills/hooks-public/references/domain.md +++ /dev/null @@ -1,34 +0,0 @@ -# domain - - - -DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site - -## Usage - -```typescript -useDomainsQuery({ selection: { fields: { id: true, databaseId: true, apiId: true, siteId: true, subdomain: true, domain: true } } }) -useDomainQuery({ id: '', selection: { fields: { id: true, databaseId: true, apiId: true, siteId: true, subdomain: true, domain: true } } }) -useCreateDomainMutation({ selection: { fields: { id: true } } }) -useUpdateDomainMutation({ selection: { fields: { id: true } } }) -useDeleteDomainMutation({}) -``` - -## Examples - -### List all domains - -```typescript -const { data, isLoading } = useDomainsQuery({ - selection: { fields: { id: true, databaseId: true, apiId: true, siteId: true, subdomain: true, domain: true } }, -}); -``` - -### Create a domain - -```typescript -const { mutate } = useCreateDomainMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', apiId: '', siteId: '', subdomain: '', domain: '' }); -``` diff --git a/.agents/skills/hooks-public/references/email.md b/.agents/skills/hooks-public/references/email.md deleted file mode 100644 index 8511c6bd3d..0000000000 --- a/.agents/skills/hooks-public/references/email.md +++ /dev/null @@ -1,34 +0,0 @@ -# email - - - -User email addresses with verification and primary-email management - -## Usage - -```typescript -useEmailsQuery({ selection: { fields: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, name: true, createdAt: true, updatedAt: true } } }) -useEmailQuery({ id: '', selection: { fields: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, name: true, createdAt: true, updatedAt: true } } }) -useCreateEmailMutation({ selection: { fields: { id: true } } }) -useUpdateEmailMutation({ selection: { fields: { id: true } } }) -useDeleteEmailMutation({}) -``` - -## Examples - -### List all emails - -```typescript -const { data, isLoading } = useEmailsQuery({ - selection: { fields: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, name: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a email - -```typescript -const { mutate } = useCreateEmailMutation({ - selection: { fields: { id: true } }, -}); -mutate({ ownerId: '', email: '', isVerified: '', isPrimary: '', name: '' }); -``` diff --git a/.agents/skills/hooks-public/references/emails-module.md b/.agents/skills/hooks-public/references/emails-module.md deleted file mode 100644 index ef428c8a7e..0000000000 --- a/.agents/skills/hooks-public/references/emails-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# emailsModule - - - -React Query hooks for EmailsModule data operations - -## Usage - -```typescript -useEmailsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } } }) -useEmailsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } } }) -useCreateEmailsModuleMutation({ selection: { fields: { id: true } } }) -useUpdateEmailsModuleMutation({ selection: { fields: { id: true } } }) -useDeleteEmailsModuleMutation({}) -``` - -## Examples - -### List all emailsModules - -```typescript -const { data, isLoading } = useEmailsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }, -}); -``` - -### Create a emailsModule - -```typescript -const { mutate } = useCreateEmailsModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }); -``` diff --git a/.agents/skills/hooks-public/references/embedding-chunk.md b/.agents/skills/hooks-public/references/embedding-chunk.md deleted file mode 100644 index 9aa882c6c0..0000000000 --- a/.agents/skills/hooks-public/references/embedding-chunk.md +++ /dev/null @@ -1,34 +0,0 @@ -# embeddingChunk - - - -React Query hooks for EmbeddingChunk data operations - -## Usage - -```typescript -useEmbeddingChunksQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, embeddingFieldId: true, chunksTableId: true, chunksTableName: true, contentFieldName: true, dimensions: true, metric: true, chunkSize: true, chunkOverlap: true, chunkStrategy: true, metadataFields: true, searchIndexes: true, enqueueChunkingJob: true, chunkingTaskName: true, embeddingModel: true, embeddingProvider: true, parentFkFieldId: true, createdAt: true, updatedAt: true } } }) -useEmbeddingChunkQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, embeddingFieldId: true, chunksTableId: true, chunksTableName: true, contentFieldName: true, dimensions: true, metric: true, chunkSize: true, chunkOverlap: true, chunkStrategy: true, metadataFields: true, searchIndexes: true, enqueueChunkingJob: true, chunkingTaskName: true, embeddingModel: true, embeddingProvider: true, parentFkFieldId: true, createdAt: true, updatedAt: true } } }) -useCreateEmbeddingChunkMutation({ selection: { fields: { id: true } } }) -useUpdateEmbeddingChunkMutation({ selection: { fields: { id: true } } }) -useDeleteEmbeddingChunkMutation({}) -``` - -## Examples - -### List all embeddingChunks - -```typescript -const { data, isLoading } = useEmbeddingChunksQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, embeddingFieldId: true, chunksTableId: true, chunksTableName: true, contentFieldName: true, dimensions: true, metric: true, chunkSize: true, chunkOverlap: true, chunkStrategy: true, metadataFields: true, searchIndexes: true, enqueueChunkingJob: true, chunkingTaskName: true, embeddingModel: true, embeddingProvider: true, parentFkFieldId: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a embeddingChunk - -```typescript -const { mutate } = useCreateEmbeddingChunkMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', tableId: '', embeddingFieldId: '', chunksTableId: '', chunksTableName: '', contentFieldName: '', dimensions: '', metric: '', chunkSize: '', chunkOverlap: '', chunkStrategy: '', metadataFields: '', searchIndexes: '', enqueueChunkingJob: '', chunkingTaskName: '', embeddingModel: '', embeddingProvider: '', parentFkFieldId: '' }); -``` diff --git a/.agents/skills/hooks-public/references/encrypted-secrets-module.md b/.agents/skills/hooks-public/references/encrypted-secrets-module.md deleted file mode 100644 index d29596257d..0000000000 --- a/.agents/skills/hooks-public/references/encrypted-secrets-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# encryptedSecretsModule - - - -React Query hooks for EncryptedSecretsModule data operations - -## Usage - -```typescript -useEncryptedSecretsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } } }) -useEncryptedSecretsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } } }) -useCreateEncryptedSecretsModuleMutation({ selection: { fields: { id: true } } }) -useUpdateEncryptedSecretsModuleMutation({ selection: { fields: { id: true } } }) -useDeleteEncryptedSecretsModuleMutation({}) -``` - -## Examples - -### List all encryptedSecretsModules - -```typescript -const { data, isLoading } = useEncryptedSecretsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }, -}); -``` - -### Create a encryptedSecretsModule - -```typescript -const { mutate } = useCreateEncryptedSecretsModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', tableId: '', tableName: '' }); -``` diff --git a/.agents/skills/hooks-public/references/entity-type-provision.md b/.agents/skills/hooks-public/references/entity-type-provision.md deleted file mode 100644 index ed4222c7c6..0000000000 --- a/.agents/skills/hooks-public/references/entity-type-provision.md +++ /dev/null @@ -1,41 +0,0 @@ -# entityTypeProvision - - - -Provisions a new membership entity type. Each INSERT creates an entity table, registers a membership type, - and installs the required modules (permissions, memberships, limits) plus optional modules (profiles, levels, invites). - Uses provision_membership_table() internally. Graceful: duplicate (database_id, prefix) pairs are silently skipped - via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING). - Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible). - Set table_provision to a single jsonb object (using the same shape as provision_table() / - blueprint tables[] entries) to replace the defaults with your own; set skip_entity_policies=true - as an escape hatch to apply zero policies. - -## Usage - -```typescript -useEntityTypeProvisionsQuery({ selection: { fields: { id: true, databaseId: true, name: true, prefix: true, description: true, parentEntity: true, tableName: true, isVisible: true, hasLimits: true, hasProfiles: true, hasLevels: true, hasInvites: true, hasInviteAchievements: true, storage: true, namespaces: true, functions: true, graphs: true, agents: true, skipEntityPolicies: true, tableProvision: true, outMembershipType: true, outEntityTableId: true, outEntityTableName: true, outInstalledModules: true, outStorageModuleId: true, outBucketsTableId: true, outFilesTableId: true, outPathSharesTableId: true, outInvitesModuleId: true, outNamespaceModuleId: true, outNamespacesTableId: true, outNamespaceEventsTableId: true, outFunctionModuleId: true, outDefinitionsTableId: true, outInvocationsTableId: true, outExecutionLogsTableId: true, outSecretDefinitionsTableId: true, outRequirementsTableId: true, outConfigRequirementsTableId: true, outGraphModuleId: true, outGraphsTableId: true, outAgentModuleId: true } } }) -useEntityTypeProvisionQuery({ id: '', selection: { fields: { id: true, databaseId: true, name: true, prefix: true, description: true, parentEntity: true, tableName: true, isVisible: true, hasLimits: true, hasProfiles: true, hasLevels: true, hasInvites: true, hasInviteAchievements: true, storage: true, namespaces: true, functions: true, graphs: true, agents: true, skipEntityPolicies: true, tableProvision: true, outMembershipType: true, outEntityTableId: true, outEntityTableName: true, outInstalledModules: true, outStorageModuleId: true, outBucketsTableId: true, outFilesTableId: true, outPathSharesTableId: true, outInvitesModuleId: true, outNamespaceModuleId: true, outNamespacesTableId: true, outNamespaceEventsTableId: true, outFunctionModuleId: true, outDefinitionsTableId: true, outInvocationsTableId: true, outExecutionLogsTableId: true, outSecretDefinitionsTableId: true, outRequirementsTableId: true, outConfigRequirementsTableId: true, outGraphModuleId: true, outGraphsTableId: true, outAgentModuleId: true } } }) -useCreateEntityTypeProvisionMutation({ selection: { fields: { id: true } } }) -useUpdateEntityTypeProvisionMutation({ selection: { fields: { id: true } } }) -useDeleteEntityTypeProvisionMutation({}) -``` - -## Examples - -### List all entityTypeProvisions - -```typescript -const { data, isLoading } = useEntityTypeProvisionsQuery({ - selection: { fields: { id: true, databaseId: true, name: true, prefix: true, description: true, parentEntity: true, tableName: true, isVisible: true, hasLimits: true, hasProfiles: true, hasLevels: true, hasInvites: true, hasInviteAchievements: true, storage: true, namespaces: true, functions: true, graphs: true, agents: true, skipEntityPolicies: true, tableProvision: true, outMembershipType: true, outEntityTableId: true, outEntityTableName: true, outInstalledModules: true, outStorageModuleId: true, outBucketsTableId: true, outFilesTableId: true, outPathSharesTableId: true, outInvitesModuleId: true, outNamespaceModuleId: true, outNamespacesTableId: true, outNamespaceEventsTableId: true, outFunctionModuleId: true, outDefinitionsTableId: true, outInvocationsTableId: true, outExecutionLogsTableId: true, outSecretDefinitionsTableId: true, outRequirementsTableId: true, outConfigRequirementsTableId: true, outGraphModuleId: true, outGraphsTableId: true, outAgentModuleId: true } }, -}); -``` - -### Create a entityTypeProvision - -```typescript -const { mutate } = useCreateEntityTypeProvisionMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', name: '', prefix: '', description: '', parentEntity: '', tableName: '', isVisible: '', hasLimits: '', hasProfiles: '', hasLevels: '', hasInvites: '', hasInviteAchievements: '', storage: '', namespaces: '', functions: '', graphs: '', agents: '', skipEntityPolicies: '', tableProvision: '', outMembershipType: '', outEntityTableId: '', outEntityTableName: '', outInstalledModules: '', outStorageModuleId: '', outBucketsTableId: '', outFilesTableId: '', outPathSharesTableId: '', outInvitesModuleId: '', outNamespaceModuleId: '', outNamespacesTableId: '', outNamespaceEventsTableId: '', outFunctionModuleId: '', outDefinitionsTableId: '', outInvocationsTableId: '', outExecutionLogsTableId: '', outSecretDefinitionsTableId: '', outRequirementsTableId: '', outConfigRequirementsTableId: '', outGraphModuleId: '', outGraphsTableId: '', outAgentModuleId: '' }); -``` diff --git a/.agents/skills/hooks-public/references/enum.md b/.agents/skills/hooks-public/references/enum.md deleted file mode 100644 index 0e052d7af9..0000000000 --- a/.agents/skills/hooks-public/references/enum.md +++ /dev/null @@ -1,34 +0,0 @@ -# enum - - - -React Query hooks for Enum data operations - -## Usage - -```typescript -useEnumsQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, values: true, smartTags: true, category: true, module: true, scope: true, tags: true } } }) -useEnumQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, values: true, smartTags: true, category: true, module: true, scope: true, tags: true } } }) -useCreateEnumMutation({ selection: { fields: { id: true } } }) -useUpdateEnumMutation({ selection: { fields: { id: true } } }) -useDeleteEnumMutation({}) -``` - -## Examples - -### List all enums - -```typescript -const { data, isLoading } = useEnumsQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, values: true, smartTags: true, category: true, module: true, scope: true, tags: true } }, -}); -``` - -### Create a enum - -```typescript -const { mutate } = useCreateEnumMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', name: '', label: '', description: '', values: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); -``` diff --git a/.agents/skills/hooks-public/references/events-module.md b/.agents/skills/hooks-public/references/events-module.md deleted file mode 100644 index 97d07699b1..0000000000 --- a/.agents/skills/hooks-public/references/events-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# eventsModule - - - -React Query hooks for EventsModule data operations - -## Usage - -```typescript -useEventsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, eventsTableId: true, eventsTableName: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelGrantsTableId: true, levelGrantsTableName: true, achievementRewardsTableId: true, achievementRewardsTableName: true, recordEvent: true, removeEvent: true, tgEvent: true, tgEventToggle: true, tgEventToggleBool: true, tgEventBool: true, upsertAggregate: true, tgUpdateAggregates: true, pruneEvents: true, stepsRequired: true, levelAchieved: true, tgCheckAchievements: true, grantAchievement: true, tgAchievementReward: true, interval: true, retention: true, premake: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } } }) -useEventsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, eventsTableId: true, eventsTableName: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelGrantsTableId: true, levelGrantsTableName: true, achievementRewardsTableId: true, achievementRewardsTableName: true, recordEvent: true, removeEvent: true, tgEvent: true, tgEventToggle: true, tgEventToggleBool: true, tgEventBool: true, upsertAggregate: true, tgUpdateAggregates: true, pruneEvents: true, stepsRequired: true, levelAchieved: true, tgCheckAchievements: true, grantAchievement: true, tgAchievementReward: true, interval: true, retention: true, premake: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } } }) -useCreateEventsModuleMutation({ selection: { fields: { id: true } } }) -useUpdateEventsModuleMutation({ selection: { fields: { id: true } } }) -useDeleteEventsModuleMutation({}) -``` - -## Examples - -### List all eventsModules - -```typescript -const { data, isLoading } = useEventsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, eventsTableId: true, eventsTableName: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelGrantsTableId: true, levelGrantsTableName: true, achievementRewardsTableId: true, achievementRewardsTableName: true, recordEvent: true, removeEvent: true, tgEvent: true, tgEventToggle: true, tgEventToggleBool: true, tgEventBool: true, upsertAggregate: true, tgUpdateAggregates: true, pruneEvents: true, stepsRequired: true, levelAchieved: true, tgCheckAchievements: true, grantAchievement: true, tgAchievementReward: true, interval: true, retention: true, premake: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } }, -}); -``` - -### Create a eventsModule - -```typescript -const { mutate } = useCreateEventsModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', eventsTableId: '', eventsTableName: '', eventAggregatesTableId: '', eventAggregatesTableName: '', eventTypesTableId: '', eventTypesTableName: '', levelsTableId: '', levelsTableName: '', levelRequirementsTableId: '', levelRequirementsTableName: '', levelGrantsTableId: '', levelGrantsTableName: '', achievementRewardsTableId: '', achievementRewardsTableName: '', recordEvent: '', removeEvent: '', tgEvent: '', tgEventToggle: '', tgEventToggleBool: '', tgEventBool: '', upsertAggregate: '', tgUpdateAggregates: '', pruneEvents: '', stepsRequired: '', levelAchieved: '', tgCheckAchievements: '', grantAchievement: '', tgAchievementReward: '', interval: '', retention: '', premake: '', prefix: '', membershipType: '', entityTableId: '', actorTableId: '' }); -``` diff --git a/.agents/skills/hooks-public/references/extend-token-expires.md b/.agents/skills/hooks-public/references/extend-token-expires.md deleted file mode 100644 index c9156a1f51..0000000000 --- a/.agents/skills/hooks-public/references/extend-token-expires.md +++ /dev/null @@ -1,20 +0,0 @@ -# extendTokenExpires - - - -React Query mutation hook for extendTokenExpires - -## Usage - -```typescript -const { mutate } = useExtendTokenExpiresMutation(); mutate({ input: { amount: '' } }); -``` - -## Examples - -### Use useExtendTokenExpiresMutation - -```typescript -const { mutate, isLoading } = useExtendTokenExpiresMutation(); -mutate({ input: { amount: '' } }); -``` diff --git a/.agents/skills/hooks-public/references/field-module.md b/.agents/skills/hooks-public/references/field-module.md deleted file mode 100644 index 7cab15a4fd..0000000000 --- a/.agents/skills/hooks-public/references/field-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# fieldModule - - - -React Query hooks for FieldModule data operations - -## Usage - -```typescript -useFieldModulesQuery({ selection: { fields: { id: true, databaseId: true, privateSchemaId: true, tableId: true, fieldId: true, nodeType: true, data: true, triggers: true, functions: true } } }) -useFieldModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, privateSchemaId: true, tableId: true, fieldId: true, nodeType: true, data: true, triggers: true, functions: true } } }) -useCreateFieldModuleMutation({ selection: { fields: { id: true } } }) -useUpdateFieldModuleMutation({ selection: { fields: { id: true } } }) -useDeleteFieldModuleMutation({}) -``` - -## Examples - -### List all fieldModules - -```typescript -const { data, isLoading } = useFieldModulesQuery({ - selection: { fields: { id: true, databaseId: true, privateSchemaId: true, tableId: true, fieldId: true, nodeType: true, data: true, triggers: true, functions: true } }, -}); -``` - -### Create a fieldModule - -```typescript -const { mutate } = useCreateFieldModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', privateSchemaId: '', tableId: '', fieldId: '', nodeType: '', data: '', triggers: '', functions: '' }); -``` diff --git a/.agents/skills/hooks-public/references/field.md b/.agents/skills/hooks-public/references/field.md deleted file mode 100644 index 6a2a372467..0000000000 --- a/.agents/skills/hooks-public/references/field.md +++ /dev/null @@ -1,34 +0,0 @@ -# field - - - -React Query hooks for Field data operations - -## Usage - -```typescript -useFieldsQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, smartTags: true, isRequired: true, apiRequired: true, defaultValue: true, type: true, fieldOrder: true, regexp: true, chk: true, chkExpr: true, min: true, max: true, tags: true, category: true, module: true, scope: true, createdAt: true, updatedAt: true } } }) -useFieldQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, smartTags: true, isRequired: true, apiRequired: true, defaultValue: true, type: true, fieldOrder: true, regexp: true, chk: true, chkExpr: true, min: true, max: true, tags: true, category: true, module: true, scope: true, createdAt: true, updatedAt: true } } }) -useCreateFieldMutation({ selection: { fields: { id: true } } }) -useUpdateFieldMutation({ selection: { fields: { id: true } } }) -useDeleteFieldMutation({}) -``` - -## Examples - -### List all fields - -```typescript -const { data, isLoading } = useFieldsQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, smartTags: true, isRequired: true, apiRequired: true, defaultValue: true, type: true, fieldOrder: true, regexp: true, chk: true, chkExpr: true, min: true, max: true, tags: true, category: true, module: true, scope: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a field - -```typescript -const { mutate } = useCreateFieldMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', tableId: '', name: '', label: '', description: '', smartTags: '', isRequired: '', apiRequired: '', defaultValue: '', type: '', fieldOrder: '', regexp: '', chk: '', chkExpr: '', min: '', max: '', tags: '', category: '', module: '', scope: '' }); -``` diff --git a/.agents/skills/hooks-public/references/foreign-key-constraint.md b/.agents/skills/hooks-public/references/foreign-key-constraint.md deleted file mode 100644 index 424a575721..0000000000 --- a/.agents/skills/hooks-public/references/foreign-key-constraint.md +++ /dev/null @@ -1,34 +0,0 @@ -# foreignKeyConstraint - - - -React Query hooks for ForeignKeyConstraint data operations - -## Usage - -```typescript -useForeignKeyConstraintsQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, refTableId: true, refFieldIds: true, deleteAction: true, updateAction: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) -useForeignKeyConstraintQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, refTableId: true, refFieldIds: true, deleteAction: true, updateAction: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) -useCreateForeignKeyConstraintMutation({ selection: { fields: { id: true } } }) -useUpdateForeignKeyConstraintMutation({ selection: { fields: { id: true } } }) -useDeleteForeignKeyConstraintMutation({}) -``` - -## Examples - -### List all foreignKeyConstraints - -```typescript -const { data, isLoading } = useForeignKeyConstraintsQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, refTableId: true, refFieldIds: true, deleteAction: true, updateAction: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a foreignKeyConstraint - -```typescript -const { mutate } = useCreateForeignKeyConstraintMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', refTableId: '', refFieldIds: '', deleteAction: '', updateAction: '', category: '', module: '', scope: '', tags: '' }); -``` diff --git a/.agents/skills/hooks-public/references/forgot-password.md b/.agents/skills/hooks-public/references/forgot-password.md deleted file mode 100644 index 117186d2f4..0000000000 --- a/.agents/skills/hooks-public/references/forgot-password.md +++ /dev/null @@ -1,20 +0,0 @@ -# forgotPassword - - - -React Query mutation hook for forgotPassword - -## Usage - -```typescript -const { mutate } = useForgotPasswordMutation(); mutate({ input: { email: '' } }); -``` - -## Examples - -### Use useForgotPasswordMutation - -```typescript -const { mutate, isLoading } = useForgotPasswordMutation(); -mutate({ input: { email: '' } }); -``` diff --git a/.agents/skills/hooks-public/references/freeze-objects.md b/.agents/skills/hooks-public/references/freeze-objects.md deleted file mode 100644 index bbb6e628f3..0000000000 --- a/.agents/skills/hooks-public/references/freeze-objects.md +++ /dev/null @@ -1,20 +0,0 @@ -# freezeObjects - - - -React Query mutation hook for freezeObjects - -## Usage - -```typescript -const { mutate } = useFreezeObjectsMutation(); mutate({ input: { databaseId: '', id: '' } }); -``` - -## Examples - -### Use useFreezeObjectsMutation - -```typescript -const { mutate, isLoading } = useFreezeObjectsMutation(); -mutate({ input: { databaseId: '', id: '' } }); -``` diff --git a/.agents/skills/hooks-public/references/full-text-search.md b/.agents/skills/hooks-public/references/full-text-search.md deleted file mode 100644 index 4446f105b0..0000000000 --- a/.agents/skills/hooks-public/references/full-text-search.md +++ /dev/null @@ -1,34 +0,0 @@ -# fullTextSearch - - - -React Query hooks for FullTextSearch data operations - -## Usage - -```typescript -useFullTextSearchesQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, fieldId: true, fieldIds: true, weights: true, langs: true, createdAt: true, updatedAt: true } } }) -useFullTextSearchQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, fieldId: true, fieldIds: true, weights: true, langs: true, createdAt: true, updatedAt: true } } }) -useCreateFullTextSearchMutation({ selection: { fields: { id: true } } }) -useUpdateFullTextSearchMutation({ selection: { fields: { id: true } } }) -useDeleteFullTextSearchMutation({}) -``` - -## Examples - -### List all fullTextSearches - -```typescript -const { data, isLoading } = useFullTextSearchesQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, fieldId: true, fieldIds: true, weights: true, langs: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a fullTextSearch - -```typescript -const { mutate } = useCreateFullTextSearchMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', tableId: '', fieldId: '', fieldIds: '', weights: '', langs: '' }); -``` diff --git a/.agents/skills/hooks-public/references/function-module.md b/.agents/skills/hooks-public/references/function-module.md deleted file mode 100644 index 20011d08f2..0000000000 --- a/.agents/skills/hooks-public/references/function-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# functionModule - - - -React Query hooks for FunctionModule data operations - -## Usage - -```typescript -useFunctionModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, definitionsTableId: true, invocationsTableId: true, executionLogsTableId: true, secretDefinitionsTableId: true, requirementsTableId: true, configDefinitionsTableId: true, configRequirementsTableId: true, definitionsTableName: true, invocationsTableName: true, executionLogsTableName: true, secretDefinitionsTableName: true, requirementsTableName: true, configRequirementsTableName: true, apiName: true, privateApiName: true, membershipType: true, prefix: true, key: true, entityTableId: true, policies: true, provisions: true } } }) -useFunctionModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, definitionsTableId: true, invocationsTableId: true, executionLogsTableId: true, secretDefinitionsTableId: true, requirementsTableId: true, configDefinitionsTableId: true, configRequirementsTableId: true, definitionsTableName: true, invocationsTableName: true, executionLogsTableName: true, secretDefinitionsTableName: true, requirementsTableName: true, configRequirementsTableName: true, apiName: true, privateApiName: true, membershipType: true, prefix: true, key: true, entityTableId: true, policies: true, provisions: true } } }) -useCreateFunctionModuleMutation({ selection: { fields: { id: true } } }) -useUpdateFunctionModuleMutation({ selection: { fields: { id: true } } }) -useDeleteFunctionModuleMutation({}) -``` - -## Examples - -### List all functionModules - -```typescript -const { data, isLoading } = useFunctionModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, definitionsTableId: true, invocationsTableId: true, executionLogsTableId: true, secretDefinitionsTableId: true, requirementsTableId: true, configDefinitionsTableId: true, configRequirementsTableId: true, definitionsTableName: true, invocationsTableName: true, executionLogsTableName: true, secretDefinitionsTableName: true, requirementsTableName: true, configRequirementsTableName: true, apiName: true, privateApiName: true, membershipType: true, prefix: true, key: true, entityTableId: true, policies: true, provisions: true } }, -}); -``` - -### Create a functionModule - -```typescript -const { mutate } = useCreateFunctionModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', definitionsTableId: '', invocationsTableId: '', executionLogsTableId: '', secretDefinitionsTableId: '', requirementsTableId: '', configDefinitionsTableId: '', configRequirementsTableId: '', definitionsTableName: '', invocationsTableName: '', executionLogsTableName: '', secretDefinitionsTableName: '', requirementsTableName: '', configRequirementsTableName: '', apiName: '', privateApiName: '', membershipType: '', prefix: '', key: '', entityTableId: '', policies: '', provisions: '' }); -``` diff --git a/.agents/skills/hooks-public/references/function.md b/.agents/skills/hooks-public/references/function.md deleted file mode 100644 index b30eb3f5c9..0000000000 --- a/.agents/skills/hooks-public/references/function.md +++ /dev/null @@ -1,34 +0,0 @@ -# function - - - -React Query hooks for Function data operations - -## Usage - -```typescript -useFunctionsQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, name: true } } }) -useFunctionQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, name: true } } }) -useCreateFunctionMutation({ selection: { fields: { id: true } } }) -useUpdateFunctionMutation({ selection: { fields: { id: true } } }) -useDeleteFunctionMutation({}) -``` - -## Examples - -### List all functions - -```typescript -const { data, isLoading } = useFunctionsQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, name: true } }, -}); -``` - -### Create a function - -```typescript -const { mutate } = useCreateFunctionMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', name: '' }); -``` diff --git a/.agents/skills/hooks-public/references/get-all-objects-from-root.md b/.agents/skills/hooks-public/references/get-all-objects-from-root.md deleted file mode 100644 index 8b80aa7df4..0000000000 --- a/.agents/skills/hooks-public/references/get-all-objects-from-root.md +++ /dev/null @@ -1,19 +0,0 @@ -# getAllObjectsFromRoot - - - -Reads and enables pagination through a set of `Object`. - -## Usage - -```typescript -useGetAllObjectsFromRootQuery({ databaseId: '', id: '', first: '', offset: '', after: '' }) -``` - -## Examples - -### Use useGetAllObjectsFromRootQuery - -```typescript -const { data, isLoading } = useGetAllObjectsFromRootQuery({ databaseId: '', id: '', first: '', offset: '', after: '' }); -``` diff --git a/.agents/skills/hooks-public/references/get-all-record.md b/.agents/skills/hooks-public/references/get-all-record.md deleted file mode 100644 index 2f3c3233fc..0000000000 --- a/.agents/skills/hooks-public/references/get-all-record.md +++ /dev/null @@ -1,31 +0,0 @@ -# getAllRecord - - - -React Query hooks for GetAllRecord data operations - -## Usage - -```typescript -useGetAllQuery({ selection: { fields: { path: true, data: true } } }) -useCreateGetAllRecordMutation({ selection: { fields: { id: true } } }) -``` - -## Examples - -### List all getAll - -```typescript -const { data, isLoading } = useGetAllQuery({ - selection: { fields: { path: true, data: true } }, -}); -``` - -### Create a getAllRecord - -```typescript -const { mutate } = useCreateGetAllRecordMutation({ - selection: { fields: { id: true } }, -}); -mutate({ path: '', data: '' }); -``` diff --git a/.agents/skills/hooks-public/references/get-object-at-path.md b/.agents/skills/hooks-public/references/get-object-at-path.md deleted file mode 100644 index 7c01530d9d..0000000000 --- a/.agents/skills/hooks-public/references/get-object-at-path.md +++ /dev/null @@ -1,19 +0,0 @@ -# getObjectAtPath - - - -React Query query hook for getObjectAtPath - -## Usage - -```typescript -useGetObjectAtPathQuery({ dbId: '', storeId: '', path: '', refname: '' }) -``` - -## Examples - -### Use useGetObjectAtPathQuery - -```typescript -const { data, isLoading } = useGetObjectAtPathQuery({ dbId: '', storeId: '', path: '', refname: '' }); -``` diff --git a/.agents/skills/hooks-public/references/get-path-objects-from-root.md b/.agents/skills/hooks-public/references/get-path-objects-from-root.md deleted file mode 100644 index 7a0bc57eda..0000000000 --- a/.agents/skills/hooks-public/references/get-path-objects-from-root.md +++ /dev/null @@ -1,19 +0,0 @@ -# getPathObjectsFromRoot - - - -Reads and enables pagination through a set of `Object`. - -## Usage - -```typescript -useGetPathObjectsFromRootQuery({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }) -``` - -## Examples - -### Use useGetPathObjectsFromRootQuery - -```typescript -const { data, isLoading } = useGetPathObjectsFromRootQuery({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }); -``` diff --git a/.agents/skills/hooks-public/references/graph-module.md b/.agents/skills/hooks-public/references/graph-module.md deleted file mode 100644 index 3a52a1c179..0000000000 --- a/.agents/skills/hooks-public/references/graph-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# graphModule - - - -React Query hooks for GraphModule data operations - -## Usage - -```typescript -useGraphModulesQuery({ selection: { fields: { id: true, databaseId: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, prefix: true, merkleStoreModuleId: true, graphsTableId: true, executionsTableId: true, outputsTableId: true, apiName: true, privateApiName: true, scopeField: true, membershipType: true, entityTableId: true, policies: true, provisions: true, createdAt: true } } }) -useGraphModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, prefix: true, merkleStoreModuleId: true, graphsTableId: true, executionsTableId: true, outputsTableId: true, apiName: true, privateApiName: true, scopeField: true, membershipType: true, entityTableId: true, policies: true, provisions: true, createdAt: true } } }) -useCreateGraphModuleMutation({ selection: { fields: { id: true } } }) -useUpdateGraphModuleMutation({ selection: { fields: { id: true } } }) -useDeleteGraphModuleMutation({}) -``` - -## Examples - -### List all graphModules - -```typescript -const { data, isLoading } = useGraphModulesQuery({ - selection: { fields: { id: true, databaseId: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, prefix: true, merkleStoreModuleId: true, graphsTableId: true, executionsTableId: true, outputsTableId: true, apiName: true, privateApiName: true, scopeField: true, membershipType: true, entityTableId: true, policies: true, provisions: true, createdAt: true } }, -}); -``` - -### Create a graphModule - -```typescript -const { mutate } = useCreateGraphModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', publicSchemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', prefix: '', merkleStoreModuleId: '', graphsTableId: '', executionsTableId: '', outputsTableId: '', apiName: '', privateApiName: '', scopeField: '', membershipType: '', entityTableId: '', policies: '', provisions: '' }); -``` diff --git a/.agents/skills/hooks-public/references/hierarchy-module.md b/.agents/skills/hooks-public/references/hierarchy-module.md deleted file mode 100644 index f609277673..0000000000 --- a/.agents/skills/hooks-public/references/hierarchy-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# hierarchyModule - - - -React Query hooks for HierarchyModule data operations - -## Usage - -```typescript -useHierarchyModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, createdAt: true } } }) -useHierarchyModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, createdAt: true } } }) -useCreateHierarchyModuleMutation({ selection: { fields: { id: true } } }) -useUpdateHierarchyModuleMutation({ selection: { fields: { id: true } } }) -useDeleteHierarchyModuleMutation({}) -``` - -## Examples - -### List all hierarchyModules - -```typescript -const { data, isLoading } = useHierarchyModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, createdAt: true } }, -}); -``` - -### Create a hierarchyModule - -```typescript -const { mutate } = useCreateHierarchyModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', chartEdgesTableId: '', chartEdgesTableName: '', hierarchySprtTableId: '', hierarchySprtTableName: '', chartEdgeGrantsTableId: '', chartEdgeGrantsTableName: '', entityTableId: '', usersTableId: '', prefix: '', privateSchemaName: '', sprtTableName: '', rebuildHierarchyFunction: '', getSubordinatesFunction: '', getManagersFunction: '', isManagerOfFunction: '' }); -``` diff --git a/.agents/skills/hooks-public/references/identity-provider.md b/.agents/skills/hooks-public/references/identity-provider.md deleted file mode 100644 index b98c1d529e..0000000000 --- a/.agents/skills/hooks-public/references/identity-provider.md +++ /dev/null @@ -1,31 +0,0 @@ -# identityProvider - - - -React Query hooks for IdentityProvider data operations - -## Usage - -```typescript -useIdentityProvidersQuery({ selection: { fields: { slug: true, kind: true, displayName: true, enabled: true, isBuiltIn: true } } }) -useCreateIdentityProviderMutation({ selection: { fields: { id: true } } }) -``` - -## Examples - -### List all identityProviders - -```typescript -const { data, isLoading } = useIdentityProvidersQuery({ - selection: { fields: { slug: true, kind: true, displayName: true, enabled: true, isBuiltIn: true } }, -}); -``` - -### Create a identityProvider - -```typescript -const { mutate } = useCreateIdentityProviderMutation({ - selection: { fields: { id: true } }, -}); -mutate({ slug: '', kind: '', displayName: '', enabled: '', isBuiltIn: '' }); -``` diff --git a/.agents/skills/hooks-public/references/identity-providers-module.md b/.agents/skills/hooks-public/references/identity-providers-module.md deleted file mode 100644 index 96a5af94d1..0000000000 --- a/.agents/skills/hooks-public/references/identity-providers-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# identityProvidersModule - - - -Config row for the identity_providers_module, which provisions a per-database identity_providers config table holding OAuth2 / OIDC (and future SAML) provider definitions: protocol kind, endpoint URLs, encrypted client secret, scopes, audience validation, PKCE, and email-handling flags. Built-in providers (google, github, apple, ...) are seeded as is_built_in=true rows; custom providers use slugs of the form custom:. - -## Usage - -```typescript -useIdentityProvidersModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true } } }) -useIdentityProvidersModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true } } }) -useCreateIdentityProvidersModuleMutation({ selection: { fields: { id: true } } }) -useUpdateIdentityProvidersModuleMutation({ selection: { fields: { id: true } } }) -useDeleteIdentityProvidersModuleMutation({}) -``` - -## Examples - -### List all identityProvidersModules - -```typescript -const { data, isLoading } = useIdentityProvidersModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true } }, -}); -``` - -### Create a identityProvidersModule - -```typescript -const { mutate } = useCreateIdentityProvidersModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '' }); -``` diff --git a/.agents/skills/hooks-public/references/index.md b/.agents/skills/hooks-public/references/index.md deleted file mode 100644 index a27d1307b3..0000000000 --- a/.agents/skills/hooks-public/references/index.md +++ /dev/null @@ -1,34 +0,0 @@ -# index - - - -React Query hooks for Index data operations - -## Usage - -```typescript -useIndicesQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, options: true, opClasses: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) -useIndexQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, options: true, opClasses: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) -useCreateIndexMutation({ selection: { fields: { id: true } } }) -useUpdateIndexMutation({ selection: { fields: { id: true } } }) -useDeleteIndexMutation({}) -``` - -## Examples - -### List all indices - -```typescript -const { data, isLoading } = useIndicesQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, options: true, opClasses: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a index - -```typescript -const { mutate } = useCreateIndexMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', tableId: '', name: '', fieldIds: '', includeFieldIds: '', accessMethod: '', indexParams: '', whereClause: '', isUnique: '', options: '', opClasses: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); -``` diff --git a/.agents/skills/hooks-public/references/inference-log-module.md b/.agents/skills/hooks-public/references/inference-log-module.md deleted file mode 100644 index 09627ca729..0000000000 --- a/.agents/skills/hooks-public/references/inference-log-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# inferenceLogModule - - - -React Query hooks for InferenceLogModule data operations - -## Usage - -```typescript -useInferenceLogModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } } }) -useInferenceLogModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } } }) -useCreateInferenceLogModuleMutation({ selection: { fields: { id: true } } }) -useUpdateInferenceLogModuleMutation({ selection: { fields: { id: true } } }) -useDeleteInferenceLogModuleMutation({}) -``` - -## Examples - -### List all inferenceLogModules - -```typescript -const { data, isLoading } = useInferenceLogModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } }, -}); -``` - -### Create a inferenceLogModule - -```typescript -const { mutate } = useCreateInferenceLogModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', inferenceLogTableId: '', inferenceLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '' }); -``` diff --git a/.agents/skills/hooks-public/references/init-empty-repo.md b/.agents/skills/hooks-public/references/init-empty-repo.md deleted file mode 100644 index a6c8e875b4..0000000000 --- a/.agents/skills/hooks-public/references/init-empty-repo.md +++ /dev/null @@ -1,20 +0,0 @@ -# initEmptyRepo - - - -React Query mutation hook for initEmptyRepo - -## Usage - -```typescript -const { mutate } = useInitEmptyRepoMutation(); mutate({ input: { dbId: '', storeId: '' } }); -``` - -## Examples - -### Use useInitEmptyRepoMutation - -```typescript -const { mutate, isLoading } = useInitEmptyRepoMutation(); -mutate({ input: { dbId: '', storeId: '' } }); -``` diff --git a/.agents/skills/hooks-public/references/insert-node-at-path.md b/.agents/skills/hooks-public/references/insert-node-at-path.md deleted file mode 100644 index cbcd48ca31..0000000000 --- a/.agents/skills/hooks-public/references/insert-node-at-path.md +++ /dev/null @@ -1,20 +0,0 @@ -# insertNodeAtPath - - - -React Query mutation hook for insertNodeAtPath - -## Usage - -```typescript -const { mutate } = useInsertNodeAtPathMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useInsertNodeAtPathMutation - -```typescript -const { mutate, isLoading } = useInsertNodeAtPathMutation(); -mutate({ input: '' }); -``` diff --git a/.agents/skills/hooks-public/references/invite.md b/.agents/skills/hooks-public/references/invite.md deleted file mode 100644 index 4348b90941..0000000000 --- a/.agents/skills/hooks-public/references/invite.md +++ /dev/null @@ -1,34 +0,0 @@ -# invite - - - -Invitation records sent to prospective members via email, with token-based redemption and expiration - -## Usage - -```typescript -useInvitesQuery({ selection: { fields: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true } } }) -useInviteQuery({ id: '', selection: { fields: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true } } }) -useCreateInviteMutation({ selection: { fields: { id: true } } }) -useUpdateInviteMutation({ selection: { fields: { id: true } } }) -useDeleteInviteMutation({}) -``` - -## Examples - -### List all invites - -```typescript -const { data, isLoading } = useInvitesQuery({ - selection: { fields: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a invite - -```typescript -const { mutate } = useCreateInviteMutation({ - selection: { fields: { id: true } }, -}); -mutate({ email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '' }); -``` diff --git a/.agents/skills/hooks-public/references/invites-module.md b/.agents/skills/hooks-public/references/invites-module.md deleted file mode 100644 index 10e3c4cd77..0000000000 --- a/.agents/skills/hooks-public/references/invites-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# invitesModule - - - -React Query hooks for InvitesModule data operations - -## Usage - -```typescript -useInvitesModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, prefix: true, membershipType: true, entityTableId: true } } }) -useInvitesModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, prefix: true, membershipType: true, entityTableId: true } } }) -useCreateInvitesModuleMutation({ selection: { fields: { id: true } } }) -useUpdateInvitesModuleMutation({ selection: { fields: { id: true } } }) -useDeleteInvitesModuleMutation({}) -``` - -## Examples - -### List all invitesModules - -```typescript -const { data, isLoading } = useInvitesModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, prefix: true, membershipType: true, entityTableId: true } }, -}); -``` - -### Create a invitesModule - -```typescript -const { mutate } = useCreateInvitesModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', emailsTableId: '', usersTableId: '', invitesTableId: '', claimedInvitesTableId: '', invitesTableName: '', claimedInvitesTableName: '', submitInviteCodeFunction: '', prefix: '', membershipType: '', entityTableId: '' }); -``` diff --git a/.agents/skills/hooks-public/references/levels-module.md b/.agents/skills/hooks-public/references/levels-module.md deleted file mode 100644 index 16ab95b842..0000000000 --- a/.agents/skills/hooks-public/references/levels-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# levelsModule - - - -React Query hooks for LevelsModule data operations - -## Usage - -```typescript -useLevelsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, stepsTableId: true, stepsTableName: true, achievementsTableId: true, achievementsTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, completedStep: true, incompletedStep: true, tgAchievement: true, tgAchievementToggle: true, tgAchievementToggleBoolean: true, tgAchievementBoolean: true, upsertAchievement: true, tgUpdateAchievements: true, stepsRequired: true, levelAchieved: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } } }) -useLevelsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, stepsTableId: true, stepsTableName: true, achievementsTableId: true, achievementsTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, completedStep: true, incompletedStep: true, tgAchievement: true, tgAchievementToggle: true, tgAchievementToggleBoolean: true, tgAchievementBoolean: true, upsertAchievement: true, tgUpdateAchievements: true, stepsRequired: true, levelAchieved: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } } }) -useCreateLevelsModuleMutation({ selection: { fields: { id: true } } }) -useUpdateLevelsModuleMutation({ selection: { fields: { id: true } } }) -useDeleteLevelsModuleMutation({}) -``` - -## Examples - -### List all levelsModules - -```typescript -const { data, isLoading } = useLevelsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, stepsTableId: true, stepsTableName: true, achievementsTableId: true, achievementsTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, completedStep: true, incompletedStep: true, tgAchievement: true, tgAchievementToggle: true, tgAchievementToggleBoolean: true, tgAchievementBoolean: true, upsertAchievement: true, tgUpdateAchievements: true, stepsRequired: true, levelAchieved: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } }, -}); -``` - -### Create a levelsModule - -```typescript -const { mutate } = useCreateLevelsModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', stepsTableId: '', stepsTableName: '', achievementsTableId: '', achievementsTableName: '', levelsTableId: '', levelsTableName: '', levelRequirementsTableId: '', levelRequirementsTableName: '', completedStep: '', incompletedStep: '', tgAchievement: '', tgAchievementToggle: '', tgAchievementToggleBoolean: '', tgAchievementBoolean: '', upsertAchievement: '', tgUpdateAchievements: '', stepsRequired: '', levelAchieved: '', prefix: '', membershipType: '', entityTableId: '', actorTableId: '' }); -``` diff --git a/.agents/skills/hooks-public/references/limits-module.md b/.agents/skills/hooks-public/references/limits-module.md deleted file mode 100644 index 99be4acd04..0000000000 --- a/.agents/skills/hooks-public/references/limits-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# limitsModule - - - -React Query hooks for LimitsModule data operations - -## Usage - -```typescript -useLimitsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, limitCreditsTableId: true, eventsTableId: true, creditCodesTableId: true, creditCodeItemsTableId: true, creditRedemptionsTableId: true, aggregateTableId: true, limitCapsTableId: true, limitCapsDefaultsTableId: true, capCheckTrigger: true, resolveCapFunction: true, limitWarningsTableId: true, limitWarningStateTableId: true, limitCheckSoftFunction: true, limitAggregateCheckSoftFunction: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } } }) -useLimitsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, limitCreditsTableId: true, eventsTableId: true, creditCodesTableId: true, creditCodeItemsTableId: true, creditRedemptionsTableId: true, aggregateTableId: true, limitCapsTableId: true, limitCapsDefaultsTableId: true, capCheckTrigger: true, resolveCapFunction: true, limitWarningsTableId: true, limitWarningStateTableId: true, limitCheckSoftFunction: true, limitAggregateCheckSoftFunction: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } } }) -useCreateLimitsModuleMutation({ selection: { fields: { id: true } } }) -useUpdateLimitsModuleMutation({ selection: { fields: { id: true } } }) -useDeleteLimitsModuleMutation({}) -``` - -## Examples - -### List all limitsModules - -```typescript -const { data, isLoading } = useLimitsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, limitCreditsTableId: true, eventsTableId: true, creditCodesTableId: true, creditCodeItemsTableId: true, creditRedemptionsTableId: true, aggregateTableId: true, limitCapsTableId: true, limitCapsDefaultsTableId: true, capCheckTrigger: true, resolveCapFunction: true, limitWarningsTableId: true, limitWarningStateTableId: true, limitCheckSoftFunction: true, limitAggregateCheckSoftFunction: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } }, -}); -``` - -### Create a limitsModule - -```typescript -const { mutate } = useCreateLimitsModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', limitIncrementFunction: '', limitDecrementFunction: '', limitIncrementTrigger: '', limitDecrementTrigger: '', limitUpdateTrigger: '', limitCheckFunction: '', limitCreditsTableId: '', eventsTableId: '', creditCodesTableId: '', creditCodeItemsTableId: '', creditRedemptionsTableId: '', aggregateTableId: '', limitCapsTableId: '', limitCapsDefaultsTableId: '', capCheckTrigger: '', resolveCapFunction: '', limitWarningsTableId: '', limitWarningStateTableId: '', limitCheckSoftFunction: '', limitAggregateCheckSoftFunction: '', prefix: '', membershipType: '', entityTableId: '', actorTableId: '' }); -``` diff --git a/.agents/skills/hooks-public/references/membership-type.md b/.agents/skills/hooks-public/references/membership-type.md deleted file mode 100644 index 6273754ce6..0000000000 --- a/.agents/skills/hooks-public/references/membership-type.md +++ /dev/null @@ -1,34 +0,0 @@ -# membershipType - - - -Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) - -## Usage - -```typescript -useMembershipTypesQuery({ selection: { fields: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } } }) -useMembershipTypeQuery({ id: '', selection: { fields: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } } }) -useCreateMembershipTypeMutation({ selection: { fields: { id: true } } }) -useUpdateMembershipTypeMutation({ selection: { fields: { id: true } } }) -useDeleteMembershipTypeMutation({}) -``` - -## Examples - -### List all membershipTypes - -```typescript -const { data, isLoading } = useMembershipTypesQuery({ - selection: { fields: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }, -}); -``` - -### Create a membershipType - -```typescript -const { mutate } = useCreateMembershipTypeMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '', description: '', prefix: '', parentMembershipType: '', hasUsersTableEntry: '' }); -``` diff --git a/.agents/skills/hooks-public/references/membership-types-module.md b/.agents/skills/hooks-public/references/membership-types-module.md deleted file mode 100644 index 27f4c7602d..0000000000 --- a/.agents/skills/hooks-public/references/membership-types-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# membershipTypesModule - - - -React Query hooks for MembershipTypesModule data operations - -## Usage - -```typescript -useMembershipTypesModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } } }) -useMembershipTypesModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } } }) -useCreateMembershipTypesModuleMutation({ selection: { fields: { id: true } } }) -useUpdateMembershipTypesModuleMutation({ selection: { fields: { id: true } } }) -useDeleteMembershipTypesModuleMutation({}) -``` - -## Examples - -### List all membershipTypesModules - -```typescript -const { data, isLoading } = useMembershipTypesModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }, -}); -``` - -### Create a membershipTypesModule - -```typescript -const { mutate } = useCreateMembershipTypesModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', tableId: '', tableName: '' }); -``` diff --git a/.agents/skills/hooks-public/references/memberships-module.md b/.agents/skills/hooks-public/references/memberships-module.md deleted file mode 100644 index c4f3463cc6..0000000000 --- a/.agents/skills/hooks-public/references/memberships-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# membershipsModule - - - -React Query hooks for MembershipsModule data operations - -## Usage - -```typescript -useMembershipsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, membershipType: true, entityTableId: true, entityTableOwnerId: true, prefix: true, getOrgFn: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, memberProfilesTableId: true } } }) -useMembershipsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, membershipType: true, entityTableId: true, entityTableOwnerId: true, prefix: true, getOrgFn: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, memberProfilesTableId: true } } }) -useCreateMembershipsModuleMutation({ selection: { fields: { id: true } } }) -useUpdateMembershipsModuleMutation({ selection: { fields: { id: true } } }) -useDeleteMembershipsModuleMutation({}) -``` - -## Examples - -### List all membershipsModules - -```typescript -const { data, isLoading } = useMembershipsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, membershipType: true, entityTableId: true, entityTableOwnerId: true, prefix: true, getOrgFn: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, memberProfilesTableId: true } }, -}); -``` - -### Create a membershipsModule - -```typescript -const { mutate } = useCreateMembershipsModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', membershipsTableId: '', membershipsTableName: '', membersTableId: '', membersTableName: '', membershipDefaultsTableId: '', membershipDefaultsTableName: '', membershipSettingsTableId: '', membershipSettingsTableName: '', grantsTableId: '', grantsTableName: '', actorTableId: '', limitsTableId: '', defaultLimitsTableId: '', permissionsTableId: '', defaultPermissionsTableId: '', sprtTableId: '', adminGrantsTableId: '', adminGrantsTableName: '', ownerGrantsTableId: '', ownerGrantsTableName: '', membershipType: '', entityTableId: '', entityTableOwnerId: '', prefix: '', getOrgFn: '', actorMaskCheck: '', actorPermCheck: '', entityIdsByMask: '', entityIdsByPerm: '', entityIdsFunction: '', memberProfilesTableId: '' }); -``` diff --git a/.agents/skills/hooks-public/references/merkle-store-module.md b/.agents/skills/hooks-public/references/merkle-store-module.md deleted file mode 100644 index c01756232b..0000000000 --- a/.agents/skills/hooks-public/references/merkle-store-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# merkleStoreModule - - - -React Query hooks for MerkleStoreModule data operations - -## Usage - -```typescript -useMerkleStoreModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, objectTableId: true, storeTableId: true, commitTableId: true, refTableId: true, prefix: true, apiName: true, privateApiName: true, scopeField: true, createdAt: true } } }) -useMerkleStoreModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, objectTableId: true, storeTableId: true, commitTableId: true, refTableId: true, prefix: true, apiName: true, privateApiName: true, scopeField: true, createdAt: true } } }) -useCreateMerkleStoreModuleMutation({ selection: { fields: { id: true } } }) -useUpdateMerkleStoreModuleMutation({ selection: { fields: { id: true } } }) -useDeleteMerkleStoreModuleMutation({}) -``` - -## Examples - -### List all merkleStoreModules - -```typescript -const { data, isLoading } = useMerkleStoreModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, objectTableId: true, storeTableId: true, commitTableId: true, refTableId: true, prefix: true, apiName: true, privateApiName: true, scopeField: true, createdAt: true } }, -}); -``` - -### Create a merkleStoreModule - -```typescript -const { mutate } = useCreateMerkleStoreModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', objectTableId: '', storeTableId: '', commitTableId: '', refTableId: '', prefix: '', apiName: '', privateApiName: '', scopeField: '' }); -``` diff --git a/.agents/skills/hooks-public/references/migrate-file.md b/.agents/skills/hooks-public/references/migrate-file.md deleted file mode 100644 index a0eddc5d55..0000000000 --- a/.agents/skills/hooks-public/references/migrate-file.md +++ /dev/null @@ -1,34 +0,0 @@ -# migrateFile - - - -React Query hooks for MigrateFile data operations - -## Usage - -```typescript -useMigrateFilesQuery({ selection: { fields: { id: true, databaseId: true, upload: true } } }) -useMigrateFileQuery({ id: '', selection: { fields: { id: true, databaseId: true, upload: true } } }) -useCreateMigrateFileMutation({ selection: { fields: { id: true } } }) -useUpdateMigrateFileMutation({ selection: { fields: { id: true } } }) -useDeleteMigrateFileMutation({}) -``` - -## Examples - -### List all migrateFiles - -```typescript -const { data, isLoading } = useMigrateFilesQuery({ - selection: { fields: { id: true, databaseId: true, upload: true } }, -}); -``` - -### Create a migrateFile - -```typescript -const { mutate } = useCreateMigrateFileMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', upload: '' }); -``` diff --git a/.agents/skills/hooks-public/references/namespace-module.md b/.agents/skills/hooks-public/references/namespace-module.md deleted file mode 100644 index f8af7e1900..0000000000 --- a/.agents/skills/hooks-public/references/namespace-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# namespaceModule - - - -React Query hooks for NamespaceModule data operations - -## Usage - -```typescript -useNamespaceModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, namespacesTableId: true, namespaceEventsTableId: true, namespacesTableName: true, namespaceEventsTableName: true, apiName: true, privateApiName: true, membershipType: true, key: true, entityTableId: true, policies: true, provisions: true } } }) -useNamespaceModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, namespacesTableId: true, namespaceEventsTableId: true, namespacesTableName: true, namespaceEventsTableName: true, apiName: true, privateApiName: true, membershipType: true, key: true, entityTableId: true, policies: true, provisions: true } } }) -useCreateNamespaceModuleMutation({ selection: { fields: { id: true } } }) -useUpdateNamespaceModuleMutation({ selection: { fields: { id: true } } }) -useDeleteNamespaceModuleMutation({}) -``` - -## Examples - -### List all namespaceModules - -```typescript -const { data, isLoading } = useNamespaceModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, namespacesTableId: true, namespaceEventsTableId: true, namespacesTableName: true, namespaceEventsTableName: true, apiName: true, privateApiName: true, membershipType: true, key: true, entityTableId: true, policies: true, provisions: true } }, -}); -``` - -### Create a namespaceModule - -```typescript -const { mutate } = useCreateNamespaceModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', namespacesTableId: '', namespaceEventsTableId: '', namespacesTableName: '', namespaceEventsTableName: '', apiName: '', privateApiName: '', membershipType: '', key: '', entityTableId: '', policies: '', provisions: '' }); -``` diff --git a/.agents/skills/hooks-public/references/node-type-registry.md b/.agents/skills/hooks-public/references/node-type-registry.md deleted file mode 100644 index cd5642e1e1..0000000000 --- a/.agents/skills/hooks-public/references/node-type-registry.md +++ /dev/null @@ -1,34 +0,0 @@ -# nodeTypeRegistry - - - -React Query hooks for NodeTypeRegistry data operations - -## Usage - -```typescript -useNodeTypeRegistriesQuery({ selection: { fields: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true } } }) -useNodeTypeRegistryQuery({ name: '', selection: { fields: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true } } }) -useCreateNodeTypeRegistryMutation({ selection: { fields: { name: true } } }) -useUpdateNodeTypeRegistryMutation({ selection: { fields: { name: true } } }) -useDeleteNodeTypeRegistryMutation({}) -``` - -## Examples - -### List all nodeTypeRegistries - -```typescript -const { data, isLoading } = useNodeTypeRegistriesQuery({ - selection: { fields: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true } }, -}); -``` - -### Create a nodeTypeRegistry - -```typescript -const { mutate } = useCreateNodeTypeRegistryMutation({ - selection: { fields: { name: true } }, -}); -mutate({ slug: '', category: '', displayName: '', description: '', parameterSchema: '', tags: '' }); -``` diff --git a/.agents/skills/hooks-public/references/notifications-module.md b/.agents/skills/hooks-public/references/notifications-module.md deleted file mode 100644 index d2d04828b1..0000000000 --- a/.agents/skills/hooks-public/references/notifications-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# notificationsModule - - - -React Query hooks for NotificationsModule data operations - -## Usage - -```typescript -useNotificationsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true } } }) -useNotificationsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true } } }) -useCreateNotificationsModuleMutation({ selection: { fields: { id: true } } }) -useUpdateNotificationsModuleMutation({ selection: { fields: { id: true } } }) -useDeleteNotificationsModuleMutation({}) -``` - -## Examples - -### List all notificationsModules - -```typescript -const { data, isLoading } = useNotificationsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true } }, -}); -``` - -### Create a notificationsModule - -```typescript -const { mutate } = useCreateNotificationsModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', notificationsTableId: '', readStateTableId: '', preferencesTableId: '', channelsTableId: '', deliveryLogTableId: '', ownerTableId: '', userSettingsTableId: '', organizationSettingsTableId: '', hasChannels: '', hasPreferences: '', hasSettingsExtension: '', hasDigestMetadata: '', hasSubscriptions: '' }); -``` diff --git a/.agents/skills/hooks-public/references/object.md b/.agents/skills/hooks-public/references/object.md deleted file mode 100644 index 02b80242e6..0000000000 --- a/.agents/skills/hooks-public/references/object.md +++ /dev/null @@ -1,34 +0,0 @@ -# object - - - -React Query hooks for Object data operations - -## Usage - -```typescript -useObjectsQuery({ selection: { fields: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } } }) -useObjectQuery({ id: '', selection: { fields: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } } }) -useCreateObjectMutation({ selection: { fields: { id: true } } }) -useUpdateObjectMutation({ selection: { fields: { id: true } } }) -useDeleteObjectMutation({}) -``` - -## Examples - -### List all objects - -```typescript -const { data, isLoading } = useObjectsQuery({ - selection: { fields: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }, -}); -``` - -### Create a object - -```typescript -const { mutate } = useCreateObjectMutation({ - selection: { fields: { id: true } }, -}); -mutate({ hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }); -``` diff --git a/.agents/skills/hooks-public/references/one-time-token.md b/.agents/skills/hooks-public/references/one-time-token.md deleted file mode 100644 index ad931a6988..0000000000 --- a/.agents/skills/hooks-public/references/one-time-token.md +++ /dev/null @@ -1,20 +0,0 @@ -# oneTimeToken - - - -React Query mutation hook for oneTimeToken - -## Usage - -```typescript -const { mutate } = useOneTimeTokenMutation(); mutate({ input: { email: '', password: '', origin: '', rememberMe: '' } }); -``` - -## Examples - -### Use useOneTimeTokenMutation - -```typescript -const { mutate, isLoading } = useOneTimeTokenMutation(); -mutate({ input: { email: '', password: '', origin: '', rememberMe: '' } }); -``` diff --git a/.agents/skills/hooks-public/references/org-admin-grant.md b/.agents/skills/hooks-public/references/org-admin-grant.md deleted file mode 100644 index 4f3bec6ee8..0000000000 --- a/.agents/skills/hooks-public/references/org-admin-grant.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgAdminGrant - - - -Records of admin role grants and revocations between members - -## Usage - -```typescript -useOrgAdminGrantsQuery({ selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } } }) -useOrgAdminGrantQuery({ id: '', selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } } }) -useCreateOrgAdminGrantMutation({ selection: { fields: { id: true } } }) -useUpdateOrgAdminGrantMutation({ selection: { fields: { id: true } } }) -useDeleteOrgAdminGrantMutation({}) -``` - -## Examples - -### List all orgAdminGrants - -```typescript -const { data, isLoading } = useOrgAdminGrantsQuery({ - selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a orgAdminGrant - -```typescript -const { mutate } = useCreateOrgAdminGrantMutation({ - selection: { fields: { id: true } }, -}); -mutate({ isGrant: '', actorId: '', entityId: '', grantorId: '' }); -``` diff --git a/.agents/skills/hooks-public/references/org-chart-edge-grant.md b/.agents/skills/hooks-public/references/org-chart-edge-grant.md deleted file mode 100644 index 620fca2c9f..0000000000 --- a/.agents/skills/hooks-public/references/org-chart-edge-grant.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgChartEdgeGrant - - - -Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table - -## Usage - -```typescript -useOrgChartEdgeGrantsQuery({ selection: { fields: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } } }) -useOrgChartEdgeGrantQuery({ id: '', selection: { fields: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } } }) -useCreateOrgChartEdgeGrantMutation({ selection: { fields: { id: true } } }) -useUpdateOrgChartEdgeGrantMutation({ selection: { fields: { id: true } } }) -useDeleteOrgChartEdgeGrantMutation({}) -``` - -## Examples - -### List all orgChartEdgeGrants - -```typescript -const { data, isLoading } = useOrgChartEdgeGrantsQuery({ - selection: { fields: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } }, -}); -``` - -### Create a orgChartEdgeGrant - -```typescript -const { mutate } = useCreateOrgChartEdgeGrantMutation({ - selection: { fields: { id: true } }, -}); -mutate({ entityId: '', childId: '', parentId: '', grantorId: '', isGrant: '', positionTitle: '', positionLevel: '' }); -``` diff --git a/.agents/skills/hooks-public/references/org-chart-edge.md b/.agents/skills/hooks-public/references/org-chart-edge.md deleted file mode 100644 index 16f28bf39d..0000000000 --- a/.agents/skills/hooks-public/references/org-chart-edge.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgChartEdge - - - -Organizational chart edges defining parent-child reporting relationships between members within an entity - -## Usage - -```typescript -useOrgChartEdgesQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } } }) -useOrgChartEdgeQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } } }) -useCreateOrgChartEdgeMutation({ selection: { fields: { id: true } } }) -useUpdateOrgChartEdgeMutation({ selection: { fields: { id: true } } }) -useDeleteOrgChartEdgeMutation({}) -``` - -## Examples - -### List all orgChartEdges - -```typescript -const { data, isLoading } = useOrgChartEdgesQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }, -}); -``` - -### Create a orgChartEdge - -```typescript -const { mutate } = useCreateOrgChartEdgeMutation({ - selection: { fields: { id: true } }, -}); -mutate({ entityId: '', childId: '', parentId: '', positionTitle: '', positionLevel: '' }); -``` diff --git a/.agents/skills/hooks-public/references/org-claimed-invite.md b/.agents/skills/hooks-public/references/org-claimed-invite.md deleted file mode 100644 index c8523766f1..0000000000 --- a/.agents/skills/hooks-public/references/org-claimed-invite.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgClaimedInvite - - - -Records of successfully claimed invitations, linking senders to receivers - -## Usage - -```typescript -useOrgClaimedInvitesQuery({ selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } } }) -useOrgClaimedInviteQuery({ id: '', selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } } }) -useCreateOrgClaimedInviteMutation({ selection: { fields: { id: true } } }) -useUpdateOrgClaimedInviteMutation({ selection: { fields: { id: true } } }) -useDeleteOrgClaimedInviteMutation({}) -``` - -## Examples - -### List all orgClaimedInvites - -```typescript -const { data, isLoading } = useOrgClaimedInvitesQuery({ - selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } }, -}); -``` - -### Create a orgClaimedInvite - -```typescript -const { mutate } = useCreateOrgClaimedInviteMutation({ - selection: { fields: { id: true } }, -}); -mutate({ data: '', senderId: '', receiverId: '', entityId: '' }); -``` diff --git a/.agents/skills/hooks-public/references/org-get-managers-record.md b/.agents/skills/hooks-public/references/org-get-managers-record.md deleted file mode 100644 index 280f06d93f..0000000000 --- a/.agents/skills/hooks-public/references/org-get-managers-record.md +++ /dev/null @@ -1,31 +0,0 @@ -# orgGetManagersRecord - - - -React Query hooks for OrgGetManagersRecord data operations - -## Usage - -```typescript -useOrgGetManagersQuery({ selection: { fields: { userId: true, depth: true } } }) -useCreateOrgGetManagersRecordMutation({ selection: { fields: { id: true } } }) -``` - -## Examples - -### List all orgGetManagers - -```typescript -const { data, isLoading } = useOrgGetManagersQuery({ - selection: { fields: { userId: true, depth: true } }, -}); -``` - -### Create a orgGetManagersRecord - -```typescript -const { mutate } = useCreateOrgGetManagersRecordMutation({ - selection: { fields: { id: true } }, -}); -mutate({ userId: '', depth: '' }); -``` diff --git a/.agents/skills/hooks-public/references/org-get-subordinates-record.md b/.agents/skills/hooks-public/references/org-get-subordinates-record.md deleted file mode 100644 index b87003b4b3..0000000000 --- a/.agents/skills/hooks-public/references/org-get-subordinates-record.md +++ /dev/null @@ -1,31 +0,0 @@ -# orgGetSubordinatesRecord - - - -React Query hooks for OrgGetSubordinatesRecord data operations - -## Usage - -```typescript -useOrgGetSubordinatesQuery({ selection: { fields: { userId: true, depth: true } } }) -useCreateOrgGetSubordinatesRecordMutation({ selection: { fields: { id: true } } }) -``` - -## Examples - -### List all orgGetSubordinates - -```typescript -const { data, isLoading } = useOrgGetSubordinatesQuery({ - selection: { fields: { userId: true, depth: true } }, -}); -``` - -### Create a orgGetSubordinatesRecord - -```typescript -const { mutate } = useCreateOrgGetSubordinatesRecordMutation({ - selection: { fields: { id: true } }, -}); -mutate({ userId: '', depth: '' }); -``` diff --git a/.agents/skills/hooks-public/references/org-grant.md b/.agents/skills/hooks-public/references/org-grant.md deleted file mode 100644 index a53b2af739..0000000000 --- a/.agents/skills/hooks-public/references/org-grant.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgGrant - - - -Records of individual permission grants and revocations for members via bitmask - -## Usage - -```typescript -useOrgGrantsQuery({ selection: { fields: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } } }) -useOrgGrantQuery({ id: '', selection: { fields: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } } }) -useCreateOrgGrantMutation({ selection: { fields: { id: true } } }) -useUpdateOrgGrantMutation({ selection: { fields: { id: true } } }) -useDeleteOrgGrantMutation({}) -``` - -## Examples - -### List all orgGrants - -```typescript -const { data, isLoading } = useOrgGrantsQuery({ - selection: { fields: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a orgGrant - -```typescript -const { mutate } = useCreateOrgGrantMutation({ - selection: { fields: { id: true } }, -}); -mutate({ permissions: '', isGrant: '', actorId: '', entityId: '', grantorId: '' }); -``` diff --git a/.agents/skills/hooks-public/references/org-invite.md b/.agents/skills/hooks-public/references/org-invite.md deleted file mode 100644 index 50f21ac319..0000000000 --- a/.agents/skills/hooks-public/references/org-invite.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgInvite - - - -Invitation records sent to prospective members via email, with token-based redemption and expiration - -## Usage - -```typescript -useOrgInvitesQuery({ selection: { fields: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, isReadOnly: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } } }) -useOrgInviteQuery({ id: '', selection: { fields: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, isReadOnly: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } } }) -useCreateOrgInviteMutation({ selection: { fields: { id: true } } }) -useUpdateOrgInviteMutation({ selection: { fields: { id: true } } }) -useDeleteOrgInviteMutation({}) -``` - -## Examples - -### List all orgInvites - -```typescript -const { data, isLoading } = useOrgInvitesQuery({ - selection: { fields: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, isReadOnly: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }, -}); -``` - -### Create a orgInvite - -```typescript -const { mutate } = useCreateOrgInviteMutation({ - selection: { fields: { id: true } }, -}); -mutate({ email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', isReadOnly: '', expiresAt: '', entityId: '' }); -``` diff --git a/.agents/skills/hooks-public/references/org-is-manager-of.md b/.agents/skills/hooks-public/references/org-is-manager-of.md deleted file mode 100644 index 025fe22c6d..0000000000 --- a/.agents/skills/hooks-public/references/org-is-manager-of.md +++ /dev/null @@ -1,19 +0,0 @@ -# orgIsManagerOf - - - -React Query query hook for orgIsManagerOf - -## Usage - -```typescript -useOrgIsManagerOfQuery({ pEntityId: '', pManagerId: '', pUserId: '', pMaxDepth: '' }) -``` - -## Examples - -### Use useOrgIsManagerOfQuery - -```typescript -const { data, isLoading } = useOrgIsManagerOfQuery({ pEntityId: '', pManagerId: '', pUserId: '', pMaxDepth: '' }); -``` diff --git a/.agents/skills/hooks-public/references/org-limit-aggregate.md b/.agents/skills/hooks-public/references/org-limit-aggregate.md deleted file mode 100644 index b6393046ff..0000000000 --- a/.agents/skills/hooks-public/references/org-limit-aggregate.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgLimitAggregate - - - -Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) - -## Usage - -```typescript -useOrgLimitAggregatesQuery({ selection: { fields: { id: true, name: true, entityId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, reserved: true, organizationId: true, entityType: true } } }) -useOrgLimitAggregateQuery({ id: '', selection: { fields: { id: true, name: true, entityId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, reserved: true, organizationId: true, entityType: true } } }) -useCreateOrgLimitAggregateMutation({ selection: { fields: { id: true } } }) -useUpdateOrgLimitAggregateMutation({ selection: { fields: { id: true } } }) -useDeleteOrgLimitAggregateMutation({}) -``` - -## Examples - -### List all orgLimitAggregates - -```typescript -const { data, isLoading } = useOrgLimitAggregatesQuery({ - selection: { fields: { id: true, name: true, entityId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, reserved: true, organizationId: true, entityType: true } }, -}); -``` - -### Create a orgLimitAggregate - -```typescript -const { mutate } = useCreateOrgLimitAggregateMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '', entityId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '', reserved: '', organizationId: '', entityType: '' }); -``` diff --git a/.agents/skills/hooks-public/references/org-limit-cap.md b/.agents/skills/hooks-public/references/org-limit-cap.md deleted file mode 100644 index 8ab258d56c..0000000000 --- a/.agents/skills/hooks-public/references/org-limit-cap.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgLimitCap - - - -Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. - -## Usage - -```typescript -useOrgLimitCapsQuery({ selection: { fields: { id: true, name: true, entityId: true, max: true } } }) -useOrgLimitCapQuery({ id: '', selection: { fields: { id: true, name: true, entityId: true, max: true } } }) -useCreateOrgLimitCapMutation({ selection: { fields: { id: true } } }) -useUpdateOrgLimitCapMutation({ selection: { fields: { id: true } } }) -useDeleteOrgLimitCapMutation({}) -``` - -## Examples - -### List all orgLimitCaps - -```typescript -const { data, isLoading } = useOrgLimitCapsQuery({ - selection: { fields: { id: true, name: true, entityId: true, max: true } }, -}); -``` - -### Create a orgLimitCap - -```typescript -const { mutate } = useCreateOrgLimitCapMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '', entityId: '', max: '' }); -``` diff --git a/.agents/skills/hooks-public/references/org-limit-caps-default.md b/.agents/skills/hooks-public/references/org-limit-caps-default.md deleted file mode 100644 index 7c0a14b6da..0000000000 --- a/.agents/skills/hooks-public/references/org-limit-caps-default.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgLimitCapsDefault - - - -Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. - -## Usage - -```typescript -useOrgLimitCapsDefaultsQuery({ selection: { fields: { id: true, name: true, max: true } } }) -useOrgLimitCapsDefaultQuery({ id: '', selection: { fields: { id: true, name: true, max: true } } }) -useCreateOrgLimitCapsDefaultMutation({ selection: { fields: { id: true } } }) -useUpdateOrgLimitCapsDefaultMutation({ selection: { fields: { id: true } } }) -useDeleteOrgLimitCapsDefaultMutation({}) -``` - -## Examples - -### List all orgLimitCapsDefaults - -```typescript -const { data, isLoading } = useOrgLimitCapsDefaultsQuery({ - selection: { fields: { id: true, name: true, max: true } }, -}); -``` - -### Create a orgLimitCapsDefault - -```typescript -const { mutate } = useCreateOrgLimitCapsDefaultMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '', max: '' }); -``` diff --git a/.agents/skills/hooks-public/references/org-limit-credit.md b/.agents/skills/hooks-public/references/org-limit-credit.md deleted file mode 100644 index a23f6f2c43..0000000000 --- a/.agents/skills/hooks-public/references/org-limit-credit.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgLimitCredit - - - -Append-only ledger of credit grants that automatically update limit ceilings - -## Usage - -```typescript -useOrgLimitCreditsQuery({ selection: { fields: { id: true, defaultLimitId: true, actorId: true, entityId: true, amount: true, creditType: true, reason: true } } }) -useOrgLimitCreditQuery({ id: '', selection: { fields: { id: true, defaultLimitId: true, actorId: true, entityId: true, amount: true, creditType: true, reason: true } } }) -useCreateOrgLimitCreditMutation({ selection: { fields: { id: true } } }) -useUpdateOrgLimitCreditMutation({ selection: { fields: { id: true } } }) -useDeleteOrgLimitCreditMutation({}) -``` - -## Examples - -### List all orgLimitCredits - -```typescript -const { data, isLoading } = useOrgLimitCreditsQuery({ - selection: { fields: { id: true, defaultLimitId: true, actorId: true, entityId: true, amount: true, creditType: true, reason: true } }, -}); -``` - -### Create a orgLimitCredit - -```typescript -const { mutate } = useCreateOrgLimitCreditMutation({ - selection: { fields: { id: true } }, -}); -mutate({ defaultLimitId: '', actorId: '', entityId: '', amount: '', creditType: '', reason: '' }); -``` diff --git a/.agents/skills/hooks-public/references/org-limit-default.md b/.agents/skills/hooks-public/references/org-limit-default.md deleted file mode 100644 index 343480af82..0000000000 --- a/.agents/skills/hooks-public/references/org-limit-default.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgLimitDefault - - - -Default maximum values for each named limit, applied when no per-actor override exists - -## Usage - -```typescript -useOrgLimitDefaultsQuery({ selection: { fields: { id: true, name: true, max: true, softMax: true } } }) -useOrgLimitDefaultQuery({ id: '', selection: { fields: { id: true, name: true, max: true, softMax: true } } }) -useCreateOrgLimitDefaultMutation({ selection: { fields: { id: true } } }) -useUpdateOrgLimitDefaultMutation({ selection: { fields: { id: true } } }) -useDeleteOrgLimitDefaultMutation({}) -``` - -## Examples - -### List all orgLimitDefaults - -```typescript -const { data, isLoading } = useOrgLimitDefaultsQuery({ - selection: { fields: { id: true, name: true, max: true, softMax: true } }, -}); -``` - -### Create a orgLimitDefault - -```typescript -const { mutate } = useCreateOrgLimitDefaultMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '', max: '', softMax: '' }); -``` diff --git a/.agents/skills/hooks-public/references/org-limit-event.md b/.agents/skills/hooks-public/references/org-limit-event.md deleted file mode 100644 index 2ac2bb1bd4..0000000000 --- a/.agents/skills/hooks-public/references/org-limit-event.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgLimitEvent - - - -Append-only log of limit events for historical reporting and audit - -## Usage - -```typescript -useOrgLimitEventsQuery({ selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } } }) -useOrgLimitEventQuery({ id: '', selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } } }) -useCreateOrgLimitEventMutation({ selection: { fields: { id: true } } }) -useUpdateOrgLimitEventMutation({ selection: { fields: { id: true } } }) -useDeleteOrgLimitEventMutation({}) -``` - -## Examples - -### List all orgLimitEvents - -```typescript -const { data, isLoading } = useOrgLimitEventsQuery({ - selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }, -}); -``` - -### Create a orgLimitEvent - -```typescript -const { mutate } = useCreateOrgLimitEventMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '', actorId: '', entityId: '', organizationId: '', entityType: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }); -``` diff --git a/.agents/skills/hooks-public/references/org-limit-warning.md b/.agents/skills/hooks-public/references/org-limit-warning.md deleted file mode 100644 index da526e5870..0000000000 --- a/.agents/skills/hooks-public/references/org-limit-warning.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgLimitWarning - - - -Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. - -## Usage - -```typescript -useOrgLimitWarningsQuery({ selection: { fields: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true, entityId: true } } }) -useOrgLimitWarningQuery({ id: '', selection: { fields: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true, entityId: true } } }) -useCreateOrgLimitWarningMutation({ selection: { fields: { id: true } } }) -useUpdateOrgLimitWarningMutation({ selection: { fields: { id: true } } }) -useDeleteOrgLimitWarningMutation({}) -``` - -## Examples - -### List all orgLimitWarnings - -```typescript -const { data, isLoading } = useOrgLimitWarningsQuery({ - selection: { fields: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true, entityId: true } }, -}); -``` - -### Create a orgLimitWarning - -```typescript -const { mutate } = useCreateOrgLimitWarningMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '', warningType: '', thresholdValue: '', taskIdentifier: '', entityId: '' }); -``` diff --git a/.agents/skills/hooks-public/references/org-limit.md b/.agents/skills/hooks-public/references/org-limit.md deleted file mode 100644 index 1fbfda8c71..0000000000 --- a/.agents/skills/hooks-public/references/org-limit.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgLimit - - - -Tracks per-actor usage counts against configurable maximum limits - -## Usage - -```typescript -useOrgLimitsQuery({ selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, entityId: true, organizationId: true, entityType: true } } }) -useOrgLimitQuery({ id: '', selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, entityId: true, organizationId: true, entityType: true } } }) -useCreateOrgLimitMutation({ selection: { fields: { id: true } } }) -useUpdateOrgLimitMutation({ selection: { fields: { id: true } } }) -useDeleteOrgLimitMutation({}) -``` - -## Examples - -### List all orgLimits - -```typescript -const { data, isLoading } = useOrgLimitsQuery({ - selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, entityId: true, organizationId: true, entityType: true } }, -}); -``` - -### Create a orgLimit - -```typescript -const { mutate } = useCreateOrgLimitMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '', entityId: '', organizationId: '', entityType: '' }); -``` diff --git a/.agents/skills/hooks-public/references/org-member-profile.md b/.agents/skills/hooks-public/references/org-member-profile.md deleted file mode 100644 index 6db233a609..0000000000 --- a/.agents/skills/hooks-public/references/org-member-profile.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgMemberProfile - - - -Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) - -## Usage - -```typescript -useOrgMemberProfilesQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, membershipId: true, entityId: true, actorId: true, displayName: true, email: true, title: true, bio: true, profilePicture: true } } }) -useOrgMemberProfileQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, membershipId: true, entityId: true, actorId: true, displayName: true, email: true, title: true, bio: true, profilePicture: true } } }) -useCreateOrgMemberProfileMutation({ selection: { fields: { id: true } } }) -useUpdateOrgMemberProfileMutation({ selection: { fields: { id: true } } }) -useDeleteOrgMemberProfileMutation({}) -``` - -## Examples - -### List all orgMemberProfiles - -```typescript -const { data, isLoading } = useOrgMemberProfilesQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, membershipId: true, entityId: true, actorId: true, displayName: true, email: true, title: true, bio: true, profilePicture: true } }, -}); -``` - -### Create a orgMemberProfile - -```typescript -const { mutate } = useCreateOrgMemberProfileMutation({ - selection: { fields: { id: true } }, -}); -mutate({ membershipId: '', entityId: '', actorId: '', displayName: '', email: '', title: '', bio: '', profilePicture: '' }); -``` diff --git a/.agents/skills/hooks-public/references/org-member.md b/.agents/skills/hooks-public/references/org-member.md deleted file mode 100644 index 8f2e89d798..0000000000 --- a/.agents/skills/hooks-public/references/org-member.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgMember - - - -Simplified view of active members in an entity, used for listing who belongs to an org or group - -## Usage - -```typescript -useOrgMembersQuery({ selection: { fields: { id: true, isAdmin: true, actorId: true, entityId: true } } }) -useOrgMemberQuery({ id: '', selection: { fields: { id: true, isAdmin: true, actorId: true, entityId: true } } }) -useCreateOrgMemberMutation({ selection: { fields: { id: true } } }) -useUpdateOrgMemberMutation({ selection: { fields: { id: true } } }) -useDeleteOrgMemberMutation({}) -``` - -## Examples - -### List all orgMembers - -```typescript -const { data, isLoading } = useOrgMembersQuery({ - selection: { fields: { id: true, isAdmin: true, actorId: true, entityId: true } }, -}); -``` - -### Create a orgMember - -```typescript -const { mutate } = useCreateOrgMemberMutation({ - selection: { fields: { id: true } }, -}); -mutate({ isAdmin: '', actorId: '', entityId: '' }); -``` diff --git a/.agents/skills/hooks-public/references/org-membership-default.md b/.agents/skills/hooks-public/references/org-membership-default.md deleted file mode 100644 index e3aa21101a..0000000000 --- a/.agents/skills/hooks-public/references/org-membership-default.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgMembershipDefault - - - -Default membership settings per entity, controlling initial approval and verification state for new members - -## Usage - -```typescript -useOrgMembershipDefaultsQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } } }) -useOrgMembershipDefaultQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } } }) -useCreateOrgMembershipDefaultMutation({ selection: { fields: { id: true } } }) -useUpdateOrgMembershipDefaultMutation({ selection: { fields: { id: true } } }) -useDeleteOrgMembershipDefaultMutation({}) -``` - -## Examples - -### List all orgMembershipDefaults - -```typescript -const { data, isLoading } = useOrgMembershipDefaultsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }, -}); -``` - -### Create a orgMembershipDefault - -```typescript -const { mutate } = useCreateOrgMembershipDefaultMutation({ - selection: { fields: { id: true } }, -}); -mutate({ createdBy: '', updatedBy: '', isApproved: '', entityId: '' }); -``` diff --git a/.agents/skills/hooks-public/references/org-membership-setting.md b/.agents/skills/hooks-public/references/org-membership-setting.md deleted file mode 100644 index e3bc7d179f..0000000000 --- a/.agents/skills/hooks-public/references/org-membership-setting.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgMembershipSetting - - - -Per-entity settings for the memberships module - -## Usage - -```typescript -useOrgMembershipSettingsQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } } }) -useOrgMembershipSettingQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } } }) -useCreateOrgMembershipSettingMutation({ selection: { fields: { id: true } } }) -useUpdateOrgMembershipSettingMutation({ selection: { fields: { id: true } } }) -useDeleteOrgMembershipSettingMutation({}) -``` - -## Examples - -### List all orgMembershipSettings - -```typescript -const { data, isLoading } = useOrgMembershipSettingsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }, -}); -``` - -### Create a orgMembershipSetting - -```typescript -const { mutate } = useCreateOrgMembershipSettingMutation({ - selection: { fields: { id: true } }, -}); -mutate({ createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', inviteProfileAssignmentMode: '', populateMemberEmail: '', limitAllocationMode: '' }); -``` diff --git a/.agents/skills/hooks-public/references/org-membership.md b/.agents/skills/hooks-public/references/org-membership.md deleted file mode 100644 index b2e4cf040c..0000000000 --- a/.agents/skills/hooks-public/references/org-membership.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgMembership - - - -Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status - -## Usage - -```typescript -useOrgMembershipsQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } } }) -useOrgMembershipQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } } }) -useCreateOrgMembershipMutation({ selection: { fields: { id: true } } }) -useUpdateOrgMembershipMutation({ selection: { fields: { id: true } } }) -useDeleteOrgMembershipMutation({}) -``` - -## Examples - -### List all orgMemberships - -```typescript -const { data, isLoading } = useOrgMembershipsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } }, -}); -``` - -### Create a orgMembership - -```typescript -const { mutate } = useCreateOrgMembershipMutation({ - selection: { fields: { id: true } }, -}); -mutate({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isExternal: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', isReadOnly: '', profileId: '' }); -``` diff --git a/.agents/skills/hooks-public/references/org-owner-grant.md b/.agents/skills/hooks-public/references/org-owner-grant.md deleted file mode 100644 index 471eac1878..0000000000 --- a/.agents/skills/hooks-public/references/org-owner-grant.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgOwnerGrant - - - -Records of ownership transfers and grants between members - -## Usage - -```typescript -useOrgOwnerGrantsQuery({ selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } } }) -useOrgOwnerGrantQuery({ id: '', selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } } }) -useCreateOrgOwnerGrantMutation({ selection: { fields: { id: true } } }) -useUpdateOrgOwnerGrantMutation({ selection: { fields: { id: true } } }) -useDeleteOrgOwnerGrantMutation({}) -``` - -## Examples - -### List all orgOwnerGrants - -```typescript -const { data, isLoading } = useOrgOwnerGrantsQuery({ - selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a orgOwnerGrant - -```typescript -const { mutate } = useCreateOrgOwnerGrantMutation({ - selection: { fields: { id: true } }, -}); -mutate({ isGrant: '', actorId: '', entityId: '', grantorId: '' }); -``` diff --git a/.agents/skills/hooks-public/references/org-permission-default.md b/.agents/skills/hooks-public/references/org-permission-default.md deleted file mode 100644 index f9c23deb23..0000000000 --- a/.agents/skills/hooks-public/references/org-permission-default.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgPermissionDefault - - - -Stores the default permission bitmask assigned to new members upon joining - -## Usage - -```typescript -useOrgPermissionDefaultsQuery({ selection: { fields: { id: true, permissions: true, entityId: true } } }) -useOrgPermissionDefaultQuery({ id: '', selection: { fields: { id: true, permissions: true, entityId: true } } }) -useCreateOrgPermissionDefaultMutation({ selection: { fields: { id: true } } }) -useUpdateOrgPermissionDefaultMutation({ selection: { fields: { id: true } } }) -useDeleteOrgPermissionDefaultMutation({}) -``` - -## Examples - -### List all orgPermissionDefaults - -```typescript -const { data, isLoading } = useOrgPermissionDefaultsQuery({ - selection: { fields: { id: true, permissions: true, entityId: true } }, -}); -``` - -### Create a orgPermissionDefault - -```typescript -const { mutate } = useCreateOrgPermissionDefaultMutation({ - selection: { fields: { id: true } }, -}); -mutate({ permissions: '', entityId: '' }); -``` diff --git a/.agents/skills/hooks-public/references/org-permission.md b/.agents/skills/hooks-public/references/org-permission.md deleted file mode 100644 index 297ab5dff2..0000000000 --- a/.agents/skills/hooks-public/references/org-permission.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgPermission - - - -Defines available permissions as named bits within a bitmask, used by the RBAC system for access control - -## Usage - -```typescript -useOrgPermissionsQuery({ selection: { fields: { id: true, name: true, bitnum: true, bitstr: true, description: true } } }) -useOrgPermissionQuery({ id: '', selection: { fields: { id: true, name: true, bitnum: true, bitstr: true, description: true } } }) -useCreateOrgPermissionMutation({ selection: { fields: { id: true } } }) -useUpdateOrgPermissionMutation({ selection: { fields: { id: true } } }) -useDeleteOrgPermissionMutation({}) -``` - -## Examples - -### List all orgPermissions - -```typescript -const { data, isLoading } = useOrgPermissionsQuery({ - selection: { fields: { id: true, name: true, bitnum: true, bitstr: true, description: true } }, -}); -``` - -### Create a orgPermission - -```typescript -const { mutate } = useCreateOrgPermissionMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '', bitnum: '', bitstr: '', description: '' }); -``` diff --git a/.agents/skills/hooks-public/references/org-permissions-get-by-mask.md b/.agents/skills/hooks-public/references/org-permissions-get-by-mask.md deleted file mode 100644 index e9699c8452..0000000000 --- a/.agents/skills/hooks-public/references/org-permissions-get-by-mask.md +++ /dev/null @@ -1,19 +0,0 @@ -# orgPermissionsGetByMask - - - -Reads and enables pagination through a set of `OrgPermission`. - -## Usage - -```typescript -useOrgPermissionsGetByMaskQuery({ mask: '', first: '', offset: '', after: '' }) -``` - -## Examples - -### Use useOrgPermissionsGetByMaskQuery - -```typescript -const { data, isLoading } = useOrgPermissionsGetByMaskQuery({ mask: '', first: '', offset: '', after: '' }); -``` diff --git a/.agents/skills/hooks-public/references/org-permissions-get-mask-by-names.md b/.agents/skills/hooks-public/references/org-permissions-get-mask-by-names.md deleted file mode 100644 index 18296a0852..0000000000 --- a/.agents/skills/hooks-public/references/org-permissions-get-mask-by-names.md +++ /dev/null @@ -1,19 +0,0 @@ -# orgPermissionsGetMaskByNames - - - -React Query query hook for orgPermissionsGetMaskByNames - -## Usage - -```typescript -useOrgPermissionsGetMaskByNamesQuery({ names: '' }) -``` - -## Examples - -### Use useOrgPermissionsGetMaskByNamesQuery - -```typescript -const { data, isLoading } = useOrgPermissionsGetMaskByNamesQuery({ names: '' }); -``` diff --git a/.agents/skills/hooks-public/references/org-permissions-get-mask.md b/.agents/skills/hooks-public/references/org-permissions-get-mask.md deleted file mode 100644 index 90c6e8d79c..0000000000 --- a/.agents/skills/hooks-public/references/org-permissions-get-mask.md +++ /dev/null @@ -1,19 +0,0 @@ -# orgPermissionsGetMask - - - -React Query query hook for orgPermissionsGetMask - -## Usage - -```typescript -useOrgPermissionsGetMaskQuery({ ids: '' }) -``` - -## Examples - -### Use useOrgPermissionsGetMaskQuery - -```typescript -const { data, isLoading } = useOrgPermissionsGetMaskQuery({ ids: '' }); -``` diff --git a/.agents/skills/hooks-public/references/org-permissions-get-padded-mask.md b/.agents/skills/hooks-public/references/org-permissions-get-padded-mask.md deleted file mode 100644 index 2e8bf1bd7f..0000000000 --- a/.agents/skills/hooks-public/references/org-permissions-get-padded-mask.md +++ /dev/null @@ -1,19 +0,0 @@ -# orgPermissionsGetPaddedMask - - - -React Query query hook for orgPermissionsGetPaddedMask - -## Usage - -```typescript -useOrgPermissionsGetPaddedMaskQuery({ mask: '' }) -``` - -## Examples - -### Use useOrgPermissionsGetPaddedMaskQuery - -```typescript -const { data, isLoading } = useOrgPermissionsGetPaddedMaskQuery({ mask: '' }); -``` diff --git a/.agents/skills/hooks-public/references/partition.md b/.agents/skills/hooks-public/references/partition.md deleted file mode 100644 index e771d96117..0000000000 --- a/.agents/skills/hooks-public/references/partition.md +++ /dev/null @@ -1,34 +0,0 @@ -# partition - - - -React Query hooks for Partition data operations - -## Usage - -```typescript -usePartitionsQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, strategy: true, partitionKeyId: true, interval: true, retention: true, retentionKeepTable: true, premake: true, namingPattern: true, isParented: true, createdAt: true, updatedAt: true } } }) -usePartitionQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, strategy: true, partitionKeyId: true, interval: true, retention: true, retentionKeepTable: true, premake: true, namingPattern: true, isParented: true, createdAt: true, updatedAt: true } } }) -useCreatePartitionMutation({ selection: { fields: { id: true } } }) -useUpdatePartitionMutation({ selection: { fields: { id: true } } }) -useDeletePartitionMutation({}) -``` - -## Examples - -### List all partitions - -```typescript -const { data, isLoading } = usePartitionsQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, strategy: true, partitionKeyId: true, interval: true, retention: true, retentionKeepTable: true, premake: true, namingPattern: true, isParented: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a partition - -```typescript -const { mutate } = useCreatePartitionMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', tableId: '', strategy: '', partitionKeyId: '', interval: '', retention: '', retentionKeepTable: '', premake: '', namingPattern: '', isParented: '' }); -``` diff --git a/.agents/skills/hooks-public/references/permissions-module.md b/.agents/skills/hooks-public/references/permissions-module.md deleted file mode 100644 index 0c95d4221a..0000000000 --- a/.agents/skills/hooks-public/references/permissions-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# permissionsModule - - - -React Query hooks for PermissionsModule data operations - -## Usage - -```typescript -usePermissionsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, membershipType: true, entityTableId: true, actorTableId: true, prefix: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true } } }) -usePermissionsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, membershipType: true, entityTableId: true, actorTableId: true, prefix: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true } } }) -useCreatePermissionsModuleMutation({ selection: { fields: { id: true } } }) -useUpdatePermissionsModuleMutation({ selection: { fields: { id: true } } }) -useDeletePermissionsModuleMutation({}) -``` - -## Examples - -### List all permissionsModules - -```typescript -const { data, isLoading } = usePermissionsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, membershipType: true, entityTableId: true, actorTableId: true, prefix: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true } }, -}); -``` - -### Create a permissionsModule - -```typescript -const { mutate } = useCreatePermissionsModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', bitlen: '', membershipType: '', entityTableId: '', actorTableId: '', prefix: '', getPaddedMask: '', getMask: '', getByMask: '', getMaskByName: '' }); -``` diff --git a/.agents/skills/hooks-public/references/phone-number.md b/.agents/skills/hooks-public/references/phone-number.md deleted file mode 100644 index 609666f3b6..0000000000 --- a/.agents/skills/hooks-public/references/phone-number.md +++ /dev/null @@ -1,34 +0,0 @@ -# phoneNumber - - - -User phone numbers with country code, verification, and primary-number management - -## Usage - -```typescript -usePhoneNumbersQuery({ selection: { fields: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, name: true, createdAt: true, updatedAt: true } } }) -usePhoneNumberQuery({ id: '', selection: { fields: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, name: true, createdAt: true, updatedAt: true } } }) -useCreatePhoneNumberMutation({ selection: { fields: { id: true } } }) -useUpdatePhoneNumberMutation({ selection: { fields: { id: true } } }) -useDeletePhoneNumberMutation({}) -``` - -## Examples - -### List all phoneNumbers - -```typescript -const { data, isLoading } = usePhoneNumbersQuery({ - selection: { fields: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, name: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a phoneNumber - -```typescript -const { mutate } = useCreatePhoneNumberMutation({ - selection: { fields: { id: true } }, -}); -mutate({ ownerId: '', cc: '', number: '', isVerified: '', isPrimary: '', name: '' }); -``` diff --git a/.agents/skills/hooks-public/references/phone-numbers-module.md b/.agents/skills/hooks-public/references/phone-numbers-module.md deleted file mode 100644 index 9d2c3d57e1..0000000000 --- a/.agents/skills/hooks-public/references/phone-numbers-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# phoneNumbersModule - - - -React Query hooks for PhoneNumbersModule data operations - -## Usage - -```typescript -usePhoneNumbersModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } } }) -usePhoneNumbersModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } } }) -useCreatePhoneNumbersModuleMutation({ selection: { fields: { id: true } } }) -useUpdatePhoneNumbersModuleMutation({ selection: { fields: { id: true } } }) -useDeletePhoneNumbersModuleMutation({}) -``` - -## Examples - -### List all phoneNumbersModules - -```typescript -const { data, isLoading } = usePhoneNumbersModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }, -}); -``` - -### Create a phoneNumbersModule - -```typescript -const { mutate } = useCreatePhoneNumbersModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }); -``` diff --git a/.agents/skills/hooks-public/references/plans-module.md b/.agents/skills/hooks-public/references/plans-module.md deleted file mode 100644 index 163208f368..0000000000 --- a/.agents/skills/hooks-public/references/plans-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# plansModule - - - -React Query hooks for PlansModule data operations - -## Usage - -```typescript -usePlansModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, plansTableId: true, plansTableName: true, planLimitsTableId: true, planLimitsTableName: true, planPricingTableId: true, planOverridesTableId: true, applyPlanFunction: true, applyPlanAggregateFunction: true, prefix: true } } }) -usePlansModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, plansTableId: true, plansTableName: true, planLimitsTableId: true, planLimitsTableName: true, planPricingTableId: true, planOverridesTableId: true, applyPlanFunction: true, applyPlanAggregateFunction: true, prefix: true } } }) -useCreatePlansModuleMutation({ selection: { fields: { id: true } } }) -useUpdatePlansModuleMutation({ selection: { fields: { id: true } } }) -useDeletePlansModuleMutation({}) -``` - -## Examples - -### List all plansModules - -```typescript -const { data, isLoading } = usePlansModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, plansTableId: true, plansTableName: true, planLimitsTableId: true, planLimitsTableName: true, planPricingTableId: true, planOverridesTableId: true, applyPlanFunction: true, applyPlanAggregateFunction: true, prefix: true } }, -}); -``` - -### Create a plansModule - -```typescript -const { mutate } = useCreatePlansModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', plansTableId: '', plansTableName: '', planLimitsTableId: '', planLimitsTableName: '', planPricingTableId: '', planOverridesTableId: '', applyPlanFunction: '', applyPlanAggregateFunction: '', prefix: '' }); -``` diff --git a/.agents/skills/hooks-public/references/policy.md b/.agents/skills/hooks-public/references/policy.md deleted file mode 100644 index cc92cfd044..0000000000 --- a/.agents/skills/hooks-public/references/policy.md +++ /dev/null @@ -1,34 +0,0 @@ -# policy - - - -React Query hooks for Policy data operations - -## Usage - -```typescript -usePoliciesQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) -usePolicyQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) -useCreatePolicyMutation({ selection: { fields: { id: true } } }) -useUpdatePolicyMutation({ selection: { fields: { id: true } } }) -useDeletePolicyMutation({}) -``` - -## Examples - -### List all policies - -```typescript -const { data, isLoading } = usePoliciesQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a policy - -```typescript -const { mutate } = useCreatePolicyMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', tableId: '', name: '', granteeName: '', privilege: '', permissive: '', disabled: '', policyType: '', data: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); -``` diff --git a/.agents/skills/hooks-public/references/primary-key-constraint.md b/.agents/skills/hooks-public/references/primary-key-constraint.md deleted file mode 100644 index 8f79348d32..0000000000 --- a/.agents/skills/hooks-public/references/primary-key-constraint.md +++ /dev/null @@ -1,34 +0,0 @@ -# primaryKeyConstraint - - - -React Query hooks for PrimaryKeyConstraint data operations - -## Usage - -```typescript -usePrimaryKeyConstraintsQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) -usePrimaryKeyConstraintQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) -useCreatePrimaryKeyConstraintMutation({ selection: { fields: { id: true } } }) -useUpdatePrimaryKeyConstraintMutation({ selection: { fields: { id: true } } }) -useDeletePrimaryKeyConstraintMutation({}) -``` - -## Examples - -### List all primaryKeyConstraints - -```typescript -const { data, isLoading } = usePrimaryKeyConstraintsQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a primaryKeyConstraint - -```typescript -const { mutate } = useCreatePrimaryKeyConstraintMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', tableId: '', name: '', type: '', fieldIds: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); -``` diff --git a/.agents/skills/hooks-public/references/profiles-module.md b/.agents/skills/hooks-public/references/profiles-module.md deleted file mode 100644 index 35df45579b..0000000000 --- a/.agents/skills/hooks-public/references/profiles-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# profilesModule - - - -React Query hooks for ProfilesModule data operations - -## Usage - -```typescript -useProfilesModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } } }) -useProfilesModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } } }) -useCreateProfilesModuleMutation({ selection: { fields: { id: true } } }) -useUpdateProfilesModuleMutation({ selection: { fields: { id: true } } }) -useDeleteProfilesModuleMutation({}) -``` - -## Examples - -### List all profilesModules - -```typescript -const { data, isLoading } = useProfilesModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } }, -}); -``` - -### Create a profilesModule - -```typescript -const { mutate } = useCreateProfilesModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', profileTemplatesTableId: '', profileTemplatesTableName: '', membershipType: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', prefix: '' }); -``` diff --git a/.agents/skills/hooks-public/references/provision-bucket.md b/.agents/skills/hooks-public/references/provision-bucket.md deleted file mode 100644 index e003fc5551..0000000000 --- a/.agents/skills/hooks-public/references/provision-bucket.md +++ /dev/null @@ -1,23 +0,0 @@ -# provisionBucket - - - -Provision an S3 bucket for a logical bucket in the database. -Reads the bucket config via RLS, then creates and configures -the S3 bucket with the appropriate privacy policies, CORS rules, -and lifecycle settings. - -## Usage - -```typescript -const { mutate } = useProvisionBucketMutation(); mutate({ input: { bucketKey: '', ownerId: '' } }); -``` - -## Examples - -### Use useProvisionBucketMutation - -```typescript -const { mutate, isLoading } = useProvisionBucketMutation(); -mutate({ input: { bucketKey: '', ownerId: '' } }); -``` diff --git a/.agents/skills/hooks-public/references/provision-check-constraint.md b/.agents/skills/hooks-public/references/provision-check-constraint.md deleted file mode 100644 index f2a75b484b..0000000000 --- a/.agents/skills/hooks-public/references/provision-check-constraint.md +++ /dev/null @@ -1,20 +0,0 @@ -# provisionCheckConstraint - - - -Creates a check constraint on a table from a $type + data blueprint definition. Supports: CheckOneOf (enum validation via = ANY(ARRAY[...])), CheckGreaterThan (single-column > value or cross-column), CheckLessThan (single-column < value or cross-column), CheckNotEqual (cross-column inequality). Builds AST expressions via ast_helpers and inserts into metaschema_public.check_constraint. Graceful: skips if a constraint with the same name already exists. - -## Usage - -```typescript -const { mutate } = useProvisionCheckConstraintMutation(); mutate({ input: { databaseId: '', tableId: '', definition: '' } }); -``` - -## Examples - -### Use useProvisionCheckConstraintMutation - -```typescript -const { mutate, isLoading } = useProvisionCheckConstraintMutation(); -mutate({ input: { databaseId: '', tableId: '', definition: '' } }); -``` diff --git a/.agents/skills/hooks-public/references/provision-database-with-user.md b/.agents/skills/hooks-public/references/provision-database-with-user.md deleted file mode 100644 index 1dd3707557..0000000000 --- a/.agents/skills/hooks-public/references/provision-database-with-user.md +++ /dev/null @@ -1,20 +0,0 @@ -# provisionDatabaseWithUser - - - -React Query mutation hook for provisionDatabaseWithUser - -## Usage - -```typescript -const { mutate } = useProvisionDatabaseWithUserMutation(); mutate({ input: { pDatabaseName: '', pDomain: '', pSubdomain: '', pModules: '', pOptions: '' } }); -``` - -## Examples - -### Use useProvisionDatabaseWithUserMutation - -```typescript -const { mutate, isLoading } = useProvisionDatabaseWithUserMutation(); -mutate({ input: { pDatabaseName: '', pDomain: '', pSubdomain: '', pModules: '', pOptions: '' } }); -``` diff --git a/.agents/skills/hooks-public/references/provision-full-text-search.md b/.agents/skills/hooks-public/references/provision-full-text-search.md deleted file mode 100644 index f44c7ec250..0000000000 --- a/.agents/skills/hooks-public/references/provision-full-text-search.md +++ /dev/null @@ -1,20 +0,0 @@ -# provisionFullTextSearch - - - -Creates a full-text search configuration on a table. Accepts a jsonb definition with field (tsvector column name) and sources (array of {field, weight, lang}). Graceful: skips if FTS config already exists for the same (table_id, field_id). Returns the fts_id. - -## Usage - -```typescript -const { mutate } = useProvisionFullTextSearchMutation(); mutate({ input: { databaseId: '', tableId: '', definition: '' } }); -``` - -## Examples - -### Use useProvisionFullTextSearchMutation - -```typescript -const { mutate, isLoading } = useProvisionFullTextSearchMutation(); -mutate({ input: { databaseId: '', tableId: '', definition: '' } }); -``` diff --git a/.agents/skills/hooks-public/references/provision-index.md b/.agents/skills/hooks-public/references/provision-index.md deleted file mode 100644 index 55b6769e1d..0000000000 --- a/.agents/skills/hooks-public/references/provision-index.md +++ /dev/null @@ -1,20 +0,0 @@ -# provisionIndex - - - -Creates an index on a table. Accepts a jsonb definition with columns (array of names or single column string), access_method (default BTREE), is_unique, op_classes, options, and name (auto-generated if omitted). Graceful: skips if an index with the same (table_id, field_ids, access_method) already exists. Returns the index_id. - -## Usage - -```typescript -const { mutate } = useProvisionIndexMutation(); mutate({ input: { databaseId: '', tableId: '', definition: '' } }); -``` - -## Examples - -### Use useProvisionIndexMutation - -```typescript -const { mutate, isLoading } = useProvisionIndexMutation(); -mutate({ input: { databaseId: '', tableId: '', definition: '' } }); -``` diff --git a/.agents/skills/hooks-public/references/provision-new-user.md b/.agents/skills/hooks-public/references/provision-new-user.md deleted file mode 100644 index b9b1f9abe5..0000000000 --- a/.agents/skills/hooks-public/references/provision-new-user.md +++ /dev/null @@ -1,20 +0,0 @@ -# provisionNewUser - - - -React Query mutation hook for provisionNewUser - -## Usage - -```typescript -const { mutate } = useProvisionNewUserMutation(); mutate({ input: { email: '', password: '' } }); -``` - -## Examples - -### Use useProvisionNewUserMutation - -```typescript -const { mutate, isLoading } = useProvisionNewUserMutation(); -mutate({ input: { email: '', password: '' } }); -``` diff --git a/.agents/skills/hooks-public/references/provision-relation.md b/.agents/skills/hooks-public/references/provision-relation.md deleted file mode 100644 index 54eb612139..0000000000 --- a/.agents/skills/hooks-public/references/provision-relation.md +++ /dev/null @@ -1,20 +0,0 @@ -# provisionRelation - - - -Composable relation provisioning: creates FK fields, indexes, unique constraints, and junction tables depending on the relation_type. Supports RelationBelongsTo, RelationHasOne, RelationHasMany, and RelationManyToMany. ManyToMany uses provision_table() internally for junction table creation with full node/grant/policy support. All operations are graceful (skip existing). Returns (out_field_id, out_junction_table_id, out_source_field_id, out_target_field_id). - -## Usage - -```typescript -const { mutate } = useProvisionRelationMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useProvisionRelationMutation - -```typescript -const { mutate, isLoading } = useProvisionRelationMutation(); -mutate({ input: '' }); -``` diff --git a/.agents/skills/hooks-public/references/provision-spatial-relation.md b/.agents/skills/hooks-public/references/provision-spatial-relation.md deleted file mode 100644 index 9392c24136..0000000000 --- a/.agents/skills/hooks-public/references/provision-spatial-relation.md +++ /dev/null @@ -1,20 +0,0 @@ -# provisionSpatialRelation - - - -Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row declaring a spatial predicate between two geometry/geography columns (owner and target). Called from construct_blueprint when a relation entry has $type=RelationSpatial. Graceful: re-running with the same (source_table_id, name) returns the existing id without modifying the row. Operator whitelist and st_dwithin ↔ param_name pairing are enforced by the spatial_relation table CHECKs. Both fields must already exist — this is a metadata-only insert. - -## Usage - -```typescript -const { mutate } = useProvisionSpatialRelationMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useProvisionSpatialRelationMutation - -```typescript -const { mutate, isLoading } = useProvisionSpatialRelationMutation(); -mutate({ input: '' }); -``` diff --git a/.agents/skills/hooks-public/references/provision-table.md b/.agents/skills/hooks-public/references/provision-table.md deleted file mode 100644 index 0f8ec3553f..0000000000 --- a/.agents/skills/hooks-public/references/provision-table.md +++ /dev/null @@ -1,20 +0,0 @@ -# provisionTable - - - -Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). - -## Usage - -```typescript -const { mutate } = useProvisionTableMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useProvisionTableMutation - -```typescript -const { mutate, isLoading } = useProvisionTableMutation(); -mutate({ input: '' }); -``` diff --git a/.agents/skills/hooks-public/references/provision-unique-constraint.md b/.agents/skills/hooks-public/references/provision-unique-constraint.md deleted file mode 100644 index d7017a6d63..0000000000 --- a/.agents/skills/hooks-public/references/provision-unique-constraint.md +++ /dev/null @@ -1,20 +0,0 @@ -# provisionUniqueConstraint - - - -Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists. - -## Usage - -```typescript -const { mutate } = useProvisionUniqueConstraintMutation(); mutate({ input: { databaseId: '', tableId: '', definition: '' } }); -``` - -## Examples - -### Use useProvisionUniqueConstraintMutation - -```typescript -const { mutate, isLoading } = useProvisionUniqueConstraintMutation(); -mutate({ input: { databaseId: '', tableId: '', definition: '' } }); -``` diff --git a/.agents/skills/hooks-public/references/pubkey-setting.md b/.agents/skills/hooks-public/references/pubkey-setting.md deleted file mode 100644 index 6670f28134..0000000000 --- a/.agents/skills/hooks-public/references/pubkey-setting.md +++ /dev/null @@ -1,34 +0,0 @@ -# pubkeySetting - - - -Per-database public-key crypto auth runtime configuration; typed replacement for api_modules pubkey_challenge JSONB entries - -## Usage - -```typescript -usePubkeySettingsQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, cryptoNetwork: true, userField: true, signUpWithKeyFunctionId: true, signInRequestChallengeFunctionId: true, signInRecordFailureFunctionId: true, signInWithChallengeFunctionId: true } } }) -usePubkeySettingQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, cryptoNetwork: true, userField: true, signUpWithKeyFunctionId: true, signInRequestChallengeFunctionId: true, signInRecordFailureFunctionId: true, signInWithChallengeFunctionId: true } } }) -useCreatePubkeySettingMutation({ selection: { fields: { id: true } } }) -useUpdatePubkeySettingMutation({ selection: { fields: { id: true } } }) -useDeletePubkeySettingMutation({}) -``` - -## Examples - -### List all pubkeySettings - -```typescript -const { data, isLoading } = usePubkeySettingsQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, cryptoNetwork: true, userField: true, signUpWithKeyFunctionId: true, signInRequestChallengeFunctionId: true, signInRecordFailureFunctionId: true, signInWithChallengeFunctionId: true } }, -}); -``` - -### Create a pubkeySetting - -```typescript -const { mutate } = useCreatePubkeySettingMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', cryptoNetwork: '', userField: '', signUpWithKeyFunctionId: '', signInRequestChallengeFunctionId: '', signInRecordFailureFunctionId: '', signInWithChallengeFunctionId: '' }); -``` diff --git a/.agents/skills/hooks-public/references/rate-limit-meters-module.md b/.agents/skills/hooks-public/references/rate-limit-meters-module.md deleted file mode 100644 index 31e66a95df..0000000000 --- a/.agents/skills/hooks-public/references/rate-limit-meters-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# rateLimitMetersModule - - - -React Query hooks for RateLimitMetersModule data operations - -## Usage - -```typescript -useRateLimitMetersModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, checkRateLimitFunction: true, prefix: true } } }) -useRateLimitMetersModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, checkRateLimitFunction: true, prefix: true } } }) -useCreateRateLimitMetersModuleMutation({ selection: { fields: { id: true } } }) -useUpdateRateLimitMetersModuleMutation({ selection: { fields: { id: true } } }) -useDeleteRateLimitMetersModuleMutation({}) -``` - -## Examples - -### List all rateLimitMetersModules - -```typescript -const { data, isLoading } = useRateLimitMetersModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, checkRateLimitFunction: true, prefix: true } }, -}); -``` - -### Create a rateLimitMetersModule - -```typescript -const { mutate } = useCreateRateLimitMetersModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', rateLimitStateTableId: '', rateLimitStateTableName: '', rateLimitOverridesTableId: '', rateLimitOverridesTableName: '', rateWindowLimitsTableId: '', rateWindowLimitsTableName: '', checkRateLimitFunction: '', prefix: '' }); -``` diff --git a/.agents/skills/hooks-public/references/rate-limits-module.md b/.agents/skills/hooks-public/references/rate-limits-module.md deleted file mode 100644 index a9e75c6503..0000000000 --- a/.agents/skills/hooks-public/references/rate-limits-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# rateLimitsModule - - - -React Query hooks for RateLimitsModule data operations - -## Usage - -```typescript -useRateLimitsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, rateLimitSettingsTableId: true, ipRateLimitsTableId: true, rateLimitsTableId: true, rateLimitSettingsTable: true, ipRateLimitsTable: true, rateLimitsTable: true } } }) -useRateLimitsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, rateLimitSettingsTableId: true, ipRateLimitsTableId: true, rateLimitsTableId: true, rateLimitSettingsTable: true, ipRateLimitsTable: true, rateLimitsTable: true } } }) -useCreateRateLimitsModuleMutation({ selection: { fields: { id: true } } }) -useUpdateRateLimitsModuleMutation({ selection: { fields: { id: true } } }) -useDeleteRateLimitsModuleMutation({}) -``` - -## Examples - -### List all rateLimitsModules - -```typescript -const { data, isLoading } = useRateLimitsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, rateLimitSettingsTableId: true, ipRateLimitsTableId: true, rateLimitsTableId: true, rateLimitSettingsTable: true, ipRateLimitsTable: true, rateLimitsTable: true } }, -}); -``` - -### Create a rateLimitsModule - -```typescript -const { mutate } = useCreateRateLimitsModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', rateLimitSettingsTableId: '', ipRateLimitsTableId: '', rateLimitsTableId: '', rateLimitSettingsTable: '', ipRateLimitsTable: '', rateLimitsTable: '' }); -``` diff --git a/.agents/skills/hooks-public/references/realtime-module.md b/.agents/skills/hooks-public/references/realtime-module.md deleted file mode 100644 index 56265f72b6..0000000000 --- a/.agents/skills/hooks-public/references/realtime-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# realtimeModule - - - -React Query hooks for RealtimeModule data operations - -## Usage - -```typescript -useRealtimeModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, subscriptionsSchemaId: true, changeLogTableId: true, listenerNodeTableId: true, sourceRegistryTableId: true, retentionHours: true, premake: true, interval: true, notifyChannel: true } } }) -useRealtimeModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, subscriptionsSchemaId: true, changeLogTableId: true, listenerNodeTableId: true, sourceRegistryTableId: true, retentionHours: true, premake: true, interval: true, notifyChannel: true } } }) -useCreateRealtimeModuleMutation({ selection: { fields: { id: true } } }) -useUpdateRealtimeModuleMutation({ selection: { fields: { id: true } } }) -useDeleteRealtimeModuleMutation({}) -``` - -## Examples - -### List all realtimeModules - -```typescript -const { data, isLoading } = useRealtimeModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, subscriptionsSchemaId: true, changeLogTableId: true, listenerNodeTableId: true, sourceRegistryTableId: true, retentionHours: true, premake: true, interval: true, notifyChannel: true } }, -}); -``` - -### Create a realtimeModule - -```typescript -const { mutate } = useCreateRealtimeModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', subscriptionsSchemaId: '', changeLogTableId: '', listenerNodeTableId: '', sourceRegistryTableId: '', retentionHours: '', premake: '', interval: '', notifyChannel: '' }); -``` diff --git a/.agents/skills/hooks-public/references/ref.md b/.agents/skills/hooks-public/references/ref.md deleted file mode 100644 index ec187041d4..0000000000 --- a/.agents/skills/hooks-public/references/ref.md +++ /dev/null @@ -1,34 +0,0 @@ -# ref - - - -A ref is a data structure for pointing to a commit. - -## Usage - -```typescript -useRefsQuery({ selection: { fields: { id: true, name: true, databaseId: true, storeId: true, commitId: true } } }) -useRefQuery({ id: '', selection: { fields: { id: true, name: true, databaseId: true, storeId: true, commitId: true } } }) -useCreateRefMutation({ selection: { fields: { id: true } } }) -useUpdateRefMutation({ selection: { fields: { id: true } } }) -useDeleteRefMutation({}) -``` - -## Examples - -### List all refs - -```typescript -const { data, isLoading } = useRefsQuery({ - selection: { fields: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }, -}); -``` - -### Create a ref - -```typescript -const { mutate } = useCreateRefMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '', databaseId: '', storeId: '', commitId: '' }); -``` diff --git a/.agents/skills/hooks-public/references/reject-database-transfer.md b/.agents/skills/hooks-public/references/reject-database-transfer.md deleted file mode 100644 index cea99bc49b..0000000000 --- a/.agents/skills/hooks-public/references/reject-database-transfer.md +++ /dev/null @@ -1,20 +0,0 @@ -# rejectDatabaseTransfer - - - -React Query mutation hook for rejectDatabaseTransfer - -## Usage - -```typescript -const { mutate } = useRejectDatabaseTransferMutation(); mutate({ input: { transferId: '' } }); -``` - -## Examples - -### Use useRejectDatabaseTransferMutation - -```typescript -const { mutate, isLoading } = useRejectDatabaseTransferMutation(); -mutate({ input: { transferId: '' } }); -``` diff --git a/.agents/skills/hooks-public/references/relation-provision.md b/.agents/skills/hooks-public/references/relation-provision.md deleted file mode 100644 index 430fe55c68..0000000000 --- a/.agents/skills/hooks-public/references/relation-provision.md +++ /dev/null @@ -1,41 +0,0 @@ -# relationProvision - - - -Provisions relational structure between tables. Supports four relation types: - - RelationBelongsTo: adds a FK field on the source table referencing the target table (child perspective: "tasks belongs to projects" -> tasks.project_id). - - RelationHasMany: adds a FK field on the target table referencing the source table (parent perspective: "projects has many tasks" -> tasks.project_id). Inverse of BelongsTo. - - RelationHasOne: adds a FK field with a unique constraint on the source table referencing the target table. Also supports shared-primary-key patterns where the FK field IS the primary key (set field_name to the existing PK field name). - - RelationManyToMany: creates a junction table with FK fields to both source and target tables, delegating table creation and security to secure_table_provision. - This is a one-and-done structural provisioner. To layer additional security onto junction tables after creation, use secure_table_provision directly. - All operations are graceful: existing fields, FK constraints, and unique constraints are reused if found. - The trigger never injects values the caller did not provide. All security config is forwarded to secure_table_provision as-is. - -## Usage - -```typescript -useRelationProvisionsQuery({ selection: { fields: { id: true, databaseId: true, relationType: true, sourceTableId: true, targetTableId: true, fieldName: true, deleteAction: true, isRequired: true, apiRequired: true, junctionTableId: true, junctionTableName: true, junctionSchemaId: true, sourceFieldName: true, targetFieldName: true, useCompositeKey: true, createIndex: true, exposeInApi: true, nodes: true, grants: true, policies: true, outFieldId: true, outJunctionTableId: true, outSourceFieldId: true, outTargetFieldId: true } } }) -useRelationProvisionQuery({ id: '', selection: { fields: { id: true, databaseId: true, relationType: true, sourceTableId: true, targetTableId: true, fieldName: true, deleteAction: true, isRequired: true, apiRequired: true, junctionTableId: true, junctionTableName: true, junctionSchemaId: true, sourceFieldName: true, targetFieldName: true, useCompositeKey: true, createIndex: true, exposeInApi: true, nodes: true, grants: true, policies: true, outFieldId: true, outJunctionTableId: true, outSourceFieldId: true, outTargetFieldId: true } } }) -useCreateRelationProvisionMutation({ selection: { fields: { id: true } } }) -useUpdateRelationProvisionMutation({ selection: { fields: { id: true } } }) -useDeleteRelationProvisionMutation({}) -``` - -## Examples - -### List all relationProvisions - -```typescript -const { data, isLoading } = useRelationProvisionsQuery({ - selection: { fields: { id: true, databaseId: true, relationType: true, sourceTableId: true, targetTableId: true, fieldName: true, deleteAction: true, isRequired: true, apiRequired: true, junctionTableId: true, junctionTableName: true, junctionSchemaId: true, sourceFieldName: true, targetFieldName: true, useCompositeKey: true, createIndex: true, exposeInApi: true, nodes: true, grants: true, policies: true, outFieldId: true, outJunctionTableId: true, outSourceFieldId: true, outTargetFieldId: true } }, -}); -``` - -### Create a relationProvision - -```typescript -const { mutate } = useCreateRelationProvisionMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', relationType: '', sourceTableId: '', targetTableId: '', fieldName: '', deleteAction: '', isRequired: '', apiRequired: '', junctionTableId: '', junctionTableName: '', junctionSchemaId: '', sourceFieldName: '', targetFieldName: '', useCompositeKey: '', createIndex: '', exposeInApi: '', nodes: '', grants: '', policies: '', outFieldId: '', outJunctionTableId: '', outSourceFieldId: '', outTargetFieldId: '' }); -``` diff --git a/.agents/skills/hooks-public/references/remove-node-at-path.md b/.agents/skills/hooks-public/references/remove-node-at-path.md deleted file mode 100644 index 49129cd05c..0000000000 --- a/.agents/skills/hooks-public/references/remove-node-at-path.md +++ /dev/null @@ -1,20 +0,0 @@ -# removeNodeAtPath - - - -React Query mutation hook for removeNodeAtPath - -## Usage - -```typescript -const { mutate } = useRemoveNodeAtPathMutation(); mutate({ input: { dbId: '', root: '', path: '' } }); -``` - -## Examples - -### Use useRemoveNodeAtPathMutation - -```typescript -const { mutate, isLoading } = useRemoveNodeAtPathMutation(); -mutate({ input: { dbId: '', root: '', path: '' } }); -``` diff --git a/.agents/skills/hooks-public/references/request-cross-origin-token.md b/.agents/skills/hooks-public/references/request-cross-origin-token.md deleted file mode 100644 index dbd58cba0f..0000000000 --- a/.agents/skills/hooks-public/references/request-cross-origin-token.md +++ /dev/null @@ -1,20 +0,0 @@ -# requestCrossOriginToken - - - -React Query mutation hook for requestCrossOriginToken - -## Usage - -```typescript -const { mutate } = useRequestCrossOriginTokenMutation(); mutate({ input: { email: '', password: '', origin: '', rememberMe: '' } }); -``` - -## Examples - -### Use useRequestCrossOriginTokenMutation - -```typescript -const { mutate, isLoading } = useRequestCrossOriginTokenMutation(); -mutate({ input: { email: '', password: '', origin: '', rememberMe: '' } }); -``` diff --git a/.agents/skills/hooks-public/references/request-upload-url.md b/.agents/skills/hooks-public/references/request-upload-url.md deleted file mode 100644 index 9be983e132..0000000000 --- a/.agents/skills/hooks-public/references/request-upload-url.md +++ /dev/null @@ -1,23 +0,0 @@ -# requestUploadUrl - - - -Request a presigned URL for uploading a file directly to S3. -Client computes SHA-256 of the file content and provides it here. -If a file with the same hash already exists (dedup), returns the -existing file ID and deduplicated=true with no uploadUrl. - -## Usage - -```typescript -const { mutate } = useRequestUploadUrlMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useRequestUploadUrlMutation - -```typescript -const { mutate, isLoading } = useRequestUploadUrlMutation(); -mutate({ input: '' }); -``` diff --git a/.agents/skills/hooks-public/references/require-step-up.md b/.agents/skills/hooks-public/references/require-step-up.md deleted file mode 100644 index 2870af2cb0..0000000000 --- a/.agents/skills/hooks-public/references/require-step-up.md +++ /dev/null @@ -1,19 +0,0 @@ -# requireStepUp - - - -React Query query hook for requireStepUp - -## Usage - -```typescript -useRequireStepUpQuery({ stepUpType: '' }) -``` - -## Examples - -### Use useRequireStepUpQuery - -```typescript -const { data, isLoading } = useRequireStepUpQuery({ stepUpType: '' }); -``` diff --git a/.agents/skills/hooks-public/references/reset-password.md b/.agents/skills/hooks-public/references/reset-password.md deleted file mode 100644 index c53ada109b..0000000000 --- a/.agents/skills/hooks-public/references/reset-password.md +++ /dev/null @@ -1,20 +0,0 @@ -# resetPassword - - - -React Query mutation hook for resetPassword - -## Usage - -```typescript -const { mutate } = useResetPasswordMutation(); mutate({ input: { roleId: '', resetToken: '', newPassword: '' } }); -``` - -## Examples - -### Use useResetPasswordMutation - -```typescript -const { mutate, isLoading } = useResetPasswordMutation(); -mutate({ input: { roleId: '', resetToken: '', newPassword: '' } }); -``` diff --git a/.agents/skills/hooks-public/references/resolve-blueprint-field.md b/.agents/skills/hooks-public/references/resolve-blueprint-field.md deleted file mode 100644 index 703251d083..0000000000 --- a/.agents/skills/hooks-public/references/resolve-blueprint-field.md +++ /dev/null @@ -1,19 +0,0 @@ -# resolveBlueprintField - - - -Resolves a field_name within a given table_id to a field_id. Throws if no match is found. Used by construct_blueprint to translate user-authored field names (e.g. "location") into field UUIDs for downstream provisioning procedures. table_id must already be resolved (via resolve_blueprint_table) before calling this. - -## Usage - -```typescript -useResolveBlueprintFieldQuery({ databaseId: '', tableId: '', fieldName: '' }) -``` - -## Examples - -### Use useResolveBlueprintFieldQuery - -```typescript -const { data, isLoading } = useResolveBlueprintFieldQuery({ databaseId: '', tableId: '', fieldName: '' }); -``` diff --git a/.agents/skills/hooks-public/references/resolve-blueprint-table.md b/.agents/skills/hooks-public/references/resolve-blueprint-table.md deleted file mode 100644 index d28ed938f3..0000000000 --- a/.agents/skills/hooks-public/references/resolve-blueprint-table.md +++ /dev/null @@ -1,19 +0,0 @@ -# resolveBlueprintTable - - - -Resolves a table_name (with optional schema_name) to a table_id. Resolution order: (1) if schema_name provided, exact lookup via metaschema_public.schema.name + metaschema_public.table; (2) check local table_map (tables created in current blueprint); (3) search metaschema_public.table by name across all schemas; (4) if multiple matches, throw ambiguous error asking for schema_name; (5) if no match, throw not-found error. - -## Usage - -```typescript -useResolveBlueprintTableQuery({ databaseId: '', tableName: '', schemaName: '', tableMap: '', defaultSchemaId: '' }) -``` - -## Examples - -### Use useResolveBlueprintTableQuery - -```typescript -const { data, isLoading } = useResolveBlueprintTableQuery({ databaseId: '', tableName: '', schemaName: '', tableMap: '', defaultSchemaId: '' }); -``` diff --git a/.agents/skills/hooks-public/references/rev-parse.md b/.agents/skills/hooks-public/references/rev-parse.md deleted file mode 100644 index eaaf37b062..0000000000 --- a/.agents/skills/hooks-public/references/rev-parse.md +++ /dev/null @@ -1,19 +0,0 @@ -# revParse - - - -React Query query hook for revParse - -## Usage - -```typescript -useRevParseQuery({ dbId: '', storeId: '', refname: '' }) -``` - -## Examples - -### Use useRevParseQuery - -```typescript -const { data, isLoading } = useRevParseQuery({ dbId: '', storeId: '', refname: '' }); -``` diff --git a/.agents/skills/hooks-public/references/revoke-api-key.md b/.agents/skills/hooks-public/references/revoke-api-key.md deleted file mode 100644 index 36399905a0..0000000000 --- a/.agents/skills/hooks-public/references/revoke-api-key.md +++ /dev/null @@ -1,20 +0,0 @@ -# revokeApiKey - - - -React Query mutation hook for revokeApiKey - -## Usage - -```typescript -const { mutate } = useRevokeApiKeyMutation(); mutate({ input: { keyId: '' } }); -``` - -## Examples - -### Use useRevokeApiKeyMutation - -```typescript -const { mutate, isLoading } = useRevokeApiKeyMutation(); -mutate({ input: { keyId: '' } }); -``` diff --git a/.agents/skills/hooks-public/references/revoke-session.md b/.agents/skills/hooks-public/references/revoke-session.md deleted file mode 100644 index 81c0bb6182..0000000000 --- a/.agents/skills/hooks-public/references/revoke-session.md +++ /dev/null @@ -1,20 +0,0 @@ -# revokeSession - - - -React Query mutation hook for revokeSession - -## Usage - -```typescript -const { mutate } = useRevokeSessionMutation(); mutate({ input: { sessionId: '' } }); -``` - -## Examples - -### Use useRevokeSessionMutation - -```typescript -const { mutate, isLoading } = useRevokeSessionMutation(); -mutate({ input: { sessionId: '' } }); -``` diff --git a/.agents/skills/hooks-public/references/rls-module.md b/.agents/skills/hooks-public/references/rls-module.md deleted file mode 100644 index 8dc27b63a6..0000000000 --- a/.agents/skills/hooks-public/references/rls-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# rlsModule - - - -React Query hooks for RlsModule data operations - -## Usage - -```typescript -useRlsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true, authenticate: true, authenticateStrict: true, currentRole: true, currentRoleId: true } } }) -useRlsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true, authenticate: true, authenticateStrict: true, currentRole: true, currentRoleId: true } } }) -useCreateRlsModuleMutation({ selection: { fields: { id: true } } }) -useUpdateRlsModuleMutation({ selection: { fields: { id: true } } }) -useDeleteRlsModuleMutation({}) -``` - -## Examples - -### List all rlsModules - -```typescript -const { data, isLoading } = useRlsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true, authenticate: true, authenticateStrict: true, currentRole: true, currentRoleId: true } }, -}); -``` - -### Create a rlsModule - -```typescript -const { mutate } = useCreateRlsModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', sessionCredentialsTableId: '', sessionsTableId: '', usersTableId: '', authenticate: '', authenticateStrict: '', currentRole: '', currentRoleId: '' }); -``` diff --git a/.agents/skills/hooks-public/references/rls-setting.md b/.agents/skills/hooks-public/references/rls-setting.md deleted file mode 100644 index 03951e763c..0000000000 --- a/.agents/skills/hooks-public/references/rls-setting.md +++ /dev/null @@ -1,34 +0,0 @@ -# rlsSetting - - - -Per-database RLS module runtime configuration; typed replacement for api_modules rls_module JSONB entries - -## Usage - -```typescript -useRlsSettingsQuery({ selection: { fields: { id: true, databaseId: true, authenticateSchemaId: true, roleSchemaId: true, authenticateFunctionId: true, authenticateStrictFunctionId: true, currentRoleFunctionId: true, currentRoleIdFunctionId: true, currentUserAgentFunctionId: true, currentIpAddressFunctionId: true } } }) -useRlsSettingQuery({ id: '', selection: { fields: { id: true, databaseId: true, authenticateSchemaId: true, roleSchemaId: true, authenticateFunctionId: true, authenticateStrictFunctionId: true, currentRoleFunctionId: true, currentRoleIdFunctionId: true, currentUserAgentFunctionId: true, currentIpAddressFunctionId: true } } }) -useCreateRlsSettingMutation({ selection: { fields: { id: true } } }) -useUpdateRlsSettingMutation({ selection: { fields: { id: true } } }) -useDeleteRlsSettingMutation({}) -``` - -## Examples - -### List all rlsSettings - -```typescript -const { data, isLoading } = useRlsSettingsQuery({ - selection: { fields: { id: true, databaseId: true, authenticateSchemaId: true, roleSchemaId: true, authenticateFunctionId: true, authenticateStrictFunctionId: true, currentRoleFunctionId: true, currentRoleIdFunctionId: true, currentUserAgentFunctionId: true, currentIpAddressFunctionId: true } }, -}); -``` - -### Create a rlsSetting - -```typescript -const { mutate } = useCreateRlsSettingMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', authenticateSchemaId: '', roleSchemaId: '', authenticateFunctionId: '', authenticateStrictFunctionId: '', currentRoleFunctionId: '', currentRoleIdFunctionId: '', currentUserAgentFunctionId: '', currentIpAddressFunctionId: '' }); -``` diff --git a/.agents/skills/hooks-public/references/role-type.md b/.agents/skills/hooks-public/references/role-type.md deleted file mode 100644 index 3e7c54fed7..0000000000 --- a/.agents/skills/hooks-public/references/role-type.md +++ /dev/null @@ -1,34 +0,0 @@ -# roleType - - - -React Query hooks for RoleType data operations - -## Usage - -```typescript -useRoleTypesQuery({ selection: { fields: { id: true, name: true } } }) -useRoleTypeQuery({ id: '', selection: { fields: { id: true, name: true } } }) -useCreateRoleTypeMutation({ selection: { fields: { id: true } } }) -useUpdateRoleTypeMutation({ selection: { fields: { id: true } } }) -useDeleteRoleTypeMutation({}) -``` - -## Examples - -### List all roleTypes - -```typescript -const { data, isLoading } = useRoleTypesQuery({ - selection: { fields: { id: true, name: true } }, -}); -``` - -### Create a roleType - -```typescript -const { mutate } = useCreateRoleTypeMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '' }); -``` diff --git a/.agents/skills/hooks-public/references/schema-grant.md b/.agents/skills/hooks-public/references/schema-grant.md deleted file mode 100644 index c28d90b788..0000000000 --- a/.agents/skills/hooks-public/references/schema-grant.md +++ /dev/null @@ -1,34 +0,0 @@ -# schemaGrant - - - -React Query hooks for SchemaGrant data operations - -## Usage - -```typescript -useSchemaGrantsQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, granteeName: true, createdAt: true, updatedAt: true } } }) -useSchemaGrantQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, granteeName: true, createdAt: true, updatedAt: true } } }) -useCreateSchemaGrantMutation({ selection: { fields: { id: true } } }) -useUpdateSchemaGrantMutation({ selection: { fields: { id: true } } }) -useDeleteSchemaGrantMutation({}) -``` - -## Examples - -### List all schemaGrants - -```typescript -const { data, isLoading } = useSchemaGrantsQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, granteeName: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a schemaGrant - -```typescript -const { mutate } = useCreateSchemaGrantMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', granteeName: '' }); -``` diff --git a/.agents/skills/hooks-public/references/schema.md b/.agents/skills/hooks-public/references/schema.md deleted file mode 100644 index a4fb5146d4..0000000000 --- a/.agents/skills/hooks-public/references/schema.md +++ /dev/null @@ -1,34 +0,0 @@ -# schema - - - -React Query hooks for Schema data operations - -## Usage - -```typescript -useSchemasQuery({ selection: { fields: { id: true, databaseId: true, name: true, schemaName: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, tags: true, isPublic: true, createdAt: true, updatedAt: true } } }) -useSchemaQuery({ id: '', selection: { fields: { id: true, databaseId: true, name: true, schemaName: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, tags: true, isPublic: true, createdAt: true, updatedAt: true } } }) -useCreateSchemaMutation({ selection: { fields: { id: true } } }) -useUpdateSchemaMutation({ selection: { fields: { id: true } } }) -useDeleteSchemaMutation({}) -``` - -## Examples - -### List all schemas - -```typescript -const { data, isLoading } = useSchemasQuery({ - selection: { fields: { id: true, databaseId: true, name: true, schemaName: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, tags: true, isPublic: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a schema - -```typescript -const { mutate } = useCreateSchemaMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', name: '', schemaName: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', tags: '', isPublic: '' }); -``` diff --git a/.agents/skills/hooks-public/references/secrets-module.md b/.agents/skills/hooks-public/references/secrets-module.md deleted file mode 100644 index 57a20eaf57..0000000000 --- a/.agents/skills/hooks-public/references/secrets-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# secretsModule - - - -React Query hooks for SecretsModule data operations - -## Usage - -```typescript -useSecretsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } } }) -useSecretsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } } }) -useCreateSecretsModuleMutation({ selection: { fields: { id: true } } }) -useUpdateSecretsModuleMutation({ selection: { fields: { id: true } } }) -useDeleteSecretsModuleMutation({}) -``` - -## Examples - -### List all secretsModules - -```typescript -const { data, isLoading } = useSecretsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }, -}); -``` - -### Create a secretsModule - -```typescript -const { mutate } = useCreateSecretsModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', tableId: '', tableName: '' }); -``` diff --git a/.agents/skills/hooks-public/references/secure-table-provision.md b/.agents/skills/hooks-public/references/secure-table-provision.md deleted file mode 100644 index c335318acc..0000000000 --- a/.agents/skills/hooks-public/references/secure-table-provision.md +++ /dev/null @@ -1,34 +0,0 @@ -# secureTableProvision - - - -Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grants[] array (supporting per-role privilege targeting), (3) create RLS policies via policies[] array (supporting multiple Authz* policies per row). Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. - -## Usage - -```typescript -useSecureTableProvisionsQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodes: true, useRls: true, fields: true, grants: true, policies: true, outFields: true } } }) -useSecureTableProvisionQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodes: true, useRls: true, fields: true, grants: true, policies: true, outFields: true } } }) -useCreateSecureTableProvisionMutation({ selection: { fields: { id: true } } }) -useUpdateSecureTableProvisionMutation({ selection: { fields: { id: true } } }) -useDeleteSecureTableProvisionMutation({}) -``` - -## Examples - -### List all secureTableProvisions - -```typescript -const { data, isLoading } = useSecureTableProvisionsQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodes: true, useRls: true, fields: true, grants: true, policies: true, outFields: true } }, -}); -``` - -### Create a secureTableProvision - -```typescript -const { mutate } = useCreateSecureTableProvisionMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', tableId: '', tableName: '', nodes: '', useRls: '', fields: '', grants: '', policies: '', outFields: '' }); -``` diff --git a/.agents/skills/hooks-public/references/send-account-deletion-email.md b/.agents/skills/hooks-public/references/send-account-deletion-email.md deleted file mode 100644 index e4a39df586..0000000000 --- a/.agents/skills/hooks-public/references/send-account-deletion-email.md +++ /dev/null @@ -1,20 +0,0 @@ -# sendAccountDeletionEmail - - - -React Query mutation hook for sendAccountDeletionEmail - -## Usage - -```typescript -const { mutate } = useSendAccountDeletionEmailMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useSendAccountDeletionEmailMutation - -```typescript -const { mutate, isLoading } = useSendAccountDeletionEmailMutation(); -mutate({ input: '' }); -``` diff --git a/.agents/skills/hooks-public/references/send-verification-email.md b/.agents/skills/hooks-public/references/send-verification-email.md deleted file mode 100644 index 5814895c76..0000000000 --- a/.agents/skills/hooks-public/references/send-verification-email.md +++ /dev/null @@ -1,20 +0,0 @@ -# sendVerificationEmail - - - -React Query mutation hook for sendVerificationEmail - -## Usage - -```typescript -const { mutate } = useSendVerificationEmailMutation(); mutate({ input: { email: '' } }); -``` - -## Examples - -### Use useSendVerificationEmailMutation - -```typescript -const { mutate, isLoading } = useSendVerificationEmailMutation(); -mutate({ input: { email: '' } }); -``` diff --git a/.agents/skills/hooks-public/references/session-secrets-module.md b/.agents/skills/hooks-public/references/session-secrets-module.md deleted file mode 100644 index d074e3bacc..0000000000 --- a/.agents/skills/hooks-public/references/session-secrets-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# sessionSecretsModule - - - -Config row for the session_secrets_module, which provisions a DB-private, session-scoped ephemeral key-value store for challenges, nonces, and one-time tokens that must never be readable by end users. - -## Usage - -```typescript -useSessionSecretsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, sessionsTableId: true } } }) -useSessionSecretsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, sessionsTableId: true } } }) -useCreateSessionSecretsModuleMutation({ selection: { fields: { id: true } } }) -useUpdateSessionSecretsModuleMutation({ selection: { fields: { id: true } } }) -useDeleteSessionSecretsModuleMutation({}) -``` - -## Examples - -### List all sessionSecretsModules - -```typescript -const { data, isLoading } = useSessionSecretsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, sessionsTableId: true } }, -}); -``` - -### Create a sessionSecretsModule - -```typescript -const { mutate } = useCreateSessionSecretsModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', tableId: '', tableName: '', sessionsTableId: '' }); -``` diff --git a/.agents/skills/hooks-public/references/sessions-module.md b/.agents/skills/hooks-public/references/sessions-module.md deleted file mode 100644 index f087d41bda..0000000000 --- a/.agents/skills/hooks-public/references/sessions-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# sessionsModule - - - -React Query hooks for SessionsModule data operations - -## Usage - -```typescript -useSessionsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, sessionsTableId: true, sessionCredentialsTableId: true, authSettingsTableId: true, usersTableId: true, sessionsDefaultExpiration: true, sessionsTable: true, sessionCredentialsTable: true, authSettingsTable: true } } }) -useSessionsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, sessionsTableId: true, sessionCredentialsTableId: true, authSettingsTableId: true, usersTableId: true, sessionsDefaultExpiration: true, sessionsTable: true, sessionCredentialsTable: true, authSettingsTable: true } } }) -useCreateSessionsModuleMutation({ selection: { fields: { id: true } } }) -useUpdateSessionsModuleMutation({ selection: { fields: { id: true } } }) -useDeleteSessionsModuleMutation({}) -``` - -## Examples - -### List all sessionsModules - -```typescript -const { data, isLoading } = useSessionsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, sessionsTableId: true, sessionCredentialsTableId: true, authSettingsTableId: true, usersTableId: true, sessionsDefaultExpiration: true, sessionsTable: true, sessionCredentialsTable: true, authSettingsTable: true } }, -}); -``` - -### Create a sessionsModule - -```typescript -const { mutate } = useCreateSessionsModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', sessionsTableId: '', sessionCredentialsTableId: '', authSettingsTableId: '', usersTableId: '', sessionsDefaultExpiration: '', sessionsTable: '', sessionCredentialsTable: '', authSettingsTable: '' }); -``` diff --git a/.agents/skills/hooks-public/references/set-and-commit.md b/.agents/skills/hooks-public/references/set-and-commit.md deleted file mode 100644 index 362ab6ea2b..0000000000 --- a/.agents/skills/hooks-public/references/set-and-commit.md +++ /dev/null @@ -1,20 +0,0 @@ -# setAndCommit - - - -React Query mutation hook for setAndCommit - -## Usage - -```typescript -const { mutate } = useSetAndCommitMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useSetAndCommitMutation - -```typescript -const { mutate, isLoading } = useSetAndCommitMutation(); -mutate({ input: '' }); -``` diff --git a/.agents/skills/hooks-public/references/set-data-at-path.md b/.agents/skills/hooks-public/references/set-data-at-path.md deleted file mode 100644 index e22c1a1cd5..0000000000 --- a/.agents/skills/hooks-public/references/set-data-at-path.md +++ /dev/null @@ -1,20 +0,0 @@ -# setDataAtPath - - - -React Query mutation hook for setDataAtPath - -## Usage - -```typescript -const { mutate } = useSetDataAtPathMutation(); mutate({ input: { dbId: '', root: '', path: '', data: '' } }); -``` - -## Examples - -### Use useSetDataAtPathMutation - -```typescript -const { mutate, isLoading } = useSetDataAtPathMutation(); -mutate({ input: { dbId: '', root: '', path: '', data: '' } }); -``` diff --git a/.agents/skills/hooks-public/references/set-field-order.md b/.agents/skills/hooks-public/references/set-field-order.md deleted file mode 100644 index 7fe81ff163..0000000000 --- a/.agents/skills/hooks-public/references/set-field-order.md +++ /dev/null @@ -1,20 +0,0 @@ -# setFieldOrder - - - -React Query mutation hook for setFieldOrder - -## Usage - -```typescript -const { mutate } = useSetFieldOrderMutation(); mutate({ input: { fieldIds: '' } }); -``` - -## Examples - -### Use useSetFieldOrderMutation - -```typescript -const { mutate, isLoading } = useSetFieldOrderMutation(); -mutate({ input: { fieldIds: '' } }); -``` diff --git a/.agents/skills/hooks-public/references/set-password.md b/.agents/skills/hooks-public/references/set-password.md deleted file mode 100644 index 91b80a3d53..0000000000 --- a/.agents/skills/hooks-public/references/set-password.md +++ /dev/null @@ -1,20 +0,0 @@ -# setPassword - - - -React Query mutation hook for setPassword - -## Usage - -```typescript -const { mutate } = useSetPasswordMutation(); mutate({ input: { currentPassword: '', newPassword: '' } }); -``` - -## Examples - -### Use useSetPasswordMutation - -```typescript -const { mutate, isLoading } = useSetPasswordMutation(); -mutate({ input: { currentPassword: '', newPassword: '' } }); -``` diff --git a/.agents/skills/hooks-public/references/set-props-and-commit.md b/.agents/skills/hooks-public/references/set-props-and-commit.md deleted file mode 100644 index b02527816a..0000000000 --- a/.agents/skills/hooks-public/references/set-props-and-commit.md +++ /dev/null @@ -1,20 +0,0 @@ -# setPropsAndCommit - - - -React Query mutation hook for setPropsAndCommit - -## Usage - -```typescript -const { mutate } = useSetPropsAndCommitMutation(); mutate({ input: { dbId: '', storeId: '', refname: '', path: '', data: '' } }); -``` - -## Examples - -### Use useSetPropsAndCommitMutation - -```typescript -const { mutate, isLoading } = useSetPropsAndCommitMutation(); -mutate({ input: { dbId: '', storeId: '', refname: '', path: '', data: '' } }); -``` diff --git a/.agents/skills/hooks-public/references/sign-in-cross-origin.md b/.agents/skills/hooks-public/references/sign-in-cross-origin.md deleted file mode 100644 index 87ca1799c1..0000000000 --- a/.agents/skills/hooks-public/references/sign-in-cross-origin.md +++ /dev/null @@ -1,20 +0,0 @@ -# signInCrossOrigin - - - -React Query mutation hook for signInCrossOrigin - -## Usage - -```typescript -const { mutate } = useSignInCrossOriginMutation(); mutate({ input: { token: '', credentialKind: '' } }); -``` - -## Examples - -### Use useSignInCrossOriginMutation - -```typescript -const { mutate, isLoading } = useSignInCrossOriginMutation(); -mutate({ input: { token: '', credentialKind: '' } }); -``` diff --git a/.agents/skills/hooks-public/references/sign-in-one-time-token.md b/.agents/skills/hooks-public/references/sign-in-one-time-token.md deleted file mode 100644 index da7912283a..0000000000 --- a/.agents/skills/hooks-public/references/sign-in-one-time-token.md +++ /dev/null @@ -1,20 +0,0 @@ -# signInOneTimeToken - - - -React Query mutation hook for signInOneTimeToken - -## Usage - -```typescript -const { mutate } = useSignInOneTimeTokenMutation(); mutate({ input: { token: '', credentialKind: '' } }); -``` - -## Examples - -### Use useSignInOneTimeTokenMutation - -```typescript -const { mutate, isLoading } = useSignInOneTimeTokenMutation(); -mutate({ input: { token: '', credentialKind: '' } }); -``` diff --git a/.agents/skills/hooks-public/references/sign-in.md b/.agents/skills/hooks-public/references/sign-in.md deleted file mode 100644 index ecb7a874d9..0000000000 --- a/.agents/skills/hooks-public/references/sign-in.md +++ /dev/null @@ -1,20 +0,0 @@ -# signIn - - - -React Query mutation hook for signIn - -## Usage - -```typescript -const { mutate } = useSignInMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useSignInMutation - -```typescript -const { mutate, isLoading } = useSignInMutation(); -mutate({ input: '' }); -``` diff --git a/.agents/skills/hooks-public/references/sign-out.md b/.agents/skills/hooks-public/references/sign-out.md deleted file mode 100644 index 229a6c64ce..0000000000 --- a/.agents/skills/hooks-public/references/sign-out.md +++ /dev/null @@ -1,20 +0,0 @@ -# signOut - - - -React Query mutation hook for signOut - -## Usage - -```typescript -const { mutate } = useSignOutMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useSignOutMutation - -```typescript -const { mutate, isLoading } = useSignOutMutation(); -mutate({ input: '' }); -``` diff --git a/.agents/skills/hooks-public/references/sign-up.md b/.agents/skills/hooks-public/references/sign-up.md deleted file mode 100644 index 77dd7bb654..0000000000 --- a/.agents/skills/hooks-public/references/sign-up.md +++ /dev/null @@ -1,20 +0,0 @@ -# signUp - - - -React Query mutation hook for signUp - -## Usage - -```typescript -const { mutate } = useSignUpMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useSignUpMutation - -```typescript -const { mutate, isLoading } = useSignUpMutation(); -mutate({ input: '' }); -``` diff --git a/.agents/skills/hooks-public/references/site-metadatum.md b/.agents/skills/hooks-public/references/site-metadatum.md deleted file mode 100644 index 0a382a53e7..0000000000 --- a/.agents/skills/hooks-public/references/site-metadatum.md +++ /dev/null @@ -1,34 +0,0 @@ -# siteMetadatum - - - -SEO and social sharing metadata for a site: page title, description, and Open Graph image - -## Usage - -```typescript -useSiteMetadataQuery({ selection: { fields: { id: true, databaseId: true, siteId: true, title: true, description: true, ogImage: true } } }) -useSiteMetadatumQuery({ id: '', selection: { fields: { id: true, databaseId: true, siteId: true, title: true, description: true, ogImage: true } } }) -useCreateSiteMetadatumMutation({ selection: { fields: { id: true } } }) -useUpdateSiteMetadatumMutation({ selection: { fields: { id: true } } }) -useDeleteSiteMetadatumMutation({}) -``` - -## Examples - -### List all siteMetadata - -```typescript -const { data, isLoading } = useSiteMetadataQuery({ - selection: { fields: { id: true, databaseId: true, siteId: true, title: true, description: true, ogImage: true } }, -}); -``` - -### Create a siteMetadatum - -```typescript -const { mutate } = useCreateSiteMetadatumMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', siteId: '', title: '', description: '', ogImage: '' }); -``` diff --git a/.agents/skills/hooks-public/references/site-module.md b/.agents/skills/hooks-public/references/site-module.md deleted file mode 100644 index aeb2436b2f..0000000000 --- a/.agents/skills/hooks-public/references/site-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# siteModule - - - -Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site - -## Usage - -```typescript -useSiteModulesQuery({ selection: { fields: { id: true, databaseId: true, siteId: true, name: true, data: true } } }) -useSiteModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, siteId: true, name: true, data: true } } }) -useCreateSiteModuleMutation({ selection: { fields: { id: true } } }) -useUpdateSiteModuleMutation({ selection: { fields: { id: true } } }) -useDeleteSiteModuleMutation({}) -``` - -## Examples - -### List all siteModules - -```typescript -const { data, isLoading } = useSiteModulesQuery({ - selection: { fields: { id: true, databaseId: true, siteId: true, name: true, data: true } }, -}); -``` - -### Create a siteModule - -```typescript -const { mutate } = useCreateSiteModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', siteId: '', name: '', data: '' }); -``` diff --git a/.agents/skills/hooks-public/references/site-theme.md b/.agents/skills/hooks-public/references/site-theme.md deleted file mode 100644 index 15ed70af52..0000000000 --- a/.agents/skills/hooks-public/references/site-theme.md +++ /dev/null @@ -1,34 +0,0 @@ -# siteTheme - - - -Theme configuration for a site; stores design tokens, colors, and typography as JSONB - -## Usage - -```typescript -useSiteThemesQuery({ selection: { fields: { id: true, databaseId: true, siteId: true, theme: true } } }) -useSiteThemeQuery({ id: '', selection: { fields: { id: true, databaseId: true, siteId: true, theme: true } } }) -useCreateSiteThemeMutation({ selection: { fields: { id: true } } }) -useUpdateSiteThemeMutation({ selection: { fields: { id: true } } }) -useDeleteSiteThemeMutation({}) -``` - -## Examples - -### List all siteThemes - -```typescript -const { data, isLoading } = useSiteThemesQuery({ - selection: { fields: { id: true, databaseId: true, siteId: true, theme: true } }, -}); -``` - -### Create a siteTheme - -```typescript -const { mutate } = useCreateSiteThemeMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', siteId: '', theme: '' }); -``` diff --git a/.agents/skills/hooks-public/references/site.md b/.agents/skills/hooks-public/references/site.md deleted file mode 100644 index 798f3150ad..0000000000 --- a/.agents/skills/hooks-public/references/site.md +++ /dev/null @@ -1,34 +0,0 @@ -# site - - - -Top-level site configuration: branding assets, title, and description for a deployed application - -## Usage - -```typescript -useSitesQuery({ selection: { fields: { id: true, databaseId: true, title: true, description: true, ogImage: true, favicon: true, appleTouchIcon: true, logo: true, dbname: true } } }) -useSiteQuery({ id: '', selection: { fields: { id: true, databaseId: true, title: true, description: true, ogImage: true, favicon: true, appleTouchIcon: true, logo: true, dbname: true } } }) -useCreateSiteMutation({ selection: { fields: { id: true } } }) -useUpdateSiteMutation({ selection: { fields: { id: true } } }) -useDeleteSiteMutation({}) -``` - -## Examples - -### List all sites - -```typescript -const { data, isLoading } = useSitesQuery({ - selection: { fields: { id: true, databaseId: true, title: true, description: true, ogImage: true, favicon: true, appleTouchIcon: true, logo: true, dbname: true } }, -}); -``` - -### Create a site - -```typescript -const { mutate } = useCreateSiteMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', title: '', description: '', ogImage: '', favicon: '', appleTouchIcon: '', logo: '', dbname: '' }); -``` diff --git a/.agents/skills/hooks-public/references/spatial-relation.md b/.agents/skills/hooks-public/references/spatial-relation.md deleted file mode 100644 index 2ace884042..0000000000 --- a/.agents/skills/hooks-public/references/spatial-relation.md +++ /dev/null @@ -1,34 +0,0 @@ -# spatialRelation - - - -React Query hooks for SpatialRelation data operations - -## Usage - -```typescript -useSpatialRelationsQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, fieldId: true, refTableId: true, refFieldId: true, name: true, operator: true, paramName: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) -useSpatialRelationQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, fieldId: true, refTableId: true, refFieldId: true, name: true, operator: true, paramName: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) -useCreateSpatialRelationMutation({ selection: { fields: { id: true } } }) -useUpdateSpatialRelationMutation({ selection: { fields: { id: true } } }) -useDeleteSpatialRelationMutation({}) -``` - -## Examples - -### List all spatialRelations - -```typescript -const { data, isLoading } = useSpatialRelationsQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, fieldId: true, refTableId: true, refFieldId: true, name: true, operator: true, paramName: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a spatialRelation - -```typescript -const { mutate } = useCreateSpatialRelationMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', tableId: '', fieldId: '', refTableId: '', refFieldId: '', name: '', operator: '', paramName: '', category: '', module: '', scope: '', tags: '' }); -``` diff --git a/.agents/skills/hooks-public/references/sql-action.md b/.agents/skills/hooks-public/references/sql-action.md deleted file mode 100644 index d746e47fa9..0000000000 --- a/.agents/skills/hooks-public/references/sql-action.md +++ /dev/null @@ -1,34 +0,0 @@ -# sqlAction - - - -React Query hooks for SqlAction data operations - -## Usage - -```typescript -useSqlActionsQuery({ selection: { fields: { id: true, name: true, databaseId: true, deploy: true, deps: true, payload: true, content: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } } }) -useSqlActionQuery({ id: '', selection: { fields: { id: true, name: true, databaseId: true, deploy: true, deps: true, payload: true, content: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } } }) -useCreateSqlActionMutation({ selection: { fields: { id: true } } }) -useUpdateSqlActionMutation({ selection: { fields: { id: true } } }) -useDeleteSqlActionMutation({}) -``` - -## Examples - -### List all sqlActions - -```typescript -const { data, isLoading } = useSqlActionsQuery({ - selection: { fields: { id: true, name: true, databaseId: true, deploy: true, deps: true, payload: true, content: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }, -}); -``` - -### Create a sqlAction - -```typescript -const { mutate } = useCreateSqlActionMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '', databaseId: '', deploy: '', deps: '', payload: '', content: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }); -``` diff --git a/.agents/skills/hooks-public/references/sql-migration.md b/.agents/skills/hooks-public/references/sql-migration.md deleted file mode 100644 index a085da1fcf..0000000000 --- a/.agents/skills/hooks-public/references/sql-migration.md +++ /dev/null @@ -1,34 +0,0 @@ -# sqlMigration - - - -React Query hooks for SqlMigration data operations - -## Usage - -```typescript -useSqlMigrationsQuery({ selection: { fields: { id: true, name: true, databaseId: true, deploy: true, deps: true, payload: true, content: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } } }) -useSqlMigrationQuery({ id: '', selection: { fields: { id: true, name: true, databaseId: true, deploy: true, deps: true, payload: true, content: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } } }) -useCreateSqlMigrationMutation({ selection: { fields: { id: true } } }) -useUpdateSqlMigrationMutation({ selection: { fields: { id: true } } }) -useDeleteSqlMigrationMutation({}) -``` - -## Examples - -### List all sqlMigrations - -```typescript -const { data, isLoading } = useSqlMigrationsQuery({ - selection: { fields: { id: true, name: true, databaseId: true, deploy: true, deps: true, payload: true, content: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }, -}); -``` - -### Create a sqlMigration - -```typescript -const { mutate } = useCreateSqlMigrationMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '', databaseId: '', deploy: '', deps: '', payload: '', content: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }); -``` diff --git a/.agents/skills/hooks-public/references/steps-achieved.md b/.agents/skills/hooks-public/references/steps-achieved.md deleted file mode 100644 index 2574c1fb3c..0000000000 --- a/.agents/skills/hooks-public/references/steps-achieved.md +++ /dev/null @@ -1,19 +0,0 @@ -# stepsAchieved - - - -React Query query hook for stepsAchieved - -## Usage - -```typescript -useStepsAchievedQuery({ level: '', roleId: '' }) -``` - -## Examples - -### Use useStepsAchievedQuery - -```typescript -const { data, isLoading } = useStepsAchievedQuery({ level: '', roleId: '' }); -``` diff --git a/.agents/skills/hooks-public/references/steps-required.md b/.agents/skills/hooks-public/references/steps-required.md deleted file mode 100644 index 9256ec674e..0000000000 --- a/.agents/skills/hooks-public/references/steps-required.md +++ /dev/null @@ -1,19 +0,0 @@ -# stepsRequired - - - -Reads and enables pagination through a set of `AppLevelRequirement`. - -## Usage - -```typescript -useStepsRequiredQuery({ level: '', roleId: '', first: '', offset: '', after: '' }) -``` - -## Examples - -### Use useStepsRequiredQuery - -```typescript -const { data, isLoading } = useStepsRequiredQuery({ level: '', roleId: '', first: '', offset: '', after: '' }); -``` diff --git a/.agents/skills/hooks-public/references/storage-log-module.md b/.agents/skills/hooks-public/references/storage-log-module.md deleted file mode 100644 index 60e48f80ff..0000000000 --- a/.agents/skills/hooks-public/references/storage-log-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# storageLogModule - - - -React Query hooks for StorageLogModule data operations - -## Usage - -```typescript -useStorageLogModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } } }) -useStorageLogModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } } }) -useCreateStorageLogModuleMutation({ selection: { fields: { id: true } } }) -useUpdateStorageLogModuleMutation({ selection: { fields: { id: true } } }) -useDeleteStorageLogModuleMutation({}) -``` - -## Examples - -### List all storageLogModules - -```typescript -const { data, isLoading } = useStorageLogModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } }, -}); -``` - -### Create a storageLogModule - -```typescript -const { mutate } = useCreateStorageLogModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', storageLogTableId: '', storageLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '' }); -``` diff --git a/.agents/skills/hooks-public/references/storage-module.md b/.agents/skills/hooks-public/references/storage-module.md deleted file mode 100644 index 7dab1fd995..0000000000 --- a/.agents/skills/hooks-public/references/storage-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# storageModule - - - -React Query hooks for StorageModule data operations - -## Usage - -```typescript -useStorageModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, key: true, policies: true, provisions: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true } } }) -useStorageModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, key: true, policies: true, provisions: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true } } }) -useCreateStorageModuleMutation({ selection: { fields: { id: true } } }) -useUpdateStorageModuleMutation({ selection: { fields: { id: true } } }) -useDeleteStorageModuleMutation({}) -``` - -## Examples - -### List all storageModules - -```typescript -const { data, isLoading } = useStorageModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, key: true, policies: true, provisions: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true } }, -}); -``` - -### Create a storageModule - -```typescript -const { mutate } = useCreateStorageModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', membershipType: '', key: '', policies: '', provisions: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '' }); -``` diff --git a/.agents/skills/hooks-public/references/store.md b/.agents/skills/hooks-public/references/store.md deleted file mode 100644 index fd0c67b206..0000000000 --- a/.agents/skills/hooks-public/references/store.md +++ /dev/null @@ -1,34 +0,0 @@ -# store - - - -A store represents an isolated object repository within a database. - -## Usage - -```typescript -useStoresQuery({ selection: { fields: { id: true, name: true, databaseId: true, hash: true, createdAt: true } } }) -useStoreQuery({ id: '', selection: { fields: { id: true, name: true, databaseId: true, hash: true, createdAt: true } } }) -useCreateStoreMutation({ selection: { fields: { id: true } } }) -useUpdateStoreMutation({ selection: { fields: { id: true } } }) -useDeleteStoreMutation({}) -``` - -## Examples - -### List all stores - -```typescript -const { data, isLoading } = useStoresQuery({ - selection: { fields: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }, -}); -``` - -### Create a store - -```typescript -const { mutate } = useCreateStoreMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '', databaseId: '', hash: '' }); -``` diff --git a/.agents/skills/hooks-public/references/submit-app-invite-code.md b/.agents/skills/hooks-public/references/submit-app-invite-code.md deleted file mode 100644 index c0e6a1903f..0000000000 --- a/.agents/skills/hooks-public/references/submit-app-invite-code.md +++ /dev/null @@ -1,20 +0,0 @@ -# submitAppInviteCode - - - -React Query mutation hook for submitAppInviteCode - -## Usage - -```typescript -const { mutate } = useSubmitAppInviteCodeMutation(); mutate({ input: { token: '' } }); -``` - -## Examples - -### Use useSubmitAppInviteCodeMutation - -```typescript -const { mutate, isLoading } = useSubmitAppInviteCodeMutation(); -mutate({ input: { token: '' } }); -``` diff --git a/.agents/skills/hooks-public/references/submit-invite-code.md b/.agents/skills/hooks-public/references/submit-invite-code.md deleted file mode 100644 index 7df2125e2e..0000000000 --- a/.agents/skills/hooks-public/references/submit-invite-code.md +++ /dev/null @@ -1,20 +0,0 @@ -# submitInviteCode - - - -React Query mutation hook for submitInviteCode - -## Usage - -```typescript -const { mutate } = useSubmitInviteCodeMutation(); mutate({ input: { token: '' } }); -``` - -## Examples - -### Use useSubmitInviteCodeMutation - -```typescript -const { mutate, isLoading } = useSubmitInviteCodeMutation(); -mutate({ input: { token: '' } }); -``` diff --git a/.agents/skills/hooks-public/references/submit-org-invite-code.md b/.agents/skills/hooks-public/references/submit-org-invite-code.md deleted file mode 100644 index 9925974cdb..0000000000 --- a/.agents/skills/hooks-public/references/submit-org-invite-code.md +++ /dev/null @@ -1,20 +0,0 @@ -# submitOrgInviteCode - - - -React Query mutation hook for submitOrgInviteCode - -## Usage - -```typescript -const { mutate } = useSubmitOrgInviteCodeMutation(); mutate({ input: { token: '' } }); -``` - -## Examples - -### Use useSubmitOrgInviteCodeMutation - -```typescript -const { mutate, isLoading } = useSubmitOrgInviteCodeMutation(); -mutate({ input: { token: '' } }); -``` diff --git a/.agents/skills/hooks-public/references/table-grant.md b/.agents/skills/hooks-public/references/table-grant.md deleted file mode 100644 index 612bdb6469..0000000000 --- a/.agents/skills/hooks-public/references/table-grant.md +++ /dev/null @@ -1,34 +0,0 @@ -# tableGrant - - - -React Query hooks for TableGrant data operations - -## Usage - -```typescript -useTableGrantsQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, privilege: true, granteeName: true, fieldIds: true, isGrant: true, createdAt: true, updatedAt: true } } }) -useTableGrantQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, privilege: true, granteeName: true, fieldIds: true, isGrant: true, createdAt: true, updatedAt: true } } }) -useCreateTableGrantMutation({ selection: { fields: { id: true } } }) -useUpdateTableGrantMutation({ selection: { fields: { id: true } } }) -useDeleteTableGrantMutation({}) -``` - -## Examples - -### List all tableGrants - -```typescript -const { data, isLoading } = useTableGrantsQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, privilege: true, granteeName: true, fieldIds: true, isGrant: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a tableGrant - -```typescript -const { mutate } = useCreateTableGrantMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', tableId: '', privilege: '', granteeName: '', fieldIds: '', isGrant: '' }); -``` diff --git a/.agents/skills/hooks-public/references/table-template-module.md b/.agents/skills/hooks-public/references/table-template-module.md deleted file mode 100644 index 1a15ecbda0..0000000000 --- a/.agents/skills/hooks-public/references/table-template-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# tableTemplateModule - - - -React Query hooks for TableTemplateModule data operations - -## Usage - -```typescript -useTableTemplateModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, nodeType: true, data: true } } }) -useTableTemplateModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, nodeType: true, data: true } } }) -useCreateTableTemplateModuleMutation({ selection: { fields: { id: true } } }) -useUpdateTableTemplateModuleMutation({ selection: { fields: { id: true } } }) -useDeleteTableTemplateModuleMutation({}) -``` - -## Examples - -### List all tableTemplateModules - -```typescript -const { data, isLoading } = useTableTemplateModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, nodeType: true, data: true } }, -}); -``` - -### Create a tableTemplateModule - -```typescript -const { mutate } = useCreateTableTemplateModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', nodeType: '', data: '' }); -``` diff --git a/.agents/skills/hooks-public/references/table.md b/.agents/skills/hooks-public/references/table.md deleted file mode 100644 index e251a89a15..0000000000 --- a/.agents/skills/hooks-public/references/table.md +++ /dev/null @@ -1,34 +0,0 @@ -# table - - - -React Query hooks for Table data operations - -## Usage - -```typescript -useTablesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, inheritsId: true, createdAt: true, updatedAt: true } } }) -useTableQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, inheritsId: true, createdAt: true, updatedAt: true } } }) -useCreateTableMutation({ selection: { fields: { id: true } } }) -useUpdateTableMutation({ selection: { fields: { id: true } } }) -useDeleteTableMutation({}) -``` - -## Examples - -### List all tables - -```typescript -const { data, isLoading } = useTablesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, inheritsId: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a table - -```typescript -const { mutate } = useCreateTableMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', name: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', useRls: '', timestamps: '', peoplestamps: '', pluralName: '', singularName: '', tags: '', partitioned: '', partitionStrategy: '', partitionKeyNames: '', partitionKeyTypes: '', inheritsId: '' }); -``` diff --git a/.agents/skills/hooks-public/references/transfer-log-module.md b/.agents/skills/hooks-public/references/transfer-log-module.md deleted file mode 100644 index 926ec45e6a..0000000000 --- a/.agents/skills/hooks-public/references/transfer-log-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# transferLogModule - - - -React Query hooks for TransferLogModule data operations - -## Usage - -```typescript -useTransferLogModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } } }) -useTransferLogModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } } }) -useCreateTransferLogModuleMutation({ selection: { fields: { id: true } } }) -useUpdateTransferLogModuleMutation({ selection: { fields: { id: true } } }) -useDeleteTransferLogModuleMutation({}) -``` - -## Examples - -### List all transferLogModules - -```typescript -const { data, isLoading } = useTransferLogModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } }, -}); -``` - -### Create a transferLogModule - -```typescript -const { mutate } = useCreateTransferLogModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', transferLogTableId: '', transferLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '' }); -``` diff --git a/.agents/skills/hooks-public/references/trigger-function.md b/.agents/skills/hooks-public/references/trigger-function.md deleted file mode 100644 index 0962a9d6bf..0000000000 --- a/.agents/skills/hooks-public/references/trigger-function.md +++ /dev/null @@ -1,34 +0,0 @@ -# triggerFunction - - - -React Query hooks for TriggerFunction data operations - -## Usage - -```typescript -useTriggerFunctionsQuery({ selection: { fields: { id: true, databaseId: true, name: true, code: true, createdAt: true, updatedAt: true } } }) -useTriggerFunctionQuery({ id: '', selection: { fields: { id: true, databaseId: true, name: true, code: true, createdAt: true, updatedAt: true } } }) -useCreateTriggerFunctionMutation({ selection: { fields: { id: true } } }) -useUpdateTriggerFunctionMutation({ selection: { fields: { id: true } } }) -useDeleteTriggerFunctionMutation({}) -``` - -## Examples - -### List all triggerFunctions - -```typescript -const { data, isLoading } = useTriggerFunctionsQuery({ - selection: { fields: { id: true, databaseId: true, name: true, code: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a triggerFunction - -```typescript -const { mutate } = useCreateTriggerFunctionMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', name: '', code: '' }); -``` diff --git a/.agents/skills/hooks-public/references/trigger.md b/.agents/skills/hooks-public/references/trigger.md deleted file mode 100644 index b0f481c71a..0000000000 --- a/.agents/skills/hooks-public/references/trigger.md +++ /dev/null @@ -1,34 +0,0 @@ -# trigger - - - -React Query hooks for Trigger data operations - -## Usage - -```typescript -useTriggersQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) -useTriggerQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) -useCreateTriggerMutation({ selection: { fields: { id: true } } }) -useUpdateTriggerMutation({ selection: { fields: { id: true } } }) -useDeleteTriggerMutation({}) -``` - -## Examples - -### List all triggers - -```typescript -const { data, isLoading } = useTriggersQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a trigger - -```typescript -const { mutate } = useCreateTriggerMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', tableId: '', name: '', event: '', functionName: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); -``` diff --git a/.agents/skills/hooks-public/references/unique-constraint.md b/.agents/skills/hooks-public/references/unique-constraint.md deleted file mode 100644 index 2b1628b940..0000000000 --- a/.agents/skills/hooks-public/references/unique-constraint.md +++ /dev/null @@ -1,34 +0,0 @@ -# uniqueConstraint - - - -React Query hooks for UniqueConstraint data operations - -## Usage - -```typescript -useUniqueConstraintsQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) -useUniqueConstraintQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) -useCreateUniqueConstraintMutation({ selection: { fields: { id: true } } }) -useUpdateUniqueConstraintMutation({ selection: { fields: { id: true } } }) -useDeleteUniqueConstraintMutation({}) -``` - -## Examples - -### List all uniqueConstraints - -```typescript -const { data, isLoading } = useUniqueConstraintsQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a uniqueConstraint - -```typescript -const { mutate } = useCreateUniqueConstraintMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', category: '', module: '', scope: '', tags: '' }); -``` diff --git a/.agents/skills/hooks-public/references/update-node-at-path.md b/.agents/skills/hooks-public/references/update-node-at-path.md deleted file mode 100644 index 2ad5bc28fc..0000000000 --- a/.agents/skills/hooks-public/references/update-node-at-path.md +++ /dev/null @@ -1,20 +0,0 @@ -# updateNodeAtPath - - - -React Query mutation hook for updateNodeAtPath - -## Usage - -```typescript -const { mutate } = useUpdateNodeAtPathMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useUpdateNodeAtPathMutation - -```typescript -const { mutate, isLoading } = useUpdateNodeAtPathMutation(); -mutate({ input: '' }); -``` diff --git a/.agents/skills/hooks-public/references/usage-snapshot.md b/.agents/skills/hooks-public/references/usage-snapshot.md deleted file mode 100644 index e197751213..0000000000 --- a/.agents/skills/hooks-public/references/usage-snapshot.md +++ /dev/null @@ -1,34 +0,0 @@ -# usageSnapshot - - - -Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. - -## Usage - -```typescript -useUsageSnapshotsQuery({ selection: { fields: { databaseId: true, metricName: true, metricValue: true, dimensions: true, capturedAt: true, id: true } } }) -useUsageSnapshotQuery({ id: '', selection: { fields: { databaseId: true, metricName: true, metricValue: true, dimensions: true, capturedAt: true, id: true } } }) -useCreateUsageSnapshotMutation({ selection: { fields: { id: true } } }) -useUpdateUsageSnapshotMutation({ selection: { fields: { id: true } } }) -useDeleteUsageSnapshotMutation({}) -``` - -## Examples - -### List all usageSnapshots - -```typescript -const { data, isLoading } = useUsageSnapshotsQuery({ - selection: { fields: { databaseId: true, metricName: true, metricValue: true, dimensions: true, capturedAt: true, id: true } }, -}); -``` - -### Create a usageSnapshot - -```typescript -const { mutate } = useCreateUsageSnapshotMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', metricName: '', metricValue: '', dimensions: '', capturedAt: '' }); -``` diff --git a/.agents/skills/hooks-public/references/user-auth-module.md b/.agents/skills/hooks-public/references/user-auth-module.md deleted file mode 100644 index 947074d490..0000000000 --- a/.agents/skills/hooks-public/references/user-auth-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# userAuthModule - - - -React Query hooks for UserAuthModule data operations - -## Usage - -```typescript -useUserAuthModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, emailsTableId: true, usersTableId: true, secretsTableId: true, encryptedTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, auditsTableId: true, auditsTableName: true, signInFunction: true, signUpFunction: true, signOutFunction: true, setPasswordFunction: true, resetPasswordFunction: true, forgotPasswordFunction: true, sendVerificationEmailFunction: true, verifyEmailFunction: true, verifyPasswordFunction: true, checkPasswordFunction: true, sendAccountDeletionEmailFunction: true, deleteAccountFunction: true, signInCrossOriginFunction: true, requestCrossOriginTokenFunction: true, extendTokenExpires: true } } }) -useUserAuthModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, emailsTableId: true, usersTableId: true, secretsTableId: true, encryptedTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, auditsTableId: true, auditsTableName: true, signInFunction: true, signUpFunction: true, signOutFunction: true, setPasswordFunction: true, resetPasswordFunction: true, forgotPasswordFunction: true, sendVerificationEmailFunction: true, verifyEmailFunction: true, verifyPasswordFunction: true, checkPasswordFunction: true, sendAccountDeletionEmailFunction: true, deleteAccountFunction: true, signInCrossOriginFunction: true, requestCrossOriginTokenFunction: true, extendTokenExpires: true } } }) -useCreateUserAuthModuleMutation({ selection: { fields: { id: true } } }) -useUpdateUserAuthModuleMutation({ selection: { fields: { id: true } } }) -useDeleteUserAuthModuleMutation({}) -``` - -## Examples - -### List all userAuthModules - -```typescript -const { data, isLoading } = useUserAuthModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, emailsTableId: true, usersTableId: true, secretsTableId: true, encryptedTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, auditsTableId: true, auditsTableName: true, signInFunction: true, signUpFunction: true, signOutFunction: true, setPasswordFunction: true, resetPasswordFunction: true, forgotPasswordFunction: true, sendVerificationEmailFunction: true, verifyEmailFunction: true, verifyPasswordFunction: true, checkPasswordFunction: true, sendAccountDeletionEmailFunction: true, deleteAccountFunction: true, signInCrossOriginFunction: true, requestCrossOriginTokenFunction: true, extendTokenExpires: true } }, -}); -``` - -### Create a userAuthModule - -```typescript -const { mutate } = useCreateUserAuthModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', emailsTableId: '', usersTableId: '', secretsTableId: '', encryptedTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', auditsTableId: '', auditsTableName: '', signInFunction: '', signUpFunction: '', signOutFunction: '', setPasswordFunction: '', resetPasswordFunction: '', forgotPasswordFunction: '', sendVerificationEmailFunction: '', verifyEmailFunction: '', verifyPasswordFunction: '', checkPasswordFunction: '', sendAccountDeletionEmailFunction: '', deleteAccountFunction: '', signInCrossOriginFunction: '', requestCrossOriginTokenFunction: '', extendTokenExpires: '' }); -``` diff --git a/.agents/skills/hooks-public/references/user-connected-account.md b/.agents/skills/hooks-public/references/user-connected-account.md deleted file mode 100644 index fb94c25677..0000000000 --- a/.agents/skills/hooks-public/references/user-connected-account.md +++ /dev/null @@ -1,34 +0,0 @@ -# userConnectedAccount - - - -React Query hooks for UserConnectedAccount data operations - -## Usage - -```typescript -useUserConnectedAccountsQuery({ selection: { fields: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } } }) -useUserConnectedAccountQuery({ id: '', selection: { fields: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } } }) -useCreateUserConnectedAccountMutation({ selection: { fields: { id: true } } }) -useUpdateUserConnectedAccountMutation({ selection: { fields: { id: true } } }) -useDeleteUserConnectedAccountMutation({}) -``` - -## Examples - -### List all userConnectedAccounts - -```typescript -const { data, isLoading } = useUserConnectedAccountsQuery({ - selection: { fields: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a userConnectedAccount - -```typescript -const { mutate } = useCreateUserConnectedAccountMutation({ - selection: { fields: { id: true } }, -}); -mutate({ ownerId: '', service: '', identifier: '', details: '', isVerified: '' }); -``` diff --git a/.agents/skills/hooks-public/references/user-state-module.md b/.agents/skills/hooks-public/references/user-state-module.md deleted file mode 100644 index 37cefbfdad..0000000000 --- a/.agents/skills/hooks-public/references/user-state-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# userStateModule - - - -React Query hooks for UserStateModule data operations - -## Usage - -```typescript -useUserStateModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } } }) -useUserStateModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } } }) -useCreateUserStateModuleMutation({ selection: { fields: { id: true } } }) -useUpdateUserStateModuleMutation({ selection: { fields: { id: true } } }) -useDeleteUserStateModuleMutation({}) -``` - -## Examples - -### List all userStateModules - -```typescript -const { data, isLoading } = useUserStateModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }, -}); -``` - -### Create a userStateModule - -```typescript -const { mutate } = useCreateUserStateModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', tableId: '', tableName: '' }); -``` diff --git a/.agents/skills/hooks-public/references/user.md b/.agents/skills/hooks-public/references/user.md deleted file mode 100644 index da79af03aa..0000000000 --- a/.agents/skills/hooks-public/references/user.md +++ /dev/null @@ -1,34 +0,0 @@ -# user - - - -React Query hooks for User data operations - -## Usage - -```typescript -useUsersQuery({ selection: { fields: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true, displayNameTrgmSimilarity: true, searchScore: true } } }) -useUserQuery({ id: '', selection: { fields: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true, displayNameTrgmSimilarity: true, searchScore: true } } }) -useCreateUserMutation({ selection: { fields: { id: true } } }) -useUpdateUserMutation({ selection: { fields: { id: true } } }) -useDeleteUserMutation({}) -``` - -## Examples - -### List all users - -```typescript -const { data, isLoading } = useUsersQuery({ - selection: { fields: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true, displayNameTrgmSimilarity: true, searchScore: true } }, -}); -``` - -### Create a user - -```typescript -const { mutate } = useCreateUserMutation({ - selection: { fields: { id: true } }, -}); -mutate({ username: '', displayName: '', profilePicture: '', searchTsv: '', type: '', searchTsvRank: '', displayNameTrgmSimilarity: '', searchScore: '' }); -``` diff --git a/.agents/skills/hooks-public/references/users-module.md b/.agents/skills/hooks-public/references/users-module.md deleted file mode 100644 index 5efb29f7a1..0000000000 --- a/.agents/skills/hooks-public/references/users-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# usersModule - - - -React Query hooks for UsersModule data operations - -## Usage - -```typescript -useUsersModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, typeTableId: true, typeTableName: true } } }) -useUsersModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, typeTableId: true, typeTableName: true } } }) -useCreateUsersModuleMutation({ selection: { fields: { id: true } } }) -useUpdateUsersModuleMutation({ selection: { fields: { id: true } } }) -useDeleteUsersModuleMutation({}) -``` - -## Examples - -### List all usersModules - -```typescript -const { data, isLoading } = useUsersModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, typeTableId: true, typeTableName: true } }, -}); -``` - -### Create a usersModule - -```typescript -const { mutate } = useCreateUsersModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', tableId: '', tableName: '', typeTableId: '', typeTableName: '' }); -``` diff --git a/.agents/skills/hooks-public/references/verify-email.md b/.agents/skills/hooks-public/references/verify-email.md deleted file mode 100644 index 1f404805ba..0000000000 --- a/.agents/skills/hooks-public/references/verify-email.md +++ /dev/null @@ -1,20 +0,0 @@ -# verifyEmail - - - -React Query mutation hook for verifyEmail - -## Usage - -```typescript -const { mutate } = useVerifyEmailMutation(); mutate({ input: { emailId: '', token: '' } }); -``` - -## Examples - -### Use useVerifyEmailMutation - -```typescript -const { mutate, isLoading } = useVerifyEmailMutation(); -mutate({ input: { emailId: '', token: '' } }); -``` diff --git a/.agents/skills/hooks-public/references/verify-password.md b/.agents/skills/hooks-public/references/verify-password.md deleted file mode 100644 index 569851e366..0000000000 --- a/.agents/skills/hooks-public/references/verify-password.md +++ /dev/null @@ -1,20 +0,0 @@ -# verifyPassword - - - -React Query mutation hook for verifyPassword - -## Usage - -```typescript -const { mutate } = useVerifyPasswordMutation(); mutate({ input: { password: '' } }); -``` - -## Examples - -### Use useVerifyPasswordMutation - -```typescript -const { mutate, isLoading } = useVerifyPasswordMutation(); -mutate({ input: { password: '' } }); -``` diff --git a/.agents/skills/hooks-public/references/verify-totp.md b/.agents/skills/hooks-public/references/verify-totp.md deleted file mode 100644 index cc891ea9e3..0000000000 --- a/.agents/skills/hooks-public/references/verify-totp.md +++ /dev/null @@ -1,20 +0,0 @@ -# verifyTotp - - - -React Query mutation hook for verifyTotp - -## Usage - -```typescript -const { mutate } = useVerifyTotpMutation(); mutate({ input: { totpValue: '' } }); -``` - -## Examples - -### Use useVerifyTotpMutation - -```typescript -const { mutate, isLoading } = useVerifyTotpMutation(); -mutate({ input: { totpValue: '' } }); -``` diff --git a/.agents/skills/hooks-public/references/view-grant.md b/.agents/skills/hooks-public/references/view-grant.md deleted file mode 100644 index d7412dad34..0000000000 --- a/.agents/skills/hooks-public/references/view-grant.md +++ /dev/null @@ -1,34 +0,0 @@ -# viewGrant - - - -React Query hooks for ViewGrant data operations - -## Usage - -```typescript -useViewGrantsQuery({ selection: { fields: { id: true, databaseId: true, viewId: true, granteeName: true, privilege: true, withGrantOption: true, isGrant: true } } }) -useViewGrantQuery({ id: '', selection: { fields: { id: true, databaseId: true, viewId: true, granteeName: true, privilege: true, withGrantOption: true, isGrant: true } } }) -useCreateViewGrantMutation({ selection: { fields: { id: true } } }) -useUpdateViewGrantMutation({ selection: { fields: { id: true } } }) -useDeleteViewGrantMutation({}) -``` - -## Examples - -### List all viewGrants - -```typescript -const { data, isLoading } = useViewGrantsQuery({ - selection: { fields: { id: true, databaseId: true, viewId: true, granteeName: true, privilege: true, withGrantOption: true, isGrant: true } }, -}); -``` - -### Create a viewGrant - -```typescript -const { mutate } = useCreateViewGrantMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', viewId: '', granteeName: '', privilege: '', withGrantOption: '', isGrant: '' }); -``` diff --git a/.agents/skills/hooks-public/references/view-rule.md b/.agents/skills/hooks-public/references/view-rule.md deleted file mode 100644 index 488e9c9c17..0000000000 --- a/.agents/skills/hooks-public/references/view-rule.md +++ /dev/null @@ -1,34 +0,0 @@ -# viewRule - - - -DO INSTEAD rules for views (e.g., read-only enforcement) - -## Usage - -```typescript -useViewRulesQuery({ selection: { fields: { id: true, databaseId: true, viewId: true, name: true, event: true, action: true } } }) -useViewRuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, viewId: true, name: true, event: true, action: true } } }) -useCreateViewRuleMutation({ selection: { fields: { id: true } } }) -useUpdateViewRuleMutation({ selection: { fields: { id: true } } }) -useDeleteViewRuleMutation({}) -``` - -## Examples - -### List all viewRules - -```typescript -const { data, isLoading } = useViewRulesQuery({ - selection: { fields: { id: true, databaseId: true, viewId: true, name: true, event: true, action: true } }, -}); -``` - -### Create a viewRule - -```typescript -const { mutate } = useCreateViewRuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', viewId: '', name: '', event: '', action: '' }); -``` diff --git a/.agents/skills/hooks-public/references/view-table.md b/.agents/skills/hooks-public/references/view-table.md deleted file mode 100644 index 651a00cb72..0000000000 --- a/.agents/skills/hooks-public/references/view-table.md +++ /dev/null @@ -1,34 +0,0 @@ -# viewTable - - - -Junction table linking views to their joined tables for referential integrity - -## Usage - -```typescript -useViewTablesQuery({ selection: { fields: { id: true, viewId: true, tableId: true, joinOrder: true } } }) -useViewTableQuery({ id: '', selection: { fields: { id: true, viewId: true, tableId: true, joinOrder: true } } }) -useCreateViewTableMutation({ selection: { fields: { id: true } } }) -useUpdateViewTableMutation({ selection: { fields: { id: true } } }) -useDeleteViewTableMutation({}) -``` - -## Examples - -### List all viewTables - -```typescript -const { data, isLoading } = useViewTablesQuery({ - selection: { fields: { id: true, viewId: true, tableId: true, joinOrder: true } }, -}); -``` - -### Create a viewTable - -```typescript -const { mutate } = useCreateViewTableMutation({ - selection: { fields: { id: true } }, -}); -mutate({ viewId: '', tableId: '', joinOrder: '' }); -``` diff --git a/.agents/skills/hooks-public/references/view.md b/.agents/skills/hooks-public/references/view.md deleted file mode 100644 index b3f08a5d0d..0000000000 --- a/.agents/skills/hooks-public/references/view.md +++ /dev/null @@ -1,34 +0,0 @@ -# view - - - -React Query hooks for View data operations - -## Usage - -```typescript -useViewsQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, module: true, scope: true, tags: true } } }) -useViewQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, module: true, scope: true, tags: true } } }) -useCreateViewMutation({ selection: { fields: { id: true } } }) -useUpdateViewMutation({ selection: { fields: { id: true } } }) -useDeleteViewMutation({}) -``` - -## Examples - -### List all views - -```typescript -const { data, isLoading } = useViewsQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, module: true, scope: true, tags: true } }, -}); -``` - -### Create a view - -```typescript -const { mutate } = useCreateViewMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', name: '', tableId: '', viewType: '', data: '', filterType: '', filterData: '', securityInvoker: '', isReadOnly: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); -``` diff --git a/.agents/skills/hooks-public/references/webauthn-auth-module.md b/.agents/skills/hooks-public/references/webauthn-auth-module.md deleted file mode 100644 index dfd9386cbb..0000000000 --- a/.agents/skills/hooks-public/references/webauthn-auth-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# webauthnAuthModule - - - -React Query hooks for WebauthnAuthModule data operations - -## Usage - -```typescript -useWebauthnAuthModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, usersTableId: true, credentialsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, sessionSecretsTableId: true, authSettingsTableId: true, rpId: true, rpName: true, originAllowlist: true, attestationType: true, requireUserVerification: true, residentKey: true, challengeExpiry: true } } }) -useWebauthnAuthModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, usersTableId: true, credentialsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, sessionSecretsTableId: true, authSettingsTableId: true, rpId: true, rpName: true, originAllowlist: true, attestationType: true, requireUserVerification: true, residentKey: true, challengeExpiry: true } } }) -useCreateWebauthnAuthModuleMutation({ selection: { fields: { id: true } } }) -useUpdateWebauthnAuthModuleMutation({ selection: { fields: { id: true } } }) -useDeleteWebauthnAuthModuleMutation({}) -``` - -## Examples - -### List all webauthnAuthModules - -```typescript -const { data, isLoading } = useWebauthnAuthModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, usersTableId: true, credentialsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, sessionSecretsTableId: true, authSettingsTableId: true, rpId: true, rpName: true, originAllowlist: true, attestationType: true, requireUserVerification: true, residentKey: true, challengeExpiry: true } }, -}); -``` - -### Create a webauthnAuthModule - -```typescript -const { mutate } = useCreateWebauthnAuthModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', usersTableId: '', credentialsTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', sessionSecretsTableId: '', authSettingsTableId: '', rpId: '', rpName: '', originAllowlist: '', attestationType: '', requireUserVerification: '', residentKey: '', challengeExpiry: '' }); -``` diff --git a/.agents/skills/hooks-public/references/webauthn-credential.md b/.agents/skills/hooks-public/references/webauthn-credential.md deleted file mode 100644 index 05920757dd..0000000000 --- a/.agents/skills/hooks-public/references/webauthn-credential.md +++ /dev/null @@ -1,34 +0,0 @@ -# webauthnCredential - - - -WebAuthn/passkey credentials owned by users. One row per registered authenticator (security key, device biometric, synced passkey). Schema mirrors SimpleWebAuthn's canonical Passkey object. - -## Usage - -```typescript -useWebauthnCredentialsQuery({ selection: { fields: { id: true, ownerId: true, credentialId: true, publicKey: true, signCount: true, webauthnUserId: true, transports: true, credentialDeviceType: true, backupEligible: true, backupState: true, name: true, lastUsedAt: true, createdAt: true, updatedAt: true } } }) -useWebauthnCredentialQuery({ id: '', selection: { fields: { id: true, ownerId: true, credentialId: true, publicKey: true, signCount: true, webauthnUserId: true, transports: true, credentialDeviceType: true, backupEligible: true, backupState: true, name: true, lastUsedAt: true, createdAt: true, updatedAt: true } } }) -useCreateWebauthnCredentialMutation({ selection: { fields: { id: true } } }) -useUpdateWebauthnCredentialMutation({ selection: { fields: { id: true } } }) -useDeleteWebauthnCredentialMutation({}) -``` - -## Examples - -### List all webauthnCredentials - -```typescript -const { data, isLoading } = useWebauthnCredentialsQuery({ - selection: { fields: { id: true, ownerId: true, credentialId: true, publicKey: true, signCount: true, webauthnUserId: true, transports: true, credentialDeviceType: true, backupEligible: true, backupState: true, name: true, lastUsedAt: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a webauthnCredential - -```typescript -const { mutate } = useCreateWebauthnCredentialMutation({ - selection: { fields: { id: true } }, -}); -mutate({ ownerId: '', credentialId: '', publicKey: '', signCount: '', webauthnUserId: '', transports: '', credentialDeviceType: '', backupEligible: '', backupState: '', name: '', lastUsedAt: '' }); -``` diff --git a/.agents/skills/hooks-public/references/webauthn-credentials-module.md b/.agents/skills/hooks-public/references/webauthn-credentials-module.md deleted file mode 100644 index 1885aa810b..0000000000 --- a/.agents/skills/hooks-public/references/webauthn-credentials-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# webauthnCredentialsModule - - - -Config row for the webauthn_credentials_module, which provisions the per-user WebAuthn/passkey credentials table (public key, counter, transports, device type, backup state) mirroring crypto_addresses_module. The sibling webauthn_auth_module holds RP config and the registration/sign-in challenge state. - -## Usage - -```typescript -useWebauthnCredentialsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } } }) -useWebauthnCredentialsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } } }) -useCreateWebauthnCredentialsModuleMutation({ selection: { fields: { id: true } } }) -useUpdateWebauthnCredentialsModuleMutation({ selection: { fields: { id: true } } }) -useDeleteWebauthnCredentialsModuleMutation({}) -``` - -## Examples - -### List all webauthnCredentialsModules - -```typescript -const { data, isLoading } = useWebauthnCredentialsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }, -}); -``` - -### Create a webauthnCredentialsModule - -```typescript -const { mutate } = useCreateWebauthnCredentialsModuleMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }); -``` diff --git a/.agents/skills/hooks-public/references/webauthn-setting.md b/.agents/skills/hooks-public/references/webauthn-setting.md deleted file mode 100644 index 94985870c0..0000000000 --- a/.agents/skills/hooks-public/references/webauthn-setting.md +++ /dev/null @@ -1,34 +0,0 @@ -# webauthnSetting - - - -Per-database WebAuthn/passkey runtime configuration; typed replacement for api_modules webauthn_challenge JSONB entries - -## Usage - -```typescript -useWebauthnSettingsQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, credentialsSchemaId: true, sessionsSchemaId: true, sessionSecretsSchemaId: true, credentialsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, sessionSecretsTableId: true, userFieldId: true, rpId: true, rpName: true, originAllowlist: true, attestationType: true, requireUserVerification: true, residentKey: true, challengeExpirySeconds: true } } }) -useWebauthnSettingQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, credentialsSchemaId: true, sessionsSchemaId: true, sessionSecretsSchemaId: true, credentialsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, sessionSecretsTableId: true, userFieldId: true, rpId: true, rpName: true, originAllowlist: true, attestationType: true, requireUserVerification: true, residentKey: true, challengeExpirySeconds: true } } }) -useCreateWebauthnSettingMutation({ selection: { fields: { id: true } } }) -useUpdateWebauthnSettingMutation({ selection: { fields: { id: true } } }) -useDeleteWebauthnSettingMutation({}) -``` - -## Examples - -### List all webauthnSettings - -```typescript -const { data, isLoading } = useWebauthnSettingsQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, credentialsSchemaId: true, sessionsSchemaId: true, sessionSecretsSchemaId: true, credentialsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, sessionSecretsTableId: true, userFieldId: true, rpId: true, rpName: true, originAllowlist: true, attestationType: true, requireUserVerification: true, residentKey: true, challengeExpirySeconds: true } }, -}); -``` - -### Create a webauthnSetting - -```typescript -const { mutate } = useCreateWebauthnSettingMutation({ - selection: { fields: { id: true } }, -}); -mutate({ databaseId: '', schemaId: '', credentialsSchemaId: '', sessionsSchemaId: '', sessionSecretsSchemaId: '', credentialsTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', sessionSecretsTableId: '', userFieldId: '', rpId: '', rpName: '', originAllowlist: '', attestationType: '', requireUserVerification: '', residentKey: '', challengeExpirySeconds: '' }); -``` diff --git a/.agents/skills/hooks-remote/SKILL.md b/.agents/skills/hooks-remote/SKILL.md index 5bc8c15fc0..5550704686 100644 --- a/.agents/skills/hooks-remote/SKILL.md +++ b/.agents/skills/hooks-remote/SKILL.md @@ -1,13 +1,13 @@ --- name: hooks-remote -description: React Query hooks for the remote API — provides typed query and mutation hooks for 3 tables and 2 custom operations +description: React Query hooks for the remote API — provides typed query and mutation hooks for 3 tables and 3 custom operations --- # hooks-remote -React Query hooks for the remote API — provides typed query and mutation hooks for 3 tables and 2 custom operations +React Query hooks for the remote API — provides typed query and mutation hooks for 3 tables and 3 custom operations ## Usage @@ -41,5 +41,6 @@ See the `references/` directory for detailed per-entity API documentation: - [machine](references/machine.md) - [machine-message](references/machine-message.md) - [machine-session](references/machine-session.md) +- [current-database-id](references/current-database-id.md) - [machines-enroll](references/machines-enroll.md) - [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/hooks-remote/references/current-database-id.md b/.agents/skills/hooks-remote/references/current-database-id.md new file mode 100644 index 0000000000..072139e50f --- /dev/null +++ b/.agents/skills/hooks-remote/references/current-database-id.md @@ -0,0 +1,19 @@ +# currentDatabaseId + + + +React Query query hook for currentDatabaseId + +## Usage + +```typescript +useCurrentDatabaseIdQuery() +``` + +## Examples + +### Use useCurrentDatabaseIdQuery + +```typescript +const { data, isLoading } = useCurrentDatabaseIdQuery(); +``` diff --git a/.agents/skills/hooks-storage/references/bucket.md b/.agents/skills/hooks-storage/references/bucket.md index 173a93e46c..f25cc562c4 100644 --- a/.agents/skills/hooks-storage/references/bucket.md +++ b/.agents/skills/hooks-storage/references/bucket.md @@ -30,5 +30,5 @@ const { data, isLoading } = useBucketsQuery({ const { mutate } = useCreateBucketMutation({ selection: { fields: { id: true } }, }); -mutate({ actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', databaseId: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxBulkFiles: '', maxFileSize: '', physicalName: '', provisionRequestedAt: '', stagingTtl: '', tags: '', type: '' }); +mutate({ actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', databaseId: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxFileSize: '', physicalName: '', provisionRequestedAt: '', stagingTtl: '', tags: '', type: '' }); ``` diff --git a/.agents/skills/hooks-storage/references/file.md b/.agents/skills/hooks-storage/references/file.md index a377f4aba8..df43ad5699 100644 --- a/.agents/skills/hooks-storage/references/file.md +++ b/.agents/skills/hooks-storage/references/file.md @@ -7,9 +7,8 @@ Individual file records within buckets, with immutable identity fields and mutab ## Usage ```typescript -useFilesQuery({ selection: { fields: { actorId: true, bucketId: true, contentHash: true, createdAt: true, databaseId: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, size: true, status: true, tags: true, updatedAt: true, upload: true } } }) -useFileQuery({ id: '', selection: { fields: { actorId: true, bucketId: true, contentHash: true, createdAt: true, databaseId: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, size: true, status: true, tags: true, updatedAt: true, upload: true } } }) -useCreateFileMutation({ selection: { fields: { id: true } } }) +useFilesQuery({ selection: { fields: { actorId: true, bucketId: true, contentHash: true, createdAt: true, databaseId: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, rejectionReason: true, size: true, status: true, tags: true, updatedAt: true, upload: true } } }) +useFileQuery({ id: '', selection: { fields: { actorId: true, bucketId: true, contentHash: true, createdAt: true, databaseId: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, rejectionReason: true, size: true, status: true, tags: true, updatedAt: true, upload: true } } }) useUpdateFileMutation({ selection: { fields: { id: true } } }) useDeleteFileMutation({}) ``` @@ -20,15 +19,6 @@ useDeleteFileMutation({}) ```typescript const { data, isLoading } = useFilesQuery({ - selection: { fields: { actorId: true, bucketId: true, contentHash: true, createdAt: true, databaseId: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }, + selection: { fields: { actorId: true, bucketId: true, contentHash: true, createdAt: true, databaseId: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, rejectionReason: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }, }); ``` - -### Create a file - -```typescript -const { mutate } = useCreateFileMutation({ - selection: { fields: { id: true } }, -}); -mutate({ actorId: '', bucketId: '', contentHash: '', databaseId: '', description: '', downloadUrl: '', expiryEnqueuedAt: '', filePath: '', filename: '', isPublic: '', key: '', mimeType: '', promotedAt: '', size: '', status: '', tags: '', upload: '' }); -``` diff --git a/.agents/skills/hooks-storage/references/platform-bucket.md b/.agents/skills/hooks-storage/references/platform-bucket.md index 3e596aef10..b67e2deec7 100644 --- a/.agents/skills/hooks-storage/references/platform-bucket.md +++ b/.agents/skills/hooks-storage/references/platform-bucket.md @@ -30,5 +30,5 @@ const { data, isLoading } = usePlatformBucketsQuery({ const { mutate } = useCreatePlatformBucketMutation({ selection: { fields: { id: true } }, }); -mutate({ actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxBulkFiles: '', maxFileSize: '', physicalName: '', provisionRequestedAt: '', stagingTtl: '', tags: '', type: '' }); +mutate({ actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxFileSize: '', physicalName: '', provisionRequestedAt: '', stagingTtl: '', tags: '', type: '' }); ``` diff --git a/.agents/skills/hooks-storage/references/platform-file.md b/.agents/skills/hooks-storage/references/platform-file.md index 4ff067bc01..fa1b577de8 100644 --- a/.agents/skills/hooks-storage/references/platform-file.md +++ b/.agents/skills/hooks-storage/references/platform-file.md @@ -7,9 +7,8 @@ Individual file records within buckets, with immutable identity fields and mutab ## Usage ```typescript -usePlatformFilesQuery({ selection: { fields: { actorId: true, bucketId: true, contentHash: true, createdAt: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, size: true, status: true, tags: true, updatedAt: true, upload: true } } }) -usePlatformFileQuery({ id: '', selection: { fields: { actorId: true, bucketId: true, contentHash: true, createdAt: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, size: true, status: true, tags: true, updatedAt: true, upload: true } } }) -useCreatePlatformFileMutation({ selection: { fields: { id: true } } }) +usePlatformFilesQuery({ selection: { fields: { actorId: true, bucketId: true, contentHash: true, createdAt: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, rejectionReason: true, size: true, status: true, tags: true, updatedAt: true, upload: true } } }) +usePlatformFileQuery({ id: '', selection: { fields: { actorId: true, bucketId: true, contentHash: true, createdAt: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, rejectionReason: true, size: true, status: true, tags: true, updatedAt: true, upload: true } } }) useUpdatePlatformFileMutation({ selection: { fields: { id: true } } }) useDeletePlatformFileMutation({}) ``` @@ -20,15 +19,6 @@ useDeletePlatformFileMutation({}) ```typescript const { data, isLoading } = usePlatformFilesQuery({ - selection: { fields: { actorId: true, bucketId: true, contentHash: true, createdAt: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }, + selection: { fields: { actorId: true, bucketId: true, contentHash: true, createdAt: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, rejectionReason: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }, }); ``` - -### Create a platformFile - -```typescript -const { mutate } = useCreatePlatformFileMutation({ - selection: { fields: { id: true } }, -}); -mutate({ actorId: '', bucketId: '', contentHash: '', description: '', downloadUrl: '', expiryEnqueuedAt: '', filePath: '', filename: '', isPublic: '', key: '', mimeType: '', promotedAt: '', size: '', status: '', tags: '', upload: '' }); -``` diff --git a/.agents/skills/hooks-storage/references/upload-files.md b/.agents/skills/hooks-storage/references/upload-files.md index 8ad18d676f..a384f61896 100644 --- a/.agents/skills/hooks-storage/references/upload-files.md +++ b/.agents/skills/hooks-storage/references/upload-files.md @@ -7,7 +7,7 @@ Upload multiple files: resolves the bucket by key, creates file rows, and return ## Usage ```typescript -const { mutate } = useUploadFilesMutation(); mutate({ input: { bucketKey: '', files: '', isPublic: '' } }); +const { mutate } = useUploadFilesMutation(); mutate({ input: { bucketKey: '', databaseId: '', files: '', isPublic: '' } }); ``` ## Examples @@ -16,5 +16,5 @@ const { mutate } = useUploadFilesMutation(); mutate({ input: { bucketKey: '', files: '', isPublic: '' } }); +mutate({ input: { bucketKey: '', databaseId: '', files: '', isPublic: '' } }); ``` diff --git a/.agents/skills/hooks-usage/references/app-achievement-reward.md b/.agents/skills/hooks-usage/references/app-achievement-reward.md deleted file mode 100644 index be031291b4..0000000000 --- a/.agents/skills/hooks-usage/references/app-achievement-reward.md +++ /dev/null @@ -1,34 +0,0 @@ -# appAchievementReward - - - -Defines rewards granted when a level is achieved; supports limit_credits and meter_credits - -## Usage - -```typescript -useAppAchievementRewardsQuery({ selection: { fields: { amount: true, createdAt: true, creditType: true, expiresInterval: true, id: true, levelName: true, rewardType: true, targetName: true, updatedAt: true } } }) -useAppAchievementRewardQuery({ id: '', selection: { fields: { amount: true, createdAt: true, creditType: true, expiresInterval: true, id: true, levelName: true, rewardType: true, targetName: true, updatedAt: true } } }) -useCreateAppAchievementRewardMutation({ selection: { fields: { id: true } } }) -useUpdateAppAchievementRewardMutation({ selection: { fields: { id: true } } }) -useDeleteAppAchievementRewardMutation({}) -``` - -## Examples - -### List all appAchievementRewards - -```typescript -const { data, isLoading } = useAppAchievementRewardsQuery({ - selection: { fields: { amount: true, createdAt: true, creditType: true, expiresInterval: true, id: true, levelName: true, rewardType: true, targetName: true, updatedAt: true } }, -}); -``` - -### Create a appAchievementReward - -```typescript -const { mutate } = useCreateAppAchievementRewardMutation({ - selection: { fields: { id: true } }, -}); -mutate({ amount: '', creditType: '', expiresInterval: '', levelName: '', rewardType: '', targetName: '' }); -``` diff --git a/.agents/skills/hooks-usage/references/app-event-aggregate.md b/.agents/skills/hooks-usage/references/app-event-aggregate.md deleted file mode 100644 index 088d679e03..0000000000 --- a/.agents/skills/hooks-usage/references/app-event-aggregate.md +++ /dev/null @@ -1,34 +0,0 @@ -# appEventAggregate - - - -Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually - -## Usage - -```typescript -useAppEventAggregatesQuery({ selection: { fields: { actorId: true, count: true, createdAt: true, id: true, name: true, periodStart: true, updatedAt: true } } }) -useAppEventAggregateQuery({ id: '', selection: { fields: { actorId: true, count: true, createdAt: true, id: true, name: true, periodStart: true, updatedAt: true } } }) -useCreateAppEventAggregateMutation({ selection: { fields: { id: true } } }) -useUpdateAppEventAggregateMutation({ selection: { fields: { id: true } } }) -useDeleteAppEventAggregateMutation({}) -``` - -## Examples - -### List all appEventAggregates - -```typescript -const { data, isLoading } = useAppEventAggregatesQuery({ - selection: { fields: { actorId: true, count: true, createdAt: true, id: true, name: true, periodStart: true, updatedAt: true } }, -}); -``` - -### Create a appEventAggregate - -```typescript -const { mutate } = useCreateAppEventAggregateMutation({ - selection: { fields: { id: true } }, -}); -mutate({ actorId: '', count: '', name: '', periodStart: '' }); -``` diff --git a/.agents/skills/hooks-usage/references/app-event-type.md b/.agents/skills/hooks-usage/references/app-event-type.md deleted file mode 100644 index 3dc3b9b2e9..0000000000 --- a/.agents/skills/hooks-usage/references/app-event-type.md +++ /dev/null @@ -1,34 +0,0 @@ -# appEventType - - - -Catalog of known event types with per-type configuration for aggregation, retention, and level participation - -## Usage - -```typescript -useAppEventTypesQuery({ selection: { fields: { aggregation: true, category: true, createdAt: true, description: true, feedsLevels: true, id: true, isActive: true, name: true, periodInterval: true, updatedAt: true } } }) -useAppEventTypeQuery({ id: '', selection: { fields: { aggregation: true, category: true, createdAt: true, description: true, feedsLevels: true, id: true, isActive: true, name: true, periodInterval: true, updatedAt: true } } }) -useCreateAppEventTypeMutation({ selection: { fields: { id: true } } }) -useUpdateAppEventTypeMutation({ selection: { fields: { id: true } } }) -useDeleteAppEventTypeMutation({}) -``` - -## Examples - -### List all appEventTypes - -```typescript -const { data, isLoading } = useAppEventTypesQuery({ - selection: { fields: { aggregation: true, category: true, createdAt: true, description: true, feedsLevels: true, id: true, isActive: true, name: true, periodInterval: true, updatedAt: true } }, -}); -``` - -### Create a appEventType - -```typescript -const { mutate } = useCreateAppEventTypeMutation({ - selection: { fields: { id: true } }, -}); -mutate({ aggregation: '', category: '', description: '', feedsLevels: '', isActive: '', name: '', periodInterval: '' }); -``` diff --git a/.agents/skills/hooks-usage/references/app-event.md b/.agents/skills/hooks-usage/references/app-event.md deleted file mode 100644 index b9c9fe6996..0000000000 --- a/.agents/skills/hooks-usage/references/app-event.md +++ /dev/null @@ -1,34 +0,0 @@ -# appEvent - - - -Partitioned append-only log of individual user actions; every single event ever recorded - -## Usage - -```typescript -useAppEventsQuery({ selection: { fields: { actorId: true, count: true, createdAt: true, id: true, name: true } } }) -useAppEventQuery({ id: '', selection: { fields: { actorId: true, count: true, createdAt: true, id: true, name: true } } }) -useCreateAppEventMutation({ selection: { fields: { id: true } } }) -useUpdateAppEventMutation({ selection: { fields: { id: true } } }) -useDeleteAppEventMutation({}) -``` - -## Examples - -### List all appEvents - -```typescript -const { data, isLoading } = useAppEventsQuery({ - selection: { fields: { actorId: true, count: true, createdAt: true, id: true, name: true } }, -}); -``` - -### Create a appEvent - -```typescript -const { mutate } = useCreateAppEventMutation({ - selection: { fields: { id: true } }, -}); -mutate({ actorId: '', count: '', name: '' }); -``` diff --git a/.agents/skills/hooks-usage/references/app-level-grant.md b/.agents/skills/hooks-usage/references/app-level-grant.md deleted file mode 100644 index bc91f4a40c..0000000000 --- a/.agents/skills/hooks-usage/references/app-level-grant.md +++ /dev/null @@ -1,34 +0,0 @@ -# appLevelGrant - - - -Records when a user achieves a level; prevents duplicate reward grants - -## Usage - -```typescript -useAppLevelGrantsQuery({ selection: { fields: { actorId: true, createdAt: true, expiresAt: true, id: true, levelName: true, periodStart: true, updatedAt: true } } }) -useAppLevelGrantQuery({ id: '', selection: { fields: { actorId: true, createdAt: true, expiresAt: true, id: true, levelName: true, periodStart: true, updatedAt: true } } }) -useCreateAppLevelGrantMutation({ selection: { fields: { id: true } } }) -useUpdateAppLevelGrantMutation({ selection: { fields: { id: true } } }) -useDeleteAppLevelGrantMutation({}) -``` - -## Examples - -### List all appLevelGrants - -```typescript -const { data, isLoading } = useAppLevelGrantsQuery({ - selection: { fields: { actorId: true, createdAt: true, expiresAt: true, id: true, levelName: true, periodStart: true, updatedAt: true } }, -}); -``` - -### Create a appLevelGrant - -```typescript -const { mutate } = useCreateAppLevelGrantMutation({ - selection: { fields: { id: true } }, -}); -mutate({ actorId: '', expiresAt: '', levelName: '', periodStart: '' }); -``` diff --git a/.agents/skills/hooks-usage/references/app-level-requirement.md b/.agents/skills/hooks-usage/references/app-level-requirement.md deleted file mode 100644 index 3bc599a59a..0000000000 --- a/.agents/skills/hooks-usage/references/app-level-requirement.md +++ /dev/null @@ -1,34 +0,0 @@ -# appLevelRequirement - - - -Defines the specific requirements that must be met to achieve a level - -## Usage - -```typescript -useAppLevelRequirementsQuery({ selection: { fields: { createdAt: true, description: true, groupKey: true, id: true, level: true, metric: true, name: true, priority: true, requiredCount: true, updatedAt: true } } }) -useAppLevelRequirementQuery({ id: '', selection: { fields: { createdAt: true, description: true, groupKey: true, id: true, level: true, metric: true, name: true, priority: true, requiredCount: true, updatedAt: true } } }) -useCreateAppLevelRequirementMutation({ selection: { fields: { id: true } } }) -useUpdateAppLevelRequirementMutation({ selection: { fields: { id: true } } }) -useDeleteAppLevelRequirementMutation({}) -``` - -## Examples - -### List all appLevelRequirements - -```typescript -const { data, isLoading } = useAppLevelRequirementsQuery({ - selection: { fields: { createdAt: true, description: true, groupKey: true, id: true, level: true, metric: true, name: true, priority: true, requiredCount: true, updatedAt: true } }, -}); -``` - -### Create a appLevelRequirement - -```typescript -const { mutate } = useCreateAppLevelRequirementMutation({ - selection: { fields: { id: true } }, -}); -mutate({ description: '', groupKey: '', level: '', metric: '', name: '', priority: '', requiredCount: '' }); -``` diff --git a/.agents/skills/hooks-usage/references/app-level.md b/.agents/skills/hooks-usage/references/app-level.md deleted file mode 100644 index f6318b2d25..0000000000 --- a/.agents/skills/hooks-usage/references/app-level.md +++ /dev/null @@ -1,34 +0,0 @@ -# appLevel - - - -Defines available levels that users can achieve by completing requirements - -## Usage - -```typescript -useAppLevelsQuery({ selection: { fields: { createdAt: true, description: true, id: true, image: true, name: true, ownerId: true, updatedAt: true } } }) -useAppLevelQuery({ id: '', selection: { fields: { createdAt: true, description: true, id: true, image: true, name: true, ownerId: true, updatedAt: true } } }) -useCreateAppLevelMutation({ selection: { fields: { id: true } } }) -useUpdateAppLevelMutation({ selection: { fields: { id: true } } }) -useDeleteAppLevelMutation({}) -``` - -## Examples - -### List all appLevels - -```typescript -const { data, isLoading } = useAppLevelsQuery({ - selection: { fields: { createdAt: true, description: true, id: true, image: true, name: true, ownerId: true, updatedAt: true } }, -}); -``` - -### Create a appLevel - -```typescript -const { mutate } = useCreateAppLevelMutation({ - selection: { fields: { id: true } }, -}); -mutate({ description: '', image: '', name: '', ownerId: '' }); -``` diff --git a/.agents/skills/hooks-usage/references/billing-usage-summary.md b/.agents/skills/hooks-usage/references/billing-usage-summary.md deleted file mode 100644 index f53c984556..0000000000 --- a/.agents/skills/hooks-usage/references/billing-usage-summary.md +++ /dev/null @@ -1,34 +0,0 @@ -# billingUsageSummary - - - -Permanent monthly usage summary per entity per meter (user-facing billing dashboard) - -## Usage - -```typescript -useBillingUsageSummariesQuery({ selection: { fields: { creditsConsumed: true, entityId: true, entityType: true, id: true, meterSlug: true, organizationId: true, overageUnits: true, periodEnd: true, periodStart: true, planLimit: true, quantityUsed: true } } }) -useBillingUsageSummaryQuery({ id: '', selection: { fields: { creditsConsumed: true, entityId: true, entityType: true, id: true, meterSlug: true, organizationId: true, overageUnits: true, periodEnd: true, periodStart: true, planLimit: true, quantityUsed: true } } }) -useCreateBillingUsageSummaryMutation({ selection: { fields: { id: true } } }) -useUpdateBillingUsageSummaryMutation({ selection: { fields: { id: true } } }) -useDeleteBillingUsageSummaryMutation({}) -``` - -## Examples - -### List all billingUsageSummaries - -```typescript -const { data, isLoading } = useBillingUsageSummariesQuery({ - selection: { fields: { creditsConsumed: true, entityId: true, entityType: true, id: true, meterSlug: true, organizationId: true, overageUnits: true, periodEnd: true, periodStart: true, planLimit: true, quantityUsed: true } }, -}); -``` - -### Create a billingUsageSummary - -```typescript -const { mutate } = useCreateBillingUsageSummaryMutation({ - selection: { fields: { id: true } }, -}); -mutate({ creditsConsumed: '', entityId: '', entityType: '', meterSlug: '', organizationId: '', overageUnits: '', periodEnd: '', periodStart: '', planLimit: '', quantityUsed: '' }); -``` diff --git a/.agents/skills/hooks-usage/references/capture-trust-ladder.md b/.agents/skills/hooks-usage/references/capture-trust-ladder.md deleted file mode 100644 index c50cd6fb32..0000000000 --- a/.agents/skills/hooks-usage/references/capture-trust-ladder.md +++ /dev/null @@ -1,19 +0,0 @@ -# captureTrustLadder - - - -React Query query hook for captureTrustLadder - -## Usage - -```typescript -useCaptureTrustLadderQuery() -``` - -## Examples - -### Use useCaptureTrustLadderQuery - -```typescript -const { data, isLoading } = useCaptureTrustLadderQuery(); -``` diff --git a/.agents/skills/hooks-usage/references/events-achieved.md b/.agents/skills/hooks-usage/references/events-achieved.md deleted file mode 100644 index d88d7a2abd..0000000000 --- a/.agents/skills/hooks-usage/references/events-achieved.md +++ /dev/null @@ -1,19 +0,0 @@ -# eventsAchieved - - - -React Query query hook for eventsAchieved - -## Usage - -```typescript -useEventsAchievedQuery({ level: '', roleId: '' }) -``` - -## Examples - -### Use useEventsAchievedQuery - -```typescript -const { data, isLoading } = useEventsAchievedQuery({ level: '', roleId: '' }); -``` diff --git a/.agents/skills/hooks-usage/references/events-required.md b/.agents/skills/hooks-usage/references/events-required.md deleted file mode 100644 index 7c3a9fc23e..0000000000 --- a/.agents/skills/hooks-usage/references/events-required.md +++ /dev/null @@ -1,19 +0,0 @@ -# eventsRequired - - - -Reads and enables pagination through a set of `AppLevelRequirement`. - -## Usage - -```typescript -useEventsRequiredQuery({ after: '', first: '', level: '', offset: '', roleId: '' }) -``` - -## Examples - -### Use useEventsRequiredQuery - -```typescript -const { data, isLoading } = useEventsRequiredQuery({ after: '', first: '', level: '', offset: '', roleId: '' }); -``` diff --git a/.agents/skills/hooks-usage/references/grant-achievement.md b/.agents/skills/hooks-usage/references/grant-achievement.md deleted file mode 100644 index 979578c72a..0000000000 --- a/.agents/skills/hooks-usage/references/grant-achievement.md +++ /dev/null @@ -1,20 +0,0 @@ -# grantAchievement - - - -React Query mutation hook for grantAchievement - -## Usage - -```typescript -const { mutate } = useGrantAchievementMutation(); mutate({ input: { actorId: '', levelName: '' } }); -``` - -## Examples - -### Use useGrantAchievementMutation - -```typescript -const { mutate, isLoading } = useGrantAchievementMutation(); -mutate({ input: { actorId: '', levelName: '' } }); -``` diff --git a/.agents/skills/hooks-usage/references/ledger.md b/.agents/skills/hooks-usage/references/ledger.md deleted file mode 100644 index 721879081c..0000000000 --- a/.agents/skills/hooks-usage/references/ledger.md +++ /dev/null @@ -1,34 +0,0 @@ -# ledger - - - -Append-only event log for all billing events (usage, grants, adjustments) - -## Usage - -```typescript -useLedgersQuery({ selection: { fields: { createdAt: true, delta: true, entityId: true, entityType: true, entryType: true, id: true, ledgerClass: true, metadata: true, meterSlug: true, organizationId: true, usageAfter: true } } }) -useLedgerQuery({ id: '', selection: { fields: { createdAt: true, delta: true, entityId: true, entityType: true, entryType: true, id: true, ledgerClass: true, metadata: true, meterSlug: true, organizationId: true, usageAfter: true } } }) -useCreateLedgerMutation({ selection: { fields: { id: true } } }) -useUpdateLedgerMutation({ selection: { fields: { id: true } } }) -useDeleteLedgerMutation({}) -``` - -## Examples - -### List all ledgers - -```typescript -const { data, isLoading } = useLedgersQuery({ - selection: { fields: { createdAt: true, delta: true, entityId: true, entityType: true, entryType: true, id: true, ledgerClass: true, metadata: true, meterSlug: true, organizationId: true, usageAfter: true } }, -}); -``` - -### Create a ledger - -```typescript -const { mutate } = useCreateLedgerMutation({ - selection: { fields: { id: true } }, -}); -mutate({ delta: '', entityId: '', entityType: '', entryType: '', ledgerClass: '', metadata: '', meterSlug: '', organizationId: '', usageAfter: '' }); -``` diff --git a/.agents/skills/hooks-usage/references/meter-credit.md b/.agents/skills/hooks-usage/references/meter-credit.md deleted file mode 100644 index 8b806ebee9..0000000000 --- a/.agents/skills/hooks-usage/references/meter-credit.md +++ /dev/null @@ -1,34 +0,0 @@ -# meterCredit - - - -Append-only ledger of credit grants for billing meters that automatically update balances - -## Usage - -```typescript -useMeterCreditsQuery({ selection: { fields: { amount: true, createdAt: true, creditType: true, entityId: true, entityType: true, expiresAt: true, id: true, meterId: true, organizationId: true, reason: true } } }) -useMeterCreditQuery({ id: '', selection: { fields: { amount: true, createdAt: true, creditType: true, entityId: true, entityType: true, expiresAt: true, id: true, meterId: true, organizationId: true, reason: true } } }) -useCreateMeterCreditMutation({ selection: { fields: { id: true } } }) -useUpdateMeterCreditMutation({ selection: { fields: { id: true } } }) -useDeleteMeterCreditMutation({}) -``` - -## Examples - -### List all meterCredits - -```typescript -const { data, isLoading } = useMeterCreditsQuery({ - selection: { fields: { amount: true, createdAt: true, creditType: true, entityId: true, entityType: true, expiresAt: true, id: true, meterId: true, organizationId: true, reason: true } }, -}); -``` - -### Create a meterCredit - -```typescript -const { mutate } = useCreateMeterCreditMutation({ - selection: { fields: { id: true } }, -}); -mutate({ amount: '', creditType: '', entityId: '', entityType: '', expiresAt: '', meterId: '', organizationId: '', reason: '' }); -``` diff --git a/.agents/skills/hooks-usage/references/meter-default.md b/.agents/skills/hooks-usage/references/meter-default.md deleted file mode 100644 index 087fa56c0a..0000000000 --- a/.agents/skills/hooks-usage/references/meter-default.md +++ /dev/null @@ -1,34 +0,0 @@ -# meterDefault - - - -Default meter catalog: defines which meters are available and their default plan_limit values for new entities - -## Usage - -```typescript -useMeterDefaultsQuery({ selection: { fields: { categoryMeter: true, creditCost: true, defaultPlanLimit: true, displayName: true, id: true, isActive: true, meterType: true, slug: true, unit: true } } }) -useMeterDefaultQuery({ id: '', selection: { fields: { categoryMeter: true, creditCost: true, defaultPlanLimit: true, displayName: true, id: true, isActive: true, meterType: true, slug: true, unit: true } } }) -useCreateMeterDefaultMutation({ selection: { fields: { id: true } } }) -useUpdateMeterDefaultMutation({ selection: { fields: { id: true } } }) -useDeleteMeterDefaultMutation({}) -``` - -## Examples - -### List all meterDefaults - -```typescript -const { data, isLoading } = useMeterDefaultsQuery({ - selection: { fields: { categoryMeter: true, creditCost: true, defaultPlanLimit: true, displayName: true, id: true, isActive: true, meterType: true, slug: true, unit: true } }, -}); -``` - -### Create a meterDefault - -```typescript -const { mutate } = useCreateMeterDefaultMutation({ - selection: { fields: { id: true } }, -}); -mutate({ categoryMeter: '', creditCost: '', defaultPlanLimit: '', displayName: '', isActive: '', meterType: '', slug: '', unit: '' }); -``` diff --git a/.agents/skills/hooks-usage/references/meter-source.md b/.agents/skills/hooks-usage/references/meter-source.md deleted file mode 100644 index a4ca1a3009..0000000000 --- a/.agents/skills/hooks-usage/references/meter-source.md +++ /dev/null @@ -1,34 +0,0 @@ -# meterSource - - - -Maps billing meters to typed usage summary table columns for automated usage reconciliation. Each row tells reconcile_typed_usage() which column to aggregate and how. - -## Usage - -```typescript -useMeterSourcesQuery({ selection: { fields: { aggregationType: true, dimensionPath: true, id: true, isActive: true, meterSlug: true, sourceMetric: true } } }) -useMeterSourceQuery({ id: '', selection: { fields: { aggregationType: true, dimensionPath: true, id: true, isActive: true, meterSlug: true, sourceMetric: true } } }) -useCreateMeterSourceMutation({ selection: { fields: { id: true } } }) -useUpdateMeterSourceMutation({ selection: { fields: { id: true } } }) -useDeleteMeterSourceMutation({}) -``` - -## Examples - -### List all meterSources - -```typescript -const { data, isLoading } = useMeterSourcesQuery({ - selection: { fields: { aggregationType: true, dimensionPath: true, id: true, isActive: true, meterSlug: true, sourceMetric: true } }, -}); -``` - -### Create a meterSource - -```typescript -const { mutate } = useCreateMeterSourceMutation({ - selection: { fields: { id: true } }, -}); -mutate({ aggregationType: '', dimensionPath: '', isActive: '', meterSlug: '', sourceMetric: '' }); -``` diff --git a/.agents/skills/hooks-usage/references/meter.md b/.agents/skills/hooks-usage/references/meter.md deleted file mode 100644 index 023a7edc97..0000000000 --- a/.agents/skills/hooks-usage/references/meter.md +++ /dev/null @@ -1,34 +0,0 @@ -# meter - - - -Defines billable meters (what to track: quotas, feature flags, credit pools) - -## Usage - -```typescript -useMetersQuery({ selection: { fields: { aggregation: true, categoryMeter: true, creditCost: true, displayName: true, id: true, isActive: true, meterType: true, periodInterval: true, rolloverCap: true, slug: true, unit: true } } }) -useMeterQuery({ id: '', selection: { fields: { aggregation: true, categoryMeter: true, creditCost: true, displayName: true, id: true, isActive: true, meterType: true, periodInterval: true, rolloverCap: true, slug: true, unit: true } } }) -useCreateMeterMutation({ selection: { fields: { id: true } } }) -useUpdateMeterMutation({ selection: { fields: { id: true } } }) -useDeleteMeterMutation({}) -``` - -## Examples - -### List all meters - -```typescript -const { data, isLoading } = useMetersQuery({ - selection: { fields: { aggregation: true, categoryMeter: true, creditCost: true, displayName: true, id: true, isActive: true, meterType: true, periodInterval: true, rolloverCap: true, slug: true, unit: true } }, -}); -``` - -### Create a meter - -```typescript -const { mutate } = useCreateMeterMutation({ - selection: { fields: { id: true } }, -}); -mutate({ aggregation: '', categoryMeter: '', creditCost: '', displayName: '', isActive: '', meterType: '', periodInterval: '', rolloverCap: '', slug: '', unit: '' }); -``` diff --git a/.agents/skills/hooks-usage/references/plan-cap.md b/.agents/skills/hooks-usage/references/plan-cap.md deleted file mode 100644 index b5df8f4fc9..0000000000 --- a/.agents/skills/hooks-usage/references/plan-cap.md +++ /dev/null @@ -1,34 +0,0 @@ -# planCap - - - -Maps each plan to feature flag cap values (written to limit_caps when plan is applied) - -## Usage - -```typescript -usePlanCapsQuery({ selection: { fields: { capName: true, capValue: true, id: true, planId: true } } }) -usePlanCapQuery({ id: '', selection: { fields: { capName: true, capValue: true, id: true, planId: true } } }) -useCreatePlanCapMutation({ selection: { fields: { id: true } } }) -useUpdatePlanCapMutation({ selection: { fields: { id: true } } }) -useDeletePlanCapMutation({}) -``` - -## Examples - -### List all planCaps - -```typescript -const { data, isLoading } = usePlanCapsQuery({ - selection: { fields: { capName: true, capValue: true, id: true, planId: true } }, -}); -``` - -### Create a planCap - -```typescript -const { mutate } = useCreatePlanCapMutation({ - selection: { fields: { id: true } }, -}); -mutate({ capName: '', capValue: '', planId: '' }); -``` diff --git a/.agents/skills/hooks-usage/references/plan-limit.md b/.agents/skills/hooks-usage/references/plan-limit.md deleted file mode 100644 index 939bd8a0ee..0000000000 --- a/.agents/skills/hooks-usage/references/plan-limit.md +++ /dev/null @@ -1,34 +0,0 @@ -# planLimit - - - -Maps each plan to specific limit names and their maximum allowed values - -## Usage - -```typescript -usePlanLimitsQuery({ selection: { fields: { id: true, limitName: true, maxValue: true, planId: true } } }) -usePlanLimitQuery({ id: '', selection: { fields: { id: true, limitName: true, maxValue: true, planId: true } } }) -useCreatePlanLimitMutation({ selection: { fields: { id: true } } }) -useUpdatePlanLimitMutation({ selection: { fields: { id: true } } }) -useDeletePlanLimitMutation({}) -``` - -## Examples - -### List all planLimits - -```typescript -const { data, isLoading } = usePlanLimitsQuery({ - selection: { fields: { id: true, limitName: true, maxValue: true, planId: true } }, -}); -``` - -### Create a planLimit - -```typescript -const { mutate } = useCreatePlanLimitMutation({ - selection: { fields: { id: true } }, -}); -mutate({ limitName: '', maxValue: '', planId: '' }); -``` diff --git a/.agents/skills/hooks-usage/references/plan-meter-limit.md b/.agents/skills/hooks-usage/references/plan-meter-limit.md deleted file mode 100644 index da2e4df3f9..0000000000 --- a/.agents/skills/hooks-usage/references/plan-meter-limit.md +++ /dev/null @@ -1,34 +0,0 @@ -# planMeterLimit - - - -Maps each plan to billing meter quotas (plan_limit values written to balances when plan is applied) - -## Usage - -```typescript -usePlanMeterLimitsQuery({ selection: { fields: { id: true, meterSlug: true, planId: true, planLimit: true } } }) -usePlanMeterLimitQuery({ id: '', selection: { fields: { id: true, meterSlug: true, planId: true, planLimit: true } } }) -useCreatePlanMeterLimitMutation({ selection: { fields: { id: true } } }) -useUpdatePlanMeterLimitMutation({ selection: { fields: { id: true } } }) -useDeletePlanMeterLimitMutation({}) -``` - -## Examples - -### List all planMeterLimits - -```typescript -const { data, isLoading } = usePlanMeterLimitsQuery({ - selection: { fields: { id: true, meterSlug: true, planId: true, planLimit: true } }, -}); -``` - -### Create a planMeterLimit - -```typescript -const { mutate } = useCreatePlanMeterLimitMutation({ - selection: { fields: { id: true } }, -}); -mutate({ meterSlug: '', planId: '', planLimit: '' }); -``` diff --git a/.agents/skills/hooks-usage/references/plan-override.md b/.agents/skills/hooks-usage/references/plan-override.md deleted file mode 100644 index 78a75204b4..0000000000 --- a/.agents/skills/hooks-usage/references/plan-override.md +++ /dev/null @@ -1,34 +0,0 @@ -# planOverride - - - -Per-entity limit overrides that take precedence over plan defaults - -## Usage - -```typescript -usePlanOverridesQuery({ selection: { fields: { entityId: true, expiresAt: true, id: true, limitName: true, maxValue: true, reason: true } } }) -usePlanOverrideQuery({ id: '', selection: { fields: { entityId: true, expiresAt: true, id: true, limitName: true, maxValue: true, reason: true } } }) -useCreatePlanOverrideMutation({ selection: { fields: { id: true } } }) -useUpdatePlanOverrideMutation({ selection: { fields: { id: true } } }) -useDeletePlanOverrideMutation({}) -``` - -## Examples - -### List all planOverrides - -```typescript -const { data, isLoading } = usePlanOverridesQuery({ - selection: { fields: { entityId: true, expiresAt: true, id: true, limitName: true, maxValue: true, reason: true } }, -}); -``` - -### Create a planOverride - -```typescript -const { mutate } = useCreatePlanOverrideMutation({ - selection: { fields: { id: true } }, -}); -mutate({ entityId: '', expiresAt: '', limitName: '', maxValue: '', reason: '' }); -``` diff --git a/.agents/skills/hooks-usage/references/plan-pricing.md b/.agents/skills/hooks-usage/references/plan-pricing.md deleted file mode 100644 index fd56aa5438..0000000000 --- a/.agents/skills/hooks-usage/references/plan-pricing.md +++ /dev/null @@ -1,34 +0,0 @@ -# planPricing - - - -Billing intervals and pricing for each plan tier - -## Usage - -```typescript -usePlanPricingsQuery({ selection: { fields: { billingInterval: true, currency: true, discountPercent: true, id: true, isActive: true, planId: true, price: true } } }) -usePlanPricingQuery({ id: '', selection: { fields: { billingInterval: true, currency: true, discountPercent: true, id: true, isActive: true, planId: true, price: true } } }) -useCreatePlanPricingMutation({ selection: { fields: { id: true } } }) -useUpdatePlanPricingMutation({ selection: { fields: { id: true } } }) -useDeletePlanPricingMutation({}) -``` - -## Examples - -### List all planPricings - -```typescript -const { data, isLoading } = usePlanPricingsQuery({ - selection: { fields: { billingInterval: true, currency: true, discountPercent: true, id: true, isActive: true, planId: true, price: true } }, -}); -``` - -### Create a planPricing - -```typescript -const { mutate } = useCreatePlanPricingMutation({ - selection: { fields: { id: true } }, -}); -mutate({ billingInterval: '', currency: '', discountPercent: '', isActive: '', planId: '', price: '' }); -``` diff --git a/.agents/skills/hooks-usage/references/plan-subscription.md b/.agents/skills/hooks-usage/references/plan-subscription.md deleted file mode 100644 index b4aa5f5db9..0000000000 --- a/.agents/skills/hooks-usage/references/plan-subscription.md +++ /dev/null @@ -1,34 +0,0 @@ -# planSubscription - - - -Assigns a plan to an entity with subscription lifecycle (start, end, active state) - -## Usage - -```typescript -usePlanSubscriptionsQuery({ selection: { fields: { endsAt: true, entityId: true, entityType: true, id: true, isActive: true, organizationId: true, planId: true, startsAt: true } } }) -usePlanSubscriptionQuery({ id: '', selection: { fields: { endsAt: true, entityId: true, entityType: true, id: true, isActive: true, organizationId: true, planId: true, startsAt: true } } }) -useCreatePlanSubscriptionMutation({ selection: { fields: { id: true } } }) -useUpdatePlanSubscriptionMutation({ selection: { fields: { id: true } } }) -useDeletePlanSubscriptionMutation({}) -``` - -## Examples - -### List all planSubscriptions - -```typescript -const { data, isLoading } = usePlanSubscriptionsQuery({ - selection: { fields: { endsAt: true, entityId: true, entityType: true, id: true, isActive: true, organizationId: true, planId: true, startsAt: true } }, -}); -``` - -### Create a planSubscription - -```typescript -const { mutate } = useCreatePlanSubscriptionMutation({ - selection: { fields: { id: true } }, -}); -mutate({ endsAt: '', entityId: '', entityType: '', isActive: '', organizationId: '', planId: '', startsAt: '' }); -``` diff --git a/.agents/skills/hooks-usage/references/plan.md b/.agents/skills/hooks-usage/references/plan.md deleted file mode 100644 index 8442ac9ed5..0000000000 --- a/.agents/skills/hooks-usage/references/plan.md +++ /dev/null @@ -1,34 +0,0 @@ -# plan - - - -Defines plan tiers with named limit configurations - -## Usage - -```typescript -usePlansQuery({ selection: { fields: { description: true, id: true, isActive: true, name: true } } }) -usePlanQuery({ id: '', selection: { fields: { description: true, id: true, isActive: true, name: true } } }) -useCreatePlanMutation({ selection: { fields: { id: true } } }) -useUpdatePlanMutation({ selection: { fields: { id: true } } }) -useDeletePlanMutation({}) -``` - -## Examples - -### List all plans - -```typescript -const { data, isLoading } = usePlansQuery({ - selection: { fields: { description: true, id: true, isActive: true, name: true } }, -}); -``` - -### Create a plan - -```typescript -const { mutate } = useCreatePlanMutation({ - selection: { fields: { id: true } }, -}); -mutate({ description: '', isActive: '', name: '' }); -``` diff --git a/.agents/skills/hooks-usage/references/recompute-capabilities.md b/.agents/skills/hooks-usage/references/recompute-capabilities.md deleted file mode 100644 index 7e7f1f640a..0000000000 --- a/.agents/skills/hooks-usage/references/recompute-capabilities.md +++ /dev/null @@ -1,20 +0,0 @@ -# recomputeCapabilities - - - -React Query mutation hook for recomputeCapabilities - -## Usage - -```typescript -const { mutate } = useRecomputeCapabilitiesMutation(); mutate({ input: { actorId: '' } }); -``` - -## Examples - -### Use useRecomputeCapabilitiesMutation - -```typescript -const { mutate, isLoading } = useRecomputeCapabilitiesMutation(); -mutate({ input: { actorId: '' } }); -``` diff --git a/.agents/skills/hooks-usage/references/revoke-achievement.md b/.agents/skills/hooks-usage/references/revoke-achievement.md deleted file mode 100644 index 07a81cf10c..0000000000 --- a/.agents/skills/hooks-usage/references/revoke-achievement.md +++ /dev/null @@ -1,20 +0,0 @@ -# revokeAchievement - - - -React Query mutation hook for revokeAchievement - -## Usage - -```typescript -const { mutate } = useRevokeAchievementMutation(); mutate({ input: { actorId: '', levelName: '' } }); -``` - -## Examples - -### Use useRevokeAchievementMutation - -```typescript -const { mutate, isLoading } = useRevokeAchievementMutation(); -mutate({ input: { actorId: '', levelName: '' } }); -``` diff --git a/.agents/skills/hooks-usage/references/seed-meter-defaults.md b/.agents/skills/hooks-usage/references/seed-meter-defaults.md deleted file mode 100644 index a55295a5b6..0000000000 --- a/.agents/skills/hooks-usage/references/seed-meter-defaults.md +++ /dev/null @@ -1,20 +0,0 @@ -# seedMeterDefaults - - - -React Query mutation hook for seedMeterDefaults - -## Usage - -```typescript -const { mutate } = useSeedMeterDefaultsMutation(); mutate({ input: { defaults: '' } }); -``` - -## Examples - -### Use useSeedMeterDefaultsMutation - -```typescript -const { mutate, isLoading } = useSeedMeterDefaultsMutation(); -mutate({ input: { defaults: '' } }); -``` diff --git a/.agents/skills/hooks-usage/references/seed-plan.md b/.agents/skills/hooks-usage/references/seed-plan.md deleted file mode 100644 index 2b2808de4c..0000000000 --- a/.agents/skills/hooks-usage/references/seed-plan.md +++ /dev/null @@ -1,20 +0,0 @@ -# seedPlan - - - -React Query mutation hook for seedPlan - -## Usage - -```typescript -const { mutate } = useSeedPlanMutation(); mutate({ input: { planConfig: '', planName: '' } }); -``` - -## Examples - -### Use useSeedPlanMutation - -```typescript -const { mutate, isLoading } = useSeedPlanMutation(); -mutate({ input: { planConfig: '', planName: '' } }); -``` diff --git a/.agents/skills/hooks-usage/references/seed-trust-ladder.md b/.agents/skills/hooks-usage/references/seed-trust-ladder.md deleted file mode 100644 index 9aa2f56994..0000000000 --- a/.agents/skills/hooks-usage/references/seed-trust-ladder.md +++ /dev/null @@ -1,20 +0,0 @@ -# seedTrustLadder - - - -React Query mutation hook for seedTrustLadder - -## Usage - -```typescript -const { mutate } = useSeedTrustLadderMutation(); mutate({ input: { ladder: '' } }); -``` - -## Examples - -### Use useSeedTrustLadderMutation - -```typescript -const { mutate, isLoading } = useSeedTrustLadderMutation(); -mutate({ input: { ladder: '' } }); -``` diff --git a/.agents/skills/orm-admin/references/app-achievement.md b/.agents/skills/orm-admin/references/app-achievement.md deleted file mode 100644 index fa5a2ebeb6..0000000000 --- a/.agents/skills/orm-admin/references/app-achievement.md +++ /dev/null @@ -1,34 +0,0 @@ -# appAchievement - - - -Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually - -## Usage - -```typescript -db.appAchievement.findMany({ select: { id: true } }).execute() -db.appAchievement.findOne({ id: '', select: { id: true } }).execute() -db.appAchievement.create({ data: { actorId: '', name: '', count: '' }, select: { id: true } }).execute() -db.appAchievement.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() -db.appAchievement.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appAchievement records - -```typescript -const items = await db.appAchievement.findMany({ - select: { id: true, actorId: true } -}).execute(); -``` - -### Create a appAchievement - -```typescript -const item = await db.appAchievement.create({ - data: { actorId: '', name: '', count: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-admin/references/app-capabilities-get-by-mask.md b/.agents/skills/orm-admin/references/app-capabilities-get-by-mask.md deleted file mode 100644 index 90d1a9e9cc..0000000000 --- a/.agents/skills/orm-admin/references/app-capabilities-get-by-mask.md +++ /dev/null @@ -1,19 +0,0 @@ -# appCapabilitiesGetByMask - - - -Reads and enables pagination through a set of `AppCapability`. - -## Usage - -```typescript -db.query.appCapabilitiesGetByMask({ after: '', first: '', mask: '', offset: '' }).execute() -``` - -## Examples - -### Run appCapabilitiesGetByMask - -```typescript -const result = await db.query.appCapabilitiesGetByMask({ after: '', first: '', mask: '', offset: '' }).execute(); -``` diff --git a/.agents/skills/orm-admin/references/app-capabilities-get-mask-by-names.md b/.agents/skills/orm-admin/references/app-capabilities-get-mask-by-names.md deleted file mode 100644 index 3dda6a91ee..0000000000 --- a/.agents/skills/orm-admin/references/app-capabilities-get-mask-by-names.md +++ /dev/null @@ -1,19 +0,0 @@ -# appCapabilitiesGetMaskByNames - - - -Execute the appCapabilitiesGetMaskByNames query - -## Usage - -```typescript -db.query.appCapabilitiesGetMaskByNames({ names: '' }).execute() -``` - -## Examples - -### Run appCapabilitiesGetMaskByNames - -```typescript -const result = await db.query.appCapabilitiesGetMaskByNames({ names: '' }).execute(); -``` diff --git a/.agents/skills/orm-admin/references/app-capabilities-get-mask.md b/.agents/skills/orm-admin/references/app-capabilities-get-mask.md deleted file mode 100644 index 9fbf544d1e..0000000000 --- a/.agents/skills/orm-admin/references/app-capabilities-get-mask.md +++ /dev/null @@ -1,19 +0,0 @@ -# appCapabilitiesGetMask - - - -Execute the appCapabilitiesGetMask query - -## Usage - -```typescript -db.query.appCapabilitiesGetMask({ ids: '' }).execute() -``` - -## Examples - -### Run appCapabilitiesGetMask - -```typescript -const result = await db.query.appCapabilitiesGetMask({ ids: '' }).execute(); -``` diff --git a/.agents/skills/orm-admin/references/app-capabilities-get-padded-mask.md b/.agents/skills/orm-admin/references/app-capabilities-get-padded-mask.md deleted file mode 100644 index ee316c4f81..0000000000 --- a/.agents/skills/orm-admin/references/app-capabilities-get-padded-mask.md +++ /dev/null @@ -1,19 +0,0 @@ -# appCapabilitiesGetPaddedMask - - - -Execute the appCapabilitiesGetPaddedMask query - -## Usage - -```typescript -db.query.appCapabilitiesGetPaddedMask({ mask: '' }).execute() -``` - -## Examples - -### Run appCapabilitiesGetPaddedMask - -```typescript -const result = await db.query.appCapabilitiesGetPaddedMask({ mask: '' }).execute(); -``` diff --git a/.agents/skills/orm-admin/references/app-capability-default.md b/.agents/skills/orm-admin/references/app-capability-default.md deleted file mode 100644 index b879fc2c82..0000000000 --- a/.agents/skills/orm-admin/references/app-capability-default.md +++ /dev/null @@ -1,34 +0,0 @@ -# appCapabilityDefault - - - -Stores the default capability bitmask assigned to new members upon joining - -## Usage - -```typescript -db.appCapabilityDefault.findMany({ select: { id: true } }).execute() -db.appCapabilityDefault.findOne({ id: '', select: { id: true } }).execute() -db.appCapabilityDefault.create({ data: { capabilities: '' }, select: { id: true } }).execute() -db.appCapabilityDefault.update({ where: { id: '' }, data: { capabilities: '' }, select: { id: true } }).execute() -db.appCapabilityDefault.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appCapabilityDefault records - -```typescript -const items = await db.appCapabilityDefault.findMany({ - select: { id: true, capabilities: true } -}).execute(); -``` - -### Create a appCapabilityDefault - -```typescript -const item = await db.appCapabilityDefault.create({ - data: { capabilities: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-admin/references/app-capability.md b/.agents/skills/orm-admin/references/app-capability.md deleted file mode 100644 index ff9bc53583..0000000000 --- a/.agents/skills/orm-admin/references/app-capability.md +++ /dev/null @@ -1,34 +0,0 @@ -# appCapability - - - -Defines available capabilities as named bits within a bitmask, used by the RBAC system for access control - -## Usage - -```typescript -db.appCapability.findMany({ select: { id: true } }).execute() -db.appCapability.findOne({ id: '', select: { id: true } }).execute() -db.appCapability.create({ data: { bitnum: '', bitstr: '', description: '', kind: '', name: '' }, select: { id: true } }).execute() -db.appCapability.update({ where: { id: '' }, data: { bitnum: '' }, select: { id: true } }).execute() -db.appCapability.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appCapability records - -```typescript -const items = await db.appCapability.findMany({ - select: { id: true, bitnum: true } -}).execute(); -``` - -### Create a appCapability - -```typescript -const item = await db.appCapability.create({ - data: { bitnum: '', bitstr: '', description: '', kind: '', name: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-admin/references/app-level-requirement.md b/.agents/skills/orm-admin/references/app-level-requirement.md deleted file mode 100644 index 0cfae0f497..0000000000 --- a/.agents/skills/orm-admin/references/app-level-requirement.md +++ /dev/null @@ -1,34 +0,0 @@ -# appLevelRequirement - - - -Defines the specific requirements that must be met to achieve a level - -## Usage - -```typescript -db.appLevelRequirement.findMany({ select: { id: true } }).execute() -db.appLevelRequirement.findOne({ id: '', select: { id: true } }).execute() -db.appLevelRequirement.create({ data: { name: '', level: '', description: '', requiredCount: '', priority: '' }, select: { id: true } }).execute() -db.appLevelRequirement.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.appLevelRequirement.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appLevelRequirement records - -```typescript -const items = await db.appLevelRequirement.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a appLevelRequirement - -```typescript -const item = await db.appLevelRequirement.create({ - data: { name: '', level: '', description: '', requiredCount: '', priority: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-admin/references/app-level.md b/.agents/skills/orm-admin/references/app-level.md deleted file mode 100644 index 93dce8b0e1..0000000000 --- a/.agents/skills/orm-admin/references/app-level.md +++ /dev/null @@ -1,34 +0,0 @@ -# appLevel - - - -Defines available levels that users can achieve by completing requirements - -## Usage - -```typescript -db.appLevel.findMany({ select: { id: true } }).execute() -db.appLevel.findOne({ id: '', select: { id: true } }).execute() -db.appLevel.create({ data: { name: '', description: '', image: '', ownerId: '' }, select: { id: true } }).execute() -db.appLevel.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.appLevel.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appLevel records - -```typescript -const items = await db.appLevel.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a appLevel - -```typescript -const item = await db.appLevel.create({ - data: { name: '', description: '', image: '', ownerId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-admin/references/app-limit-cap.md b/.agents/skills/orm-admin/references/app-limit-cap.md deleted file mode 100644 index 76ac73b9d8..0000000000 --- a/.agents/skills/orm-admin/references/app-limit-cap.md +++ /dev/null @@ -1,34 +0,0 @@ -# appLimitCap - - - -Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. - -## Usage - -```typescript -db.appLimitCap.findMany({ select: { id: true } }).execute() -db.appLimitCap.findOne({ id: '', select: { id: true } }).execute() -db.appLimitCap.create({ data: { name: '', entityId: '', max: '' }, select: { id: true } }).execute() -db.appLimitCap.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.appLimitCap.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appLimitCap records - -```typescript -const items = await db.appLimitCap.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a appLimitCap - -```typescript -const item = await db.appLimitCap.create({ - data: { name: '', entityId: '', max: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-admin/references/app-limit-caps-default.md b/.agents/skills/orm-admin/references/app-limit-caps-default.md deleted file mode 100644 index 18848a6a2c..0000000000 --- a/.agents/skills/orm-admin/references/app-limit-caps-default.md +++ /dev/null @@ -1,34 +0,0 @@ -# appLimitCapsDefault - - - -Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. - -## Usage - -```typescript -db.appLimitCapsDefault.findMany({ select: { id: true } }).execute() -db.appLimitCapsDefault.findOne({ id: '', select: { id: true } }).execute() -db.appLimitCapsDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute() -db.appLimitCapsDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.appLimitCapsDefault.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appLimitCapsDefault records - -```typescript -const items = await db.appLimitCapsDefault.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a appLimitCapsDefault - -```typescript -const item = await db.appLimitCapsDefault.create({ - data: { name: '', max: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-admin/references/app-limit-credit-code-item.md b/.agents/skills/orm-admin/references/app-limit-credit-code-item.md deleted file mode 100644 index 8bf8044340..0000000000 --- a/.agents/skills/orm-admin/references/app-limit-credit-code-item.md +++ /dev/null @@ -1,34 +0,0 @@ -# appLimitCreditCodeItem - - - -Items within a credit code — each row grants credits for a specific limit definition - -## Usage - -```typescript -db.appLimitCreditCodeItem.findMany({ select: { id: true } }).execute() -db.appLimitCreditCodeItem.findOne({ id: '', select: { id: true } }).execute() -db.appLimitCreditCodeItem.create({ data: { creditCodeId: '', defaultLimitId: '', amount: '', creditType: '' }, select: { id: true } }).execute() -db.appLimitCreditCodeItem.update({ where: { id: '' }, data: { creditCodeId: '' }, select: { id: true } }).execute() -db.appLimitCreditCodeItem.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appLimitCreditCodeItem records - -```typescript -const items = await db.appLimitCreditCodeItem.findMany({ - select: { id: true, creditCodeId: true } -}).execute(); -``` - -### Create a appLimitCreditCodeItem - -```typescript -const item = await db.appLimitCreditCodeItem.create({ - data: { creditCodeId: '', defaultLimitId: '', amount: '', creditType: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-admin/references/app-limit-credit-code.md b/.agents/skills/orm-admin/references/app-limit-credit-code.md deleted file mode 100644 index e18ba1c296..0000000000 --- a/.agents/skills/orm-admin/references/app-limit-credit-code.md +++ /dev/null @@ -1,34 +0,0 @@ -# appLimitCreditCode - - - -Redeemable credit codes managed by admins with the add_credits permission - -## Usage - -```typescript -db.appLimitCreditCode.findMany({ select: { id: true } }).execute() -db.appLimitCreditCode.findOne({ id: '', select: { id: true } }).execute() -db.appLimitCreditCode.create({ data: { code: '', maxRedemptions: '', currentRedemptions: '', expiresAt: '' }, select: { id: true } }).execute() -db.appLimitCreditCode.update({ where: { id: '' }, data: { code: '' }, select: { id: true } }).execute() -db.appLimitCreditCode.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appLimitCreditCode records - -```typescript -const items = await db.appLimitCreditCode.findMany({ - select: { id: true, code: true } -}).execute(); -``` - -### Create a appLimitCreditCode - -```typescript -const item = await db.appLimitCreditCode.create({ - data: { code: '', maxRedemptions: '', currentRedemptions: '', expiresAt: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-admin/references/app-limit-credit-redemption.md b/.agents/skills/orm-admin/references/app-limit-credit-redemption.md deleted file mode 100644 index 7feb61957c..0000000000 --- a/.agents/skills/orm-admin/references/app-limit-credit-redemption.md +++ /dev/null @@ -1,34 +0,0 @@ -# appLimitCreditRedemption - - - -Append-only ledger of code redemptions; AFTER INSERT trigger validates and cascades to limit_credits - -## Usage - -```typescript -db.appLimitCreditRedemption.findMany({ select: { id: true } }).execute() -db.appLimitCreditRedemption.findOne({ id: '', select: { id: true } }).execute() -db.appLimitCreditRedemption.create({ data: { creditCodeId: '', entityId: '' }, select: { id: true } }).execute() -db.appLimitCreditRedemption.update({ where: { id: '' }, data: { creditCodeId: '' }, select: { id: true } }).execute() -db.appLimitCreditRedemption.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appLimitCreditRedemption records - -```typescript -const items = await db.appLimitCreditRedemption.findMany({ - select: { id: true, creditCodeId: true } -}).execute(); -``` - -### Create a appLimitCreditRedemption - -```typescript -const item = await db.appLimitCreditRedemption.create({ - data: { creditCodeId: '', entityId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-admin/references/app-limit-credit.md b/.agents/skills/orm-admin/references/app-limit-credit.md deleted file mode 100644 index e4177b9dde..0000000000 --- a/.agents/skills/orm-admin/references/app-limit-credit.md +++ /dev/null @@ -1,34 +0,0 @@ -# appLimitCredit - - - -Append-only ledger of credit grants that automatically update limit ceilings - -## Usage - -```typescript -db.appLimitCredit.findMany({ select: { id: true } }).execute() -db.appLimitCredit.findOne({ id: '', select: { id: true } }).execute() -db.appLimitCredit.create({ data: { defaultLimitId: '', actorId: '', amount: '', creditType: '', reason: '' }, select: { id: true } }).execute() -db.appLimitCredit.update({ where: { id: '' }, data: { defaultLimitId: '' }, select: { id: true } }).execute() -db.appLimitCredit.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appLimitCredit records - -```typescript -const items = await db.appLimitCredit.findMany({ - select: { id: true, defaultLimitId: true } -}).execute(); -``` - -### Create a appLimitCredit - -```typescript -const item = await db.appLimitCredit.create({ - data: { defaultLimitId: '', actorId: '', amount: '', creditType: '', reason: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-admin/references/app-limit-default.md b/.agents/skills/orm-admin/references/app-limit-default.md deleted file mode 100644 index e4fc4452ee..0000000000 --- a/.agents/skills/orm-admin/references/app-limit-default.md +++ /dev/null @@ -1,34 +0,0 @@ -# appLimitDefault - - - -Default maximum values for each named limit, applied when no per-actor override exists - -## Usage - -```typescript -db.appLimitDefault.findMany({ select: { id: true } }).execute() -db.appLimitDefault.findOne({ id: '', select: { id: true } }).execute() -db.appLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute() -db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.appLimitDefault.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appLimitDefault records - -```typescript -const items = await db.appLimitDefault.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a appLimitDefault - -```typescript -const item = await db.appLimitDefault.create({ - data: { name: '', max: '', softMax: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-admin/references/app-limit-event.md b/.agents/skills/orm-admin/references/app-limit-event.md deleted file mode 100644 index 61dd781609..0000000000 --- a/.agents/skills/orm-admin/references/app-limit-event.md +++ /dev/null @@ -1,34 +0,0 @@ -# appLimitEvent - - - -Append-only log of limit events for historical reporting and audit - -## Usage - -```typescript -db.appLimitEvent.findMany({ select: { id: true } }).execute() -db.appLimitEvent.findOne({ id: '', select: { id: true } }).execute() -db.appLimitEvent.create({ data: { name: '', actorId: '', entityId: '', organizationId: '', entityType: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute() -db.appLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.appLimitEvent.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appLimitEvent records - -```typescript -const items = await db.appLimitEvent.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a appLimitEvent - -```typescript -const item = await db.appLimitEvent.create({ - data: { name: '', actorId: '', entityId: '', organizationId: '', entityType: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-admin/references/app-limit-warning.md b/.agents/skills/orm-admin/references/app-limit-warning.md deleted file mode 100644 index 24501ac07d..0000000000 --- a/.agents/skills/orm-admin/references/app-limit-warning.md +++ /dev/null @@ -1,34 +0,0 @@ -# appLimitWarning - - - -Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. - -## Usage - -```typescript -db.appLimitWarning.findMany({ select: { id: true } }).execute() -db.appLimitWarning.findOne({ id: '', select: { id: true } }).execute() -db.appLimitWarning.create({ data: { name: '', warningType: '', thresholdValue: '', taskIdentifier: '' }, select: { id: true } }).execute() -db.appLimitWarning.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.appLimitWarning.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appLimitWarning records - -```typescript -const items = await db.appLimitWarning.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a appLimitWarning - -```typescript -const item = await db.appLimitWarning.create({ - data: { name: '', warningType: '', thresholdValue: '', taskIdentifier: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-admin/references/app-limit.md b/.agents/skills/orm-admin/references/app-limit.md deleted file mode 100644 index 1029c788dc..0000000000 --- a/.agents/skills/orm-admin/references/app-limit.md +++ /dev/null @@ -1,34 +0,0 @@ -# appLimit - - - -Tracks per-actor usage counts against configurable maximum limits - -## Usage - -```typescript -db.appLimit.findMany({ select: { id: true } }).execute() -db.appLimit.findOne({ id: '', select: { id: true } }).execute() -db.appLimit.create({ data: { name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '', organizationId: '', entityType: '' }, select: { id: true } }).execute() -db.appLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.appLimit.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appLimit records - -```typescript -const items = await db.appLimit.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a appLimit - -```typescript -const item = await db.appLimit.create({ - data: { name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '', organizationId: '', entityType: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-admin/references/app-membership-profile.md b/.agents/skills/orm-admin/references/app-membership-profile.md deleted file mode 100644 index 60de9aab46..0000000000 --- a/.agents/skills/orm-admin/references/app-membership-profile.md +++ /dev/null @@ -1,34 +0,0 @@ -# appMembershipProfile - - - -Every profile a membership holds; memberships.profile_id points at one of them - -## Usage - -```typescript -db.appMembershipProfile.findMany({ select: { id: true } }).execute() -db.appMembershipProfile.findOne({ id: '', select: { id: true } }).execute() -db.appMembershipProfile.create({ data: { actorId: '', membershipId: '', profileId: '' }, select: { id: true } }).execute() -db.appMembershipProfile.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() -db.appMembershipProfile.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appMembershipProfile records - -```typescript -const items = await db.appMembershipProfile.findMany({ - select: { id: true, actorId: true } -}).execute(); -``` - -### Create a appMembershipProfile - -```typescript -const item = await db.appMembershipProfile.create({ - data: { actorId: '', membershipId: '', profileId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-admin/references/app-permission-default-grant.md b/.agents/skills/orm-admin/references/app-permission-default-grant.md deleted file mode 100644 index 6da482122d..0000000000 --- a/.agents/skills/orm-admin/references/app-permission-default-grant.md +++ /dev/null @@ -1,34 +0,0 @@ -# appPermissionDefaultGrant - - - -Audit log of permission additions and removals from the defaults bitmask - -## Usage - -```typescript -db.appPermissionDefaultGrant.findMany({ select: { id: true } }).execute() -db.appPermissionDefaultGrant.findOne({ id: '', select: { id: true } }).execute() -db.appPermissionDefaultGrant.create({ data: { grantorId: '', isGrant: '', permissionId: '' }, select: { id: true } }).execute() -db.appPermissionDefaultGrant.update({ where: { id: '' }, data: { grantorId: '' }, select: { id: true } }).execute() -db.appPermissionDefaultGrant.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appPermissionDefaultGrant records - -```typescript -const items = await db.appPermissionDefaultGrant.findMany({ - select: { id: true, grantorId: true } -}).execute(); -``` - -### Create a appPermissionDefaultGrant - -```typescript -const item = await db.appPermissionDefaultGrant.create({ - data: { grantorId: '', isGrant: '', permissionId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-admin/references/app-permission-default-permission.md b/.agents/skills/orm-admin/references/app-permission-default-permission.md deleted file mode 100644 index 7d62eb36fb..0000000000 --- a/.agents/skills/orm-admin/references/app-permission-default-permission.md +++ /dev/null @@ -1,34 +0,0 @@ -# appPermissionDefaultPermission - - - -Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask - -## Usage - -```typescript -db.appPermissionDefaultPermission.findMany({ select: { id: true } }).execute() -db.appPermissionDefaultPermission.findOne({ id: '', select: { id: true } }).execute() -db.appPermissionDefaultPermission.create({ data: { permissionId: '' }, select: { id: true } }).execute() -db.appPermissionDefaultPermission.update({ where: { id: '' }, data: { permissionId: '' }, select: { id: true } }).execute() -db.appPermissionDefaultPermission.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appPermissionDefaultPermission records - -```typescript -const items = await db.appPermissionDefaultPermission.findMany({ - select: { id: true, permissionId: true } -}).execute(); -``` - -### Create a appPermissionDefaultPermission - -```typescript -const item = await db.appPermissionDefaultPermission.create({ - data: { permissionId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-admin/references/app-permission-default.md b/.agents/skills/orm-admin/references/app-permission-default.md deleted file mode 100644 index f89c6e89f9..0000000000 --- a/.agents/skills/orm-admin/references/app-permission-default.md +++ /dev/null @@ -1,34 +0,0 @@ -# appPermissionDefault - - - -Stores the default permission bitmask assigned to new members upon joining - -## Usage - -```typescript -db.appPermissionDefault.findMany({ select: { id: true } }).execute() -db.appPermissionDefault.findOne({ id: '', select: { id: true } }).execute() -db.appPermissionDefault.create({ data: { permissions: '' }, select: { id: true } }).execute() -db.appPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute() -db.appPermissionDefault.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appPermissionDefault records - -```typescript -const items = await db.appPermissionDefault.findMany({ - select: { id: true, permissions: true } -}).execute(); -``` - -### Create a appPermissionDefault - -```typescript -const item = await db.appPermissionDefault.create({ - data: { permissions: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-admin/references/app-permission.md b/.agents/skills/orm-admin/references/app-permission.md deleted file mode 100644 index dd098d6a39..0000000000 --- a/.agents/skills/orm-admin/references/app-permission.md +++ /dev/null @@ -1,34 +0,0 @@ -# appPermission - - - -Defines available permissions as named bits within a bitmask, used by the RBAC system for access control - -## Usage - -```typescript -db.appPermission.findMany({ select: { id: true } }).execute() -db.appPermission.findOne({ id: '', select: { id: true } }).execute() -db.appPermission.create({ data: { bitnum: '', bitstr: '', description: '', name: '' }, select: { id: true } }).execute() -db.appPermission.update({ where: { id: '' }, data: { bitnum: '' }, select: { id: true } }).execute() -db.appPermission.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appPermission records - -```typescript -const items = await db.appPermission.findMany({ - select: { id: true, bitnum: true } -}).execute(); -``` - -### Create a appPermission - -```typescript -const item = await db.appPermission.create({ - data: { bitnum: '', bitstr: '', description: '', name: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-admin/references/app-permissions-get-by-mask.md b/.agents/skills/orm-admin/references/app-permissions-get-by-mask.md deleted file mode 100644 index 54b324733f..0000000000 --- a/.agents/skills/orm-admin/references/app-permissions-get-by-mask.md +++ /dev/null @@ -1,19 +0,0 @@ -# appPermissionsGetByMask - - - -Reads and enables pagination through a set of `AppPermission`. - -## Usage - -```typescript -db.query.appPermissionsGetByMask({ after: '', first: '', mask: '', offset: '' }).execute() -``` - -## Examples - -### Run appPermissionsGetByMask - -```typescript -const result = await db.query.appPermissionsGetByMask({ after: '', first: '', mask: '', offset: '' }).execute(); -``` diff --git a/.agents/skills/orm-admin/references/app-permissions-get-mask-by-names.md b/.agents/skills/orm-admin/references/app-permissions-get-mask-by-names.md deleted file mode 100644 index ce7d5ec46c..0000000000 --- a/.agents/skills/orm-admin/references/app-permissions-get-mask-by-names.md +++ /dev/null @@ -1,19 +0,0 @@ -# appPermissionsGetMaskByNames - - - -Execute the appPermissionsGetMaskByNames query - -## Usage - -```typescript -db.query.appPermissionsGetMaskByNames({ names: '' }).execute() -``` - -## Examples - -### Run appPermissionsGetMaskByNames - -```typescript -const result = await db.query.appPermissionsGetMaskByNames({ names: '' }).execute(); -``` diff --git a/.agents/skills/orm-admin/references/app-permissions-get-mask.md b/.agents/skills/orm-admin/references/app-permissions-get-mask.md deleted file mode 100644 index 21c59c666e..0000000000 --- a/.agents/skills/orm-admin/references/app-permissions-get-mask.md +++ /dev/null @@ -1,19 +0,0 @@ -# appPermissionsGetMask - - - -Execute the appPermissionsGetMask query - -## Usage - -```typescript -db.query.appPermissionsGetMask({ ids: '' }).execute() -``` - -## Examples - -### Run appPermissionsGetMask - -```typescript -const result = await db.query.appPermissionsGetMask({ ids: '' }).execute(); -``` diff --git a/.agents/skills/orm-admin/references/app-permissions-get-padded-mask.md b/.agents/skills/orm-admin/references/app-permissions-get-padded-mask.md deleted file mode 100644 index 79dc57a31b..0000000000 --- a/.agents/skills/orm-admin/references/app-permissions-get-padded-mask.md +++ /dev/null @@ -1,19 +0,0 @@ -# appPermissionsGetPaddedMask - - - -Execute the appPermissionsGetPaddedMask query - -## Usage - -```typescript -db.query.appPermissionsGetPaddedMask({ mask: '' }).execute() -``` - -## Examples - -### Run appPermissionsGetPaddedMask - -```typescript -const result = await db.query.appPermissionsGetPaddedMask({ mask: '' }).execute(); -``` diff --git a/.agents/skills/orm-admin/references/app-profile-capability.md b/.agents/skills/orm-admin/references/app-profile-capability.md deleted file mode 100644 index d2535b94ac..0000000000 --- a/.agents/skills/orm-admin/references/app-profile-capability.md +++ /dev/null @@ -1,34 +0,0 @@ -# appProfileCapability - - - -Join table linking profiles to individual capabilities they include - -## Usage - -```typescript -db.appProfileCapability.findMany({ select: { id: true } }).execute() -db.appProfileCapability.findOne({ id: '', select: { id: true } }).execute() -db.appProfileCapability.create({ data: { capabilityId: '', profileId: '' }, select: { id: true } }).execute() -db.appProfileCapability.update({ where: { id: '' }, data: { capabilityId: '' }, select: { id: true } }).execute() -db.appProfileCapability.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appProfileCapability records - -```typescript -const items = await db.appProfileCapability.findMany({ - select: { id: true, capabilityId: true } -}).execute(); -``` - -### Create a appProfileCapability - -```typescript -const item = await db.appProfileCapability.create({ - data: { capabilityId: '', profileId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-admin/references/app-profile-definition-grant.md b/.agents/skills/orm-admin/references/app-profile-definition-grant.md deleted file mode 100644 index a78f6d796d..0000000000 --- a/.agents/skills/orm-admin/references/app-profile-definition-grant.md +++ /dev/null @@ -1,34 +0,0 @@ -# appProfileDefinitionGrant - - - -Audit log of capability additions and removals from profile definitions - -## Usage - -```typescript -db.appProfileDefinitionGrant.findMany({ select: { id: true } }).execute() -db.appProfileDefinitionGrant.findOne({ id: '', select: { id: true } }).execute() -db.appProfileDefinitionGrant.create({ data: { capabilityId: '', grantorId: '', isGrant: '', profileId: '' }, select: { id: true } }).execute() -db.appProfileDefinitionGrant.update({ where: { id: '' }, data: { capabilityId: '' }, select: { id: true } }).execute() -db.appProfileDefinitionGrant.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appProfileDefinitionGrant records - -```typescript -const items = await db.appProfileDefinitionGrant.findMany({ - select: { id: true, capabilityId: true } -}).execute(); -``` - -### Create a appProfileDefinitionGrant - -```typescript -const item = await db.appProfileDefinitionGrant.create({ - data: { capabilityId: '', grantorId: '', isGrant: '', profileId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-admin/references/app-profile-grant.md b/.agents/skills/orm-admin/references/app-profile-grant.md deleted file mode 100644 index c18df87c73..0000000000 --- a/.agents/skills/orm-admin/references/app-profile-grant.md +++ /dev/null @@ -1,34 +0,0 @@ -# appProfileGrant - - - -Audit log of profile assignments and revocations for members - -## Usage - -```typescript -db.appProfileGrant.findMany({ select: { id: true } }).execute() -db.appProfileGrant.findOne({ id: '', select: { id: true } }).execute() -db.appProfileGrant.create({ data: { grantorId: '', isGrant: '', membershipId: '', profileId: '' }, select: { id: true } }).execute() -db.appProfileGrant.update({ where: { id: '' }, data: { grantorId: '' }, select: { id: true } }).execute() -db.appProfileGrant.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appProfileGrant records - -```typescript -const items = await db.appProfileGrant.findMany({ - select: { id: true, grantorId: true } -}).execute(); -``` - -### Create a appProfileGrant - -```typescript -const item = await db.appProfileGrant.create({ - data: { grantorId: '', isGrant: '', membershipId: '', profileId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-admin/references/app-profile-template.md b/.agents/skills/orm-admin/references/app-profile-template.md deleted file mode 100644 index 1244f30e44..0000000000 --- a/.agents/skills/orm-admin/references/app-profile-template.md +++ /dev/null @@ -1,34 +0,0 @@ -# appProfileTemplate - - - -Template profiles that are automatically seeded into new entities when created - -## Usage - -```typescript -db.appProfileTemplate.findMany({ select: { id: true } }).execute() -db.appProfileTemplate.findOne({ id: '', select: { id: true } }).execute() -db.appProfileTemplate.create({ data: { capabilities: '', description: '', isDefault: '', name: '', slug: '' }, select: { id: true } }).execute() -db.appProfileTemplate.update({ where: { id: '' }, data: { capabilities: '' }, select: { id: true } }).execute() -db.appProfileTemplate.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appProfileTemplate records - -```typescript -const items = await db.appProfileTemplate.findMany({ - select: { id: true, capabilities: true } -}).execute(); -``` - -### Create a appProfileTemplate - -```typescript -const item = await db.appProfileTemplate.create({ - data: { capabilities: '', description: '', isDefault: '', name: '', slug: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-admin/references/app-profile.md b/.agents/skills/orm-admin/references/app-profile.md deleted file mode 100644 index 6e87115a75..0000000000 --- a/.agents/skills/orm-admin/references/app-profile.md +++ /dev/null @@ -1,34 +0,0 @@ -# appProfile - - - -Named capability bundles (roles) that group multiple capabilities into reusable profiles - -## Usage - -```typescript -db.appProfile.findMany({ select: { id: true } }).execute() -db.appProfile.findOne({ id: '', select: { id: true } }).execute() -db.appProfile.create({ data: { capabilities: '', description: '', isDefault: '', isSystem: '', name: '', slug: '' }, select: { id: true } }).execute() -db.appProfile.update({ where: { id: '' }, data: { capabilities: '' }, select: { id: true } }).execute() -db.appProfile.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appProfile records - -```typescript -const items = await db.appProfile.findMany({ - select: { id: true, capabilities: true } -}).execute(); -``` - -### Create a appProfile - -```typescript -const item = await db.appProfile.create({ - data: { capabilities: '', description: '', isDefault: '', isSystem: '', name: '', slug: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-admin/references/app-step.md b/.agents/skills/orm-admin/references/app-step.md deleted file mode 100644 index 3015966f65..0000000000 --- a/.agents/skills/orm-admin/references/app-step.md +++ /dev/null @@ -1,34 +0,0 @@ -# appStep - - - -Log of individual user actions toward level requirements; every single step ever taken is recorded here - -## Usage - -```typescript -db.appStep.findMany({ select: { id: true } }).execute() -db.appStep.findOne({ id: '', select: { id: true } }).execute() -db.appStep.create({ data: { actorId: '', name: '', count: '' }, select: { id: true } }).execute() -db.appStep.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() -db.appStep.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appStep records - -```typescript -const items = await db.appStep.findMany({ - select: { id: true, actorId: true } -}).execute(); -``` - -### Create a appStep - -```typescript -const item = await db.appStep.create({ - data: { actorId: '', name: '', count: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-admin/references/claimed-invite.md b/.agents/skills/orm-admin/references/claimed-invite.md deleted file mode 100644 index 93aa2ca0af..0000000000 --- a/.agents/skills/orm-admin/references/claimed-invite.md +++ /dev/null @@ -1,34 +0,0 @@ -# claimedInvite - - - -Records of successfully claimed invitations, linking senders to receivers - -## Usage - -```typescript -db.claimedInvite.findMany({ select: { id: true } }).execute() -db.claimedInvite.findOne({ id: '', select: { id: true } }).execute() -db.claimedInvite.create({ data: { data: '', senderId: '', receiverId: '' }, select: { id: true } }).execute() -db.claimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute() -db.claimedInvite.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all claimedInvite records - -```typescript -const items = await db.claimedInvite.findMany({ - select: { id: true, data: true } -}).execute(); -``` - -### Create a claimedInvite - -```typescript -const item = await db.claimedInvite.create({ - data: { data: '', senderId: '', receiverId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-admin/references/confirm-upload.md b/.agents/skills/orm-admin/references/confirm-upload.md deleted file mode 100644 index ff9f5d4e61..0000000000 --- a/.agents/skills/orm-admin/references/confirm-upload.md +++ /dev/null @@ -1,21 +0,0 @@ -# confirmUpload - - - -Confirm that a file has been uploaded to S3. -Verifies the object exists in S3, checks content-type, -and transitions the file status from 'pending' to 'ready'. - -## Usage - -```typescript -db.mutation.confirmUpload({ input: { fileId: '' } }).execute() -``` - -## Examples - -### Run confirmUpload - -```typescript -const result = await db.mutation.confirmUpload({ input: { fileId: '' } }).execute(); -``` diff --git a/.agents/skills/orm-admin/references/invite.md b/.agents/skills/orm-admin/references/invite.md deleted file mode 100644 index 2647e4af3b..0000000000 --- a/.agents/skills/orm-admin/references/invite.md +++ /dev/null @@ -1,34 +0,0 @@ -# invite - - - -Invitation records sent to prospective members via email, with token-based redemption and expiration - -## Usage - -```typescript -db.invite.findMany({ select: { id: true } }).execute() -db.invite.findOne({ id: '', select: { id: true } }).execute() -db.invite.create({ data: { email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '' }, select: { id: true } }).execute() -db.invite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute() -db.invite.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all invite records - -```typescript -const items = await db.invite.findMany({ - select: { id: true, email: true } -}).execute(); -``` - -### Create a invite - -```typescript -const item = await db.invite.create({ - data: { email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-admin/references/my-pending-app-invites-record.md b/.agents/skills/orm-admin/references/my-pending-app-invites-record.md index 59bf302e8f..c176a73570 100644 --- a/.agents/skills/orm-admin/references/my-pending-app-invites-record.md +++ b/.agents/skills/orm-admin/references/my-pending-app-invites-record.md @@ -9,7 +9,6 @@ ORM operations for MyPendingAppInvitesRecord records ```typescript db.myPendingAppInvitesRecord.findMany({ select: { id: true } }).execute() db.myPendingAppInvitesRecord.findOne({ id: '', select: { id: true } }).execute() -db.myPendingAppInvitesRecord.create({ data: { channel: '', expiresAt: '', senderId: '' }, select: { id: true } }).execute() db.myPendingAppInvitesRecord.update({ where: { id: '' }, data: { channel: '' }, select: { id: true } }).execute() db.myPendingAppInvitesRecord.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.myPendingAppInvitesRecord.findMany({ select: { id: true, channel: true } }).execute(); ``` - -### Create a myPendingAppInvitesRecord - -```typescript -const item = await db.myPendingAppInvitesRecord.create({ - data: { channel: '', expiresAt: '', senderId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-admin/references/my-pending-org-invites-record.md b/.agents/skills/orm-admin/references/my-pending-org-invites-record.md index 4a468dde32..8f9b7c316f 100644 --- a/.agents/skills/orm-admin/references/my-pending-org-invites-record.md +++ b/.agents/skills/orm-admin/references/my-pending-org-invites-record.md @@ -9,7 +9,6 @@ ORM operations for MyPendingOrgInvitesRecord records ```typescript db.myPendingOrgInvitesRecord.findMany({ select: { id: true } }).execute() db.myPendingOrgInvitesRecord.findOne({ id: '', select: { id: true } }).execute() -db.myPendingOrgInvitesRecord.create({ data: { channel: '', entityId: '', expiresAt: '', senderId: '' }, select: { id: true } }).execute() db.myPendingOrgInvitesRecord.update({ where: { id: '' }, data: { channel: '' }, select: { id: true } }).execute() db.myPendingOrgInvitesRecord.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.myPendingOrgInvitesRecord.findMany({ select: { id: true, channel: true } }).execute(); ``` - -### Create a myPendingOrgInvitesRecord - -```typescript -const item = await db.myPendingOrgInvitesRecord.create({ - data: { channel: '', entityId: '', expiresAt: '', senderId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-admin/references/org-capabilities-get-by-mask.md b/.agents/skills/orm-admin/references/org-capabilities-get-by-mask.md deleted file mode 100644 index 7b9ac29826..0000000000 --- a/.agents/skills/orm-admin/references/org-capabilities-get-by-mask.md +++ /dev/null @@ -1,19 +0,0 @@ -# orgCapabilitiesGetByMask - - - -Reads and enables pagination through a set of `OrgCapability`. - -## Usage - -```typescript -db.query.orgCapabilitiesGetByMask({ after: '', first: '', mask: '', offset: '' }).execute() -``` - -## Examples - -### Run orgCapabilitiesGetByMask - -```typescript -const result = await db.query.orgCapabilitiesGetByMask({ after: '', first: '', mask: '', offset: '' }).execute(); -``` diff --git a/.agents/skills/orm-admin/references/org-capabilities-get-mask-by-names.md b/.agents/skills/orm-admin/references/org-capabilities-get-mask-by-names.md deleted file mode 100644 index 5b7dc10fdf..0000000000 --- a/.agents/skills/orm-admin/references/org-capabilities-get-mask-by-names.md +++ /dev/null @@ -1,19 +0,0 @@ -# orgCapabilitiesGetMaskByNames - - - -Execute the orgCapabilitiesGetMaskByNames query - -## Usage - -```typescript -db.query.orgCapabilitiesGetMaskByNames({ names: '' }).execute() -``` - -## Examples - -### Run orgCapabilitiesGetMaskByNames - -```typescript -const result = await db.query.orgCapabilitiesGetMaskByNames({ names: '' }).execute(); -``` diff --git a/.agents/skills/orm-admin/references/org-capabilities-get-mask.md b/.agents/skills/orm-admin/references/org-capabilities-get-mask.md deleted file mode 100644 index dace13091a..0000000000 --- a/.agents/skills/orm-admin/references/org-capabilities-get-mask.md +++ /dev/null @@ -1,19 +0,0 @@ -# orgCapabilitiesGetMask - - - -Execute the orgCapabilitiesGetMask query - -## Usage - -```typescript -db.query.orgCapabilitiesGetMask({ ids: '' }).execute() -``` - -## Examples - -### Run orgCapabilitiesGetMask - -```typescript -const result = await db.query.orgCapabilitiesGetMask({ ids: '' }).execute(); -``` diff --git a/.agents/skills/orm-admin/references/org-capabilities-get-padded-mask.md b/.agents/skills/orm-admin/references/org-capabilities-get-padded-mask.md deleted file mode 100644 index 48cb0cc8d1..0000000000 --- a/.agents/skills/orm-admin/references/org-capabilities-get-padded-mask.md +++ /dev/null @@ -1,19 +0,0 @@ -# orgCapabilitiesGetPaddedMask - - - -Execute the orgCapabilitiesGetPaddedMask query - -## Usage - -```typescript -db.query.orgCapabilitiesGetPaddedMask({ mask: '' }).execute() -``` - -## Examples - -### Run orgCapabilitiesGetPaddedMask - -```typescript -const result = await db.query.orgCapabilitiesGetPaddedMask({ mask: '' }).execute(); -``` diff --git a/.agents/skills/orm-admin/references/org-capability-default.md b/.agents/skills/orm-admin/references/org-capability-default.md deleted file mode 100644 index ad33f5ee0e..0000000000 --- a/.agents/skills/orm-admin/references/org-capability-default.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgCapabilityDefault - - - -Stores the default capability bitmask assigned to new members upon joining - -## Usage - -```typescript -db.orgCapabilityDefault.findMany({ select: { id: true } }).execute() -db.orgCapabilityDefault.findOne({ id: '', select: { id: true } }).execute() -db.orgCapabilityDefault.create({ data: { capabilities: '', entityId: '' }, select: { id: true } }).execute() -db.orgCapabilityDefault.update({ where: { id: '' }, data: { capabilities: '' }, select: { id: true } }).execute() -db.orgCapabilityDefault.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgCapabilityDefault records - -```typescript -const items = await db.orgCapabilityDefault.findMany({ - select: { id: true, capabilities: true } -}).execute(); -``` - -### Create a orgCapabilityDefault - -```typescript -const item = await db.orgCapabilityDefault.create({ - data: { capabilities: '', entityId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-admin/references/org-capability.md b/.agents/skills/orm-admin/references/org-capability.md deleted file mode 100644 index aae1fb6870..0000000000 --- a/.agents/skills/orm-admin/references/org-capability.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgCapability - - - -Defines available capabilities as named bits within a bitmask, used by the RBAC system for access control - -## Usage - -```typescript -db.orgCapability.findMany({ select: { id: true } }).execute() -db.orgCapability.findOne({ id: '', select: { id: true } }).execute() -db.orgCapability.create({ data: { bitnum: '', bitstr: '', description: '', kind: '', name: '' }, select: { id: true } }).execute() -db.orgCapability.update({ where: { id: '' }, data: { bitnum: '' }, select: { id: true } }).execute() -db.orgCapability.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgCapability records - -```typescript -const items = await db.orgCapability.findMany({ - select: { id: true, bitnum: true } -}).execute(); -``` - -### Create a orgCapability - -```typescript -const item = await db.orgCapability.create({ - data: { bitnum: '', bitstr: '', description: '', kind: '', name: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-admin/references/org-get-managers-record.md b/.agents/skills/orm-admin/references/org-get-managers-record.md index 8ded76acf2..3b3f7037fd 100644 --- a/.agents/skills/orm-admin/references/org-get-managers-record.md +++ b/.agents/skills/orm-admin/references/org-get-managers-record.md @@ -9,7 +9,6 @@ ORM operations for OrgGetManagersRecord records ```typescript db.orgGetManagersRecord.findMany({ select: { id: true } }).execute() db.orgGetManagersRecord.findOne({ id: '', select: { id: true } }).execute() -db.orgGetManagersRecord.create({ data: { depth: '', userId: '' }, select: { id: true } }).execute() db.orgGetManagersRecord.update({ where: { id: '' }, data: { depth: '' }, select: { id: true } }).execute() db.orgGetManagersRecord.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.orgGetManagersRecord.findMany({ select: { id: true, depth: true } }).execute(); ``` - -### Create a orgGetManagersRecord - -```typescript -const item = await db.orgGetManagersRecord.create({ - data: { depth: '', userId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-admin/references/org-get-subordinates-record.md b/.agents/skills/orm-admin/references/org-get-subordinates-record.md index b70c485233..b903214447 100644 --- a/.agents/skills/orm-admin/references/org-get-subordinates-record.md +++ b/.agents/skills/orm-admin/references/org-get-subordinates-record.md @@ -9,7 +9,6 @@ ORM operations for OrgGetSubordinatesRecord records ```typescript db.orgGetSubordinatesRecord.findMany({ select: { id: true } }).execute() db.orgGetSubordinatesRecord.findOne({ id: '', select: { id: true } }).execute() -db.orgGetSubordinatesRecord.create({ data: { depth: '', userId: '' }, select: { id: true } }).execute() db.orgGetSubordinatesRecord.update({ where: { id: '' }, data: { depth: '' }, select: { id: true } }).execute() db.orgGetSubordinatesRecord.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.orgGetSubordinatesRecord.findMany({ select: { id: true, depth: true } }).execute(); ``` - -### Create a orgGetSubordinatesRecord - -```typescript -const item = await db.orgGetSubordinatesRecord.create({ - data: { depth: '', userId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-admin/references/org-limit-aggregate.md b/.agents/skills/orm-admin/references/org-limit-aggregate.md deleted file mode 100644 index cab72fb348..0000000000 --- a/.agents/skills/orm-admin/references/org-limit-aggregate.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgLimitAggregate - - - -Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) - -## Usage - -```typescript -db.orgLimitAggregate.findMany({ select: { id: true } }).execute() -db.orgLimitAggregate.findOne({ id: '', select: { id: true } }).execute() -db.orgLimitAggregate.create({ data: { name: '', entityId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '', reserved: '', organizationId: '', entityType: '' }, select: { id: true } }).execute() -db.orgLimitAggregate.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.orgLimitAggregate.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgLimitAggregate records - -```typescript -const items = await db.orgLimitAggregate.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a orgLimitAggregate - -```typescript -const item = await db.orgLimitAggregate.create({ - data: { name: '', entityId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '', reserved: '', organizationId: '', entityType: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-admin/references/org-limit-cap.md b/.agents/skills/orm-admin/references/org-limit-cap.md deleted file mode 100644 index 72fc875db3..0000000000 --- a/.agents/skills/orm-admin/references/org-limit-cap.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgLimitCap - - - -Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. - -## Usage - -```typescript -db.orgLimitCap.findMany({ select: { id: true } }).execute() -db.orgLimitCap.findOne({ id: '', select: { id: true } }).execute() -db.orgLimitCap.create({ data: { name: '', entityId: '', max: '' }, select: { id: true } }).execute() -db.orgLimitCap.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.orgLimitCap.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgLimitCap records - -```typescript -const items = await db.orgLimitCap.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a orgLimitCap - -```typescript -const item = await db.orgLimitCap.create({ - data: { name: '', entityId: '', max: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-admin/references/org-limit-caps-default.md b/.agents/skills/orm-admin/references/org-limit-caps-default.md deleted file mode 100644 index d314196a9f..0000000000 --- a/.agents/skills/orm-admin/references/org-limit-caps-default.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgLimitCapsDefault - - - -Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. - -## Usage - -```typescript -db.orgLimitCapsDefault.findMany({ select: { id: true } }).execute() -db.orgLimitCapsDefault.findOne({ id: '', select: { id: true } }).execute() -db.orgLimitCapsDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute() -db.orgLimitCapsDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.orgLimitCapsDefault.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgLimitCapsDefault records - -```typescript -const items = await db.orgLimitCapsDefault.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a orgLimitCapsDefault - -```typescript -const item = await db.orgLimitCapsDefault.create({ - data: { name: '', max: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-admin/references/org-limit-credit.md b/.agents/skills/orm-admin/references/org-limit-credit.md deleted file mode 100644 index 74ec168607..0000000000 --- a/.agents/skills/orm-admin/references/org-limit-credit.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgLimitCredit - - - -Append-only ledger of credit grants that automatically update limit ceilings - -## Usage - -```typescript -db.orgLimitCredit.findMany({ select: { id: true } }).execute() -db.orgLimitCredit.findOne({ id: '', select: { id: true } }).execute() -db.orgLimitCredit.create({ data: { defaultLimitId: '', actorId: '', entityId: '', amount: '', creditType: '', reason: '' }, select: { id: true } }).execute() -db.orgLimitCredit.update({ where: { id: '' }, data: { defaultLimitId: '' }, select: { id: true } }).execute() -db.orgLimitCredit.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgLimitCredit records - -```typescript -const items = await db.orgLimitCredit.findMany({ - select: { id: true, defaultLimitId: true } -}).execute(); -``` - -### Create a orgLimitCredit - -```typescript -const item = await db.orgLimitCredit.create({ - data: { defaultLimitId: '', actorId: '', entityId: '', amount: '', creditType: '', reason: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-admin/references/org-limit-default.md b/.agents/skills/orm-admin/references/org-limit-default.md deleted file mode 100644 index 70eb9ec161..0000000000 --- a/.agents/skills/orm-admin/references/org-limit-default.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgLimitDefault - - - -Default maximum values for each named limit, applied when no per-actor override exists - -## Usage - -```typescript -db.orgLimitDefault.findMany({ select: { id: true } }).execute() -db.orgLimitDefault.findOne({ id: '', select: { id: true } }).execute() -db.orgLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute() -db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.orgLimitDefault.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgLimitDefault records - -```typescript -const items = await db.orgLimitDefault.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a orgLimitDefault - -```typescript -const item = await db.orgLimitDefault.create({ - data: { name: '', max: '', softMax: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-admin/references/org-limit-event.md b/.agents/skills/orm-admin/references/org-limit-event.md deleted file mode 100644 index c00894412f..0000000000 --- a/.agents/skills/orm-admin/references/org-limit-event.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgLimitEvent - - - -Append-only log of limit events for historical reporting and audit - -## Usage - -```typescript -db.orgLimitEvent.findMany({ select: { id: true } }).execute() -db.orgLimitEvent.findOne({ id: '', select: { id: true } }).execute() -db.orgLimitEvent.create({ data: { name: '', actorId: '', entityId: '', organizationId: '', entityType: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute() -db.orgLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.orgLimitEvent.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgLimitEvent records - -```typescript -const items = await db.orgLimitEvent.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a orgLimitEvent - -```typescript -const item = await db.orgLimitEvent.create({ - data: { name: '', actorId: '', entityId: '', organizationId: '', entityType: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-admin/references/org-limit-warning.md b/.agents/skills/orm-admin/references/org-limit-warning.md deleted file mode 100644 index fc33071499..0000000000 --- a/.agents/skills/orm-admin/references/org-limit-warning.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgLimitWarning - - - -Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. - -## Usage - -```typescript -db.orgLimitWarning.findMany({ select: { id: true } }).execute() -db.orgLimitWarning.findOne({ id: '', select: { id: true } }).execute() -db.orgLimitWarning.create({ data: { name: '', warningType: '', thresholdValue: '', taskIdentifier: '', entityId: '' }, select: { id: true } }).execute() -db.orgLimitWarning.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.orgLimitWarning.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgLimitWarning records - -```typescript -const items = await db.orgLimitWarning.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a orgLimitWarning - -```typescript -const item = await db.orgLimitWarning.create({ - data: { name: '', warningType: '', thresholdValue: '', taskIdentifier: '', entityId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-admin/references/org-limit.md b/.agents/skills/orm-admin/references/org-limit.md deleted file mode 100644 index 6376b75357..0000000000 --- a/.agents/skills/orm-admin/references/org-limit.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgLimit - - - -Tracks per-actor usage counts against configurable maximum limits - -## Usage - -```typescript -db.orgLimit.findMany({ select: { id: true } }).execute() -db.orgLimit.findOne({ id: '', select: { id: true } }).execute() -db.orgLimit.create({ data: { name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '', entityId: '', organizationId: '', entityType: '' }, select: { id: true } }).execute() -db.orgLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.orgLimit.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgLimit records - -```typescript -const items = await db.orgLimit.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a orgLimit - -```typescript -const item = await db.orgLimit.create({ - data: { name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '', entityId: '', organizationId: '', entityType: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-admin/references/org-membership-profile.md b/.agents/skills/orm-admin/references/org-membership-profile.md deleted file mode 100644 index c4e98ee258..0000000000 --- a/.agents/skills/orm-admin/references/org-membership-profile.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgMembershipProfile - - - -Every profile a membership holds; memberships.profile_id points at one of them - -## Usage - -```typescript -db.orgMembershipProfile.findMany({ select: { id: true } }).execute() -db.orgMembershipProfile.findOne({ id: '', select: { id: true } }).execute() -db.orgMembershipProfile.create({ data: { actorId: '', membershipId: '', profileId: '' }, select: { id: true } }).execute() -db.orgMembershipProfile.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() -db.orgMembershipProfile.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgMembershipProfile records - -```typescript -const items = await db.orgMembershipProfile.findMany({ - select: { id: true, actorId: true } -}).execute(); -``` - -### Create a orgMembershipProfile - -```typescript -const item = await db.orgMembershipProfile.create({ - data: { actorId: '', membershipId: '', profileId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-admin/references/org-permission-default-grant.md b/.agents/skills/orm-admin/references/org-permission-default-grant.md deleted file mode 100644 index 1a895fbb76..0000000000 --- a/.agents/skills/orm-admin/references/org-permission-default-grant.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgPermissionDefaultGrant - - - -Audit log of permission additions and removals from the defaults bitmask - -## Usage - -```typescript -db.orgPermissionDefaultGrant.findMany({ select: { id: true } }).execute() -db.orgPermissionDefaultGrant.findOne({ id: '', select: { id: true } }).execute() -db.orgPermissionDefaultGrant.create({ data: { entityId: '', grantorId: '', isGrant: '', permissionId: '' }, select: { id: true } }).execute() -db.orgPermissionDefaultGrant.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute() -db.orgPermissionDefaultGrant.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgPermissionDefaultGrant records - -```typescript -const items = await db.orgPermissionDefaultGrant.findMany({ - select: { id: true, entityId: true } -}).execute(); -``` - -### Create a orgPermissionDefaultGrant - -```typescript -const item = await db.orgPermissionDefaultGrant.create({ - data: { entityId: '', grantorId: '', isGrant: '', permissionId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-admin/references/org-permission-default-permission.md b/.agents/skills/orm-admin/references/org-permission-default-permission.md deleted file mode 100644 index 74671c96b8..0000000000 --- a/.agents/skills/orm-admin/references/org-permission-default-permission.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgPermissionDefaultPermission - - - -Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask - -## Usage - -```typescript -db.orgPermissionDefaultPermission.findMany({ select: { id: true } }).execute() -db.orgPermissionDefaultPermission.findOne({ id: '', select: { id: true } }).execute() -db.orgPermissionDefaultPermission.create({ data: { entityId: '', permissionId: '' }, select: { id: true } }).execute() -db.orgPermissionDefaultPermission.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute() -db.orgPermissionDefaultPermission.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgPermissionDefaultPermission records - -```typescript -const items = await db.orgPermissionDefaultPermission.findMany({ - select: { id: true, entityId: true } -}).execute(); -``` - -### Create a orgPermissionDefaultPermission - -```typescript -const item = await db.orgPermissionDefaultPermission.create({ - data: { entityId: '', permissionId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-admin/references/org-permission-default.md b/.agents/skills/orm-admin/references/org-permission-default.md deleted file mode 100644 index b0aca0d294..0000000000 --- a/.agents/skills/orm-admin/references/org-permission-default.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgPermissionDefault - - - -Stores the default permission bitmask assigned to new members upon joining - -## Usage - -```typescript -db.orgPermissionDefault.findMany({ select: { id: true } }).execute() -db.orgPermissionDefault.findOne({ id: '', select: { id: true } }).execute() -db.orgPermissionDefault.create({ data: { entityId: '', permissions: '' }, select: { id: true } }).execute() -db.orgPermissionDefault.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute() -db.orgPermissionDefault.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgPermissionDefault records - -```typescript -const items = await db.orgPermissionDefault.findMany({ - select: { id: true, entityId: true } -}).execute(); -``` - -### Create a orgPermissionDefault - -```typescript -const item = await db.orgPermissionDefault.create({ - data: { entityId: '', permissions: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-admin/references/org-permission.md b/.agents/skills/orm-admin/references/org-permission.md deleted file mode 100644 index 1dc13f5b09..0000000000 --- a/.agents/skills/orm-admin/references/org-permission.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgPermission - - - -Defines available permissions as named bits within a bitmask, used by the RBAC system for access control - -## Usage - -```typescript -db.orgPermission.findMany({ select: { id: true } }).execute() -db.orgPermission.findOne({ id: '', select: { id: true } }).execute() -db.orgPermission.create({ data: { bitnum: '', bitstr: '', description: '', name: '' }, select: { id: true } }).execute() -db.orgPermission.update({ where: { id: '' }, data: { bitnum: '' }, select: { id: true } }).execute() -db.orgPermission.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgPermission records - -```typescript -const items = await db.orgPermission.findMany({ - select: { id: true, bitnum: true } -}).execute(); -``` - -### Create a orgPermission - -```typescript -const item = await db.orgPermission.create({ - data: { bitnum: '', bitstr: '', description: '', name: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-admin/references/org-permissions-get-by-mask.md b/.agents/skills/orm-admin/references/org-permissions-get-by-mask.md deleted file mode 100644 index f65ed98364..0000000000 --- a/.agents/skills/orm-admin/references/org-permissions-get-by-mask.md +++ /dev/null @@ -1,19 +0,0 @@ -# orgPermissionsGetByMask - - - -Reads and enables pagination through a set of `OrgPermission`. - -## Usage - -```typescript -db.query.orgPermissionsGetByMask({ after: '', first: '', mask: '', offset: '' }).execute() -``` - -## Examples - -### Run orgPermissionsGetByMask - -```typescript -const result = await db.query.orgPermissionsGetByMask({ after: '', first: '', mask: '', offset: '' }).execute(); -``` diff --git a/.agents/skills/orm-admin/references/org-permissions-get-mask-by-names.md b/.agents/skills/orm-admin/references/org-permissions-get-mask-by-names.md deleted file mode 100644 index bfe6e1e783..0000000000 --- a/.agents/skills/orm-admin/references/org-permissions-get-mask-by-names.md +++ /dev/null @@ -1,19 +0,0 @@ -# orgPermissionsGetMaskByNames - - - -Execute the orgPermissionsGetMaskByNames query - -## Usage - -```typescript -db.query.orgPermissionsGetMaskByNames({ names: '' }).execute() -``` - -## Examples - -### Run orgPermissionsGetMaskByNames - -```typescript -const result = await db.query.orgPermissionsGetMaskByNames({ names: '' }).execute(); -``` diff --git a/.agents/skills/orm-admin/references/org-permissions-get-mask.md b/.agents/skills/orm-admin/references/org-permissions-get-mask.md deleted file mode 100644 index cf869c6fae..0000000000 --- a/.agents/skills/orm-admin/references/org-permissions-get-mask.md +++ /dev/null @@ -1,19 +0,0 @@ -# orgPermissionsGetMask - - - -Execute the orgPermissionsGetMask query - -## Usage - -```typescript -db.query.orgPermissionsGetMask({ ids: '' }).execute() -``` - -## Examples - -### Run orgPermissionsGetMask - -```typescript -const result = await db.query.orgPermissionsGetMask({ ids: '' }).execute(); -``` diff --git a/.agents/skills/orm-admin/references/org-permissions-get-padded-mask.md b/.agents/skills/orm-admin/references/org-permissions-get-padded-mask.md deleted file mode 100644 index 49d92879b4..0000000000 --- a/.agents/skills/orm-admin/references/org-permissions-get-padded-mask.md +++ /dev/null @@ -1,19 +0,0 @@ -# orgPermissionsGetPaddedMask - - - -Execute the orgPermissionsGetPaddedMask query - -## Usage - -```typescript -db.query.orgPermissionsGetPaddedMask({ mask: '' }).execute() -``` - -## Examples - -### Run orgPermissionsGetPaddedMask - -```typescript -const result = await db.query.orgPermissionsGetPaddedMask({ mask: '' }).execute(); -``` diff --git a/.agents/skills/orm-admin/references/org-profile-capability.md b/.agents/skills/orm-admin/references/org-profile-capability.md deleted file mode 100644 index 9c9b9fed2f..0000000000 --- a/.agents/skills/orm-admin/references/org-profile-capability.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgProfileCapability - - - -Join table linking profiles to individual capabilities they include - -## Usage - -```typescript -db.orgProfileCapability.findMany({ select: { id: true } }).execute() -db.orgProfileCapability.findOne({ id: '', select: { id: true } }).execute() -db.orgProfileCapability.create({ data: { capabilityId: '', profileId: '' }, select: { id: true } }).execute() -db.orgProfileCapability.update({ where: { id: '' }, data: { capabilityId: '' }, select: { id: true } }).execute() -db.orgProfileCapability.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgProfileCapability records - -```typescript -const items = await db.orgProfileCapability.findMany({ - select: { id: true, capabilityId: true } -}).execute(); -``` - -### Create a orgProfileCapability - -```typescript -const item = await db.orgProfileCapability.create({ - data: { capabilityId: '', profileId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-admin/references/org-profile-definition-grant.md b/.agents/skills/orm-admin/references/org-profile-definition-grant.md deleted file mode 100644 index 1b1e811ff4..0000000000 --- a/.agents/skills/orm-admin/references/org-profile-definition-grant.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgProfileDefinitionGrant - - - -Audit log of capability additions and removals from profile definitions - -## Usage - -```typescript -db.orgProfileDefinitionGrant.findMany({ select: { id: true } }).execute() -db.orgProfileDefinitionGrant.findOne({ id: '', select: { id: true } }).execute() -db.orgProfileDefinitionGrant.create({ data: { capabilityId: '', grantorId: '', isGrant: '', profileId: '' }, select: { id: true } }).execute() -db.orgProfileDefinitionGrant.update({ where: { id: '' }, data: { capabilityId: '' }, select: { id: true } }).execute() -db.orgProfileDefinitionGrant.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgProfileDefinitionGrant records - -```typescript -const items = await db.orgProfileDefinitionGrant.findMany({ - select: { id: true, capabilityId: true } -}).execute(); -``` - -### Create a orgProfileDefinitionGrant - -```typescript -const item = await db.orgProfileDefinitionGrant.create({ - data: { capabilityId: '', grantorId: '', isGrant: '', profileId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-admin/references/org-profile-grant.md b/.agents/skills/orm-admin/references/org-profile-grant.md deleted file mode 100644 index ea00aa5f0c..0000000000 --- a/.agents/skills/orm-admin/references/org-profile-grant.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgProfileGrant - - - -Audit log of profile assignments and revocations for members - -## Usage - -```typescript -db.orgProfileGrant.findMany({ select: { id: true } }).execute() -db.orgProfileGrant.findOne({ id: '', select: { id: true } }).execute() -db.orgProfileGrant.create({ data: { entityId: '', grantorId: '', isGrant: '', membershipId: '', profileId: '' }, select: { id: true } }).execute() -db.orgProfileGrant.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute() -db.orgProfileGrant.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgProfileGrant records - -```typescript -const items = await db.orgProfileGrant.findMany({ - select: { id: true, entityId: true } -}).execute(); -``` - -### Create a orgProfileGrant - -```typescript -const item = await db.orgProfileGrant.create({ - data: { entityId: '', grantorId: '', isGrant: '', membershipId: '', profileId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-admin/references/org-profile-template.md b/.agents/skills/orm-admin/references/org-profile-template.md deleted file mode 100644 index 1882a832fa..0000000000 --- a/.agents/skills/orm-admin/references/org-profile-template.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgProfileTemplate - - - -Template profiles that are automatically seeded into new entities when created - -## Usage - -```typescript -db.orgProfileTemplate.findMany({ select: { id: true } }).execute() -db.orgProfileTemplate.findOne({ id: '', select: { id: true } }).execute() -db.orgProfileTemplate.create({ data: { capabilities: '', description: '', isDefault: '', name: '', slug: '' }, select: { id: true } }).execute() -db.orgProfileTemplate.update({ where: { id: '' }, data: { capabilities: '' }, select: { id: true } }).execute() -db.orgProfileTemplate.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgProfileTemplate records - -```typescript -const items = await db.orgProfileTemplate.findMany({ - select: { id: true, capabilities: true } -}).execute(); -``` - -### Create a orgProfileTemplate - -```typescript -const item = await db.orgProfileTemplate.create({ - data: { capabilities: '', description: '', isDefault: '', name: '', slug: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-admin/references/org-profile.md b/.agents/skills/orm-admin/references/org-profile.md deleted file mode 100644 index 36cea063cb..0000000000 --- a/.agents/skills/orm-admin/references/org-profile.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgProfile - - - -Named capability bundles (roles) that group multiple capabilities into reusable profiles - -## Usage - -```typescript -db.orgProfile.findMany({ select: { id: true } }).execute() -db.orgProfile.findOne({ id: '', select: { id: true } }).execute() -db.orgProfile.create({ data: { capabilities: '', description: '', entityId: '', isDefault: '', isSystem: '', name: '', slug: '' }, select: { id: true } }).execute() -db.orgProfile.update({ where: { id: '' }, data: { capabilities: '' }, select: { id: true } }).execute() -db.orgProfile.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgProfile records - -```typescript -const items = await db.orgProfile.findMany({ - select: { id: true, capabilities: true } -}).execute(); -``` - -### Create a orgProfile - -```typescript -const item = await db.orgProfile.create({ - data: { capabilities: '', description: '', entityId: '', isDefault: '', isSystem: '', name: '', slug: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-admin/references/request-upload-url.md b/.agents/skills/orm-admin/references/request-upload-url.md deleted file mode 100644 index e3c6d37ef8..0000000000 --- a/.agents/skills/orm-admin/references/request-upload-url.md +++ /dev/null @@ -1,22 +0,0 @@ -# requestUploadUrl - - - -Request a presigned URL for uploading a file directly to S3. -Client computes SHA-256 of the file content and provides it here. -If a file with the same hash already exists (dedup), returns the -existing file ID and deduplicated=true with no uploadUrl. - -## Usage - -```typescript -db.mutation.requestUploadUrl({ input: '' }).execute() -``` - -## Examples - -### Run requestUploadUrl - -```typescript -const result = await db.mutation.requestUploadUrl({ input: '' }).execute(); -``` diff --git a/.agents/skills/orm-admin/references/steps-achieved.md b/.agents/skills/orm-admin/references/steps-achieved.md deleted file mode 100644 index 692487f2be..0000000000 --- a/.agents/skills/orm-admin/references/steps-achieved.md +++ /dev/null @@ -1,19 +0,0 @@ -# stepsAchieved - - - -Execute the stepsAchieved query - -## Usage - -```typescript -db.query.stepsAchieved({ level: '', roleId: '' }).execute() -``` - -## Examples - -### Run stepsAchieved - -```typescript -const result = await db.query.stepsAchieved({ level: '', roleId: '' }).execute(); -``` diff --git a/.agents/skills/orm-admin/references/steps-required.md b/.agents/skills/orm-admin/references/steps-required.md deleted file mode 100644 index 4eace17069..0000000000 --- a/.agents/skills/orm-admin/references/steps-required.md +++ /dev/null @@ -1,19 +0,0 @@ -# stepsRequired - - - -Reads and enables pagination through a set of `AppLevelRequirement`. - -## Usage - -```typescript -db.query.stepsRequired({ level: '', roleId: '', first: '', offset: '', after: '' }).execute() -``` - -## Examples - -### Run stepsRequired - -```typescript -const result = await db.query.stepsRequired({ level: '', roleId: '', first: '', offset: '', after: '' }).execute(); -``` diff --git a/.agents/skills/orm-admin/references/submit-invite-code.md b/.agents/skills/orm-admin/references/submit-invite-code.md deleted file mode 100644 index c4c989519e..0000000000 --- a/.agents/skills/orm-admin/references/submit-invite-code.md +++ /dev/null @@ -1,19 +0,0 @@ -# submitInviteCode - - - -Execute the submitInviteCode mutation - -## Usage - -```typescript -db.mutation.submitInviteCode({ input: { token: '' } }).execute() -``` - -## Examples - -### Run submitInviteCode - -```typescript -const result = await db.mutation.submitInviteCode({ input: { token: '' } }).execute(); -``` diff --git a/.agents/skills/orm-admin/references/usage-snapshot.md b/.agents/skills/orm-admin/references/usage-snapshot.md deleted file mode 100644 index 10db640433..0000000000 --- a/.agents/skills/orm-admin/references/usage-snapshot.md +++ /dev/null @@ -1,34 +0,0 @@ -# usageSnapshot - - - -Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. - -## Usage - -```typescript -db.usageSnapshot.findMany({ select: { id: true } }).execute() -db.usageSnapshot.findOne({ id: '', select: { id: true } }).execute() -db.usageSnapshot.create({ data: { databaseId: '', metricName: '', metricValue: '', dimensions: '', capturedAt: '' }, select: { id: true } }).execute() -db.usageSnapshot.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.usageSnapshot.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all usageSnapshot records - -```typescript -const items = await db.usageSnapshot.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a usageSnapshot - -```typescript -const item = await db.usageSnapshot.create({ - data: { databaseId: '', metricName: '', metricValue: '', dimensions: '', capturedAt: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-agent/references/agent-resource-chunk.md b/.agents/skills/orm-agent/references/agent-resource-chunk.md index 1e330a7e7b..481c8a5f0a 100644 --- a/.agents/skills/orm-agent/references/agent-resource-chunk.md +++ b/.agents/skills/orm-agent/references/agent-resource-chunk.md @@ -12,7 +12,7 @@ High-dimensional vector columns for semantic similarity search. Query via the Un ```typescript db.agentResourceChunk.findMany({ select: { id: true } }).execute() db.agentResourceChunk.findOne({ id: '', select: { id: true } }).execute() -db.agentResourceChunk.create({ data: { agentResourceId: '', body: '', chunkIndex: '', databaseId: '', embedding: '', embeddingVectorDistance: '', metadata: '', searchScore: '' }, select: { id: true } }).execute() +db.agentResourceChunk.create({ data: { agentResourceId: '', body: '', chunkIndex: '', databaseId: '', embedding: '', metadata: '' }, select: { id: true } }).execute() db.agentResourceChunk.update({ where: { id: '' }, data: { agentResourceId: '' }, select: { id: true } }).execute() db.agentResourceChunk.delete({ where: { id: '' } }).execute() ``` @@ -31,7 +31,7 @@ const items = await db.agentResourceChunk.findMany({ ```typescript const item = await db.agentResourceChunk.create({ - data: { agentResourceId: '', body: '', chunkIndex: '', databaseId: '', embedding: '', embeddingVectorDistance: '', metadata: '', searchScore: '' }, + data: { agentResourceId: '', body: '', chunkIndex: '', databaseId: '', embedding: '', metadata: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-agent/references/agent-resource.md b/.agents/skills/orm-agent/references/agent-resource.md index 3a237ea2cc..c2b63ae00c 100644 --- a/.agents/skills/orm-agent/references/agent-resource.md +++ b/.agents/skills/orm-agent/references/agent-resource.md @@ -15,7 +15,7 @@ Fields provided by the Unified Search plugin. Includes full-text search (tsvecto ```typescript db.agentResource.findMany({ select: { id: true } }).execute() db.agentResource.findOne({ id: '', select: { id: true } }).execute() -db.agentResource.create({ data: { archivedAt: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', isActive: '', isArchived: '', keywords: '', kind: '', kindTrgmSimilarity: '', metadata: '', search: '', searchScore: '', searchTsvRank: '', slug: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() +db.agentResource.create({ data: { archivedAt: '', body: '', createdBy: '', createdByPrincipal: '', databaseId: '', description: '', embedding: '', isActive: '', isArchived: '', keywords: '', kind: '', metadata: '', slug: '', title: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() db.agentResource.update({ where: { id: '' }, data: { archivedAt: '' }, select: { id: true } }).execute() db.agentResource.delete({ where: { id: '' } }).execute() ``` @@ -34,7 +34,7 @@ const items = await db.agentResource.findMany({ ```typescript const item = await db.agentResource.create({ - data: { archivedAt: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', isActive: '', isArchived: '', keywords: '', kind: '', kindTrgmSimilarity: '', metadata: '', search: '', searchScore: '', searchTsvRank: '', slug: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, + data: { archivedAt: '', body: '', createdBy: '', createdByPrincipal: '', databaseId: '', description: '', embedding: '', isActive: '', isArchived: '', keywords: '', kind: '', metadata: '', slug: '', title: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-agent/references/platform-agent-resource-chunk.md b/.agents/skills/orm-agent/references/platform-agent-resource-chunk.md index 2b1caeb6b2..1dc70d17e5 100644 --- a/.agents/skills/orm-agent/references/platform-agent-resource-chunk.md +++ b/.agents/skills/orm-agent/references/platform-agent-resource-chunk.md @@ -12,7 +12,7 @@ High-dimensional vector columns for semantic similarity search. Query via the Un ```typescript db.platformAgentResourceChunk.findMany({ select: { id: true } }).execute() db.platformAgentResourceChunk.findOne({ id: '', select: { id: true } }).execute() -db.platformAgentResourceChunk.create({ data: { body: '', chunkIndex: '', embedding: '', embeddingVectorDistance: '', metadata: '', platformAgentResourceId: '', searchScore: '' }, select: { id: true } }).execute() +db.platformAgentResourceChunk.create({ data: { body: '', chunkIndex: '', embedding: '', metadata: '', platformAgentResourceId: '' }, select: { id: true } }).execute() db.platformAgentResourceChunk.update({ where: { id: '' }, data: { body: '' }, select: { id: true } }).execute() db.platformAgentResourceChunk.delete({ where: { id: '' } }).execute() ``` @@ -31,7 +31,7 @@ const items = await db.platformAgentResourceChunk.findMany({ ```typescript const item = await db.platformAgentResourceChunk.create({ - data: { body: '', chunkIndex: '', embedding: '', embeddingVectorDistance: '', metadata: '', platformAgentResourceId: '', searchScore: '' }, + data: { body: '', chunkIndex: '', embedding: '', metadata: '', platformAgentResourceId: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-agent/references/platform-agent-resource.md b/.agents/skills/orm-agent/references/platform-agent-resource.md index 8e8d07664f..f76ccc8261 100644 --- a/.agents/skills/orm-agent/references/platform-agent-resource.md +++ b/.agents/skills/orm-agent/references/platform-agent-resource.md @@ -15,7 +15,7 @@ Fields provided by the Unified Search plugin. Includes full-text search (tsvecto ```typescript db.platformAgentResource.findMany({ select: { id: true } }).execute() db.platformAgentResource.findOne({ id: '', select: { id: true } }).execute() -db.platformAgentResource.create({ data: { archivedAt: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', isActive: '', isArchived: '', keywords: '', kind: '', kindTrgmSimilarity: '', metadata: '', search: '', searchScore: '', searchTsvRank: '', slug: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() +db.platformAgentResource.create({ data: { archivedAt: '', body: '', createdBy: '', createdByPrincipal: '', description: '', embedding: '', isActive: '', isArchived: '', keywords: '', kind: '', metadata: '', slug: '', title: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() db.platformAgentResource.update({ where: { id: '' }, data: { archivedAt: '' }, select: { id: true } }).execute() db.platformAgentResource.delete({ where: { id: '' } }).execute() ``` @@ -34,7 +34,7 @@ const items = await db.platformAgentResource.findMany({ ```typescript const item = await db.platformAgentResource.create({ - data: { archivedAt: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', isActive: '', isArchived: '', keywords: '', kind: '', kindTrgmSimilarity: '', metadata: '', search: '', searchScore: '', searchTsvRank: '', slug: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, + data: { archivedAt: '', body: '', createdBy: '', createdByPrincipal: '', description: '', embedding: '', isActive: '', isArchived: '', keywords: '', kind: '', metadata: '', slug: '', title: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-api/SKILL.md b/.agents/skills/orm-api/SKILL.md index 4c61e2919f..c721509b4f 100644 --- a/.agents/skills/orm-api/SKILL.md +++ b/.agents/skills/orm-api/SKILL.md @@ -1,13 +1,13 @@ --- name: orm-api -description: ORM client for the api API — provides typed CRUD operations for 90 tables and 49 custom operations +description: ORM client for the api API — provides typed CRUD operations for 91 tables and 45 custom operations --- # orm-api -ORM client for the api API — provides typed CRUD operations for 90 tables and 49 custom operations +ORM client for the api API — provides typed CRUD operations for 91 tables and 45 custom operations ## Usage @@ -86,6 +86,7 @@ See the `references/` directory for detailed per-entity API documentation: - [platform-get-site-previews-record](references/platform-get-site-previews-record.md) - [platform-managed-domain](references/platform-managed-domain.md) - [platform-page](references/platform-page.md) +- [platform-reserved-subdomain](references/platform-reserved-subdomain.md) - [platform-site-app-link](references/platform-site-app-link.md) - [platform-site](references/platform-site.md) - [platform-site-deep-link](references/platform-site-deep-link.md) @@ -127,7 +128,6 @@ See the `references/` directory for detailed per-entity API documentation: - [view-rule](references/view-rule.md) - [view-table](references/view-table.md) - [webauthn-setting](references/webauthn-setting.md) -- [api-schema-names](references/api-schema-names.md) - [apply-registry-defaults](references/apply-registry-defaults.md) - [email-shared-account](references/email-shared-account.md) - [get-site-preview-commit](references/get-site-preview-commit.md) @@ -139,9 +139,6 @@ See the `references/` directory for detailed per-entity API documentation: - [platform-sites-deep-link-url](references/platform-sites-deep-link-url.md) - [platform-sites-site-origin](references/platform-sites-site-origin.md) - [platform-verify-site-preview-token](references/platform-verify-site-preview-token.md) -- [resolve-deep-link](references/resolve-deep-link.md) -- [resolve-route](references/resolve-route.md) -- [resolve-site-app-links](references/resolve-site-app-links.md) - [sites-deep-link-url](references/sites-deep-link-url.md) - [sites-site-origin](references/sites-site-origin.md) - [verify-site-preview-token](references/verify-site-preview-token.md) diff --git a/.agents/skills/orm-api/references/api-module.md b/.agents/skills/orm-api/references/api-module.md deleted file mode 100644 index 85210cf49c..0000000000 --- a/.agents/skills/orm-api/references/api-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# apiModule - - - -Server-side module configuration for an API surface; stores module name and JSON settings - -## Usage - -```typescript -db.apiModule.findMany({ select: { id: true } }).execute() -db.apiModule.findOne({ id: '', select: { id: true } }).execute() -db.apiModule.create({ data: { apiId: '', data: '', databaseId: '', name: '' }, select: { id: true } }).execute() -db.apiModule.update({ where: { id: '' }, data: { apiId: '' }, select: { id: true } }).execute() -db.apiModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all apiModule records - -```typescript -const items = await db.apiModule.findMany({ - select: { id: true, apiId: true } -}).execute(); -``` - -### Create a apiModule - -```typescript -const item = await db.apiModule.create({ - data: { apiId: '', data: '', databaseId: '', name: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-api/references/api-schema-names.md b/.agents/skills/orm-api/references/api-schema-names.md deleted file mode 100644 index 87c440a5f3..0000000000 --- a/.agents/skills/orm-api/references/api-schema-names.md +++ /dev/null @@ -1,19 +0,0 @@ -# apiSchemaNames - - - -Execute the apiSchemaNames query - -## Usage - -```typescript -db.query.apiSchemaNames({ targetApiId: '' }).execute() -``` - -## Examples - -### Run apiSchemaNames - -```typescript -const result = await db.query.apiSchemaNames({ targetApiId: '' }).execute(); -``` diff --git a/.agents/skills/orm-api/references/api-setting.md b/.agents/skills/orm-api/references/api-setting.md index 6f883614b8..7338b263e4 100644 --- a/.agents/skills/orm-api/references/api-setting.md +++ b/.agents/skills/orm-api/references/api-setting.md @@ -9,7 +9,7 @@ Per-API feature flag overrides; NULL columns inherit from database_settings ```typescript db.apiSetting.findMany({ select: { id: true } }).execute() db.apiSetting.findOne({ id: '', select: { id: true } }).execute() -db.apiSetting.create({ data: { apiId: '', databaseId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute() +db.apiSetting.create({ data: { apiId: '', databaseId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute() db.apiSetting.update({ where: { id: '' }, data: { apiId: '' }, select: { id: true } }).execute() db.apiSetting.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.apiSetting.findMany({ ```typescript const item = await db.apiSetting.create({ - data: { apiId: '', databaseId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, + data: { apiId: '', databaseId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-api/references/api.md b/.agents/skills/orm-api/references/api.md index a575a7c3f1..45fbea8ef8 100644 --- a/.agents/skills/orm-api/references/api.md +++ b/.agents/skills/orm-api/references/api.md @@ -9,7 +9,7 @@ API surfaces exposed by this scope; publication makes a surface bindable from ot ```typescript db.api.findMany({ select: { id: true } }).execute() db.api.findOne({ id: '', select: { id: true } }).execute() -db.api.create({ data: { anonRole: '', config: '', databaseId: '', dbname: '', isPublished: '', name: '', roleName: '' }, select: { id: true } }).execute() +db.api.create({ data: { anonRole: '', config: '', databaseId: '', isPublished: '', name: '', roleName: '' }, select: { id: true } }).execute() db.api.update({ where: { id: '' }, data: { anonRole: '' }, select: { id: true } }).execute() db.api.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.api.findMany({ ```typescript const item = await db.api.create({ - data: { anonRole: '', config: '', databaseId: '', dbname: '', isPublished: '', name: '', roleName: '' }, + data: { anonRole: '', config: '', databaseId: '', isPublished: '', name: '', roleName: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-api/references/apis.md b/.agents/skills/orm-api/references/apis.md deleted file mode 100644 index 111a1a7aaa..0000000000 --- a/.agents/skills/orm-api/references/apis.md +++ /dev/null @@ -1,34 +0,0 @@ -# apis - - - -API surfaces exposed by this scope; publication makes a surface bindable from other scopes - -## Usage - -```typescript -db.apis.findMany({ select: { id: true } }).execute() -db.apis.findOne({ id: '', select: { id: true } }).execute() -db.apis.create({ data: { anonRole: '', config: '', databaseId: '', dbname: '', isPublished: '', name: '', roleName: '' }, select: { id: true } }).execute() -db.apis.update({ where: { id: '' }, data: { anonRole: '' }, select: { id: true } }).execute() -db.apis.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all apis records - -```typescript -const items = await db.apis.findMany({ - select: { id: true, anonRole: true } -}).execute(); -``` - -### Create a apis - -```typescript -const item = await db.apis.create({ - data: { anonRole: '', config: '', databaseId: '', dbname: '', isPublished: '', name: '', roleName: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-api/references/app-component.md b/.agents/skills/orm-api/references/app-component.md deleted file mode 100644 index e17995b048..0000000000 --- a/.agents/skills/orm-api/references/app-component.md +++ /dev/null @@ -1,34 +0,0 @@ -# appComponent - - - -App component rows binding an app to typed catalog rows (exactly one typed component reference per row) - -## Usage - -```typescript -db.appComponent.findMany({ select: { id: true } }).execute() -db.appComponent.findOne({ id: '', select: { id: true } }).execute() -db.appComponent.create({ data: { appId: '', componentApiId: '', componentDomainId: '', componentInstallationId: '', componentSiteId: '', componentType: '', config: '', databaseId: '' }, select: { id: true } }).execute() -db.appComponent.update({ where: { id: '' }, data: { appId: '' }, select: { id: true } }).execute() -db.appComponent.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appComponent records - -```typescript -const items = await db.appComponent.findMany({ - select: { id: true, appId: true } -}).execute(); -``` - -### Create a appComponent - -```typescript -const item = await db.appComponent.create({ - data: { appId: '', componentApiId: '', componentDomainId: '', componentInstallationId: '', componentSiteId: '', componentType: '', config: '', databaseId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-api/references/app.md b/.agents/skills/orm-api/references/app.md deleted file mode 100644 index 1d06c5e9a1..0000000000 --- a/.agents/skills/orm-api/references/app.md +++ /dev/null @@ -1,34 +0,0 @@ -# app - - - -App aggregates: thin identity rows whose components are global catalog references - -## Usage - -```typescript -db.app.findMany({ select: { id: true } }).execute() -db.app.findOne({ id: '', select: { id: true } }).execute() -db.app.create({ data: { config: '', databaseId: '', description: '', isPublished: '', name: '', status: '', title: '' }, select: { id: true } }).execute() -db.app.update({ where: { id: '' }, data: { config: '' }, select: { id: true } }).execute() -db.app.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all app records - -```typescript -const items = await db.app.findMany({ - select: { id: true, config: true } -}).execute(); -``` - -### Create a app - -```typescript -const item = await db.app.create({ - data: { config: '', databaseId: '', description: '', isPublished: '', name: '', status: '', title: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-api/references/apps-install-app.md b/.agents/skills/orm-api/references/apps-install-app.md deleted file mode 100644 index b609294136..0000000000 --- a/.agents/skills/orm-api/references/apps-install-app.md +++ /dev/null @@ -1,19 +0,0 @@ -# appsInstallApp - - - -Execute the appsInstallApp mutation - -## Usage - -```typescript -db.mutation.appsInstallApp({ input: '' }).execute() -``` - -## Examples - -### Run appsInstallApp - -```typescript -const result = await db.mutation.appsInstallApp({ input: '' }).execute(); -``` diff --git a/.agents/skills/orm-api/references/apps-uninstall-app.md b/.agents/skills/orm-api/references/apps-uninstall-app.md deleted file mode 100644 index 3598434977..0000000000 --- a/.agents/skills/orm-api/references/apps-uninstall-app.md +++ /dev/null @@ -1,19 +0,0 @@ -# appsUninstallApp - - - -Execute the appsUninstallApp mutation - -## Usage - -```typescript -db.mutation.appsUninstallApp({ input: { targetAppId: '' } }).execute() -``` - -## Examples - -### Run appsUninstallApp - -```typescript -const result = await db.mutation.appsUninstallApp({ input: { targetAppId: '' } }).execute(); -``` diff --git a/.agents/skills/orm-api/references/apps-upgrade-app.md b/.agents/skills/orm-api/references/apps-upgrade-app.md deleted file mode 100644 index 8da2e3f7e0..0000000000 --- a/.agents/skills/orm-api/references/apps-upgrade-app.md +++ /dev/null @@ -1,19 +0,0 @@ -# appsUpgradeApp - - - -Execute the appsUpgradeApp mutation - -## Usage - -```typescript -db.mutation.appsUpgradeApp({ input: { newParams: '', targetAppId: '' } }).execute() -``` - -## Examples - -### Run appsUpgradeApp - -```typescript -const result = await db.mutation.appsUpgradeApp({ input: { newParams: '', targetAppId: '' } }).execute(); -``` diff --git a/.agents/skills/orm-api/references/ast-migration.md b/.agents/skills/orm-api/references/ast-migration.md index 63e6e1b356..30d5b18082 100644 --- a/.agents/skills/orm-api/references/ast-migration.md +++ b/.agents/skills/orm-api/references/ast-migration.md @@ -9,7 +9,6 @@ ORM operations for AstMigration records ```typescript db.astMigration.findMany({ select: { id: true } }).execute() db.astMigration.findOne({ id: '', select: { id: true } }).execute() -db.astMigration.create({ data: { actionId: '', actionName: '', actorId: '', databaseId: '', deploy: '', deploys: '', name: '', payload: '', requires: '', revert: '', verify: '' }, select: { id: true } }).execute() db.astMigration.update({ where: { id: '' }, data: { actionId: '' }, select: { id: true } }).execute() db.astMigration.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.astMigration.findMany({ select: { id: true, actionId: true } }).execute(); ``` - -### Create a astMigration - -```typescript -const item = await db.astMigration.create({ - data: { actionId: '', actionName: '', actorId: '', databaseId: '', deploy: '', deploys: '', name: '', payload: '', requires: '', revert: '', verify: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-api/references/bootstrap-user.md b/.agents/skills/orm-api/references/bootstrap-user.md deleted file mode 100644 index dc3b925815..0000000000 --- a/.agents/skills/orm-api/references/bootstrap-user.md +++ /dev/null @@ -1,19 +0,0 @@ -# bootstrapUser - - - -Execute the bootstrapUser mutation - -## Usage - -```typescript -db.mutation.bootstrapUser({ input: '' }).execute() -``` - -## Examples - -### Run bootstrapUser - -```typescript -const result = await db.mutation.bootstrapUser({ input: '' }).execute(); -``` diff --git a/.agents/skills/orm-api/references/create-user-database.md b/.agents/skills/orm-api/references/create-user-database.md deleted file mode 100644 index e5fad5cf5b..0000000000 --- a/.agents/skills/orm-api/references/create-user-database.md +++ /dev/null @@ -1,35 +0,0 @@ -# createUserDatabase - - - -Creates a new user database with all required modules, permissions, and RLS policies. - -Parameters: - - database_name: Name for the new database (required) - - owner_id: UUID of the owner user (required) - - include_invites: Include invite system (default: true) - - include_groups: Include group-level memberships (default: false) - - include_levels: Include events/analytics (default: false) - - bitlen: Bit length for permission masks (default: 64) - - tokens_expiration: Token expiration interval (default: 30 days) - -Returns the database_id UUID of the newly created database. - -Example usage: - SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid); - SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid, true, true); -- with invites and groups - - -## Usage - -```typescript -db.mutation.createUserDatabase({ input: '' }).execute() -``` - -## Examples - -### Run createUserDatabase - -```typescript -const result = await db.mutation.createUserDatabase({ input: '' }).execute(); -``` diff --git a/.agents/skills/orm-api/references/database-setting.md b/.agents/skills/orm-api/references/database-setting.md index 5db2b4d64e..9ac250c2ed 100644 --- a/.agents/skills/orm-api/references/database-setting.md +++ b/.agents/skills/orm-api/references/database-setting.md @@ -9,7 +9,7 @@ Scope-wide feature flags and settings; controls which platform features are avai ```typescript db.databaseSetting.findMany({ select: { id: true } }).execute() db.databaseSetting.findOne({ id: '', select: { id: true } }).execute() -db.databaseSetting.create({ data: { annotations: '', creditsPerCent: '', databaseId: '', enableAggregates: '', enableBilling: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', labels: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute() +db.databaseSetting.create({ data: { annotations: '', creditsPerCent: '', databaseId: '', enableAggregates: '', enableBilling: '', enableBulk: '', enableConnectionFilter: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', labels: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute() db.databaseSetting.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute() db.databaseSetting.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.databaseSetting.findMany({ ```typescript const item = await db.databaseSetting.create({ - data: { annotations: '', creditsPerCent: '', databaseId: '', enableAggregates: '', enableBilling: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', labels: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, + data: { annotations: '', creditsPerCent: '', databaseId: '', enableAggregates: '', enableBilling: '', enableBulk: '', enableConnectionFilter: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', labels: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-api/references/database.md b/.agents/skills/orm-api/references/database.md index bb13a0b23c..fb15e52abb 100644 --- a/.agents/skills/orm-api/references/database.md +++ b/.agents/skills/orm-api/references/database.md @@ -9,7 +9,7 @@ ORM operations for Database records ```typescript db.database.findMany({ select: { id: true } }).execute() db.database.findOne({ id: '', select: { id: true } }).execute() -db.database.create({ data: { hash: '', label: '', name: '', ownerId: '', platform: '', suspendedAt: '', suspendedReason: '' }, select: { id: true } }).execute() +db.database.create({ data: { hash: '', label: '', name: '', ownerId: '', platform: '' }, select: { id: true } }).execute() db.database.update({ where: { id: '' }, data: { hash: '' }, select: { id: true } }).execute() db.database.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.database.findMany({ ```typescript const item = await db.database.create({ - data: { hash: '', label: '', name: '', ownerId: '', platform: '', suspendedAt: '', suspendedReason: '' }, + data: { hash: '', label: '', name: '', ownerId: '', platform: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-api/references/get-site-previews-record.md b/.agents/skills/orm-api/references/get-site-previews-record.md index f0e497ea8a..969a92dda6 100644 --- a/.agents/skills/orm-api/references/get-site-previews-record.md +++ b/.agents/skills/orm-api/references/get-site-previews-record.md @@ -9,7 +9,6 @@ ORM operations for GetSitePreviewsRecord records ```typescript db.getSitePreviewsRecord.findMany({ select: { id: true } }).execute() db.getSitePreviewsRecord.findOne({ id: '', select: { id: true } }).execute() -db.getSitePreviewsRecord.create({ data: { commitId: '', name: '' }, select: { id: true } }).execute() db.getSitePreviewsRecord.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute() db.getSitePreviewsRecord.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.getSitePreviewsRecord.findMany({ select: { id: true, commitId: true } }).execute(); ``` - -### Create a getSitePreviewsRecord - -```typescript -const item = await db.getSitePreviewsRecord.create({ - data: { commitId: '', name: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-api/references/hostname-binding.md b/.agents/skills/orm-api/references/hostname-binding.md deleted file mode 100644 index ee582fe528..0000000000 --- a/.agents/skills/orm-api/references/hostname-binding.md +++ /dev/null @@ -1,34 +0,0 @@ -# hostnameBinding - - - -Compiled hostname index maintained by domain sync triggers; read only through the resolver - -## Usage - -```typescript -db.hostnameBinding.findMany({ select: { id: true } }).execute() -db.hostnameBinding.findOne({ id: '', select: { id: true } }).execute() -db.hostnameBinding.create({ data: { domainId: '', hostname: '', isWildcard: '', managed: '', parentHostname: '', tlsSecretName: '', tlsStatus: '', verificationStatus: '' }, select: { id: true } }).execute() -db.hostnameBinding.update({ where: { id: '' }, data: { domainId: '' }, select: { id: true } }).execute() -db.hostnameBinding.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all hostnameBinding records - -```typescript -const items = await db.hostnameBinding.findMany({ - select: { id: true, domainId: true } -}).execute(); -``` - -### Create a hostnameBinding - -```typescript -const item = await db.hostnameBinding.create({ - data: { domainId: '', hostname: '', isWildcard: '', managed: '', parentHostname: '', tlsSecretName: '', tlsStatus: '', verificationStatus: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-api/references/http-route.md b/.agents/skills/orm-api/references/http-route.md deleted file mode 100644 index 65808bcc49..0000000000 --- a/.agents/skills/orm-api/references/http-route.md +++ /dev/null @@ -1,34 +0,0 @@ -# httpRoute - - - -Request-time HTTP routing authority: registered domain plus path prefix and optional method to a typed target - -## Usage - -```typescript -db.httpRoute.findMany({ select: { id: true } }).execute() -db.httpRoute.findOne({ id: '', select: { id: true } }).execute() -db.httpRoute.create({ data: { createdBy: '', databaseId: '', domainId: '', isActive: '', method: '', path: '', priority: '', targetId: '', targetKind: '', updatedBy: '' }, select: { id: true } }).execute() -db.httpRoute.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() -db.httpRoute.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all httpRoute records - -```typescript -const items = await db.httpRoute.findMany({ - select: { id: true, createdBy: true } -}).execute(); -``` - -### Create a httpRoute - -```typescript -const item = await db.httpRoute.create({ - data: { createdBy: '', databaseId: '', domainId: '', isActive: '', method: '', path: '', priority: '', targetId: '', targetKind: '', updatedBy: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-api/references/list-suspended-databases-record.md b/.agents/skills/orm-api/references/list-suspended-databases-record.md index 362b1c48af..0aa3f13253 100644 --- a/.agents/skills/orm-api/references/list-suspended-databases-record.md +++ b/.agents/skills/orm-api/references/list-suspended-databases-record.md @@ -9,7 +9,6 @@ ORM operations for ListSuspendedDatabasesRecord records ```typescript db.listSuspendedDatabasesRecord.findMany({ select: { id: true } }).execute() db.listSuspendedDatabasesRecord.findOne({ id: '', select: { id: true } }).execute() -db.listSuspendedDatabasesRecord.create({ data: { name: '', ownerId: '', suspendedAt: '', suspendedReason: '' }, select: { id: true } }).execute() db.listSuspendedDatabasesRecord.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() db.listSuspendedDatabasesRecord.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.listSuspendedDatabasesRecord.findMany({ select: { id: true, name: true } }).execute(); ``` - -### Create a listSuspendedDatabasesRecord - -```typescript -const item = await db.listSuspendedDatabasesRecord.create({ - data: { name: '', ownerId: '', suspendedAt: '', suspendedReason: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-api/references/migrate-file.md b/.agents/skills/orm-api/references/migrate-file.md deleted file mode 100644 index 621ea5e796..0000000000 --- a/.agents/skills/orm-api/references/migrate-file.md +++ /dev/null @@ -1,34 +0,0 @@ -# migrateFile - - - -ORM operations for MigrateFile records - -## Usage - -```typescript -db.migrateFile.findMany({ select: { id: true } }).execute() -db.migrateFile.findOne({ id: '', select: { id: true } }).execute() -db.migrateFile.create({ data: { databaseId: '', upload: '' }, select: { id: true } }).execute() -db.migrateFile.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.migrateFile.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all migrateFile records - -```typescript -const items = await db.migrateFile.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a migrateFile - -```typescript -const item = await db.migrateFile.create({ - data: { databaseId: '', upload: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-api/references/platform-api-module.md b/.agents/skills/orm-api/references/platform-api-module.md deleted file mode 100644 index 246bb69785..0000000000 --- a/.agents/skills/orm-api/references/platform-api-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# platformApiModule - - - -Server-side module configuration for an API surface; stores module name and JSON settings - -## Usage - -```typescript -db.platformApiModule.findMany({ select: { id: true } }).execute() -db.platformApiModule.findOne({ id: '', select: { id: true } }).execute() -db.platformApiModule.create({ data: { apiId: '', data: '', name: '' }, select: { id: true } }).execute() -db.platformApiModule.update({ where: { id: '' }, data: { apiId: '' }, select: { id: true } }).execute() -db.platformApiModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all platformApiModule records - -```typescript -const items = await db.platformApiModule.findMany({ - select: { id: true, apiId: true } -}).execute(); -``` - -### Create a platformApiModule - -```typescript -const item = await db.platformApiModule.create({ - data: { apiId: '', data: '', name: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-api/references/platform-api-setting.md b/.agents/skills/orm-api/references/platform-api-setting.md index 4a56b02175..bc04f61687 100644 --- a/.agents/skills/orm-api/references/platform-api-setting.md +++ b/.agents/skills/orm-api/references/platform-api-setting.md @@ -9,7 +9,7 @@ Per-API feature flag overrides; NULL columns inherit from database_settings ```typescript db.platformApiSetting.findMany({ select: { id: true } }).execute() db.platformApiSetting.findOne({ id: '', select: { id: true } }).execute() -db.platformApiSetting.create({ data: { apiId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute() +db.platformApiSetting.create({ data: { apiId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute() db.platformApiSetting.update({ where: { id: '' }, data: { apiId: '' }, select: { id: true } }).execute() db.platformApiSetting.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.platformApiSetting.findMany({ ```typescript const item = await db.platformApiSetting.create({ - data: { apiId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, + data: { apiId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-api/references/platform-api.md b/.agents/skills/orm-api/references/platform-api.md index 1dfcdea283..097956bfd8 100644 --- a/.agents/skills/orm-api/references/platform-api.md +++ b/.agents/skills/orm-api/references/platform-api.md @@ -9,7 +9,7 @@ API surfaces exposed by this scope; publication makes a surface bindable from ot ```typescript db.platformApi.findMany({ select: { id: true } }).execute() db.platformApi.findOne({ id: '', select: { id: true } }).execute() -db.platformApi.create({ data: { anonRole: '', config: '', dbname: '', isPublished: '', name: '', roleName: '' }, select: { id: true } }).execute() +db.platformApi.create({ data: { anonRole: '', config: '', isPublished: '', name: '', roleName: '' }, select: { id: true } }).execute() db.platformApi.update({ where: { id: '' }, data: { anonRole: '' }, select: { id: true } }).execute() db.platformApi.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.platformApi.findMany({ ```typescript const item = await db.platformApi.create({ - data: { anonRole: '', config: '', dbname: '', isPublished: '', name: '', roleName: '' }, + data: { anonRole: '', config: '', isPublished: '', name: '', roleName: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-api/references/platform-apis.md b/.agents/skills/orm-api/references/platform-apis.md deleted file mode 100644 index d82f32b6a9..0000000000 --- a/.agents/skills/orm-api/references/platform-apis.md +++ /dev/null @@ -1,34 +0,0 @@ -# platformApis - - - -API surfaces exposed by this scope; publication makes a surface bindable from other scopes - -## Usage - -```typescript -db.platformApis.findMany({ select: { id: true } }).execute() -db.platformApis.findOne({ id: '', select: { id: true } }).execute() -db.platformApis.create({ data: { anonRole: '', config: '', dbname: '', isPublished: '', name: '', roleName: '' }, select: { id: true } }).execute() -db.platformApis.update({ where: { id: '' }, data: { anonRole: '' }, select: { id: true } }).execute() -db.platformApis.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all platformApis records - -```typescript -const items = await db.platformApis.findMany({ - select: { id: true, anonRole: true } -}).execute(); -``` - -### Create a platformApis - -```typescript -const item = await db.platformApis.create({ - data: { anonRole: '', config: '', dbname: '', isPublished: '', name: '', roleName: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-api/references/platform-get-site-previews-record.md b/.agents/skills/orm-api/references/platform-get-site-previews-record.md index 8335467d56..9344fbee60 100644 --- a/.agents/skills/orm-api/references/platform-get-site-previews-record.md +++ b/.agents/skills/orm-api/references/platform-get-site-previews-record.md @@ -9,7 +9,6 @@ ORM operations for PlatformGetSitePreviewsRecord records ```typescript db.platformGetSitePreviewsRecord.findMany({ select: { id: true } }).execute() db.platformGetSitePreviewsRecord.findOne({ id: '', select: { id: true } }).execute() -db.platformGetSitePreviewsRecord.create({ data: { commitId: '', name: '' }, select: { id: true } }).execute() db.platformGetSitePreviewsRecord.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute() db.platformGetSitePreviewsRecord.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.platformGetSitePreviewsRecord.findMany({ select: { id: true, commitId: true } }).execute(); ``` - -### Create a platformGetSitePreviewsRecord - -```typescript -const item = await db.platformGetSitePreviewsRecord.create({ - data: { commitId: '', name: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-api/references/platform-reserved-subdomain.md b/.agents/skills/orm-api/references/platform-reserved-subdomain.md new file mode 100644 index 0000000000..fb8ac4ffd8 --- /dev/null +++ b/.agents/skills/orm-api/references/platform-reserved-subdomain.md @@ -0,0 +1,34 @@ +# platformReservedSubdomain + + + +Subdomain labels no tenant may claim under a platform apex + +## Usage + +```typescript +db.platformReservedSubdomain.findMany({ select: { id: true } }).execute() +db.platformReservedSubdomain.findOne({ id: '', select: { id: true } }).execute() +db.platformReservedSubdomain.create({ data: { createdByPrincipal: '', label: '', match: '', reason: '', updatedByPrincipal: '' }, select: { id: true } }).execute() +db.platformReservedSubdomain.update({ where: { id: '' }, data: { createdByPrincipal: '' }, select: { id: true } }).execute() +db.platformReservedSubdomain.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all platformReservedSubdomain records + +```typescript +const items = await db.platformReservedSubdomain.findMany({ + select: { id: true, createdByPrincipal: true } +}).execute(); +``` + +### Create a platformReservedSubdomain + +```typescript +const item = await db.platformReservedSubdomain.create({ + data: { createdByPrincipal: '', label: '', match: '', reason: '', updatedByPrincipal: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-api/references/provision-database-with-user.md b/.agents/skills/orm-api/references/provision-database-with-user.md deleted file mode 100644 index a2684af9ae..0000000000 --- a/.agents/skills/orm-api/references/provision-database-with-user.md +++ /dev/null @@ -1,19 +0,0 @@ -# provisionDatabaseWithUser - - - -Execute the provisionDatabaseWithUser mutation - -## Usage - -```typescript -db.mutation.provisionDatabaseWithUser({ input: { pDatabaseName: '', pDomain: '', pSubdomain: '', pModules: '', pOptions: '' } }).execute() -``` - -## Examples - -### Run provisionDatabaseWithUser - -```typescript -const result = await db.mutation.provisionDatabaseWithUser({ input: { pDatabaseName: '', pDomain: '', pSubdomain: '', pModules: '', pOptions: '' } }).execute(); -``` diff --git a/.agents/skills/orm-api/references/resolve-deep-link.md b/.agents/skills/orm-api/references/resolve-deep-link.md deleted file mode 100644 index 11b8d7cd1e..0000000000 --- a/.agents/skills/orm-api/references/resolve-deep-link.md +++ /dev/null @@ -1,19 +0,0 @@ -# resolveDeepLink - - - -Execute the resolveDeepLink query - -## Usage - -```typescript -db.query.resolveDeepLink({ linkSlug: '', targetSiteId: '' }).execute() -``` - -## Examples - -### Run resolveDeepLink - -```typescript -const result = await db.query.resolveDeepLink({ linkSlug: '', targetSiteId: '' }).execute(); -``` diff --git a/.agents/skills/orm-api/references/resolve-http-route.md b/.agents/skills/orm-api/references/resolve-http-route.md deleted file mode 100644 index 90a5ea278c..0000000000 --- a/.agents/skills/orm-api/references/resolve-http-route.md +++ /dev/null @@ -1,19 +0,0 @@ -# resolveHttpRoute - - - -Execute the resolveHttpRoute query - -## Usage - -```typescript -db.query.resolveHttpRoute({ requestHost: '', requestMethod: '', requestPath: '' }).execute() -``` - -## Examples - -### Run resolveHttpRoute - -```typescript -const result = await db.query.resolveHttpRoute({ requestHost: '', requestMethod: '', requestPath: '' }).execute(); -``` diff --git a/.agents/skills/orm-api/references/resolve-route.md b/.agents/skills/orm-api/references/resolve-route.md deleted file mode 100644 index 5551d6e2f6..0000000000 --- a/.agents/skills/orm-api/references/resolve-route.md +++ /dev/null @@ -1,19 +0,0 @@ -# resolveRoute - - - -Execute the resolveRoute query - -## Usage - -```typescript -db.query.resolveRoute({ requestHost: '', requestMethod: '', requestPath: '' }).execute() -``` - -## Examples - -### Run resolveRoute - -```typescript -const result = await db.query.resolveRoute({ requestHost: '', requestMethod: '', requestPath: '' }).execute(); -``` diff --git a/.agents/skills/orm-api/references/resolve-site-app-links.md b/.agents/skills/orm-api/references/resolve-site-app-links.md deleted file mode 100644 index 7d3ae0f587..0000000000 --- a/.agents/skills/orm-api/references/resolve-site-app-links.md +++ /dev/null @@ -1,19 +0,0 @@ -# resolveSiteAppLinks - - - -Execute the resolveSiteAppLinks query - -## Usage - -```typescript -db.query.resolveSiteAppLinks({ targetSiteId: '' }).execute() -``` - -## Examples - -### Run resolveSiteAppLinks - -```typescript -const result = await db.query.resolveSiteAppLinks({ targetSiteId: '' }).execute(); -``` diff --git a/.agents/skills/orm-api/references/route-binding.md b/.agents/skills/orm-api/references/route-binding.md deleted file mode 100644 index b876fb8e1e..0000000000 --- a/.agents/skills/orm-api/references/route-binding.md +++ /dev/null @@ -1,34 +0,0 @@ -# routeBinding - - - -Compiled route precedence index maintained by route sync triggers; carries typed target ids only, read through the resolver - -## Usage - -```typescript -db.routeBinding.findMany({ select: { id: true } }).execute() -db.routeBinding.findOne({ id: '', select: { id: true } }).execute() -db.routeBinding.create({ data: { domainId: '', isActive: '', method: '', path: '', priority: '', servingSiteId: '', targetApiId: '', targetBucketId: '', targetFunctionId: '', targetRedirectId: '', targetServiceId: '', targetSiteId: '' }, select: { id: true } }).execute() -db.routeBinding.update({ where: { id: '' }, data: { domainId: '' }, select: { id: true } }).execute() -db.routeBinding.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all routeBinding records - -```typescript -const items = await db.routeBinding.findMany({ - select: { id: true, domainId: true } -}).execute(); -``` - -### Create a routeBinding - -```typescript -const item = await db.routeBinding.create({ - data: { domainId: '', isActive: '', method: '', path: '', priority: '', servingSiteId: '', targetApiId: '', targetBucketId: '', targetFunctionId: '', targetRedirectId: '', targetServiceId: '', targetSiteId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-api/references/sql-action.md b/.agents/skills/orm-api/references/sql-action.md index 9be7c5bcd0..71ad95f4a7 100644 --- a/.agents/skills/orm-api/references/sql-action.md +++ b/.agents/skills/orm-api/references/sql-action.md @@ -9,7 +9,6 @@ ORM operations for SqlAction records ```typescript db.sqlAction.findMany({ select: { id: true } }).execute() db.sqlAction.findOne({ id: '', select: { id: true } }).execute() -db.sqlAction.create({ data: { actionId: '', actionName: '', actorId: '', content: '', databaseId: '', deploy: '', deps: '', name: '', payload: '', revert: '', verify: '' }, select: { id: true } }).execute() db.sqlAction.update({ where: { id: '' }, data: { actionId: '' }, select: { id: true } }).execute() db.sqlAction.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.sqlAction.findMany({ select: { id: true, actionId: true } }).execute(); ``` - -### Create a sqlAction - -```typescript -const item = await db.sqlAction.create({ - data: { actionId: '', actionName: '', actorId: '', content: '', databaseId: '', deploy: '', deps: '', name: '', payload: '', revert: '', verify: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-auth/SKILL.md b/.agents/skills/orm-auth/SKILL.md index e9c93d8f59..e6568d4fa2 100644 --- a/.agents/skills/orm-auth/SKILL.md +++ b/.agents/skills/orm-auth/SKILL.md @@ -1,13 +1,13 @@ --- name: orm-auth -description: ORM client for the auth API — provides typed CRUD operations for 15 tables and 61 custom operations +description: ORM client for the auth API — provides typed CRUD operations for 15 tables and 66 custom operations --- # orm-auth -ORM client for the auth API — provides typed CRUD operations for 15 tables and 61 custom operations +ORM client for the auth API — provides typed CRUD operations for 15 tables and 66 custom operations ## Usage @@ -58,6 +58,7 @@ See the `references/` directory for detailed per-entity API documentation: - [current-user-id](references/current-user-id.md) - [get-mfa-status](references/get-mfa-status.md) - [require-step-up](references/require-step-up.md) +- [sign-in-options](references/sign-in-options.md) - [approve-device](references/approve-device.md) - [check-password](references/check-password.md) - [complete-mfa-challenge](references/complete-mfa-challenge.md) @@ -67,6 +68,7 @@ See the `references/` directory for detailed per-entity API documentation: - [create-child-principal](references/create-child-principal.md) - [create-org-api-key](references/create-org-api-key.md) - [create-org-principal](references/create-org-principal.md) +- [create-principal](references/create-principal.md) - [create-principal-from-preset](references/create-principal-from-preset.md) - [delete-org-principal](references/delete-org-principal.md) - [delete-principal](references/delete-principal.md) @@ -77,6 +79,8 @@ See the `references/` directory for detailed per-entity API documentation: - [enable-email-mfa](references/enable-email-mfa.md) - [enable-sms-mfa](references/enable-sms-mfa.md) - [enable-totp](references/enable-totp.md) +- [ensure-auth-csrf](references/ensure-auth-csrf.md) +- [exchange-native-handoff](references/exchange-native-handoff.md) - [extend-token-expires](references/extend-token-expires.md) - [forgot-password](references/forgot-password.md) - [generate-backup-codes](references/generate-backup-codes.md) @@ -85,6 +89,7 @@ See the `references/` directory for detailed per-entity API documentation: - [provision-bucket](references/provision-bucket.md) - [refresh-access-token](references/refresh-access-token.md) - [request-cross-origin-token](references/request-cross-origin-token.md) +- [request-device-approval](references/request-device-approval.md) - [request-magic-link](references/request-magic-link.md) - [reset-password](references/reset-password.md) - [revoke-api-key](references/revoke-api-key.md) diff --git a/.agents/skills/orm-auth/references/audit-log.md b/.agents/skills/orm-auth/references/audit-log.md deleted file mode 100644 index 3aec8c2786..0000000000 --- a/.agents/skills/orm-auth/references/audit-log.md +++ /dev/null @@ -1,34 +0,0 @@ -# auditLog - - - -Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) - -## Usage - -```typescript -db.auditLog.findMany({ select: { id: true } }).execute() -db.auditLog.findOne({ id: '', select: { id: true } }).execute() -db.auditLog.create({ data: { event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }, select: { id: true } }).execute() -db.auditLog.update({ where: { id: '' }, data: { event: '' }, select: { id: true } }).execute() -db.auditLog.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all auditLog records - -```typescript -const items = await db.auditLog.findMany({ - select: { id: true, event: true } -}).execute(); -``` - -### Create a auditLog - -```typescript -const item = await db.auditLog.create({ - data: { event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-auth/references/confirm-upload.md b/.agents/skills/orm-auth/references/confirm-upload.md deleted file mode 100644 index ff9f5d4e61..0000000000 --- a/.agents/skills/orm-auth/references/confirm-upload.md +++ /dev/null @@ -1,21 +0,0 @@ -# confirmUpload - - - -Confirm that a file has been uploaded to S3. -Verifies the object exists in S3, checks content-type, -and transitions the file status from 'pending' to 'ready'. - -## Usage - -```typescript -db.mutation.confirmUpload({ input: { fileId: '' } }).execute() -``` - -## Examples - -### Run confirmUpload - -```typescript -const result = await db.mutation.confirmUpload({ input: { fileId: '' } }).execute(); -``` diff --git a/.agents/skills/orm-auth/references/connected-account.md b/.agents/skills/orm-auth/references/connected-account.md deleted file mode 100644 index 96a29b17e7..0000000000 --- a/.agents/skills/orm-auth/references/connected-account.md +++ /dev/null @@ -1,34 +0,0 @@ -# connectedAccount - - - -OAuth and social login connections linking external service accounts to users - -## Usage - -```typescript -db.connectedAccount.findMany({ select: { id: true } }).execute() -db.connectedAccount.findOne({ id: '', select: { id: true } }).execute() -db.connectedAccount.create({ data: { ownerId: '', service: '', identifier: '', details: '', isVerified: '' }, select: { id: true } }).execute() -db.connectedAccount.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute() -db.connectedAccount.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all connectedAccount records - -```typescript -const items = await db.connectedAccount.findMany({ - select: { id: true, ownerId: true } -}).execute(); -``` - -### Create a connectedAccount - -```typescript -const item = await db.connectedAccount.create({ - data: { ownerId: '', service: '', identifier: '', details: '', isVerified: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-auth/references/create-api-key.md b/.agents/skills/orm-auth/references/create-api-key.md index 23aea2eaae..21ad2d6a38 100644 --- a/.agents/skills/orm-auth/references/create-api-key.md +++ b/.agents/skills/orm-auth/references/create-api-key.md @@ -2,7 +2,7 @@ -Execute the createApiKey mutation +Mint an API key for the current user; the plaintext key is returned once. access_level: full_access (default) or read_only. mfa_level: none (default) or verified; verified needs a fresh MFA proof on the calling session. A key minted while authenticated by another API key never outlives that key. ## Usage diff --git a/.agents/skills/orm-auth/references/create-principal.md b/.agents/skills/orm-auth/references/create-principal.md new file mode 100644 index 0000000000..fcc5a1fa5a --- /dev/null +++ b/.agents/skills/orm-auth/references/create-principal.md @@ -0,0 +1,19 @@ +# createPrincipal + + + +Execute the createPrincipal mutation + +## Usage + +```typescript +db.mutation.createPrincipal({ input: { bypassStepUp: '', entityIds: '', isReadOnly: '', name: '', useAdminOwner: '' } }).execute() +``` + +## Examples + +### Run createPrincipal + +```typescript +const result = await db.mutation.createPrincipal({ input: { bypassStepUp: '', entityIds: '', isReadOnly: '', name: '', useAdminOwner: '' } }).execute(); +``` diff --git a/.agents/skills/orm-auth/references/ensure-auth-csrf.md b/.agents/skills/orm-auth/references/ensure-auth-csrf.md new file mode 100644 index 0000000000..f052131582 --- /dev/null +++ b/.agents/skills/orm-auth/references/ensure-auth-csrf.md @@ -0,0 +1,19 @@ +# ensureAuthCsrf + + + +Execute the ensureAuthCsrf mutation + +## Usage + +```typescript +db.mutation.ensureAuthCsrf({ input: { existingToken: '' } }).execute() +``` + +## Examples + +### Run ensureAuthCsrf + +```typescript +const result = await db.mutation.ensureAuthCsrf({ input: { existingToken: '' } }).execute(); +``` diff --git a/.agents/skills/orm-auth/references/exchange-native-handoff.md b/.agents/skills/orm-auth/references/exchange-native-handoff.md new file mode 100644 index 0000000000..2daeeb0410 --- /dev/null +++ b/.agents/skills/orm-auth/references/exchange-native-handoff.md @@ -0,0 +1,19 @@ +# exchangeNativeHandoff + + + +Execute the exchangeNativeHandoff mutation + +## Usage + +```typescript +db.mutation.exchangeNativeHandoff({ input: { code: '', codeVerifier: '', credentialKind: '' } }).execute() +``` + +## Examples + +### Run exchangeNativeHandoff + +```typescript +const result = await db.mutation.exchangeNativeHandoff({ input: { code: '', codeVerifier: '', credentialKind: '' } }).execute(); +``` diff --git a/.agents/skills/orm-auth/references/identity-provider.md b/.agents/skills/orm-auth/references/identity-provider.md index 94d0dbcda4..dc46db241a 100644 --- a/.agents/skills/orm-auth/references/identity-provider.md +++ b/.agents/skills/orm-auth/references/identity-provider.md @@ -9,7 +9,6 @@ ORM operations for IdentityProvider records ```typescript db.identityProvider.findMany({ select: { id: true } }).execute() db.identityProvider.findOne({ id: '', select: { id: true } }).execute() -db.identityProvider.create({ data: { displayName: '', enabled: '', kind: '', slug: '' }, select: { id: true } }).execute() db.identityProvider.update({ where: { id: '' }, data: { displayName: '' }, select: { id: true } }).execute() db.identityProvider.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.identityProvider.findMany({ select: { id: true, displayName: true } }).execute(); ``` - -### Create a identityProvider - -```typescript -const item = await db.identityProvider.create({ - data: { displayName: '', enabled: '', kind: '', slug: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-auth/references/one-time-token.md b/.agents/skills/orm-auth/references/one-time-token.md deleted file mode 100644 index 0772a30934..0000000000 --- a/.agents/skills/orm-auth/references/one-time-token.md +++ /dev/null @@ -1,19 +0,0 @@ -# oneTimeToken - - - -Execute the oneTimeToken mutation - -## Usage - -```typescript -db.mutation.oneTimeToken({ input: { email: '', password: '', origin: '', rememberMe: '' } }).execute() -``` - -## Examples - -### Run oneTimeToken - -```typescript -const result = await db.mutation.oneTimeToken({ input: { email: '', password: '', origin: '', rememberMe: '' } }).execute(); -``` diff --git a/.agents/skills/orm-auth/references/org-api-key-list.md b/.agents/skills/orm-auth/references/org-api-key-list.md index 162102648b..f5c20cb24d 100644 --- a/.agents/skills/orm-auth/references/org-api-key-list.md +++ b/.agents/skills/orm-auth/references/org-api-key-list.md @@ -9,7 +9,6 @@ ORM operations for OrgApiKeyList records ```typescript db.orgApiKeyList.findMany({ select: { id: true } }).execute() db.orgApiKeyList.findOne({ id: '', select: { id: true } }).execute() -db.orgApiKeyList.create({ data: { accessLevel: '', expiresAt: '', keyId: '', lastUsedAt: '', mfaLevel: '', name: '', orgId: '', principalId: '', revokedAt: '' }, select: { id: true } }).execute() db.orgApiKeyList.update({ where: { id: '' }, data: { accessLevel: '' }, select: { id: true } }).execute() db.orgApiKeyList.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.orgApiKeyList.findMany({ select: { id: true, accessLevel: true } }).execute(); ``` - -### Create a orgApiKeyList - -```typescript -const item = await db.orgApiKeyList.create({ - data: { accessLevel: '', expiresAt: '', keyId: '', lastUsedAt: '', mfaLevel: '', name: '', orgId: '', principalId: '', revokedAt: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-auth/references/principal-entity.md b/.agents/skills/orm-auth/references/principal-entity.md index c30c0c6dc1..975b3c4e7c 100644 --- a/.agents/skills/orm-auth/references/principal-entity.md +++ b/.agents/skills/orm-auth/references/principal-entity.md @@ -9,7 +9,6 @@ Association table scoping principals to specific organizations ```typescript db.principalEntity.findMany({ select: { id: true } }).execute() db.principalEntity.findOne({ id: '', select: { id: true } }).execute() -db.principalEntity.create({ data: { entityId: '', ownerId: '', principalId: '' }, select: { id: true } }).execute() db.principalEntity.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute() db.principalEntity.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.principalEntity.findMany({ select: { id: true, entityId: true } }).execute(); ``` - -### Create a principalEntity - -```typescript -const item = await db.principalEntity.create({ - data: { entityId: '', ownerId: '', principalId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-auth/references/principal-scope-override.md b/.agents/skills/orm-auth/references/principal-scope-override.md index 3763ab214c..65956e678d 100644 --- a/.agents/skills/orm-auth/references/principal-scope-override.md +++ b/.agents/skills/orm-auth/references/principal-scope-override.md @@ -9,7 +9,6 @@ Per-scope capability overrides for principals. No row = full access; row exists ```typescript db.principalScopeOverride.findMany({ select: { id: true } }).execute() db.principalScopeOverride.findOne({ id: '', select: { id: true } }).execute() -db.principalScopeOverride.create({ data: { allowedMask: '', isActive: '', isReadOnly: '', membershipType: '', principalId: '', useAdminOwner: '' }, select: { id: true } }).execute() db.principalScopeOverride.update({ where: { id: '' }, data: { allowedMask: '' }, select: { id: true } }).execute() db.principalScopeOverride.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.principalScopeOverride.findMany({ select: { id: true, allowedMask: true } }).execute(); ``` - -### Create a principalScopeOverride - -```typescript -const item = await db.principalScopeOverride.create({ - data: { allowedMask: '', isActive: '', isReadOnly: '', membershipType: '', principalId: '', useAdminOwner: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-auth/references/principal.md b/.agents/skills/orm-auth/references/principal.md index 5564db2326..82274ce038 100644 --- a/.agents/skills/orm-auth/references/principal.md +++ b/.agents/skills/orm-auth/references/principal.md @@ -9,7 +9,6 @@ Scoped sub-identities (API keys and agents) with precomputed SPRT ```typescript db.principal.findMany({ select: { id: true } }).execute() db.principal.findOne({ principalId: '', select: { id: true } }).execute() -db.principal.create({ data: { apiKeyMaxDuration: '', bypassStepUp: '', createdBySessionId: '', depth: '', expiresAt: '', id: '', isReadOnly: '', name: '', ownerId: '', parentPrincipalId: '', useAdminOwner: '', userId: '' }, select: { id: true } }).execute() db.principal.update({ where: { principalId: '' }, data: { apiKeyMaxDuration: '' }, select: { id: true } }).execute() db.principal.delete({ where: { principalId: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.principal.findMany({ select: { principalId: true, apiKeyMaxDuration: true } }).execute(); ``` - -### Create a principal - -```typescript -const item = await db.principal.create({ - data: { apiKeyMaxDuration: '', bypassStepUp: '', createdBySessionId: '', depth: '', expiresAt: '', id: '', isReadOnly: '', name: '', ownerId: '', parentPrincipalId: '', useAdminOwner: '', userId: '' }, - select: { principalId: true } -}).execute(); -``` diff --git a/.agents/skills/orm-auth/references/provision-new-user.md b/.agents/skills/orm-auth/references/provision-new-user.md deleted file mode 100644 index b5b29a1339..0000000000 --- a/.agents/skills/orm-auth/references/provision-new-user.md +++ /dev/null @@ -1,19 +0,0 @@ -# provisionNewUser - - - -Execute the provisionNewUser mutation - -## Usage - -```typescript -db.mutation.provisionNewUser({ input: { email: '', password: '' } }).execute() -``` - -## Examples - -### Run provisionNewUser - -```typescript -const result = await db.mutation.provisionNewUser({ input: { email: '', password: '' } }).execute(); -``` diff --git a/.agents/skills/orm-auth/references/request-device-approval.md b/.agents/skills/orm-auth/references/request-device-approval.md new file mode 100644 index 0000000000..bb0a80098a --- /dev/null +++ b/.agents/skills/orm-auth/references/request-device-approval.md @@ -0,0 +1,19 @@ +# requestDeviceApproval + + + +Execute the requestDeviceApproval mutation + +## Usage + +```typescript +db.mutation.requestDeviceApproval({ input: { deviceToken: '', next: '', userId: '' } }).execute() +``` + +## Examples + +### Run requestDeviceApproval + +```typescript +const result = await db.mutation.requestDeviceApproval({ input: { deviceToken: '', next: '', userId: '' } }).execute(); +``` diff --git a/.agents/skills/orm-auth/references/request-magic-link.md b/.agents/skills/orm-auth/references/request-magic-link.md index 091a0e1f41..9802b4854e 100644 --- a/.agents/skills/orm-auth/references/request-magic-link.md +++ b/.agents/skills/orm-auth/references/request-magic-link.md @@ -7,7 +7,7 @@ Execute the requestMagicLink mutation ## Usage ```typescript -db.mutation.requestMagicLink({ input: { email: '', next: '' } }).execute() +db.mutation.requestMagicLink({ input: { codeChallenge: '', email: '', nativeRedirectUri: '', next: '' } }).execute() ``` ## Examples @@ -15,5 +15,5 @@ db.mutation.requestMagicLink({ input: { email: '', next: '' } }) ### Run requestMagicLink ```typescript -const result = await db.mutation.requestMagicLink({ input: { email: '', next: '' } }).execute(); +const result = await db.mutation.requestMagicLink({ input: { codeChallenge: '', email: '', nativeRedirectUri: '', next: '' } }).execute(); ``` diff --git a/.agents/skills/orm-auth/references/request-upload-url.md b/.agents/skills/orm-auth/references/request-upload-url.md deleted file mode 100644 index e3c6d37ef8..0000000000 --- a/.agents/skills/orm-auth/references/request-upload-url.md +++ /dev/null @@ -1,22 +0,0 @@ -# requestUploadUrl - - - -Request a presigned URL for uploading a file directly to S3. -Client computes SHA-256 of the file content and provides it here. -If a file with the same hash already exists (dedup), returns the -existing file ID and deduplicated=true with no uploadUrl. - -## Usage - -```typescript -db.mutation.requestUploadUrl({ input: '' }).execute() -``` - -## Examples - -### Run requestUploadUrl - -```typescript -const result = await db.mutation.requestUploadUrl({ input: '' }).execute(); -``` diff --git a/.agents/skills/orm-auth/references/set-password.md b/.agents/skills/orm-auth/references/set-password.md index 599e1aac53..1e5ab5adee 100644 --- a/.agents/skills/orm-auth/references/set-password.md +++ b/.agents/skills/orm-auth/references/set-password.md @@ -7,7 +7,7 @@ Execute the setPassword mutation ## Usage ```typescript -db.mutation.setPassword({ input: { currentPassword: '', newPassword: '' } }).execute() +db.mutation.setPassword({ input: { currentPassword: '', newPassword: '', signOutOtherSessions: '' } }).execute() ``` ## Examples @@ -15,5 +15,5 @@ db.mutation.setPassword({ input: { currentPassword: '', newPassword: '', newPassword: '' } }).execute(); +const result = await db.mutation.setPassword({ input: { currentPassword: '', newPassword: '', signOutOtherSessions: '' } }).execute(); ``` diff --git a/.agents/skills/orm-auth/references/sign-in-one-time-token.md b/.agents/skills/orm-auth/references/sign-in-one-time-token.md deleted file mode 100644 index 7f7eb4da11..0000000000 --- a/.agents/skills/orm-auth/references/sign-in-one-time-token.md +++ /dev/null @@ -1,19 +0,0 @@ -# signInOneTimeToken - - - -Execute the signInOneTimeToken mutation - -## Usage - -```typescript -db.mutation.signInOneTimeToken({ input: { token: '', credentialKind: '' } }).execute() -``` - -## Examples - -### Run signInOneTimeToken - -```typescript -const result = await db.mutation.signInOneTimeToken({ input: { token: '', credentialKind: '' } }).execute(); -``` diff --git a/.agents/skills/orm-auth/references/sign-in-options.md b/.agents/skills/orm-auth/references/sign-in-options.md new file mode 100644 index 0000000000..2531da1640 --- /dev/null +++ b/.agents/skills/orm-auth/references/sign-in-options.md @@ -0,0 +1,19 @@ +# signInOptions + + + +Execute the signInOptions query + +## Usage + +```typescript +db.query.signInOptions().execute() +``` + +## Examples + +### Run signInOptions + +```typescript +const result = await db.query.signInOptions().execute(); +``` diff --git a/.agents/skills/orm-auth/references/user-connected-account.md b/.agents/skills/orm-auth/references/user-connected-account.md index 5d4ca6ca0b..a51d907c73 100644 --- a/.agents/skills/orm-auth/references/user-connected-account.md +++ b/.agents/skills/orm-auth/references/user-connected-account.md @@ -9,7 +9,6 @@ ORM operations for UserConnectedAccount records ```typescript db.userConnectedAccount.findMany({ select: { id: true } }).execute() db.userConnectedAccount.findOne({ id: '', select: { id: true } }).execute() -db.userConnectedAccount.create({ data: { details: '', identifier: '', isVerified: '', ownerId: '', service: '' }, select: { id: true } }).execute() db.userConnectedAccount.update({ where: { id: '' }, data: { details: '' }, select: { id: true } }).execute() db.userConnectedAccount.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.userConnectedAccount.findMany({ select: { id: true, details: true } }).execute(); ``` - -### Create a userConnectedAccount - -```typescript -const item = await db.userConnectedAccount.create({ - data: { details: '', identifier: '', isVerified: '', ownerId: '', service: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-auth/references/user.md b/.agents/skills/orm-auth/references/user.md index 172232015b..36b79aa4b6 100644 --- a/.agents/skills/orm-auth/references/user.md +++ b/.agents/skills/orm-auth/references/user.md @@ -12,7 +12,7 @@ Fields provided by the Unified Search plugin. Includes full-text search (tsvecto ```typescript db.user.findMany({ select: { id: true } }).execute() db.user.findOne({ id: '', select: { id: true } }).execute() -db.user.create({ data: { displayName: '', displayNameTrgmSimilarity: '', profilePicture: '', searchScore: '', searchTsv: '', searchTsvRank: '', type: '', username: '' }, select: { id: true } }).execute() +db.user.create({ data: { displayName: '', profilePicture: '', type: '', username: '' }, select: { id: true } }).execute() db.user.update({ where: { id: '' }, data: { displayName: '' }, select: { id: true } }).execute() db.user.delete({ where: { id: '' } }).execute() ``` @@ -31,7 +31,7 @@ const items = await db.user.findMany({ ```typescript const item = await db.user.create({ - data: { displayName: '', displayNameTrgmSimilarity: '', profilePicture: '', searchScore: '', searchTsv: '', searchTsvRank: '', type: '', username: '' }, + data: { displayName: '', profilePicture: '', type: '', username: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-auth/references/verify-email.md b/.agents/skills/orm-auth/references/verify-email.md index 773e857183..b8b18f3ba0 100644 --- a/.agents/skills/orm-auth/references/verify-email.md +++ b/.agents/skills/orm-auth/references/verify-email.md @@ -7,7 +7,7 @@ Execute the verifyEmail mutation ## Usage ```typescript -db.mutation.verifyEmail({ input: { emailId: '', token: '' } }).execute() +db.mutation.verifyEmail({ input: { emailId: '', password: '', token: '' } }).execute() ``` ## Examples @@ -15,5 +15,5 @@ db.mutation.verifyEmail({ input: { emailId: '', token: '' } }).exe ### Run verifyEmail ```typescript -const result = await db.mutation.verifyEmail({ input: { emailId: '', token: '' } }).execute(); +const result = await db.mutation.verifyEmail({ input: { emailId: '', password: '', token: '' } }).execute(); ``` diff --git a/.agents/skills/orm-compute/SKILL.md b/.agents/skills/orm-compute/SKILL.md index 33b621bbb0..2249646f2f 100644 --- a/.agents/skills/orm-compute/SKILL.md +++ b/.agents/skills/orm-compute/SKILL.md @@ -1,13 +1,13 @@ --- name: orm-compute -description: ORM client for the compute API — provides typed CRUD operations for 123 tables and 64 custom operations +description: ORM client for the compute API — provides typed CRUD operations for 123 tables and 65 custom operations --- # orm-compute -ORM client for the compute API — provides typed CRUD operations for 123 tables and 64 custom operations +ORM client for the compute API — provides typed CRUD operations for 123 tables and 65 custom operations ## Usage @@ -15,7 +15,7 @@ ORM client for the compute API — provides typed CRUD operations for 123 tables // Import the ORM client import { db } from './orm'; -// Available models: build, buildStep, builderBinding, contentPreset, databaseFunctionGraph, databaseFunctionGraphExecutionCancelRequest, databaseFunctionGraphExecution, databaseFunctionGraphExecutionNodeState, ... +// Available models: build, buildStep, contentPreset, databaseFunctionGraph, databaseFunctionGraphExecutionCancelRequest, databaseFunctionGraphExecution, databaseFunctionGraphExecutionNodeState, databaseFunctionGraphExecutionOutput, ... db..findMany({ select: { id: true } }).execute() db..findOne({ id: '', select: { id: true } }).execute() db..create({ data: { ... }, select: { id: true } }).execute() @@ -39,7 +39,6 @@ See the `references/` directory for detailed per-entity API documentation: - [build](references/build.md) - [build-step](references/build-step.md) -- [builder-binding](references/builder-binding.md) - [content-preset](references/content-preset.md) - [database-function-graph](references/database-function-graph.md) - [database-function-graph-execution-cancel-request](references/database-function-graph-execution-cancel-request.md) @@ -83,7 +82,6 @@ See the `references/` directory for detailed per-entity API documentation: - [namespace-event](references/namespace-event.md) - [platform-build](references/platform-build.md) - [platform-build-step](references/platform-build-step.md) -- [platform-builder-binding](references/platform-builder-binding.md) - [platform-function-api-binding](references/platform-function-api-binding.md) - [platform-function-capability-binding](references/platform-function-capability-binding.md) - [platform-function-definition](references/platform-function-definition.md) @@ -130,6 +128,7 @@ See the `references/` directory for detailed per-entity API documentation: - [platform-resources-health](references/platform-resources-health.md) - [platform-resources-requirements-state](references/platform-resources-requirements-state.md) - [platform-resources-resolved-requirement](references/platform-resources-resolved-requirement.md) +- [platform-service-binding](references/platform-service-binding.md) - [platform-webhook-endpoint](references/platform-webhook-endpoint.md) - [platform-webhook-event](references/platform-webhook-event.md) - [proposal-comment](references/proposal-comment.md) @@ -158,6 +157,7 @@ See the `references/` directory for detailed per-entity API documentation: - [resources-health](references/resources-health.md) - [resources-requirements-state](references/resources-requirements-state.md) - [resources-resolved-requirement](references/resources-resolved-requirement.md) +- [service-binding](references/service-binding.md) - [webhook-endpoint](references/webhook-endpoint.md) - [webhook-event](references/webhook-event.md) - [database-read-function-graph](references/database-read-function-graph.md) @@ -168,6 +168,7 @@ See the `references/` directory for detailed per-entity API documentation: - [add-node-and-save](references/add-node-and-save.md) - [approve-node](references/approve-node.md) - [copy-graph](references/copy-graph.md) +- [create-function-graph](references/create-function-graph.md) - [database-add-edge](references/database-add-edge.md) - [database-add-edge-and-save](references/database-add-edge-and-save.md) - [database-add-node](references/database-add-node.md) diff --git a/.agents/skills/orm-compute/references/builder-binding.md b/.agents/skills/orm-compute/references/builder-binding.md deleted file mode 100644 index e49b1077e6..0000000000 --- a/.agents/skills/orm-compute/references/builder-binding.md +++ /dev/null @@ -1,34 +0,0 @@ -# builderBinding - - - -Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST - -## Usage - -```typescript -db.builderBinding.findMany({ select: { id: true } }).execute() -db.builderBinding.findOne({ id: '', select: { id: true } }).execute() -db.builderBinding.create({ data: { createdBy: '', createdByPrincipal: '', databaseId: '', installationId: '', lastError: '', metadata: '', namespaceId: '', observedHost: '', realm: '', status: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() -db.builderBinding.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() -db.builderBinding.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all builderBinding records - -```typescript -const items = await db.builderBinding.findMany({ - select: { id: true, createdBy: true } -}).execute(); -``` - -### Create a builderBinding - -```typescript -const item = await db.builderBinding.create({ - data: { createdBy: '', createdByPrincipal: '', databaseId: '', installationId: '', lastError: '', metadata: '', namespaceId: '', observedHost: '', realm: '', status: '', updatedBy: '', updatedByPrincipal: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-compute/references/create-function-graph.md b/.agents/skills/orm-compute/references/create-function-graph.md new file mode 100644 index 0000000000..9b0b4af04f --- /dev/null +++ b/.agents/skills/orm-compute/references/create-function-graph.md @@ -0,0 +1,19 @@ +# createFunctionGraph + + + +Execute the createFunctionGraph mutation + +## Usage + +```typescript +db.mutation.createFunctionGraph({ input: '' }).execute() +``` + +## Examples + +### Run createFunctionGraph + +```typescript +const result = await db.mutation.createFunctionGraph({ input: '' }).execute(); +``` diff --git a/.agents/skills/orm-compute/references/database-function-graph.md b/.agents/skills/orm-compute/references/database-function-graph.md index b0757adae7..4e765bcf43 100644 --- a/.agents/skills/orm-compute/references/database-function-graph.md +++ b/.agents/skills/orm-compute/references/database-function-graph.md @@ -9,7 +9,6 @@ Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store ```typescript db.databaseFunctionGraph.findMany({ select: { id: true } }).execute() db.databaseFunctionGraph.findOne({ id: '', select: { id: true } }).execute() -db.databaseFunctionGraph.create({ data: { context: '', createdBy: '', databaseId: '', definitionsCommitId: '', description: '', isValid: '', name: '', storeId: '', validationErrors: '' }, select: { id: true } }).execute() db.databaseFunctionGraph.update({ where: { id: '' }, data: { context: '' }, select: { id: true } }).execute() db.databaseFunctionGraph.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.databaseFunctionGraph.findMany({ select: { id: true, context: true } }).execute(); ``` - -### Create a databaseFunctionGraph - -```typescript -const item = await db.databaseFunctionGraph.create({ - data: { context: '', createdBy: '', databaseId: '', definitionsCommitId: '', description: '', isValid: '', name: '', storeId: '', validationErrors: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-compute/references/database-graph-get-all-tree-nodes-record.md b/.agents/skills/orm-compute/references/database-graph-get-all-tree-nodes-record.md index d83ab97956..fcc817a504 100644 --- a/.agents/skills/orm-compute/references/database-graph-get-all-tree-nodes-record.md +++ b/.agents/skills/orm-compute/references/database-graph-get-all-tree-nodes-record.md @@ -9,7 +9,6 @@ ORM operations for DatabaseGraphGetAllTreeNodesRecord records ```typescript db.databaseGraphGetAllTreeNodesRecord.findMany({ select: { id: true } }).execute() db.databaseGraphGetAllTreeNodesRecord.findOne({ id: '', select: { id: true } }).execute() -db.databaseGraphGetAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute() db.databaseGraphGetAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute() db.databaseGraphGetAllTreeNodesRecord.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.databaseGraphGetAllTreeNodesRecord.findMany({ select: { id: true, data: true } }).execute(); ``` - -### Create a databaseGraphGetAllTreeNodesRecord - -```typescript -const item = await db.databaseGraphGetAllTreeNodesRecord.create({ - data: { data: '', path: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-compute/references/declared-capacity.md b/.agents/skills/orm-compute/references/declared-capacity.md deleted file mode 100644 index 9a86ab059f..0000000000 --- a/.agents/skills/orm-compute/references/declared-capacity.md +++ /dev/null @@ -1,34 +0,0 @@ -# declaredCapacity - - - -ORM operations for DeclaredCapacity records - -## Usage - -```typescript -db.declaredCapacity.findMany({ select: { id: true } }).execute() -db.declaredCapacity.findOne({ id: '', select: { id: true } }).execute() -db.declaredCapacity.create({ data: { cpuLimitMillicores: '', cpuRequestMillicores: '', installationId: '', isTransient: '', kind: '', memoryLimitBytes: '', memoryRequestBytes: '', namespaceId: '', podCountMax: '', podCountMin: '', source: '', sourceId: '', storageSizeBytes: '' }, select: { id: true } }).execute() -db.declaredCapacity.update({ where: { id: '' }, data: { cpuLimitMillicores: '' }, select: { id: true } }).execute() -db.declaredCapacity.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all declaredCapacity records - -```typescript -const items = await db.declaredCapacity.findMany({ - select: { id: true, cpuLimitMillicores: true } -}).execute(); -``` - -### Create a declaredCapacity - -```typescript -const item = await db.declaredCapacity.create({ - data: { cpuLimitMillicores: '', cpuRequestMillicores: '', installationId: '', isTransient: '', kind: '', memoryLimitBytes: '', memoryRequestBytes: '', namespaceId: '', podCountMax: '', podCountMin: '', source: '', sourceId: '', storageSizeBytes: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-compute/references/function-definition.md b/.agents/skills/orm-compute/references/function-definition.md index 6c7e432d3c..55fb10e06e 100644 --- a/.agents/skills/orm-compute/references/function-definition.md +++ b/.agents/skills/orm-compute/references/function-definition.md @@ -9,7 +9,7 @@ Function definitions — registered cloud functions with routing, queue, and ret ```typescript db.functionDefinition.findMany({ select: { id: true } }).execute() db.functionDefinition.findOne({ id: '', select: { id: true } }).execute() -db.functionDefinition.create({ data: { accessChannels: '', anonymousCallable: '', category: '', concurrency: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdByPrincipal: '', databaseId: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', memoryLimitBytes: '', memoryRequestBytes: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredCapabilities: '', requiredConfigs: '', requiredModels: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', updatedByPrincipal: '', volatile: '' }, select: { id: true } }).execute() +db.functionDefinition.create({ data: { accessChannels: '', anonymousCallable: '', category: '', concurrency: '', createdByPrincipal: '', databaseId: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredCapabilities: '', requiredConfigs: '', requiredModels: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', targetFunction: '', targetSchema: '', timeoutSeconds: '', updatedByPrincipal: '', volatile: '' }, select: { id: true } }).execute() db.functionDefinition.update({ where: { id: '' }, data: { accessChannels: '' }, select: { id: true } }).execute() db.functionDefinition.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.functionDefinition.findMany({ ```typescript const item = await db.functionDefinition.create({ - data: { accessChannels: '', anonymousCallable: '', category: '', concurrency: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdByPrincipal: '', databaseId: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', memoryLimitBytes: '', memoryRequestBytes: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredCapabilities: '', requiredConfigs: '', requiredModels: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', updatedByPrincipal: '', volatile: '' }, + data: { accessChannels: '', anonymousCallable: '', category: '', concurrency: '', createdByPrincipal: '', databaseId: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredCapabilities: '', requiredConfigs: '', requiredModels: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', targetFunction: '', targetSchema: '', timeoutSeconds: '', updatedByPrincipal: '', volatile: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-compute/references/function-graph.md b/.agents/skills/orm-compute/references/function-graph.md index 000be117e2..f4e8f5b2f9 100644 --- a/.agents/skills/orm-compute/references/function-graph.md +++ b/.agents/skills/orm-compute/references/function-graph.md @@ -9,7 +9,6 @@ Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store ```typescript db.functionGraph.findMany({ select: { id: true } }).execute() db.functionGraph.findOne({ id: '', select: { id: true } }).execute() -db.functionGraph.create({ data: { context: '', createdBy: '', definitionsCommitId: '', description: '', isValid: '', name: '', scopeId: '', storeId: '', validationErrors: '' }, select: { id: true } }).execute() db.functionGraph.update({ where: { id: '' }, data: { context: '' }, select: { id: true } }).execute() db.functionGraph.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.functionGraph.findMany({ select: { id: true, context: true } }).execute(); ``` - -### Create a functionGraph - -```typescript -const item = await db.functionGraph.create({ - data: { context: '', createdBy: '', definitionsCommitId: '', description: '', isValid: '', name: '', scopeId: '', storeId: '', validationErrors: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-compute/references/get-all-record.md b/.agents/skills/orm-compute/references/get-all-record.md deleted file mode 100644 index 8460bac17a..0000000000 --- a/.agents/skills/orm-compute/references/get-all-record.md +++ /dev/null @@ -1,34 +0,0 @@ -# getAllRecord - - - -ORM operations for GetAllRecord records - -## Usage - -```typescript -db.getAllRecord.findMany({ select: { id: true } }).execute() -db.getAllRecord.findOne({ id: '', select: { id: true } }).execute() -db.getAllRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute() -db.getAllRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute() -db.getAllRecord.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all getAllRecord records - -```typescript -const items = await db.getAllRecord.findMany({ - select: { id: true, data: true } -}).execute(); -``` - -### Create a getAllRecord - -```typescript -const item = await db.getAllRecord.create({ - data: { data: '', path: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-compute/references/get-all-tree-nodes-record.md b/.agents/skills/orm-compute/references/get-all-tree-nodes-record.md index 93d06bad2d..6e95ca0845 100644 --- a/.agents/skills/orm-compute/references/get-all-tree-nodes-record.md +++ b/.agents/skills/orm-compute/references/get-all-tree-nodes-record.md @@ -9,7 +9,6 @@ ORM operations for GetAllTreeNodesRecord records ```typescript db.getAllTreeNodesRecord.findMany({ select: { id: true } }).execute() db.getAllTreeNodesRecord.findOne({ id: '', select: { id: true } }).execute() -db.getAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute() db.getAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute() db.getAllTreeNodesRecord.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.getAllTreeNodesRecord.findMany({ select: { id: true, data: true } }).execute(); ``` - -### Create a getAllTreeNodesRecord - -```typescript -const item = await db.getAllTreeNodesRecord.create({ - data: { data: '', path: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-compute/references/infra-get-all-record.md b/.agents/skills/orm-compute/references/infra-get-all-record.md deleted file mode 100644 index 8db0b5c3ef..0000000000 --- a/.agents/skills/orm-compute/references/infra-get-all-record.md +++ /dev/null @@ -1,34 +0,0 @@ -# infraGetAllRecord - - - -ORM operations for InfraGetAllRecord records - -## Usage - -```typescript -db.infraGetAllRecord.findMany({ select: { id: true } }).execute() -db.infraGetAllRecord.findOne({ id: '', select: { id: true } }).execute() -db.infraGetAllRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute() -db.infraGetAllRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute() -db.infraGetAllRecord.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all infraGetAllRecord records - -```typescript -const items = await db.infraGetAllRecord.findMany({ - select: { id: true, data: true } -}).execute(); -``` - -### Create a infraGetAllRecord - -```typescript -const item = await db.infraGetAllRecord.create({ - data: { data: '', path: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-compute/references/infra-get-all-tree-nodes-record.md b/.agents/skills/orm-compute/references/infra-get-all-tree-nodes-record.md index b5ec386e2c..6c4ad6e248 100644 --- a/.agents/skills/orm-compute/references/infra-get-all-tree-nodes-record.md +++ b/.agents/skills/orm-compute/references/infra-get-all-tree-nodes-record.md @@ -9,7 +9,6 @@ ORM operations for InfraGetAllTreeNodesRecord records ```typescript db.infraGetAllTreeNodesRecord.findMany({ select: { id: true } }).execute() db.infraGetAllTreeNodesRecord.findOne({ id: '', select: { id: true } }).execute() -db.infraGetAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute() db.infraGetAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute() db.infraGetAllTreeNodesRecord.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.infraGetAllTreeNodesRecord.findMany({ select: { id: true, data: true } }).execute(); ``` - -### Create a infraGetAllTreeNodesRecord - -```typescript -const item = await db.infraGetAllTreeNodesRecord.create({ - data: { data: '', path: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-compute/references/org-function-execution-log.md b/.agents/skills/orm-compute/references/org-function-execution-log.md deleted file mode 100644 index 09991abcb7..0000000000 --- a/.agents/skills/orm-compute/references/org-function-execution-log.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgFunctionExecutionLog - - - -Function execution logs — structured console output per invocation - -## Usage - -```typescript -db.orgFunctionExecutionLog.findMany({ select: { id: true } }).execute() -db.orgFunctionExecutionLog.findOne({ id: '', select: { id: true } }).execute() -db.orgFunctionExecutionLog.create({ data: { invocationId: '', taskIdentifier: '', logLevel: '', message: '', metadata: '', actorId: '' }, select: { id: true } }).execute() -db.orgFunctionExecutionLog.update({ where: { id: '' }, data: { invocationId: '' }, select: { id: true } }).execute() -db.orgFunctionExecutionLog.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgFunctionExecutionLog records - -```typescript -const items = await db.orgFunctionExecutionLog.findMany({ - select: { id: true, invocationId: true } -}).execute(); -``` - -### Create a orgFunctionExecutionLog - -```typescript -const item = await db.orgFunctionExecutionLog.create({ - data: { invocationId: '', taskIdentifier: '', logLevel: '', message: '', metadata: '', actorId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-compute/references/org-function-invocation.md b/.agents/skills/orm-compute/references/org-function-invocation.md deleted file mode 100644 index 1bc9942b21..0000000000 --- a/.agents/skills/orm-compute/references/org-function-invocation.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgFunctionInvocation - - - -Function invocation log — INSERT to call a function (business-layer, metered). Linked to definitions by task_identifier string. - -## Usage - -```typescript -db.orgFunctionInvocation.findMany({ select: { id: true } }).execute() -db.orgFunctionInvocation.findOne({ id: '', select: { id: true } }).execute() -db.orgFunctionInvocation.create({ data: { actorId: '', taskIdentifier: '', payload: '', status: '', result: '', error: '', durationMs: '', jobId: '', startedAt: '', completedAt: '', parentInvocationId: '', graphExecutionId: '' }, select: { id: true } }).execute() -db.orgFunctionInvocation.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() -db.orgFunctionInvocation.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgFunctionInvocation records - -```typescript -const items = await db.orgFunctionInvocation.findMany({ - select: { id: true, actorId: true } -}).execute(); -``` - -### Create a orgFunctionInvocation - -```typescript -const item = await db.orgFunctionInvocation.create({ - data: { actorId: '', taskIdentifier: '', payload: '', status: '', result: '', error: '', durationMs: '', jobId: '', startedAt: '', completedAt: '', parentInvocationId: '', graphExecutionId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-compute/references/platform-builder-binding.md b/.agents/skills/orm-compute/references/platform-builder-binding.md deleted file mode 100644 index eb1305f80b..0000000000 --- a/.agents/skills/orm-compute/references/platform-builder-binding.md +++ /dev/null @@ -1,34 +0,0 @@ -# platformBuilderBinding - - - -Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST - -## Usage - -```typescript -db.platformBuilderBinding.findMany({ select: { id: true } }).execute() -db.platformBuilderBinding.findOne({ id: '', select: { id: true } }).execute() -db.platformBuilderBinding.create({ data: { createdBy: '', createdByPrincipal: '', installationId: '', lastError: '', metadata: '', namespaceId: '', observedHost: '', realm: '', status: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() -db.platformBuilderBinding.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() -db.platformBuilderBinding.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all platformBuilderBinding records - -```typescript -const items = await db.platformBuilderBinding.findMany({ - select: { id: true, createdBy: true } -}).execute(); -``` - -### Create a platformBuilderBinding - -```typescript -const item = await db.platformBuilderBinding.create({ - data: { createdBy: '', createdByPrincipal: '', installationId: '', lastError: '', metadata: '', namespaceId: '', observedHost: '', realm: '', status: '', updatedBy: '', updatedByPrincipal: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-compute/references/platform-declared-capacity.md b/.agents/skills/orm-compute/references/platform-declared-capacity.md deleted file mode 100644 index 5a6dd1c78d..0000000000 --- a/.agents/skills/orm-compute/references/platform-declared-capacity.md +++ /dev/null @@ -1,34 +0,0 @@ -# platformDeclaredCapacity - - - -ORM operations for PlatformDeclaredCapacity records - -## Usage - -```typescript -db.platformDeclaredCapacity.findMany({ select: { id: true } }).execute() -db.platformDeclaredCapacity.findOne({ id: '', select: { id: true } }).execute() -db.platformDeclaredCapacity.create({ data: { cpuLimitMillicores: '', cpuRequestMillicores: '', installationId: '', isTransient: '', kind: '', memoryLimitBytes: '', memoryRequestBytes: '', namespaceId: '', podCountMax: '', podCountMin: '', source: '', sourceId: '', storageSizeBytes: '' }, select: { id: true } }).execute() -db.platformDeclaredCapacity.update({ where: { id: '' }, data: { cpuLimitMillicores: '' }, select: { id: true } }).execute() -db.platformDeclaredCapacity.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all platformDeclaredCapacity records - -```typescript -const items = await db.platformDeclaredCapacity.findMany({ - select: { id: true, cpuLimitMillicores: true } -}).execute(); -``` - -### Create a platformDeclaredCapacity - -```typescript -const item = await db.platformDeclaredCapacity.create({ - data: { cpuLimitMillicores: '', cpuRequestMillicores: '', installationId: '', isTransient: '', kind: '', memoryLimitBytes: '', memoryRequestBytes: '', namespaceId: '', podCountMax: '', podCountMin: '', source: '', sourceId: '', storageSizeBytes: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-compute/references/platform-function-definition.md b/.agents/skills/orm-compute/references/platform-function-definition.md index 9746d37f35..380ad43c4c 100644 --- a/.agents/skills/orm-compute/references/platform-function-definition.md +++ b/.agents/skills/orm-compute/references/platform-function-definition.md @@ -9,7 +9,7 @@ Function definitions — registered cloud functions with routing, queue, and ret ```typescript db.platformFunctionDefinition.findMany({ select: { id: true } }).execute() db.platformFunctionDefinition.findOne({ id: '', select: { id: true } }).execute() -db.platformFunctionDefinition.create({ data: { accessChannels: '', anonymousCallable: '', billable: '', category: '', concurrency: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdByPrincipal: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', memoryLimitBytes: '', memoryRequestBytes: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredCapabilities: '', requiredConfigs: '', requiredModels: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', system: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', updatedByPrincipal: '', volatile: '' }, select: { id: true } }).execute() +db.platformFunctionDefinition.create({ data: { accessChannels: '', anonymousCallable: '', billable: '', category: '', concurrency: '', createdByPrincipal: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredCapabilities: '', requiredConfigs: '', requiredModels: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', system: '', targetFunction: '', targetSchema: '', timeoutSeconds: '', updatedByPrincipal: '', volatile: '' }, select: { id: true } }).execute() db.platformFunctionDefinition.update({ where: { id: '' }, data: { accessChannels: '' }, select: { id: true } }).execute() db.platformFunctionDefinition.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.platformFunctionDefinition.findMany({ ```typescript const item = await db.platformFunctionDefinition.create({ - data: { accessChannels: '', anonymousCallable: '', billable: '', category: '', concurrency: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdByPrincipal: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', memoryLimitBytes: '', memoryRequestBytes: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredCapabilities: '', requiredConfigs: '', requiredModels: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', system: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', updatedByPrincipal: '', volatile: '' }, + data: { accessChannels: '', anonymousCallable: '', billable: '', category: '', concurrency: '', createdByPrincipal: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredCapabilities: '', requiredConfigs: '', requiredModels: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', system: '', targetFunction: '', targetSchema: '', timeoutSeconds: '', updatedByPrincipal: '', volatile: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-compute/references/platform-infra-get-all-tree-nodes-record.md b/.agents/skills/orm-compute/references/platform-infra-get-all-tree-nodes-record.md index c2617deed0..a69075b97a 100644 --- a/.agents/skills/orm-compute/references/platform-infra-get-all-tree-nodes-record.md +++ b/.agents/skills/orm-compute/references/platform-infra-get-all-tree-nodes-record.md @@ -9,7 +9,6 @@ ORM operations for PlatformInfraGetAllTreeNodesRecord records ```typescript db.platformInfraGetAllTreeNodesRecord.findMany({ select: { id: true } }).execute() db.platformInfraGetAllTreeNodesRecord.findOne({ id: '', select: { id: true } }).execute() -db.platformInfraGetAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute() db.platformInfraGetAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute() db.platformInfraGetAllTreeNodesRecord.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.platformInfraGetAllTreeNodesRecord.findMany({ select: { id: true, data: true } }).execute(); ``` - -### Create a platformInfraGetAllTreeNodesRecord - -```typescript -const item = await db.platformInfraGetAllTreeNodesRecord.create({ - data: { data: '', path: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-compute/references/platform-proposal-comment.md b/.agents/skills/orm-compute/references/platform-proposal-comment.md index f1807f8aab..322b115004 100644 --- a/.agents/skills/orm-compute/references/platform-proposal-comment.md +++ b/.agents/skills/orm-compute/references/platform-proposal-comment.md @@ -15,7 +15,7 @@ Fields provided by the Unified Search plugin. Includes full-text search (tsvecto ```typescript db.platformProposalComment.findMany({ select: { id: true } }).execute() db.platformProposalComment.findOne({ id: '', select: { id: true } }).execute() -db.platformProposalComment.create({ data: { actorId: '', attachments: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', line: '', outdatedAt: '', path: '', pathTrgmSimilarity: '', proposalId: '', resolvedAt: '', search: '', searchScore: '', searchTsvRank: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() +db.platformProposalComment.create({ data: { actorId: '', attachments: '', body: '', createdBy: '', createdByPrincipal: '', embedding: '', line: '', outdatedAt: '', path: '', proposalId: '', resolvedAt: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() db.platformProposalComment.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() db.platformProposalComment.delete({ where: { id: '' } }).execute() ``` @@ -34,7 +34,7 @@ const items = await db.platformProposalComment.findMany({ ```typescript const item = await db.platformProposalComment.create({ - data: { actorId: '', attachments: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', line: '', outdatedAt: '', path: '', pathTrgmSimilarity: '', proposalId: '', resolvedAt: '', search: '', searchScore: '', searchTsvRank: '', updatedBy: '', updatedByPrincipal: '' }, + data: { actorId: '', attachments: '', body: '', createdBy: '', createdByPrincipal: '', embedding: '', line: '', outdatedAt: '', path: '', proposalId: '', resolvedAt: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-compute/references/platform-proposal-review.md b/.agents/skills/orm-compute/references/platform-proposal-review.md index 0f4e967e4e..19be07bde1 100644 --- a/.agents/skills/orm-compute/references/platform-proposal-review.md +++ b/.agents/skills/orm-compute/references/platform-proposal-review.md @@ -12,7 +12,7 @@ Fields provided by the Unified Search plugin. Includes full-text search (tsvecto ```typescript db.platformProposalReview.findMany({ select: { id: true } }).execute() db.platformProposalReview.findOne({ id: '', select: { id: true } }).execute() -db.platformProposalReview.create({ data: { body: '', bodyTrgmSimilarity: '', commitSha: '', commitShaTrgmSimilarity: '', createdByPrincipal: '', proposalId: '', reviewerId: '', search: '', searchScore: '', searchTsvRank: '', submittedAt: '', updatedByPrincipal: '', verdict: '', verdictTrgmSimilarity: '' }, select: { id: true } }).execute() +db.platformProposalReview.create({ data: { body: '', commitSha: '', createdByPrincipal: '', proposalId: '', reviewerId: '', submittedAt: '', updatedByPrincipal: '', verdict: '' }, select: { id: true } }).execute() db.platformProposalReview.update({ where: { id: '' }, data: { body: '' }, select: { id: true } }).execute() db.platformProposalReview.delete({ where: { id: '' } }).execute() ``` @@ -31,7 +31,7 @@ const items = await db.platformProposalReview.findMany({ ```typescript const item = await db.platformProposalReview.create({ - data: { body: '', bodyTrgmSimilarity: '', commitSha: '', commitShaTrgmSimilarity: '', createdByPrincipal: '', proposalId: '', reviewerId: '', search: '', searchScore: '', searchTsvRank: '', submittedAt: '', updatedByPrincipal: '', verdict: '', verdictTrgmSimilarity: '' }, + data: { body: '', commitSha: '', createdByPrincipal: '', proposalId: '', reviewerId: '', submittedAt: '', updatedByPrincipal: '', verdict: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-compute/references/platform-proposal.md b/.agents/skills/orm-compute/references/platform-proposal.md index ac7791b4b6..88a59a95d0 100644 --- a/.agents/skills/orm-compute/references/platform-proposal.md +++ b/.agents/skills/orm-compute/references/platform-proposal.md @@ -15,7 +15,7 @@ Fields provided by the Unified Search plugin. Includes full-text search (tsvecto ```typescript db.platformProposal.findMany({ select: { id: true } }).execute() db.platformProposal.findOne({ id: '', select: { id: true } }).execute() -db.platformProposal.create({ data: { actorId: '', body: '', bodyTrgmSimilarity: '', closedReason: '', closedReasonTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', decidedAt: '', dueAt: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', kind: '', kindTrgmSimilarity: '', labels: '', mergeCommit: '', mergeCommitTrgmSimilarity: '', mergeMethod: '', mergeMethodTrgmSimilarity: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', resolutionTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', sourceRef: '', sourceRefTrgmSimilarity: '', status: '', statusTrgmSimilarity: '', targetRef: '', targetRefTrgmSimilarity: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() +db.platformProposal.create({ data: { actorId: '', body: '', closedReason: '', createdBy: '', createdByPrincipal: '', decidedAt: '', dueAt: '', embedding: '', kind: '', labels: '', mergeCommit: '', mergeMethod: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', sourceRef: '', status: '', targetRef: '', title: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() db.platformProposal.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() db.platformProposal.delete({ where: { id: '' } }).execute() ``` @@ -34,7 +34,7 @@ const items = await db.platformProposal.findMany({ ```typescript const item = await db.platformProposal.create({ - data: { actorId: '', body: '', bodyTrgmSimilarity: '', closedReason: '', closedReasonTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', decidedAt: '', dueAt: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', kind: '', kindTrgmSimilarity: '', labels: '', mergeCommit: '', mergeCommitTrgmSimilarity: '', mergeMethod: '', mergeMethodTrgmSimilarity: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', resolutionTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', sourceRef: '', sourceRefTrgmSimilarity: '', status: '', statusTrgmSimilarity: '', targetRef: '', targetRefTrgmSimilarity: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, + data: { actorId: '', body: '', closedReason: '', createdBy: '', createdByPrincipal: '', decidedAt: '', dueAt: '', embedding: '', kind: '', labels: '', mergeCommit: '', mergeMethod: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', sourceRef: '', status: '', targetRef: '', title: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-compute/references/platform-proposals-chunk.md b/.agents/skills/orm-compute/references/platform-proposals-chunk.md index 0622a46f1d..78b3874c25 100644 --- a/.agents/skills/orm-compute/references/platform-proposals-chunk.md +++ b/.agents/skills/orm-compute/references/platform-proposals-chunk.md @@ -12,7 +12,7 @@ High-dimensional vector columns for semantic similarity search. Query via the Un ```typescript db.platformProposalsChunk.findMany({ select: { id: true } }).execute() db.platformProposalsChunk.findOne({ id: '', select: { id: true } }).execute() -db.platformProposalsChunk.create({ data: { actorId: '', body: '', chunkIndex: '', embedding: '', embeddingVectorDistance: '', metadata: '', platformProposalsId: '', searchScore: '' }, select: { id: true } }).execute() +db.platformProposalsChunk.create({ data: { actorId: '', body: '', chunkIndex: '', embedding: '', metadata: '', platformProposalsId: '' }, select: { id: true } }).execute() db.platformProposalsChunk.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() db.platformProposalsChunk.delete({ where: { id: '' } }).execute() ``` @@ -31,7 +31,7 @@ const items = await db.platformProposalsChunk.findMany({ ```typescript const item = await db.platformProposalsChunk.create({ - data: { actorId: '', body: '', chunkIndex: '', embedding: '', embeddingVectorDistance: '', metadata: '', platformProposalsId: '', searchScore: '' }, + data: { actorId: '', body: '', chunkIndex: '', embedding: '', metadata: '', platformProposalsId: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-compute/references/platform-repository.md b/.agents/skills/orm-compute/references/platform-repository.md index b5cafd0f7f..cf14b9f2f1 100644 --- a/.agents/skills/orm-compute/references/platform-repository.md +++ b/.agents/skills/orm-compute/references/platform-repository.md @@ -15,7 +15,7 @@ Fields provided by the Unified Search plugin. Includes full-text search (tsvecto ```typescript db.platformRepository.findMany({ select: { id: true } }).execute() db.platformRepository.findOne({ id: '', select: { id: true } }).execute() -db.platformRepository.create({ data: { cloneUrl: '', cloneUrlTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', defaultBranch: '', defaultBranchTrgmSimilarity: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', externalId: '', externalIdTrgmSimilarity: '', isArchived: '', metadata: '', name: '', nameTrgmSimilarity: '', ownerId: '', provider: '', providerTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', slug: '', slugTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '', visibility: '', visibilityTrgmSimilarity: '' }, select: { id: true } }).execute() +db.platformRepository.create({ data: { cloneUrl: '', createdBy: '', createdByPrincipal: '', defaultBranch: '', description: '', embedding: '', externalId: '', isArchived: '', metadata: '', name: '', ownerId: '', provider: '', slug: '', updatedBy: '', updatedByPrincipal: '', visibility: '' }, select: { id: true } }).execute() db.platformRepository.update({ where: { id: '' }, data: { cloneUrl: '' }, select: { id: true } }).execute() db.platformRepository.delete({ where: { id: '' } }).execute() ``` @@ -34,7 +34,7 @@ const items = await db.platformRepository.findMany({ ```typescript const item = await db.platformRepository.create({ - data: { cloneUrl: '', cloneUrlTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', defaultBranch: '', defaultBranchTrgmSimilarity: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', externalId: '', externalIdTrgmSimilarity: '', isArchived: '', metadata: '', name: '', nameTrgmSimilarity: '', ownerId: '', provider: '', providerTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', slug: '', slugTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '', visibility: '', visibilityTrgmSimilarity: '' }, + data: { cloneUrl: '', createdBy: '', createdByPrincipal: '', defaultBranch: '', description: '', embedding: '', externalId: '', isArchived: '', metadata: '', name: '', ownerId: '', provider: '', slug: '', updatedBy: '', updatedByPrincipal: '', visibility: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-compute/references/platform-resource-declared-capacity.md b/.agents/skills/orm-compute/references/platform-resource-declared-capacity.md index e684acf225..41e68590b5 100644 --- a/.agents/skills/orm-compute/references/platform-resource-declared-capacity.md +++ b/.agents/skills/orm-compute/references/platform-resource-declared-capacity.md @@ -9,7 +9,6 @@ ORM operations for PlatformResourceDeclaredCapacity records ```typescript db.platformResourceDeclaredCapacity.findMany({ select: { id: true } }).execute() db.platformResourceDeclaredCapacity.findOne({ id: '', select: { id: true } }).execute() -db.platformResourceDeclaredCapacity.create({ data: { cpuLimitMillicores: '', cpuRequestMillicores: '', installationId: '', isTransient: '', kind: '', memoryLimitBytes: '', memoryRequestBytes: '', namespaceId: '', podCountMax: '', podCountMin: '', source: '', sourceId: '', storageSizeBytes: '', storageTotalBytes: '' }, select: { id: true } }).execute() db.platformResourceDeclaredCapacity.update({ where: { id: '' }, data: { cpuLimitMillicores: '' }, select: { id: true } }).execute() db.platformResourceDeclaredCapacity.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.platformResourceDeclaredCapacity.findMany({ select: { id: true, cpuLimitMillicores: true } }).execute(); ``` - -### Create a platformResourceDeclaredCapacity - -```typescript -const item = await db.platformResourceDeclaredCapacity.create({ - data: { cpuLimitMillicores: '', cpuRequestMillicores: '', installationId: '', isTransient: '', kind: '', memoryLimitBytes: '', memoryRequestBytes: '', namespaceId: '', podCountMax: '', podCountMin: '', source: '', sourceId: '', storageSizeBytes: '', storageTotalBytes: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-compute/references/platform-resource-observed-storage.md b/.agents/skills/orm-compute/references/platform-resource-observed-storage.md index d972742369..600f2dd35a 100644 --- a/.agents/skills/orm-compute/references/platform-resource-observed-storage.md +++ b/.agents/skills/orm-compute/references/platform-resource-observed-storage.md @@ -9,7 +9,6 @@ ORM operations for PlatformResourceObservedStorage records ```typescript db.platformResourceObservedStorage.findMany({ select: { id: true } }).execute() db.platformResourceObservedStorage.findOne({ id: '', select: { id: true } }).execute() -db.platformResourceObservedStorage.create({ data: { capacity: '', capacityBytes: '', claimName: '', declaredStorageClass: '', declaredStorageSizeBytes: '', declaredStorageTotalBytes: '', installationId: '', isBound: '', kind: '', namespaceId: '', phase: '', requested: '', requestedBytes: '', resourceId: '', resourceStatus: '', slug: '', storageClass: '', storageName: '' }, select: { id: true } }).execute() db.platformResourceObservedStorage.update({ where: { id: '' }, data: { capacity: '' }, select: { id: true } }).execute() db.platformResourceObservedStorage.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.platformResourceObservedStorage.findMany({ select: { id: true, capacity: true } }).execute(); ``` - -### Create a platformResourceObservedStorage - -```typescript -const item = await db.platformResourceObservedStorage.create({ - data: { capacity: '', capacityBytes: '', claimName: '', declaredStorageClass: '', declaredStorageSizeBytes: '', declaredStorageTotalBytes: '', installationId: '', isBound: '', kind: '', namespaceId: '', phase: '', requested: '', requestedBytes: '', resourceId: '', resourceStatus: '', slug: '', storageClass: '', storageName: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-compute/references/platform-resource-utilization-daily.md b/.agents/skills/orm-compute/references/platform-resource-utilization-daily.md deleted file mode 100644 index b412a4e158..0000000000 --- a/.agents/skills/orm-compute/references/platform-resource-utilization-daily.md +++ /dev/null @@ -1,34 +0,0 @@ -# platformResourceUtilizationDaily - - - -ORM operations for PlatformResourceUtilizationDaily records - -## Usage - -```typescript -db.platformResourceUtilizationDaily.findMany({ select: { id: true } }).execute() -db.platformResourceUtilizationDaily.findOne({ id: '', select: { id: true } }).execute() -db.platformResourceUtilizationDaily.create({ data: { avgMemoryBytes: '', cpuLimitMillicores: '', cpuPeakUtilization: '', cpuRequestHeadroomMillicores: '', cpuRequestMillicores: '', date: '', gbSeconds: '', kind: '', maxCpuMillicores: '', maxMemoryBytes: '', memoryLimitBytes: '', memoryPeakUtilization: '', memoryRequestBytes: '', memoryRequestHeadroomBytes: '', namespaceId: '', replicas: '', resourceId: '', runtimeSeconds: '', sampleCount: '' }, select: { id: true } }).execute() -db.platformResourceUtilizationDaily.update({ where: { id: '' }, data: { avgMemoryBytes: '' }, select: { id: true } }).execute() -db.platformResourceUtilizationDaily.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all platformResourceUtilizationDaily records - -```typescript -const items = await db.platformResourceUtilizationDaily.findMany({ - select: { id: true, avgMemoryBytes: true } -}).execute(); -``` - -### Create a platformResourceUtilizationDaily - -```typescript -const item = await db.platformResourceUtilizationDaily.create({ - data: { avgMemoryBytes: '', cpuLimitMillicores: '', cpuPeakUtilization: '', cpuRequestHeadroomMillicores: '', cpuRequestMillicores: '', date: '', gbSeconds: '', kind: '', maxCpuMillicores: '', maxMemoryBytes: '', memoryLimitBytes: '', memoryPeakUtilization: '', memoryRequestBytes: '', memoryRequestHeadroomBytes: '', namespaceId: '', replicas: '', resourceId: '', runtimeSeconds: '', sampleCount: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-compute/references/platform-resource-utilization.md b/.agents/skills/orm-compute/references/platform-resource-utilization.md index 8ea11dd257..6463930f51 100644 --- a/.agents/skills/orm-compute/references/platform-resource-utilization.md +++ b/.agents/skills/orm-compute/references/platform-resource-utilization.md @@ -9,7 +9,6 @@ ORM operations for PlatformResourceUtilization records ```typescript db.platformResourceUtilization.findMany({ select: { id: true } }).execute() db.platformResourceUtilization.findOne({ id: '', select: { id: true } }).execute() -db.platformResourceUtilization.create({ data: { avgMemoryBytes: '', cpuLimitMillicores: '', cpuPeakUtilization: '', cpuRequestHeadroomMillicores: '', cpuRequestMillicores: '', date: '', gbSeconds: '', kind: '', maxCpuMillicores: '', maxMemoryBytes: '', memoryLimitBytes: '', memoryPeakUtilization: '', memoryRequestBytes: '', memoryRequestHeadroomBytes: '', namespaceId: '', replicas: '', resourceId: '', runtimeSeconds: '', sampleCount: '' }, select: { id: true } }).execute() db.platformResourceUtilization.update({ where: { id: '' }, data: { avgMemoryBytes: '' }, select: { id: true } }).execute() db.platformResourceUtilization.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.platformResourceUtilization.findMany({ select: { id: true, avgMemoryBytes: true } }).execute(); ``` - -### Create a platformResourceUtilization - -```typescript -const item = await db.platformResourceUtilization.create({ - data: { avgMemoryBytes: '', cpuLimitMillicores: '', cpuPeakUtilization: '', cpuRequestHeadroomMillicores: '', cpuRequestMillicores: '', date: '', gbSeconds: '', kind: '', maxCpuMillicores: '', maxMemoryBytes: '', memoryLimitBytes: '', memoryPeakUtilization: '', memoryRequestBytes: '', memoryRequestHeadroomBytes: '', namespaceId: '', replicas: '', resourceId: '', runtimeSeconds: '', sampleCount: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-compute/references/platform-resource.md b/.agents/skills/orm-compute/references/platform-resource.md index effc90b98c..78895f8e1a 100644 --- a/.agents/skills/orm-compute/references/platform-resource.md +++ b/.agents/skills/orm-compute/references/platform-resource.md @@ -9,7 +9,7 @@ Unified K8s resource declarations — stores desired state (spec) and observed s ```typescript db.platformResource.findMany({ select: { id: true } }).execute() db.platformResource.findOne({ id: '', select: { id: true } }).execute() -db.platformResource.create({ data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() +db.platformResource.create({ data: { annotations: '', createdBy: '', createdByPrincipal: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', name: '', namespaceId: '', realm: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() db.platformResource.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute() db.platformResource.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.platformResource.findMany({ ```typescript const item = await db.platformResource.create({ - data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }, + data: { annotations: '', createdBy: '', createdByPrincipal: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', name: '', namespaceId: '', realm: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-compute/references/platform-resources-health.md b/.agents/skills/orm-compute/references/platform-resources-health.md index f2a3a0467e..44db3cdb42 100644 --- a/.agents/skills/orm-compute/references/platform-resources-health.md +++ b/.agents/skills/orm-compute/references/platform-resources-health.md @@ -9,7 +9,6 @@ ORM operations for PlatformResourcesHealth records ```typescript db.platformResourcesHealth.findMany({ select: { id: true } }).execute() db.platformResourcesHealth.findOne({ id: '', select: { id: true } }).execute() -db.platformResourcesHealth.create({ data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusDetail: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() db.platformResourcesHealth.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute() db.platformResourcesHealth.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.platformResourcesHealth.findMany({ select: { id: true, annotations: true } }).execute(); ``` - -### Create a platformResourcesHealth - -```typescript -const item = await db.platformResourcesHealth.create({ - data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusDetail: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-compute/references/platform-resources-requirements-state.md b/.agents/skills/orm-compute/references/platform-resources-requirements-state.md index 9b611be13c..503ee47491 100644 --- a/.agents/skills/orm-compute/references/platform-resources-requirements-state.md +++ b/.agents/skills/orm-compute/references/platform-resources-requirements-state.md @@ -9,7 +9,6 @@ ORM operations for PlatformResourcesRequirementsState records ```typescript db.platformResourcesRequirementsState.findMany({ select: { id: true } }).execute() db.platformResourcesRequirementsState.findOne({ id: '', select: { id: true } }).execute() -db.platformResourcesRequirementsState.create({ data: { configHash: '', configObjectName: '', requirementsHash: '', resourceId: '', secretsHash: '', secretsObjectName: '', slug: '' }, select: { id: true } }).execute() db.platformResourcesRequirementsState.update({ where: { id: '' }, data: { configHash: '' }, select: { id: true } }).execute() db.platformResourcesRequirementsState.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.platformResourcesRequirementsState.findMany({ select: { id: true, configHash: true } }).execute(); ``` - -### Create a platformResourcesRequirementsState - -```typescript -const item = await db.platformResourcesRequirementsState.create({ - data: { configHash: '', configObjectName: '', requirementsHash: '', resourceId: '', secretsHash: '', secretsObjectName: '', slug: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-compute/references/platform-resources-resolved-requirement.md b/.agents/skills/orm-compute/references/platform-resources-resolved-requirement.md index 2a00b02690..8107dd7d26 100644 --- a/.agents/skills/orm-compute/references/platform-resources-resolved-requirement.md +++ b/.agents/skills/orm-compute/references/platform-resources-resolved-requirement.md @@ -9,7 +9,6 @@ ORM operations for PlatformResourcesResolvedRequirement records ```typescript db.platformResourcesResolvedRequirement.findMany({ select: { id: true } }).execute() db.platformResourcesResolvedRequirement.findOne({ id: '', select: { id: true } }).execute() -db.platformResourcesResolvedRequirement.create({ data: { atomId: '', configObjectName: '', name: '', namespaceId: '', present: '', realm: '', required: '', requirementKind: '', resourceId: '', secretsObjectName: '', slug: '' }, select: { id: true } }).execute() db.platformResourcesResolvedRequirement.update({ where: { id: '' }, data: { atomId: '' }, select: { id: true } }).execute() db.platformResourcesResolvedRequirement.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.platformResourcesResolvedRequirement.findMany({ select: { id: true, atomId: true } }).execute(); ``` - -### Create a platformResourcesResolvedRequirement - -```typescript -const item = await db.platformResourcesResolvedRequirement.create({ - data: { atomId: '', configObjectName: '', name: '', namespaceId: '', present: '', realm: '', required: '', requirementKind: '', resourceId: '', secretsObjectName: '', slug: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-compute/references/platform-service-binding.md b/.agents/skills/orm-compute/references/platform-service-binding.md new file mode 100644 index 0000000000..fcdd4d70ae --- /dev/null +++ b/.agents/skills/orm-compute/references/platform-service-binding.md @@ -0,0 +1,34 @@ +# platformServiceBinding + + + +Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config + +## Usage + +```typescript +db.platformServiceBinding.findMany({ select: { id: true } }).execute() +db.platformServiceBinding.findOne({ id: '', select: { id: true } }).execute() +db.platformServiceBinding.create({ data: { createdBy: '', createdByPrincipal: '', installationId: '', installationScope: '', kind: '', lastError: '', metadata: '', namespaceId: '', observedHost: '', realm: '', status: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() +db.platformServiceBinding.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() +db.platformServiceBinding.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all platformServiceBinding records + +```typescript +const items = await db.platformServiceBinding.findMany({ + select: { id: true, createdBy: true } +}).execute(); +``` + +### Create a platformServiceBinding + +```typescript +const item = await db.platformServiceBinding.create({ + data: { createdBy: '', createdByPrincipal: '', installationId: '', installationScope: '', kind: '', lastError: '', metadata: '', namespaceId: '', observedHost: '', realm: '', status: '', updatedBy: '', updatedByPrincipal: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/proposal-comment.md b/.agents/skills/orm-compute/references/proposal-comment.md index 83de788c02..c9ca845fa7 100644 --- a/.agents/skills/orm-compute/references/proposal-comment.md +++ b/.agents/skills/orm-compute/references/proposal-comment.md @@ -15,7 +15,7 @@ Fields provided by the Unified Search plugin. Includes full-text search (tsvecto ```typescript db.proposalComment.findMany({ select: { id: true } }).execute() db.proposalComment.findOne({ id: '', select: { id: true } }).execute() -db.proposalComment.create({ data: { actorId: '', attachments: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', line: '', outdatedAt: '', path: '', pathTrgmSimilarity: '', proposalId: '', resolvedAt: '', search: '', searchScore: '', searchTsvRank: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() +db.proposalComment.create({ data: { actorId: '', attachments: '', body: '', createdBy: '', createdByPrincipal: '', databaseId: '', embedding: '', line: '', outdatedAt: '', path: '', proposalId: '', resolvedAt: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() db.proposalComment.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() db.proposalComment.delete({ where: { id: '' } }).execute() ``` @@ -34,7 +34,7 @@ const items = await db.proposalComment.findMany({ ```typescript const item = await db.proposalComment.create({ - data: { actorId: '', attachments: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', line: '', outdatedAt: '', path: '', pathTrgmSimilarity: '', proposalId: '', resolvedAt: '', search: '', searchScore: '', searchTsvRank: '', updatedBy: '', updatedByPrincipal: '' }, + data: { actorId: '', attachments: '', body: '', createdBy: '', createdByPrincipal: '', databaseId: '', embedding: '', line: '', outdatedAt: '', path: '', proposalId: '', resolvedAt: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-compute/references/proposal-review.md b/.agents/skills/orm-compute/references/proposal-review.md index 4c02e93ca1..a1e1d37913 100644 --- a/.agents/skills/orm-compute/references/proposal-review.md +++ b/.agents/skills/orm-compute/references/proposal-review.md @@ -12,7 +12,7 @@ Fields provided by the Unified Search plugin. Includes full-text search (tsvecto ```typescript db.proposalReview.findMany({ select: { id: true } }).execute() db.proposalReview.findOne({ id: '', select: { id: true } }).execute() -db.proposalReview.create({ data: { body: '', bodyTrgmSimilarity: '', commitSha: '', commitShaTrgmSimilarity: '', createdByPrincipal: '', databaseId: '', proposalId: '', reviewerId: '', search: '', searchScore: '', searchTsvRank: '', submittedAt: '', updatedByPrincipal: '', verdict: '', verdictTrgmSimilarity: '' }, select: { id: true } }).execute() +db.proposalReview.create({ data: { body: '', commitSha: '', createdByPrincipal: '', databaseId: '', proposalId: '', reviewerId: '', submittedAt: '', updatedByPrincipal: '', verdict: '' }, select: { id: true } }).execute() db.proposalReview.update({ where: { id: '' }, data: { body: '' }, select: { id: true } }).execute() db.proposalReview.delete({ where: { id: '' } }).execute() ``` @@ -31,7 +31,7 @@ const items = await db.proposalReview.findMany({ ```typescript const item = await db.proposalReview.create({ - data: { body: '', bodyTrgmSimilarity: '', commitSha: '', commitShaTrgmSimilarity: '', createdByPrincipal: '', databaseId: '', proposalId: '', reviewerId: '', search: '', searchScore: '', searchTsvRank: '', submittedAt: '', updatedByPrincipal: '', verdict: '', verdictTrgmSimilarity: '' }, + data: { body: '', commitSha: '', createdByPrincipal: '', databaseId: '', proposalId: '', reviewerId: '', submittedAt: '', updatedByPrincipal: '', verdict: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-compute/references/proposal.md b/.agents/skills/orm-compute/references/proposal.md index c4851f192a..93760bc045 100644 --- a/.agents/skills/orm-compute/references/proposal.md +++ b/.agents/skills/orm-compute/references/proposal.md @@ -15,7 +15,7 @@ Fields provided by the Unified Search plugin. Includes full-text search (tsvecto ```typescript db.proposal.findMany({ select: { id: true } }).execute() db.proposal.findOne({ id: '', select: { id: true } }).execute() -db.proposal.create({ data: { actorId: '', body: '', bodyTrgmSimilarity: '', closedReason: '', closedReasonTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', decidedAt: '', dueAt: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', kind: '', kindTrgmSimilarity: '', labels: '', mergeCommit: '', mergeCommitTrgmSimilarity: '', mergeMethod: '', mergeMethodTrgmSimilarity: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', resolutionTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', sourceRef: '', sourceRefTrgmSimilarity: '', status: '', statusTrgmSimilarity: '', targetRef: '', targetRefTrgmSimilarity: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() +db.proposal.create({ data: { actorId: '', body: '', closedReason: '', createdBy: '', createdByPrincipal: '', databaseId: '', decidedAt: '', dueAt: '', embedding: '', kind: '', labels: '', mergeCommit: '', mergeMethod: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', sourceRef: '', status: '', targetRef: '', title: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() db.proposal.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() db.proposal.delete({ where: { id: '' } }).execute() ``` @@ -34,7 +34,7 @@ const items = await db.proposal.findMany({ ```typescript const item = await db.proposal.create({ - data: { actorId: '', body: '', bodyTrgmSimilarity: '', closedReason: '', closedReasonTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', decidedAt: '', dueAt: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', kind: '', kindTrgmSimilarity: '', labels: '', mergeCommit: '', mergeCommitTrgmSimilarity: '', mergeMethod: '', mergeMethodTrgmSimilarity: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', resolutionTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', sourceRef: '', sourceRefTrgmSimilarity: '', status: '', statusTrgmSimilarity: '', targetRef: '', targetRefTrgmSimilarity: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, + data: { actorId: '', body: '', closedReason: '', createdBy: '', createdByPrincipal: '', databaseId: '', decidedAt: '', dueAt: '', embedding: '', kind: '', labels: '', mergeCommit: '', mergeMethod: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', sourceRef: '', status: '', targetRef: '', title: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-compute/references/proposals-chunk.md b/.agents/skills/orm-compute/references/proposals-chunk.md index 3cf6fb7533..b18043f3ef 100644 --- a/.agents/skills/orm-compute/references/proposals-chunk.md +++ b/.agents/skills/orm-compute/references/proposals-chunk.md @@ -12,7 +12,7 @@ High-dimensional vector columns for semantic similarity search. Query via the Un ```typescript db.proposalsChunk.findMany({ select: { id: true } }).execute() db.proposalsChunk.findOne({ id: '', select: { id: true } }).execute() -db.proposalsChunk.create({ data: { actorId: '', body: '', chunkIndex: '', databaseId: '', embedding: '', embeddingVectorDistance: '', metadata: '', proposalsId: '', searchScore: '' }, select: { id: true } }).execute() +db.proposalsChunk.create({ data: { actorId: '', body: '', chunkIndex: '', databaseId: '', embedding: '', metadata: '', proposalsId: '' }, select: { id: true } }).execute() db.proposalsChunk.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() db.proposalsChunk.delete({ where: { id: '' } }).execute() ``` @@ -31,7 +31,7 @@ const items = await db.proposalsChunk.findMany({ ```typescript const item = await db.proposalsChunk.create({ - data: { actorId: '', body: '', chunkIndex: '', databaseId: '', embedding: '', embeddingVectorDistance: '', metadata: '', proposalsId: '', searchScore: '' }, + data: { actorId: '', body: '', chunkIndex: '', databaseId: '', embedding: '', metadata: '', proposalsId: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-compute/references/repository.md b/.agents/skills/orm-compute/references/repository.md index bc31e9b96e..c66ebfcac1 100644 --- a/.agents/skills/orm-compute/references/repository.md +++ b/.agents/skills/orm-compute/references/repository.md @@ -15,7 +15,7 @@ Fields provided by the Unified Search plugin. Includes full-text search (tsvecto ```typescript db.repository.findMany({ select: { id: true } }).execute() db.repository.findOne({ id: '', select: { id: true } }).execute() -db.repository.create({ data: { cloneUrl: '', cloneUrlTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', defaultBranch: '', defaultBranchTrgmSimilarity: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', externalId: '', externalIdTrgmSimilarity: '', isArchived: '', metadata: '', name: '', nameTrgmSimilarity: '', ownerId: '', provider: '', providerTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', slug: '', slugTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '', visibility: '', visibilityTrgmSimilarity: '' }, select: { id: true } }).execute() +db.repository.create({ data: { cloneUrl: '', createdBy: '', createdByPrincipal: '', databaseId: '', defaultBranch: '', description: '', embedding: '', externalId: '', isArchived: '', metadata: '', name: '', ownerId: '', provider: '', slug: '', updatedBy: '', updatedByPrincipal: '', visibility: '' }, select: { id: true } }).execute() db.repository.update({ where: { id: '' }, data: { cloneUrl: '' }, select: { id: true } }).execute() db.repository.delete({ where: { id: '' } }).execute() ``` @@ -34,7 +34,7 @@ const items = await db.repository.findMany({ ```typescript const item = await db.repository.create({ - data: { cloneUrl: '', cloneUrlTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', defaultBranch: '', defaultBranchTrgmSimilarity: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', externalId: '', externalIdTrgmSimilarity: '', isArchived: '', metadata: '', name: '', nameTrgmSimilarity: '', ownerId: '', provider: '', providerTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', slug: '', slugTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '', visibility: '', visibilityTrgmSimilarity: '' }, + data: { cloneUrl: '', createdBy: '', createdByPrincipal: '', databaseId: '', defaultBranch: '', description: '', embedding: '', externalId: '', isArchived: '', metadata: '', name: '', ownerId: '', provider: '', slug: '', updatedBy: '', updatedByPrincipal: '', visibility: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-compute/references/resource-declared-capacity.md b/.agents/skills/orm-compute/references/resource-declared-capacity.md index 48f2b8168c..514440604a 100644 --- a/.agents/skills/orm-compute/references/resource-declared-capacity.md +++ b/.agents/skills/orm-compute/references/resource-declared-capacity.md @@ -9,7 +9,6 @@ ORM operations for ResourceDeclaredCapacity records ```typescript db.resourceDeclaredCapacity.findMany({ select: { id: true } }).execute() db.resourceDeclaredCapacity.findOne({ id: '', select: { id: true } }).execute() -db.resourceDeclaredCapacity.create({ data: { cpuLimitMillicores: '', cpuRequestMillicores: '', installationId: '', isTransient: '', kind: '', memoryLimitBytes: '', memoryRequestBytes: '', namespaceId: '', podCountMax: '', podCountMin: '', source: '', sourceId: '', storageSizeBytes: '', storageTotalBytes: '' }, select: { id: true } }).execute() db.resourceDeclaredCapacity.update({ where: { id: '' }, data: { cpuLimitMillicores: '' }, select: { id: true } }).execute() db.resourceDeclaredCapacity.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.resourceDeclaredCapacity.findMany({ select: { id: true, cpuLimitMillicores: true } }).execute(); ``` - -### Create a resourceDeclaredCapacity - -```typescript -const item = await db.resourceDeclaredCapacity.create({ - data: { cpuLimitMillicores: '', cpuRequestMillicores: '', installationId: '', isTransient: '', kind: '', memoryLimitBytes: '', memoryRequestBytes: '', namespaceId: '', podCountMax: '', podCountMin: '', source: '', sourceId: '', storageSizeBytes: '', storageTotalBytes: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-compute/references/resource-observed-storage.md b/.agents/skills/orm-compute/references/resource-observed-storage.md index 7e716f8195..63d94b08c7 100644 --- a/.agents/skills/orm-compute/references/resource-observed-storage.md +++ b/.agents/skills/orm-compute/references/resource-observed-storage.md @@ -9,7 +9,6 @@ ORM operations for ResourceObservedStorage records ```typescript db.resourceObservedStorage.findMany({ select: { id: true } }).execute() db.resourceObservedStorage.findOne({ id: '', select: { id: true } }).execute() -db.resourceObservedStorage.create({ data: { capacity: '', capacityBytes: '', claimName: '', declaredStorageClass: '', declaredStorageSizeBytes: '', declaredStorageTotalBytes: '', installationId: '', isBound: '', kind: '', namespaceId: '', phase: '', requested: '', requestedBytes: '', resourceId: '', resourceStatus: '', slug: '', storageClass: '', storageName: '' }, select: { id: true } }).execute() db.resourceObservedStorage.update({ where: { id: '' }, data: { capacity: '' }, select: { id: true } }).execute() db.resourceObservedStorage.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.resourceObservedStorage.findMany({ select: { id: true, capacity: true } }).execute(); ``` - -### Create a resourceObservedStorage - -```typescript -const item = await db.resourceObservedStorage.create({ - data: { capacity: '', capacityBytes: '', claimName: '', declaredStorageClass: '', declaredStorageSizeBytes: '', declaredStorageTotalBytes: '', installationId: '', isBound: '', kind: '', namespaceId: '', phase: '', requested: '', requestedBytes: '', resourceId: '', resourceStatus: '', slug: '', storageClass: '', storageName: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-compute/references/resource-utilization-daily.md b/.agents/skills/orm-compute/references/resource-utilization-daily.md deleted file mode 100644 index 4747f0abcb..0000000000 --- a/.agents/skills/orm-compute/references/resource-utilization-daily.md +++ /dev/null @@ -1,34 +0,0 @@ -# resourceUtilizationDaily - - - -ORM operations for ResourceUtilizationDaily records - -## Usage - -```typescript -db.resourceUtilizationDaily.findMany({ select: { id: true } }).execute() -db.resourceUtilizationDaily.findOne({ id: '', select: { id: true } }).execute() -db.resourceUtilizationDaily.create({ data: { avgMemoryBytes: '', cpuLimitMillicores: '', cpuPeakUtilization: '', cpuRequestHeadroomMillicores: '', cpuRequestMillicores: '', date: '', gbSeconds: '', kind: '', maxCpuMillicores: '', maxMemoryBytes: '', memoryLimitBytes: '', memoryPeakUtilization: '', memoryRequestBytes: '', memoryRequestHeadroomBytes: '', namespaceId: '', replicas: '', resourceId: '', runtimeSeconds: '', sampleCount: '' }, select: { id: true } }).execute() -db.resourceUtilizationDaily.update({ where: { id: '' }, data: { avgMemoryBytes: '' }, select: { id: true } }).execute() -db.resourceUtilizationDaily.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all resourceUtilizationDaily records - -```typescript -const items = await db.resourceUtilizationDaily.findMany({ - select: { id: true, avgMemoryBytes: true } -}).execute(); -``` - -### Create a resourceUtilizationDaily - -```typescript -const item = await db.resourceUtilizationDaily.create({ - data: { avgMemoryBytes: '', cpuLimitMillicores: '', cpuPeakUtilization: '', cpuRequestHeadroomMillicores: '', cpuRequestMillicores: '', date: '', gbSeconds: '', kind: '', maxCpuMillicores: '', maxMemoryBytes: '', memoryLimitBytes: '', memoryPeakUtilization: '', memoryRequestBytes: '', memoryRequestHeadroomBytes: '', namespaceId: '', replicas: '', resourceId: '', runtimeSeconds: '', sampleCount: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-compute/references/resource-utilization.md b/.agents/skills/orm-compute/references/resource-utilization.md index 9954462927..95cec5c84a 100644 --- a/.agents/skills/orm-compute/references/resource-utilization.md +++ b/.agents/skills/orm-compute/references/resource-utilization.md @@ -9,7 +9,6 @@ ORM operations for ResourceUtilization records ```typescript db.resourceUtilization.findMany({ select: { id: true } }).execute() db.resourceUtilization.findOne({ id: '', select: { id: true } }).execute() -db.resourceUtilization.create({ data: { avgMemoryBytes: '', cpuLimitMillicores: '', cpuPeakUtilization: '', cpuRequestHeadroomMillicores: '', cpuRequestMillicores: '', date: '', gbSeconds: '', kind: '', maxCpuMillicores: '', maxMemoryBytes: '', memoryLimitBytes: '', memoryPeakUtilization: '', memoryRequestBytes: '', memoryRequestHeadroomBytes: '', namespaceId: '', replicas: '', resourceId: '', runtimeSeconds: '', sampleCount: '' }, select: { id: true } }).execute() db.resourceUtilization.update({ where: { id: '' }, data: { avgMemoryBytes: '' }, select: { id: true } }).execute() db.resourceUtilization.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.resourceUtilization.findMany({ select: { id: true, avgMemoryBytes: true } }).execute(); ``` - -### Create a resourceUtilization - -```typescript -const item = await db.resourceUtilization.create({ - data: { avgMemoryBytes: '', cpuLimitMillicores: '', cpuPeakUtilization: '', cpuRequestHeadroomMillicores: '', cpuRequestMillicores: '', date: '', gbSeconds: '', kind: '', maxCpuMillicores: '', maxMemoryBytes: '', memoryLimitBytes: '', memoryPeakUtilization: '', memoryRequestBytes: '', memoryRequestHeadroomBytes: '', namespaceId: '', replicas: '', resourceId: '', runtimeSeconds: '', sampleCount: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-compute/references/resource.md b/.agents/skills/orm-compute/references/resource.md index 606fcae990..063b91b9de 100644 --- a/.agents/skills/orm-compute/references/resource.md +++ b/.agents/skills/orm-compute/references/resource.md @@ -9,7 +9,7 @@ Unified K8s resource declarations — stores desired state (spec) and observed s ```typescript db.resource.findMany({ select: { id: true } }).execute() db.resource.findOne({ id: '', select: { id: true } }).execute() -db.resource.create({ data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', databaseId: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() +db.resource.create({ data: { annotations: '', createdBy: '', createdByPrincipal: '', databaseId: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', name: '', namespaceId: '', realm: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() db.resource.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute() db.resource.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.resource.findMany({ ```typescript const item = await db.resource.create({ - data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', databaseId: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }, + data: { annotations: '', createdBy: '', createdByPrincipal: '', databaseId: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', name: '', namespaceId: '', realm: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-compute/references/resources-health.md b/.agents/skills/orm-compute/references/resources-health.md index aef5dee277..a523b4ee56 100644 --- a/.agents/skills/orm-compute/references/resources-health.md +++ b/.agents/skills/orm-compute/references/resources-health.md @@ -9,7 +9,6 @@ ORM operations for ResourcesHealth records ```typescript db.resourcesHealth.findMany({ select: { id: true } }).execute() db.resourcesHealth.findOne({ id: '', select: { id: true } }).execute() -db.resourcesHealth.create({ data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', databaseId: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusDetail: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() db.resourcesHealth.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute() db.resourcesHealth.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.resourcesHealth.findMany({ select: { id: true, annotations: true } }).execute(); ``` - -### Create a resourcesHealth - -```typescript -const item = await db.resourcesHealth.create({ - data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', databaseId: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusDetail: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-compute/references/resources-requirements-state.md b/.agents/skills/orm-compute/references/resources-requirements-state.md index 9aaa4a6f81..8815b6b679 100644 --- a/.agents/skills/orm-compute/references/resources-requirements-state.md +++ b/.agents/skills/orm-compute/references/resources-requirements-state.md @@ -9,7 +9,6 @@ ORM operations for ResourcesRequirementsState records ```typescript db.resourcesRequirementsState.findMany({ select: { id: true } }).execute() db.resourcesRequirementsState.findOne({ id: '', select: { id: true } }).execute() -db.resourcesRequirementsState.create({ data: { configHash: '', configObjectName: '', requirementsHash: '', resourceId: '', secretsHash: '', secretsObjectName: '', slug: '' }, select: { id: true } }).execute() db.resourcesRequirementsState.update({ where: { id: '' }, data: { configHash: '' }, select: { id: true } }).execute() db.resourcesRequirementsState.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.resourcesRequirementsState.findMany({ select: { id: true, configHash: true } }).execute(); ``` - -### Create a resourcesRequirementsState - -```typescript -const item = await db.resourcesRequirementsState.create({ - data: { configHash: '', configObjectName: '', requirementsHash: '', resourceId: '', secretsHash: '', secretsObjectName: '', slug: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-compute/references/resources-resolved-requirement.md b/.agents/skills/orm-compute/references/resources-resolved-requirement.md index c5745db39b..465c522608 100644 --- a/.agents/skills/orm-compute/references/resources-resolved-requirement.md +++ b/.agents/skills/orm-compute/references/resources-resolved-requirement.md @@ -9,7 +9,6 @@ ORM operations for ResourcesResolvedRequirement records ```typescript db.resourcesResolvedRequirement.findMany({ select: { id: true } }).execute() db.resourcesResolvedRequirement.findOne({ id: '', select: { id: true } }).execute() -db.resourcesResolvedRequirement.create({ data: { atomId: '', configObjectName: '', name: '', namespaceId: '', present: '', realm: '', required: '', requirementKind: '', resourceId: '', secretsObjectName: '', slug: '' }, select: { id: true } }).execute() db.resourcesResolvedRequirement.update({ where: { id: '' }, data: { atomId: '' }, select: { id: true } }).execute() db.resourcesResolvedRequirement.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.resourcesResolvedRequirement.findMany({ select: { id: true, atomId: true } }).execute(); ``` - -### Create a resourcesResolvedRequirement - -```typescript -const item = await db.resourcesResolvedRequirement.create({ - data: { atomId: '', configObjectName: '', name: '', namespaceId: '', present: '', realm: '', required: '', requirementKind: '', resourceId: '', secretsObjectName: '', slug: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-compute/references/secret-definition.md b/.agents/skills/orm-compute/references/secret-definition.md deleted file mode 100644 index 7a0eed32cc..0000000000 --- a/.agents/skills/orm-compute/references/secret-definition.md +++ /dev/null @@ -1,34 +0,0 @@ -# secretDefinition - - - -Global secret name registry — declares which secrets the platform recognizes. Actual values live in app_secrets. - -## Usage - -```typescript -db.secretDefinition.findMany({ select: { id: true } }).execute() -db.secretDefinition.findOne({ id: '', select: { id: true } }).execute() -db.secretDefinition.create({ data: { name: '', description: '', isBuiltIn: '', labels: '', annotations: '', databaseId: '' }, select: { id: true } }).execute() -db.secretDefinition.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.secretDefinition.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all secretDefinition records - -```typescript -const items = await db.secretDefinition.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a secretDefinition - -```typescript -const item = await db.secretDefinition.create({ - data: { name: '', description: '', isBuiltIn: '', labels: '', annotations: '', databaseId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-compute/references/service-binding.md b/.agents/skills/orm-compute/references/service-binding.md new file mode 100644 index 0000000000..c792818c84 --- /dev/null +++ b/.agents/skills/orm-compute/references/service-binding.md @@ -0,0 +1,34 @@ +# serviceBinding + + + +Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config + +## Usage + +```typescript +db.serviceBinding.findMany({ select: { id: true } }).execute() +db.serviceBinding.findOne({ id: '', select: { id: true } }).execute() +db.serviceBinding.create({ data: { createdBy: '', createdByPrincipal: '', databaseId: '', installationId: '', installationScope: '', kind: '', lastError: '', metadata: '', namespaceId: '', observedHost: '', realm: '', status: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() +db.serviceBinding.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() +db.serviceBinding.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all serviceBinding records + +```typescript +const items = await db.serviceBinding.findMany({ + select: { id: true, createdBy: true } +}).execute(); +``` + +### Create a serviceBinding + +```typescript +const item = await db.serviceBinding.create({ + data: { createdBy: '', createdByPrincipal: '', databaseId: '', installationId: '', installationScope: '', kind: '', lastError: '', metadata: '', namespaceId: '', observedHost: '', realm: '', status: '', updatedBy: '', updatedByPrincipal: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-config/references/app-internal-secret.md b/.agents/skills/orm-config/references/app-internal-secret.md index 3837d92563..d0e9be621c 100644 --- a/.agents/skills/orm-config/references/app-internal-secret.md +++ b/.agents/skills/orm-config/references/app-internal-secret.md @@ -9,7 +9,6 @@ ORM operations for AppInternalSecret records ```typescript db.appInternalSecret.findMany({ select: { id: true } }).execute() db.appInternalSecret.findOne({ id: '', select: { id: true } }).execute() -db.appInternalSecret.create({ data: { annotations: '', description: '', labels: '', name: '', realm: '', retiredAt: '', rotatedAt: '' }, select: { id: true } }).execute() db.appInternalSecret.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute() db.appInternalSecret.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.appInternalSecret.findMany({ select: { id: true, annotations: true } }).execute(); ``` - -### Create a appInternalSecret - -```typescript -const item = await db.appInternalSecret.create({ - data: { annotations: '', description: '', labels: '', name: '', realm: '', retiredAt: '', rotatedAt: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-config/references/internal-secret.md b/.agents/skills/orm-config/references/internal-secret.md index 1b33b6952c..1aa02858c8 100644 --- a/.agents/skills/orm-config/references/internal-secret.md +++ b/.agents/skills/orm-config/references/internal-secret.md @@ -9,7 +9,6 @@ ORM operations for InternalSecret records ```typescript db.internalSecret.findMany({ select: { id: true } }).execute() db.internalSecret.findOne({ id: '', select: { id: true } }).execute() -db.internalSecret.create({ data: { annotations: '', databaseId: '', description: '', labels: '', name: '', realm: '', retiredAt: '', rotatedAt: '' }, select: { id: true } }).execute() db.internalSecret.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute() db.internalSecret.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.internalSecret.findMany({ select: { id: true, annotations: true } }).execute(); ``` - -### Create a internalSecret - -```typescript -const item = await db.internalSecret.create({ - data: { annotations: '', databaseId: '', description: '', labels: '', name: '', realm: '', retiredAt: '', rotatedAt: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-config/references/org-secrets-del.md b/.agents/skills/orm-config/references/org-secrets-del.md deleted file mode 100644 index 65709ea3cb..0000000000 --- a/.agents/skills/orm-config/references/org-secrets-del.md +++ /dev/null @@ -1,19 +0,0 @@ -# orgSecretsDel - - - -Execute the orgSecretsDel mutation - -## Usage - -```typescript -db.mutation.orgSecretsDel({ input: { ownerId: '', secretName: '', namespaceId: '' } }).execute() -``` - -## Examples - -### Run orgSecretsDel - -```typescript -const result = await db.mutation.orgSecretsDel({ input: { ownerId: '', secretName: '', namespaceId: '' } }).execute(); -``` diff --git a/.agents/skills/orm-config/references/org-secrets-remove-array.md b/.agents/skills/orm-config/references/org-secrets-remove-array.md deleted file mode 100644 index 21bb89ee8f..0000000000 --- a/.agents/skills/orm-config/references/org-secrets-remove-array.md +++ /dev/null @@ -1,19 +0,0 @@ -# orgSecretsRemoveArray - - - -Execute the orgSecretsRemoveArray mutation - -## Usage - -```typescript -db.mutation.orgSecretsRemoveArray({ input: { ownerId: '', secretNames: '', namespaceId: '' } }).execute() -``` - -## Examples - -### Run orgSecretsRemoveArray - -```typescript -const result = await db.mutation.orgSecretsRemoveArray({ input: { ownerId: '', secretNames: '', namespaceId: '' } }).execute(); -``` diff --git a/.agents/skills/orm-config/references/org-secrets-rotate.md b/.agents/skills/orm-config/references/org-secrets-rotate.md deleted file mode 100644 index ee0810c713..0000000000 --- a/.agents/skills/orm-config/references/org-secrets-rotate.md +++ /dev/null @@ -1,19 +0,0 @@ -# orgSecretsRotate - - - -Execute the orgSecretsRotate mutation - -## Usage - -```typescript -db.mutation.orgSecretsRotate({ input: { ownerId: '', secretName: '', secretValue: '', namespaceId: '', algo: '' } }).execute() -``` - -## Examples - -### Run orgSecretsRotate - -```typescript -const result = await db.mutation.orgSecretsRotate({ input: { ownerId: '', secretName: '', secretValue: '', namespaceId: '', algo: '' } }).execute(); -``` diff --git a/.agents/skills/orm-config/references/org-secrets-set.md b/.agents/skills/orm-config/references/org-secrets-set.md deleted file mode 100644 index 3cb6ae045d..0000000000 --- a/.agents/skills/orm-config/references/org-secrets-set.md +++ /dev/null @@ -1,19 +0,0 @@ -# orgSecretsSet - - - -Execute the orgSecretsSet mutation - -## Usage - -```typescript -db.mutation.orgSecretsSet({ input: { scopeOwnerId: '', secretName: '', secretValue: '', secretNamespaceId: '', algo: '' } }).execute() -``` - -## Examples - -### Run orgSecretsSet - -```typescript -const result = await db.mutation.orgSecretsSet({ input: { scopeOwnerId: '', secretName: '', secretValue: '', secretNamespaceId: '', algo: '' } }).execute(); -``` diff --git a/.agents/skills/orm-config/references/platform-config-definition.md b/.agents/skills/orm-config/references/platform-config-definition.md deleted file mode 100644 index c0831d0403..0000000000 --- a/.agents/skills/orm-config/references/platform-config-definition.md +++ /dev/null @@ -1,34 +0,0 @@ -# platformConfigDefinition - - - -Registry of valid config keys — declares which config entries the platform recognizes - -## Usage - -```typescript -db.platformConfigDefinition.findMany({ select: { id: true } }).execute() -db.platformConfigDefinition.findOne({ id: '', select: { id: true } }).execute() -db.platformConfigDefinition.create({ data: { name: '', description: '', defaultValue: '', isBuiltIn: '', labels: '', annotations: '' }, select: { id: true } }).execute() -db.platformConfigDefinition.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.platformConfigDefinition.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all platformConfigDefinition records - -```typescript -const items = await db.platformConfigDefinition.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a platformConfigDefinition - -```typescript -const item = await db.platformConfigDefinition.create({ - data: { name: '', description: '', defaultValue: '', isBuiltIn: '', labels: '', annotations: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-config/references/platform-internal-secret.md b/.agents/skills/orm-config/references/platform-internal-secret.md index fc1a433bb5..4f9ea63916 100644 --- a/.agents/skills/orm-config/references/platform-internal-secret.md +++ b/.agents/skills/orm-config/references/platform-internal-secret.md @@ -9,7 +9,6 @@ ORM operations for PlatformInternalSecret records ```typescript db.platformInternalSecret.findMany({ select: { id: true } }).execute() db.platformInternalSecret.findOne({ id: '', select: { id: true } }).execute() -db.platformInternalSecret.create({ data: { annotations: '', description: '', labels: '', name: '', realm: '', retiredAt: '', rotatedAt: '' }, select: { id: true } }).execute() db.platformInternalSecret.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute() db.platformInternalSecret.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.platformInternalSecret.findMany({ select: { id: true, annotations: true } }).execute(); ``` - -### Create a platformInternalSecret - -```typescript -const item = await db.platformInternalSecret.create({ - data: { annotations: '', description: '', labels: '', name: '', realm: '', retiredAt: '', rotatedAt: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-config/references/platform-secret.md b/.agents/skills/orm-config/references/platform-secret.md index 93a09b98be..6b8d3bde04 100644 --- a/.agents/skills/orm-config/references/platform-secret.md +++ b/.agents/skills/orm-config/references/platform-secret.md @@ -9,7 +9,6 @@ ORM operations for PlatformSecret records ```typescript db.platformSecret.findMany({ select: { id: true } }).execute() db.platformSecret.findOne({ id: '', select: { id: true } }).execute() -db.platformSecret.create({ data: { annotations: '', description: '', labels: '', name: '', namespaceId: '', provider: '', realm: '', retiredAt: '', rotatedAt: '' }, select: { id: true } }).execute() db.platformSecret.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute() db.platformSecret.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.platformSecret.findMany({ select: { id: true, annotations: true } }).execute(); ``` - -### Create a platformSecret - -```typescript -const item = await db.platformSecret.create({ - data: { annotations: '', description: '', labels: '', name: '', namespaceId: '', provider: '', realm: '', retiredAt: '', rotatedAt: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-config/references/secret.md b/.agents/skills/orm-config/references/secret.md index 413b3a245b..0b13502c6b 100644 --- a/.agents/skills/orm-config/references/secret.md +++ b/.agents/skills/orm-config/references/secret.md @@ -9,7 +9,6 @@ ORM operations for Secret records ```typescript db.secret.findMany({ select: { id: true } }).execute() db.secret.findOne({ id: '', select: { id: true } }).execute() -db.secret.create({ data: { annotations: '', databaseId: '', description: '', labels: '', name: '', namespaceId: '', provider: '', realm: '', retiredAt: '', rotatedAt: '' }, select: { id: true } }).execute() db.secret.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute() db.secret.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.secret.findMany({ select: { id: true, annotations: true } }).execute(); ``` - -### Create a secret - -```typescript -const item = await db.secret.create({ - data: { annotations: '', databaseId: '', description: '', labels: '', name: '', namespaceId: '', provider: '', realm: '', retiredAt: '', rotatedAt: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-infra/references/infra-commit.md b/.agents/skills/orm-infra/references/infra-commit.md deleted file mode 100644 index 53367f5d62..0000000000 --- a/.agents/skills/orm-infra/references/infra-commit.md +++ /dev/null @@ -1,34 +0,0 @@ -# infraCommit - - - -Commit history — each commit snapshots a tree root for a store - -## Usage - -```typescript -db.infraCommit.findMany({ select: { id: true } }).execute() -db.infraCommit.findOne({ id: '', select: { id: true } }).execute() -db.infraCommit.create({ data: { authorId: '', committerId: '', date: '', message: '', parentIds: '', scopeId: '', storeId: '', treeId: '' }, select: { id: true } }).execute() -db.infraCommit.update({ where: { id: '' }, data: { authorId: '' }, select: { id: true } }).execute() -db.infraCommit.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all infraCommit records - -```typescript -const items = await db.infraCommit.findMany({ - select: { id: true, authorId: true } -}).execute(); -``` - -### Create a infraCommit - -```typescript -const item = await db.infraCommit.create({ - data: { authorId: '', committerId: '', date: '', message: '', parentIds: '', scopeId: '', storeId: '', treeId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-infra/references/infra-get-all-record.md b/.agents/skills/orm-infra/references/infra-get-all-record.md deleted file mode 100644 index 8db0b5c3ef..0000000000 --- a/.agents/skills/orm-infra/references/infra-get-all-record.md +++ /dev/null @@ -1,34 +0,0 @@ -# infraGetAllRecord - - - -ORM operations for InfraGetAllRecord records - -## Usage - -```typescript -db.infraGetAllRecord.findMany({ select: { id: true } }).execute() -db.infraGetAllRecord.findOne({ id: '', select: { id: true } }).execute() -db.infraGetAllRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute() -db.infraGetAllRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute() -db.infraGetAllRecord.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all infraGetAllRecord records - -```typescript -const items = await db.infraGetAllRecord.findMany({ - select: { id: true, data: true } -}).execute(); -``` - -### Create a infraGetAllRecord - -```typescript -const item = await db.infraGetAllRecord.create({ - data: { data: '', path: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-infra/references/infra-init-empty-repo.md b/.agents/skills/orm-infra/references/infra-init-empty-repo.md deleted file mode 100644 index fdacb51068..0000000000 --- a/.agents/skills/orm-infra/references/infra-init-empty-repo.md +++ /dev/null @@ -1,19 +0,0 @@ -# infraInitEmptyRepo - - - -Execute the infraInitEmptyRepo mutation - -## Usage - -```typescript -db.mutation.infraInitEmptyRepo({ input: { sId: '', storeId: '' } }).execute() -``` - -## Examples - -### Run infraInitEmptyRepo - -```typescript -const result = await db.mutation.infraInitEmptyRepo({ input: { sId: '', storeId: '' } }).execute(); -``` diff --git a/.agents/skills/orm-infra/references/infra-insert-node-at-path.md b/.agents/skills/orm-infra/references/infra-insert-node-at-path.md deleted file mode 100644 index b9e0ae97db..0000000000 --- a/.agents/skills/orm-infra/references/infra-insert-node-at-path.md +++ /dev/null @@ -1,19 +0,0 @@ -# infraInsertNodeAtPath - - - -Execute the infraInsertNodeAtPath mutation - -## Usage - -```typescript -db.mutation.infraInsertNodeAtPath({ input: '' }).execute() -``` - -## Examples - -### Run infraInsertNodeAtPath - -```typescript -const result = await db.mutation.infraInsertNodeAtPath({ input: '' }).execute(); -``` diff --git a/.agents/skills/orm-infra/references/infra-object.md b/.agents/skills/orm-infra/references/infra-object.md deleted file mode 100644 index 161ff82af8..0000000000 --- a/.agents/skills/orm-infra/references/infra-object.md +++ /dev/null @@ -1,34 +0,0 @@ -# infraObject - - - -Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children - -## Usage - -```typescript -db.infraObject.findMany({ select: { id: true } }).execute() -db.infraObject.findOne({ id: '', select: { id: true } }).execute() -db.infraObject.create({ data: { data: '', kids: '', ktree: '', scopeId: '' }, select: { id: true } }).execute() -db.infraObject.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute() -db.infraObject.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all infraObject records - -```typescript -const items = await db.infraObject.findMany({ - select: { id: true, data: true } -}).execute(); -``` - -### Create a infraObject - -```typescript -const item = await db.infraObject.create({ - data: { data: '', kids: '', ktree: '', scopeId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-infra/references/infra-ref.md b/.agents/skills/orm-infra/references/infra-ref.md deleted file mode 100644 index 08a9466978..0000000000 --- a/.agents/skills/orm-infra/references/infra-ref.md +++ /dev/null @@ -1,34 +0,0 @@ -# infraRef - - - -Branch heads — mutable pointers into the commit chain - -## Usage - -```typescript -db.infraRef.findMany({ select: { id: true } }).execute() -db.infraRef.findOne({ id: '', select: { id: true } }).execute() -db.infraRef.create({ data: { commitId: '', name: '', scopeId: '', storeId: '' }, select: { id: true } }).execute() -db.infraRef.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute() -db.infraRef.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all infraRef records - -```typescript -const items = await db.infraRef.findMany({ - select: { id: true, commitId: true } -}).execute(); -``` - -### Create a infraRef - -```typescript -const item = await db.infraRef.create({ - data: { commitId: '', name: '', scopeId: '', storeId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-infra/references/infra-set-data-at-path.md b/.agents/skills/orm-infra/references/infra-set-data-at-path.md deleted file mode 100644 index 1720950763..0000000000 --- a/.agents/skills/orm-infra/references/infra-set-data-at-path.md +++ /dev/null @@ -1,19 +0,0 @@ -# infraSetDataAtPath - - - -Execute the infraSetDataAtPath mutation - -## Usage - -```typescript -db.mutation.infraSetDataAtPath({ input: { data: '', path: '', root: '', sId: '' } }).execute() -``` - -## Examples - -### Run infraSetDataAtPath - -```typescript -const result = await db.mutation.infraSetDataAtPath({ input: { data: '', path: '', root: '', sId: '' } }).execute(); -``` diff --git a/.agents/skills/orm-infra/references/infra-store.md b/.agents/skills/orm-infra/references/infra-store.md deleted file mode 100644 index 101cd3a987..0000000000 --- a/.agents/skills/orm-infra/references/infra-store.md +++ /dev/null @@ -1,34 +0,0 @@ -# infraStore - - - -Named stores — one per version-controlled tree (e.g. one graph, one definition set) - -## Usage - -```typescript -db.infraStore.findMany({ select: { id: true } }).execute() -db.infraStore.findOne({ id: '', select: { id: true } }).execute() -db.infraStore.create({ data: { hash: '', name: '', scopeId: '' }, select: { id: true } }).execute() -db.infraStore.update({ where: { id: '' }, data: { hash: '' }, select: { id: true } }).execute() -db.infraStore.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all infraStore records - -```typescript -const items = await db.infraStore.findMany({ - select: { id: true, hash: true } -}).execute(); -``` - -### Create a infraStore - -```typescript -const item = await db.infraStore.create({ - data: { hash: '', name: '', scopeId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-infra/references/platform-infra-get-all-tree-nodes-record.md b/.agents/skills/orm-infra/references/platform-infra-get-all-tree-nodes-record.md index c2617deed0..a69075b97a 100644 --- a/.agents/skills/orm-infra/references/platform-infra-get-all-tree-nodes-record.md +++ b/.agents/skills/orm-infra/references/platform-infra-get-all-tree-nodes-record.md @@ -9,7 +9,6 @@ ORM operations for PlatformInfraGetAllTreeNodesRecord records ```typescript db.platformInfraGetAllTreeNodesRecord.findMany({ select: { id: true } }).execute() db.platformInfraGetAllTreeNodesRecord.findOne({ id: '', select: { id: true } }).execute() -db.platformInfraGetAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute() db.platformInfraGetAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute() db.platformInfraGetAllTreeNodesRecord.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.platformInfraGetAllTreeNodesRecord.findMany({ select: { id: true, data: true } }).execute(); ``` - -### Create a platformInfraGetAllTreeNodesRecord - -```typescript -const item = await db.platformInfraGetAllTreeNodesRecord.create({ - data: { data: '', path: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-modules/references/blueprint-construction.md b/.agents/skills/orm-modules/references/blueprint-construction.md index 9c081fe747..733eb3569a 100644 --- a/.agents/skills/orm-modules/references/blueprint-construction.md +++ b/.agents/skills/orm-modules/references/blueprint-construction.md @@ -2,14 +2,14 @@ -Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts. +Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here as pending and a blueprint:construct job builds it in the background. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts, including failed ones. ## Usage ```typescript db.blueprintConstruction.findMany({ select: { id: true } }).execute() db.blueprintConstruction.findOne({ id: '', select: { id: true } }).execute() -db.blueprintConstruction.create({ data: { blueprintId: '', constructedAt: '', constructedDefinition: '', databaseId: '', schemaId: '', status: '', tableMap: '' }, select: { id: true } }).execute() +db.blueprintConstruction.create({ data: { blueprintId: '', constructedAt: '', constructedDefinition: '', databaseId: '', error: '', schemaId: '', status: '', tableMap: '' }, select: { id: true } }).execute() db.blueprintConstruction.update({ where: { id: '' }, data: { blueprintId: '' }, select: { id: true } }).execute() db.blueprintConstruction.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.blueprintConstruction.findMany({ ```typescript const item = await db.blueprintConstruction.create({ - data: { blueprintId: '', constructedAt: '', constructedDefinition: '', databaseId: '', schemaId: '', status: '', tableMap: '' }, + data: { blueprintId: '', constructedAt: '', constructedDefinition: '', databaseId: '', error: '', schemaId: '', status: '', tableMap: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/config-secrets-module.md b/.agents/skills/orm-modules/references/config-secrets-module.md deleted file mode 100644 index 76552d5f33..0000000000 --- a/.agents/skills/orm-modules/references/config-secrets-module.md +++ /dev/null @@ -1,36 +0,0 @@ -# configSecretsModule - - - -Entity-aware PGP-encrypted key-value config/secrets module. Supports app-level (admin-only) - and org-scoped (per-org secrets with manage_secrets permission) via the scope column. - User-scoped bcrypt credentials are handled by user_credentials_module. - -## Usage - -```typescript -db.configSecretsModule.findMany({ select: { id: true } }).execute() -db.configSecretsModule.findOne({ id: '', select: { id: true } }).execute() -db.configSecretsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', configDefinitionsTableId: '', tableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', hasConfig: '' }, select: { id: true } }).execute() -db.configSecretsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.configSecretsModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all configSecretsModule records - -```typescript -const items = await db.configSecretsModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a configSecretsModule - -```typescript -const item = await db.configSecretsModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', configDefinitionsTableId: '', tableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', hasConfig: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-modules/references/config-secrets-org-module.md b/.agents/skills/orm-modules/references/config-secrets-org-module.md deleted file mode 100644 index fd5bfcd4de..0000000000 --- a/.agents/skills/orm-modules/references/config-secrets-org-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# configSecretsOrgModule - - - -Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. - -## Usage - -```typescript -db.configSecretsOrgModule.findMany({ select: { id: true } }).execute() -db.configSecretsOrgModule.findOne({ id: '', select: { id: true } }).execute() -db.configSecretsOrgModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() -db.configSecretsOrgModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.configSecretsOrgModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all configSecretsOrgModule records - -```typescript -const items = await db.configSecretsOrgModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a configSecretsOrgModule - -```typescript -const item = await db.configSecretsOrgModule.create({ - data: { databaseId: '', schemaId: '', tableId: '', tableName: '', apiName: '', privateApiName: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-modules/references/config-secrets-user-module.md b/.agents/skills/orm-modules/references/config-secrets-user-module.md deleted file mode 100644 index b2a4698bf0..0000000000 --- a/.agents/skills/orm-modules/references/config-secrets-user-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# configSecretsUserModule - - - -ORM operations for ConfigSecretsUserModule records - -## Usage - -```typescript -db.configSecretsUserModule.findMany({ select: { id: true } }).execute() -db.configSecretsUserModule.findOne({ id: '', select: { id: true } }).execute() -db.configSecretsUserModule.create({ data: { apiName: '', databaseId: '', entityField: '', privateApiName: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute() -db.configSecretsUserModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute() -db.configSecretsUserModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all configSecretsUserModule records - -```typescript -const items = await db.configSecretsUserModule.findMany({ - select: { id: true, apiName: true } -}).execute(); -``` - -### Create a configSecretsUserModule - -```typescript -const item = await db.configSecretsUserModule.create({ - data: { apiName: '', databaseId: '', entityField: '', privateApiName: '', schemaId: '', tableId: '', tableName: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-modules/references/construct-blueprint.md b/.agents/skills/orm-modules/references/construct-blueprint.md index 7e05c41c57..a35f495b7b 100644 --- a/.agents/skills/orm-modules/references/construct-blueprint.md +++ b/.agents/skills/orm-modules/references/construct-blueprint.md @@ -2,7 +2,7 @@ -Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). A table entry either names its table (table_name plus optional schema_name) or references one an installed module generated ("module": {"type": "agent", "scope": "org", "table": "message"}), which resolves through the module row's recorded table ids and raises when it matches nothing instead of creating an empty table. After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID. A failure raises its coded error to the caller and rolls back the whole construction, including the construction record. +Requests a build of a blueprint: snapshots its definition into a pending blueprint_construction row, enqueues the blueprint:construct job that runs metaschema_private.construct_blueprint_run on it, and returns the construction id immediately. Poll the row: pending -> constructing -> constructed (table_map populated) or failed (error holds the coded error). schema_id is the default schema for tables without an explicit schema_name. ## Usage diff --git a/.agents/skills/orm-modules/references/db-usage-module.md b/.agents/skills/orm-modules/references/db-usage-module.md index aeb0ddb80d..5617611596 100644 --- a/.agents/skills/orm-modules/references/db-usage-module.md +++ b/.agents/skills/orm-modules/references/db-usage-module.md @@ -9,7 +9,7 @@ ORM operations for DbUsageModule records ```typescript db.dbUsageModule.findMany({ select: { id: true } }).execute() db.dbUsageModule.findOne({ id: '', select: { id: true } }).execute() -db.dbUsageModule.create({ data: { apiName: '', collectDbQueryStatsFunction: '', collectDbTableStatsFunction: '', databaseId: '', defaultCapabilities: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsSummaryTableId: '', queryStatsSummaryTableName: '', retention: '', rollupDbQueryStatsUsageSummaryFunction: '', rollupDbTableStatsUsageSummaryFunction: '', schemaId: '', scope: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsSummaryTableId: '', tableStatsSummaryTableName: '' }, select: { id: true } }).execute() +db.dbUsageModule.create({ data: { apiName: '', collectDbQueryStatsFunction: '', collectDbTableStatsFunction: '', databaseId: '', defaultCapabilities: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsSummaryTableId: '', queryStatsSummaryTableName: '', readDbQueryStatsUsagePeriodFunction: '', readDbTableStatsUsagePeriodFunction: '', retention: '', rollupDbQueryStatsUsageSummaryFunction: '', rollupDbTableStatsUsageSummaryFunction: '', schemaId: '', scope: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsSummaryTableId: '', tableStatsSummaryTableName: '' }, select: { id: true } }).execute() db.dbUsageModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute() db.dbUsageModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.dbUsageModule.findMany({ ```typescript const item = await db.dbUsageModule.create({ - data: { apiName: '', collectDbQueryStatsFunction: '', collectDbTableStatsFunction: '', databaseId: '', defaultCapabilities: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsSummaryTableId: '', queryStatsSummaryTableName: '', retention: '', rollupDbQueryStatsUsageSummaryFunction: '', rollupDbTableStatsUsageSummaryFunction: '', schemaId: '', scope: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsSummaryTableId: '', tableStatsSummaryTableName: '' }, + data: { apiName: '', collectDbQueryStatsFunction: '', collectDbTableStatsFunction: '', databaseId: '', defaultCapabilities: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsSummaryTableId: '', queryStatsSummaryTableName: '', readDbQueryStatsUsagePeriodFunction: '', readDbTableStatsUsagePeriodFunction: '', retention: '', rollupDbQueryStatsUsageSummaryFunction: '', rollupDbTableStatsUsageSummaryFunction: '', schemaId: '', scope: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsSummaryTableId: '', tableStatsSummaryTableName: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/domain-module.md b/.agents/skills/orm-modules/references/domain-module.md index 894c368280..821ed6b9b8 100644 --- a/.agents/skills/orm-modules/references/domain-module.md +++ b/.agents/skills/orm-modules/references/domain-module.md @@ -9,7 +9,7 @@ ORM operations for DomainModule records ```typescript db.domainModule.findMany({ select: { id: true } }).execute() db.domainModule.findOne({ id: '', select: { id: true } }).execute() -db.domainModule.create({ data: { apiName: '', catalogModuleId: '', databaseId: '', defaultCapabilities: '', domainEventsTableId: '', domainEventsTableName: '', domainVerificationsTableId: '', domainVerificationsTableName: '', domainsTableId: '', domainsTableName: '', entityField: '', entityTableId: '', managedDomainsTableId: '', managedDomainsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute() +db.domainModule.create({ data: { apiName: '', catalogModuleId: '', databaseId: '', defaultCapabilities: '', defaultReservedSubdomains: '', domainEventsTableId: '', domainEventsTableName: '', domainVerificationsTableId: '', domainVerificationsTableName: '', domainsTableId: '', domainsTableName: '', entityField: '', entityTableId: '', managedDomainsTableId: '', managedDomainsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', reservedSubdomainsTableId: '', reservedSubdomainsTableName: '', schemaId: '', scope: '', sweepUnverifiedDomainsFunction: '' }, select: { id: true } }).execute() db.domainModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute() db.domainModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.domainModule.findMany({ ```typescript const item = await db.domainModule.create({ - data: { apiName: '', catalogModuleId: '', databaseId: '', defaultCapabilities: '', domainEventsTableId: '', domainEventsTableName: '', domainVerificationsTableId: '', domainVerificationsTableName: '', domainsTableId: '', domainsTableName: '', entityField: '', entityTableId: '', managedDomainsTableId: '', managedDomainsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, + data: { apiName: '', catalogModuleId: '', databaseId: '', defaultCapabilities: '', defaultReservedSubdomains: '', domainEventsTableId: '', domainEventsTableName: '', domainVerificationsTableId: '', domainVerificationsTableName: '', domainsTableId: '', domainsTableName: '', entityField: '', entityTableId: '', managedDomainsTableId: '', managedDomainsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', reservedSubdomainsTableId: '', reservedSubdomainsTableName: '', schemaId: '', scope: '', sweepUnverifiedDomainsFunction: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/http-route-module.md b/.agents/skills/orm-modules/references/http-route-module.md deleted file mode 100644 index 6bc6ff95b3..0000000000 --- a/.agents/skills/orm-modules/references/http-route-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# httpRouteModule - - - -ORM operations for HttpRouteModule records - -## Usage - -```typescript -db.httpRouteModule.findMany({ select: { id: true } }).execute() -db.httpRouteModule.findOne({ id: '', select: { id: true } }).execute() -db.httpRouteModule.create({ data: { apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', functionModuleId: '', httpRoutesTableId: '', httpRoutesTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', resolverFunctionName: '', resourceModuleId: '', schemaId: '', scope: '', storageModuleId: '' }, select: { id: true } }).execute() -db.httpRouteModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute() -db.httpRouteModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all httpRouteModule records - -```typescript -const items = await db.httpRouteModule.findMany({ - select: { id: true, apiName: true } -}).execute(); -``` - -### Create a httpRouteModule - -```typescript -const item = await db.httpRouteModule.create({ - data: { apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', functionModuleId: '', httpRoutesTableId: '', httpRoutesTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', resolverFunctionName: '', resourceModuleId: '', schemaId: '', scope: '', storageModuleId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-modules/references/permissions-module.md b/.agents/skills/orm-modules/references/permissions-module.md deleted file mode 100644 index fe488443fe..0000000000 --- a/.agents/skills/orm-modules/references/permissions-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# permissionsModule - - - -ORM operations for PermissionsModule records - -## Usage - -```typescript -db.permissionsModule.findMany({ select: { id: true } }).execute() -db.permissionsModule.findOne({ id: '', select: { id: true } }).execute() -db.permissionsModule.create({ data: { actorTableId: '', apiName: '', bitlen: '', databaseId: '', defaultTableId: '', defaultTableName: '', entityField: '', entityTableId: '', getByMask: '', getMask: '', getMaskByName: '', getPaddedMask: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', schemaId: '', scope: '', tableId: '', tableName: '' }, select: { id: true } }).execute() -db.permissionsModule.update({ where: { id: '' }, data: { actorTableId: '' }, select: { id: true } }).execute() -db.permissionsModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all permissionsModule records - -```typescript -const items = await db.permissionsModule.findMany({ - select: { id: true, actorTableId: true } -}).execute(); -``` - -### Create a permissionsModule - -```typescript -const item = await db.permissionsModule.create({ - data: { actorTableId: '', apiName: '', bitlen: '', databaseId: '', defaultTableId: '', defaultTableName: '', entityField: '', entityTableId: '', getByMask: '', getMask: '', getMaskByName: '', getPaddedMask: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', schemaId: '', scope: '', tableId: '', tableName: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-modules/references/provision-check-constraint.md b/.agents/skills/orm-modules/references/provision-check-constraint.md deleted file mode 100644 index c2a250ac2c..0000000000 --- a/.agents/skills/orm-modules/references/provision-check-constraint.md +++ /dev/null @@ -1,19 +0,0 @@ -# provisionCheckConstraint - - - -Creates a check constraint on a table from a $type + data blueprint definition. Supports: CheckOneOf (enum validation via = ANY(ARRAY[...])), CheckGreaterThan (single-column > value or cross-column), CheckLessThan (single-column < value or cross-column), CheckNotEqual (cross-column inequality). Builds AST expressions via ast_helpers and inserts into metaschema_public.check_constraint. Graceful: skips if a constraint with the same name already exists. - -## Usage - -```typescript -db.mutation.provisionCheckConstraint({ input: { databaseId: '', definition: '', tableId: '' } }).execute() -``` - -## Examples - -### Run provisionCheckConstraint - -```typescript -const result = await db.mutation.provisionCheckConstraint({ input: { databaseId: '', definition: '', tableId: '' } }).execute(); -``` diff --git a/.agents/skills/orm-modules/references/provision-full-text-search.md b/.agents/skills/orm-modules/references/provision-full-text-search.md deleted file mode 100644 index a6aabea43a..0000000000 --- a/.agents/skills/orm-modules/references/provision-full-text-search.md +++ /dev/null @@ -1,19 +0,0 @@ -# provisionFullTextSearch - - - -Creates a full-text search configuration on a table. Accepts a jsonb definition with field (tsvector column name) and sources (array of {field, weight, lang}). Graceful: skips if FTS config already exists for the same (table_id, field_id). Returns the fts_id. - -## Usage - -```typescript -db.mutation.provisionFullTextSearch({ input: { databaseId: '', definition: '', tableId: '' } }).execute() -``` - -## Examples - -### Run provisionFullTextSearch - -```typescript -const result = await db.mutation.provisionFullTextSearch({ input: { databaseId: '', definition: '', tableId: '' } }).execute(); -``` diff --git a/.agents/skills/orm-modules/references/provision-index.md b/.agents/skills/orm-modules/references/provision-index.md deleted file mode 100644 index 9912783834..0000000000 --- a/.agents/skills/orm-modules/references/provision-index.md +++ /dev/null @@ -1,19 +0,0 @@ -# provisionIndex - - - -Creates an index on a table. Accepts a jsonb definition with columns (array of names or single column string), access_method (default BTREE), is_unique, op_classes, options, and name (auto-generated if omitted). Graceful: skips if an index with the same (table_id, field_ids, access_method) already exists. Returns the index_id. - -## Usage - -```typescript -db.mutation.provisionIndex({ input: { databaseId: '', definition: '', tableId: '' } }).execute() -``` - -## Examples - -### Run provisionIndex - -```typescript -const result = await db.mutation.provisionIndex({ input: { databaseId: '', definition: '', tableId: '' } }).execute(); -``` diff --git a/.agents/skills/orm-modules/references/provision-relation.md b/.agents/skills/orm-modules/references/provision-relation.md deleted file mode 100644 index 61b6712cf8..0000000000 --- a/.agents/skills/orm-modules/references/provision-relation.md +++ /dev/null @@ -1,19 +0,0 @@ -# provisionRelation - - - -Composable relation provisioning: creates FK fields, indexes, unique constraints, and junction tables depending on the relation_type. Supports RelationBelongsTo, RelationHasOne, RelationHasMany, and RelationManyToMany. ManyToMany uses provision_table() internally for junction table creation with full node/grant/policy support. All operations are graceful (skip existing). Returns (out_field_id, out_junction_table_id, out_source_field_id, out_target_field_id). - -## Usage - -```typescript -db.mutation.provisionRelation({ input: '' }).execute() -``` - -## Examples - -### Run provisionRelation - -```typescript -const result = await db.mutation.provisionRelation({ input: '' }).execute(); -``` diff --git a/.agents/skills/orm-modules/references/provision-spatial-relation.md b/.agents/skills/orm-modules/references/provision-spatial-relation.md deleted file mode 100644 index 78407861b1..0000000000 --- a/.agents/skills/orm-modules/references/provision-spatial-relation.md +++ /dev/null @@ -1,19 +0,0 @@ -# provisionSpatialRelation - - - -Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row declaring a spatial predicate between two geometry/geography columns (owner and target). Called from construct_blueprint when a relation entry has $type=RelationSpatial. Graceful: re-running with the same (source_table_id, name) returns the existing id without modifying the row. Operator whitelist and st_dwithin ↔ param_name pairing are enforced by the spatial_relation table CHECKs. Both fields must already exist — this is a metadata-only insert. - -## Usage - -```typescript -db.mutation.provisionSpatialRelation({ input: '' }).execute() -``` - -## Examples - -### Run provisionSpatialRelation - -```typescript -const result = await db.mutation.provisionSpatialRelation({ input: '' }).execute(); -``` diff --git a/.agents/skills/orm-modules/references/provision-table.md b/.agents/skills/orm-modules/references/provision-table.md deleted file mode 100644 index e8989d30c3..0000000000 --- a/.agents/skills/orm-modules/references/provision-table.md +++ /dev/null @@ -1,19 +0,0 @@ -# provisionTable - - - -Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). - -## Usage - -```typescript -db.mutation.provisionTable({ input: '' }).execute() -``` - -## Examples - -### Run provisionTable - -```typescript -const result = await db.mutation.provisionTable({ input: '' }).execute(); -``` diff --git a/.agents/skills/orm-modules/references/provision-unique-constraint.md b/.agents/skills/orm-modules/references/provision-unique-constraint.md deleted file mode 100644 index c0c483d1e3..0000000000 --- a/.agents/skills/orm-modules/references/provision-unique-constraint.md +++ /dev/null @@ -1,19 +0,0 @@ -# provisionUniqueConstraint - - - -Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists. - -## Usage - -```typescript -db.mutation.provisionUniqueConstraint({ input: { databaseId: '', definition: '', tableId: '' } }).execute() -``` - -## Examples - -### Run provisionUniqueConstraint - -```typescript -const result = await db.mutation.provisionUniqueConstraint({ input: { databaseId: '', definition: '', tableId: '' } }).execute(); -``` diff --git a/.agents/skills/orm-modules/references/resolve-blueprint-field.md b/.agents/skills/orm-modules/references/resolve-blueprint-field.md deleted file mode 100644 index 83229f6625..0000000000 --- a/.agents/skills/orm-modules/references/resolve-blueprint-field.md +++ /dev/null @@ -1,19 +0,0 @@ -# resolveBlueprintField - - - -Resolves a field_name within a given table_id to a field_id. Throws if no match is found. Used by construct_blueprint to translate user-authored field names (e.g. "location") into field UUIDs for downstream provisioning procedures. table_id must already be resolved (via resolve_blueprint_table) before calling this. - -## Usage - -```typescript -db.query.resolveBlueprintField({ databaseId: '', fieldName: '', tableId: '' }).execute() -``` - -## Examples - -### Run resolveBlueprintField - -```typescript -const result = await db.query.resolveBlueprintField({ databaseId: '', fieldName: '', tableId: '' }).execute(); -``` diff --git a/.agents/skills/orm-modules/references/resolve-blueprint-table.md b/.agents/skills/orm-modules/references/resolve-blueprint-table.md deleted file mode 100644 index e834bcbc49..0000000000 --- a/.agents/skills/orm-modules/references/resolve-blueprint-table.md +++ /dev/null @@ -1,19 +0,0 @@ -# resolveBlueprintTable - - - -Resolves a table_name (with optional schema_name) to a table_id. Resolution order: (1) if schema_name provided, exact lookup via metaschema_public.schema.name + metaschema_public.table; (2) check local table_map (tables created in current blueprint); (3) search metaschema_public.table by name across all schemas; (4) if multiple matches, throw ambiguous error asking for schema_name; (5) if no match, throw not-found error. - -## Usage - -```typescript -db.query.resolveBlueprintTable({ databaseId: '', defaultSchemaId: '', schemaName: '', tableMap: '', tableName: '' }).execute() -``` - -## Examples - -### Run resolveBlueprintTable - -```typescript -const result = await db.query.resolveBlueprintTable({ databaseId: '', defaultSchemaId: '', schemaName: '', tableMap: '', tableName: '' }).execute(); -``` diff --git a/.agents/skills/orm-modules/references/resource-module.md b/.agents/skills/orm-modules/references/resource-module.md index 7456fd88b2..6454c3f735 100644 --- a/.agents/skills/orm-modules/references/resource-module.md +++ b/.agents/skills/orm-modules/references/resource-module.md @@ -9,7 +9,7 @@ ORM operations for ResourceModule records ```typescript db.resourceModule.findMany({ select: { id: true } }).execute() db.resourceModule.findOne({ id: '', select: { id: true } }).execute() -db.resourceModule.create({ data: { apiName: '', builderBindingsTableId: '', builderBindingsTableName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', installationStoreName: '', merkleStoreModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', registryBindingsTableId: '', registryBindingsTableName: '', requirementsStateViewName: '', resolvedRequirementsViewName: '', resourceBillingRollupFunction: '', resourceDefinitionsTableId: '', resourceDefinitionsTableName: '', resourceEventsTableId: '', resourceEventsTableName: '', resourceInstallationsTableId: '', resourceInstallationsTableName: '', resourceStatusChecksTableId: '', resourceStatusChecksTableName: '', resourceUsageLogTableId: '', resourceUsageLogTableName: '', resourceUsageSummaryTableId: '', resourceUsageSummaryTableName: '', resourcesTableId: '', resourcesTableName: '', rollupResourceUsageSummaryFunction: '', schemaId: '', scope: '' }, select: { id: true } }).execute() +db.resourceModule.create({ data: { apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', installationStoreName: '', merkleStoreModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', registryBindingsTableId: '', registryBindingsTableName: '', requirementsStateViewName: '', resolvedRequirementsViewName: '', resourceBillingRollupFunction: '', resourceDefinitionsTableId: '', resourceDefinitionsTableName: '', resourceEventsTableId: '', resourceEventsTableName: '', resourceInstallationsTableId: '', resourceInstallationsTableName: '', resourceStatusChecksTableId: '', resourceStatusChecksTableName: '', resourceUsageLogTableId: '', resourceUsageLogTableName: '', resourceUsageSummaryTableId: '', resourceUsageSummaryTableName: '', resourcesTableId: '', resourcesTableName: '', rollupResourceUsageSummaryFunction: '', schemaId: '', scope: '', serviceBindingsTableId: '', serviceBindingsTableName: '' }, select: { id: true } }).execute() db.resourceModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute() db.resourceModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.resourceModule.findMany({ ```typescript const item = await db.resourceModule.create({ - data: { apiName: '', builderBindingsTableId: '', builderBindingsTableName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', installationStoreName: '', merkleStoreModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', registryBindingsTableId: '', registryBindingsTableName: '', requirementsStateViewName: '', resolvedRequirementsViewName: '', resourceBillingRollupFunction: '', resourceDefinitionsTableId: '', resourceDefinitionsTableName: '', resourceEventsTableId: '', resourceEventsTableName: '', resourceInstallationsTableId: '', resourceInstallationsTableName: '', resourceStatusChecksTableId: '', resourceStatusChecksTableName: '', resourceUsageLogTableId: '', resourceUsageLogTableName: '', resourceUsageSummaryTableId: '', resourceUsageSummaryTableName: '', resourcesTableId: '', resourcesTableName: '', rollupResourceUsageSummaryFunction: '', schemaId: '', scope: '' }, + data: { apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', installationStoreName: '', merkleStoreModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', registryBindingsTableId: '', registryBindingsTableName: '', requirementsStateViewName: '', resolvedRequirementsViewName: '', resourceBillingRollupFunction: '', resourceDefinitionsTableId: '', resourceDefinitionsTableName: '', resourceEventsTableId: '', resourceEventsTableName: '', resourceInstallationsTableId: '', resourceInstallationsTableName: '', resourceStatusChecksTableId: '', resourceStatusChecksTableName: '', resourceUsageLogTableId: '', resourceUsageLogTableName: '', resourceUsageSummaryTableId: '', resourceUsageSummaryTableName: '', resourcesTableId: '', resourcesTableName: '', rollupResourceUsageSummaryFunction: '', schemaId: '', scope: '', serviceBindingsTableId: '', serviceBindingsTableName: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/storage-log-module.md b/.agents/skills/orm-modules/references/storage-log-module.md index d6808a3fbc..db5b8fec57 100644 --- a/.agents/skills/orm-modules/references/storage-log-module.md +++ b/.agents/skills/orm-modules/references/storage-log-module.md @@ -9,7 +9,7 @@ ORM operations for StorageLogModule records ```typescript db.storageLogModule.findMany({ select: { id: true } }).execute() db.storageLogModule.findOne({ id: '', select: { id: true } }).execute() -db.storageLogModule.create({ data: { apiName: '', databaseId: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', rollupFunctionName: '', schemaId: '', scope: '', storageLogTableId: '', storageLogTableName: '', usageSummaryTableId: '', usageSummaryTableName: '' }, select: { id: true } }).execute() +db.storageLogModule.create({ data: { apiName: '', databaseId: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', readStorageUsagePeriodFunction: '', retention: '', rollupFunctionName: '', schemaId: '', scope: '', storageLogTableId: '', storageLogTableName: '', usageSummaryTableId: '', usageSummaryTableName: '' }, select: { id: true } }).execute() db.storageLogModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute() db.storageLogModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.storageLogModule.findMany({ ```typescript const item = await db.storageLogModule.create({ - data: { apiName: '', databaseId: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', rollupFunctionName: '', schemaId: '', scope: '', storageLogTableId: '', storageLogTableName: '', usageSummaryTableId: '', usageSummaryTableName: '' }, + data: { apiName: '', databaseId: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', readStorageUsagePeriodFunction: '', retention: '', rollupFunctionName: '', schemaId: '', scope: '', storageLogTableId: '', storageLogTableName: '', usageSummaryTableId: '', usageSummaryTableName: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/storage-module.md b/.agents/skills/orm-modules/references/storage-module.md index f3e3acf8a7..63aa1177be 100644 --- a/.agents/skills/orm-modules/references/storage-module.md +++ b/.agents/skills/orm-modules/references/storage-module.md @@ -9,7 +9,7 @@ ORM operations for StorageModule records ```typescript db.storageModule.findMany({ select: { id: true } }).execute() db.storageModule.findOne({ id: '', select: { id: true } }).execute() -db.storageModule.create({ data: { allowedOrigins: '', apiName: '', bucketsTableId: '', bucketsTableName: '', cacheTtlSeconds: '', catalogModuleId: '', confirmUploadDelay: '', databaseId: '', defaultCapabilities: '', defaultMaxFileSize: '', downloadUrlExpirySeconds: '', endpoint: '', entityField: '', entityTableId: '', fileEventsTableId: '', filesTableId: '', filesTableName: '', hasAuditLog: '', hasConfirmUpload: '', hasContentHash: '', hasCustomKeys: '', hasPathShares: '', hasVersioning: '', key: '', maxBulkFiles: '', maxBulkTotalSize: '', maxFilenameLength: '', pathSharesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provider: '', provisions: '', publicSchemaName: '', publicUrlPrefix: '', region: '', restrictReads: '', schemaId: '', scope: '', uploadUrlExpirySeconds: '' }, select: { id: true } }).execute() +db.storageModule.create({ data: { allowedOrigins: '', apiName: '', bucketsTableId: '', bucketsTableName: '', cacheTtlSeconds: '', catalogModuleId: '', confirmUploadDelay: '', databaseId: '', defaultCapabilities: '', defaultMaxFileSize: '', downloadUrlExpirySeconds: '', endpoint: '', entityField: '', entityTableId: '', fileEventsTableId: '', filesTableId: '', filesTableName: '', hasAuditLog: '', hasContentHash: '', hasCustomKeys: '', hasPathShares: '', hasVersioning: '', key: '', maxBulkFiles: '', maxBulkTotalSize: '', maxFilenameLength: '', pathSharesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provider: '', provisions: '', publicSchemaName: '', publicUrlPrefix: '', region: '', restrictReads: '', schemaId: '', scope: '', uploadUrlExpirySeconds: '' }, select: { id: true } }).execute() db.storageModule.update({ where: { id: '' }, data: { allowedOrigins: '' }, select: { id: true } }).execute() db.storageModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.storageModule.findMany({ ```typescript const item = await db.storageModule.create({ - data: { allowedOrigins: '', apiName: '', bucketsTableId: '', bucketsTableName: '', cacheTtlSeconds: '', catalogModuleId: '', confirmUploadDelay: '', databaseId: '', defaultCapabilities: '', defaultMaxFileSize: '', downloadUrlExpirySeconds: '', endpoint: '', entityField: '', entityTableId: '', fileEventsTableId: '', filesTableId: '', filesTableName: '', hasAuditLog: '', hasConfirmUpload: '', hasContentHash: '', hasCustomKeys: '', hasPathShares: '', hasVersioning: '', key: '', maxBulkFiles: '', maxBulkTotalSize: '', maxFilenameLength: '', pathSharesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provider: '', provisions: '', publicSchemaName: '', publicUrlPrefix: '', region: '', restrictReads: '', schemaId: '', scope: '', uploadUrlExpirySeconds: '' }, + data: { allowedOrigins: '', apiName: '', bucketsTableId: '', bucketsTableName: '', cacheTtlSeconds: '', catalogModuleId: '', confirmUploadDelay: '', databaseId: '', defaultCapabilities: '', defaultMaxFileSize: '', downloadUrlExpirySeconds: '', endpoint: '', entityField: '', entityTableId: '', fileEventsTableId: '', filesTableId: '', filesTableName: '', hasAuditLog: '', hasContentHash: '', hasCustomKeys: '', hasPathShares: '', hasVersioning: '', key: '', maxBulkFiles: '', maxBulkTotalSize: '', maxFilenameLength: '', pathSharesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provider: '', provisions: '', publicSchemaName: '', publicUrlPrefix: '', region: '', restrictReads: '', schemaId: '', scope: '', uploadUrlExpirySeconds: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-objects/references/confirm-upload.md b/.agents/skills/orm-objects/references/confirm-upload.md deleted file mode 100644 index ff9f5d4e61..0000000000 --- a/.agents/skills/orm-objects/references/confirm-upload.md +++ /dev/null @@ -1,21 +0,0 @@ -# confirmUpload - - - -Confirm that a file has been uploaded to S3. -Verifies the object exists in S3, checks content-type, -and transitions the file status from 'pending' to 'ready'. - -## Usage - -```typescript -db.mutation.confirmUpload({ input: { fileId: '' } }).execute() -``` - -## Examples - -### Run confirmUpload - -```typescript -const result = await db.mutation.confirmUpload({ input: { fileId: '' } }).execute(); -``` diff --git a/.agents/skills/orm-objects/references/freeze-objects.md b/.agents/skills/orm-objects/references/freeze-objects.md deleted file mode 100644 index 110be1e17b..0000000000 --- a/.agents/skills/orm-objects/references/freeze-objects.md +++ /dev/null @@ -1,19 +0,0 @@ -# freezeObjects - - - -Execute the freezeObjects mutation - -## Usage - -```typescript -db.mutation.freezeObjects({ input: { databaseId: '', id: '' } }).execute() -``` - -## Examples - -### Run freezeObjects - -```typescript -const result = await db.mutation.freezeObjects({ input: { databaseId: '', id: '' } }).execute(); -``` diff --git a/.agents/skills/orm-objects/references/get-all-objects-from-root.md b/.agents/skills/orm-objects/references/get-all-objects-from-root.md deleted file mode 100644 index b7f2f7210e..0000000000 --- a/.agents/skills/orm-objects/references/get-all-objects-from-root.md +++ /dev/null @@ -1,19 +0,0 @@ -# getAllObjectsFromRoot - - - -Reads and enables pagination through a set of `Object`. - -## Usage - -```typescript -db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', offset: '', after: '' }).execute() -``` - -## Examples - -### Run getAllObjectsFromRoot - -```typescript -const result = await db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', offset: '', after: '' }).execute(); -``` diff --git a/.agents/skills/orm-objects/references/get-all-record.md b/.agents/skills/orm-objects/references/get-all-record.md deleted file mode 100644 index 8460bac17a..0000000000 --- a/.agents/skills/orm-objects/references/get-all-record.md +++ /dev/null @@ -1,34 +0,0 @@ -# getAllRecord - - - -ORM operations for GetAllRecord records - -## Usage - -```typescript -db.getAllRecord.findMany({ select: { id: true } }).execute() -db.getAllRecord.findOne({ id: '', select: { id: true } }).execute() -db.getAllRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute() -db.getAllRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute() -db.getAllRecord.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all getAllRecord records - -```typescript -const items = await db.getAllRecord.findMany({ - select: { id: true, data: true } -}).execute(); -``` - -### Create a getAllRecord - -```typescript -const item = await db.getAllRecord.create({ - data: { data: '', path: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-objects/references/get-all-tree-nodes-record.md b/.agents/skills/orm-objects/references/get-all-tree-nodes-record.md index 93d06bad2d..6e95ca0845 100644 --- a/.agents/skills/orm-objects/references/get-all-tree-nodes-record.md +++ b/.agents/skills/orm-objects/references/get-all-tree-nodes-record.md @@ -9,7 +9,6 @@ ORM operations for GetAllTreeNodesRecord records ```typescript db.getAllTreeNodesRecord.findMany({ select: { id: true } }).execute() db.getAllTreeNodesRecord.findOne({ id: '', select: { id: true } }).execute() -db.getAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute() db.getAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute() db.getAllTreeNodesRecord.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.getAllTreeNodesRecord.findMany({ select: { id: true, data: true } }).execute(); ``` - -### Create a getAllTreeNodesRecord - -```typescript -const item = await db.getAllTreeNodesRecord.create({ - data: { data: '', path: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-objects/references/get-object-at-path.md b/.agents/skills/orm-objects/references/get-object-at-path.md deleted file mode 100644 index cdf5df837b..0000000000 --- a/.agents/skills/orm-objects/references/get-object-at-path.md +++ /dev/null @@ -1,19 +0,0 @@ -# getObjectAtPath - - - -Execute the getObjectAtPath query - -## Usage - -```typescript -db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute() -``` - -## Examples - -### Run getObjectAtPath - -```typescript -const result = await db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute(); -``` diff --git a/.agents/skills/orm-objects/references/get-path-objects-from-root.md b/.agents/skills/orm-objects/references/get-path-objects-from-root.md deleted file mode 100644 index 663305d3fd..0000000000 --- a/.agents/skills/orm-objects/references/get-path-objects-from-root.md +++ /dev/null @@ -1,19 +0,0 @@ -# getPathObjectsFromRoot - - - -Reads and enables pagination through a set of `Object`. - -## Usage - -```typescript -db.query.getPathObjectsFromRoot({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }).execute() -``` - -## Examples - -### Run getPathObjectsFromRoot - -```typescript -const result = await db.query.getPathObjectsFromRoot({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }).execute(); -``` diff --git a/.agents/skills/orm-objects/references/remove-node-at-path.md b/.agents/skills/orm-objects/references/remove-node-at-path.md deleted file mode 100644 index 84d7fdbbf2..0000000000 --- a/.agents/skills/orm-objects/references/remove-node-at-path.md +++ /dev/null @@ -1,19 +0,0 @@ -# removeNodeAtPath - - - -Execute the removeNodeAtPath mutation - -## Usage - -```typescript -db.mutation.removeNodeAtPath({ input: { dbId: '', root: '', path: '' } }).execute() -``` - -## Examples - -### Run removeNodeAtPath - -```typescript -const result = await db.mutation.removeNodeAtPath({ input: { dbId: '', root: '', path: '' } }).execute(); -``` diff --git a/.agents/skills/orm-objects/references/request-upload-url.md b/.agents/skills/orm-objects/references/request-upload-url.md deleted file mode 100644 index e3c6d37ef8..0000000000 --- a/.agents/skills/orm-objects/references/request-upload-url.md +++ /dev/null @@ -1,22 +0,0 @@ -# requestUploadUrl - - - -Request a presigned URL for uploading a file directly to S3. -Client computes SHA-256 of the file content and provides it here. -If a file with the same hash already exists (dedup), returns the -existing file ID and deduplicated=true with no uploadUrl. - -## Usage - -```typescript -db.mutation.requestUploadUrl({ input: '' }).execute() -``` - -## Examples - -### Run requestUploadUrl - -```typescript -const result = await db.mutation.requestUploadUrl({ input: '' }).execute(); -``` diff --git a/.agents/skills/orm-objects/references/rev-parse.md b/.agents/skills/orm-objects/references/rev-parse.md deleted file mode 100644 index 7fffc37e47..0000000000 --- a/.agents/skills/orm-objects/references/rev-parse.md +++ /dev/null @@ -1,19 +0,0 @@ -# revParse - - - -Execute the revParse query - -## Usage - -```typescript -db.query.revParse({ dbId: '', storeId: '', refname: '' }).execute() -``` - -## Examples - -### Run revParse - -```typescript -const result = await db.query.revParse({ dbId: '', storeId: '', refname: '' }).execute(); -``` diff --git a/.agents/skills/orm-objects/references/set-props-and-commit.md b/.agents/skills/orm-objects/references/set-props-and-commit.md deleted file mode 100644 index c5573289b9..0000000000 --- a/.agents/skills/orm-objects/references/set-props-and-commit.md +++ /dev/null @@ -1,19 +0,0 @@ -# setPropsAndCommit - - - -Execute the setPropsAndCommit mutation - -## Usage - -```typescript -db.mutation.setPropsAndCommit({ input: { dbId: '', storeId: '', refname: '', path: '', data: '' } }).execute() -``` - -## Examples - -### Run setPropsAndCommit - -```typescript -const result = await db.mutation.setPropsAndCommit({ input: { dbId: '', storeId: '', refname: '', path: '', data: '' } }).execute(); -``` diff --git a/.agents/skills/orm-objects/references/update-node-at-path.md b/.agents/skills/orm-objects/references/update-node-at-path.md deleted file mode 100644 index f5d70a74a4..0000000000 --- a/.agents/skills/orm-objects/references/update-node-at-path.md +++ /dev/null @@ -1,19 +0,0 @@ -# updateNodeAtPath - - - -Execute the updateNodeAtPath mutation - -## Usage - -```typescript -db.mutation.updateNodeAtPath({ input: '' }).execute() -``` - -## Examples - -### Run updateNodeAtPath - -```typescript -const result = await db.mutation.updateNodeAtPath({ input: '' }).execute(); -``` diff --git a/.agents/skills/orm-public/SKILL.md b/.agents/skills/orm-public/SKILL.md deleted file mode 100644 index a0096e978a..0000000000 --- a/.agents/skills/orm-public/SKILL.md +++ /dev/null @@ -1,247 +0,0 @@ ---- -name: orm-public -description: ORM client for the public API — provides typed CRUD operations for 150 tables and 58 custom operations ---- - -# orm-public - - - -ORM client for the public API — provides typed CRUD operations for 150 tables and 58 custom operations - -## Usage - -```typescript -// Import the ORM client -import { db } from './orm'; - -// Available models: orgGetManagersRecord, orgGetSubordinatesRecord, appPermission, orgPermission, database, schema, table, checkConstraint, ... -db..findMany({ select: { id: true } }).execute() -db..findOne({ id: '', select: { id: true } }).execute() -db..create({ data: { ... }, select: { id: true } }).execute() -db..update({ where: { id: '' }, data: { ... }, select: { id: true } }).execute() -db..delete({ where: { id: '' } }).execute() -``` - -## Examples - -### Query records - -```typescript -const items = await db.orgGetManagersRecord.findMany({ - select: { id: true } -}).execute(); -``` - -## References - -See the `references/` directory for detailed per-entity API documentation: - -- [org-get-managers-record](references/org-get-managers-record.md) -- [org-get-subordinates-record](references/org-get-subordinates-record.md) -- [app-permission](references/app-permission.md) -- [org-permission](references/org-permission.md) -- [database](references/database.md) -- [schema](references/schema.md) -- [table](references/table.md) -- [check-constraint](references/check-constraint.md) -- [field](references/field.md) -- [spatial-relation](references/spatial-relation.md) -- [foreign-key-constraint](references/foreign-key-constraint.md) -- [full-text-search](references/full-text-search.md) -- [index](references/index.md) -- [policy](references/policy.md) -- [primary-key-constraint](references/primary-key-constraint.md) -- [table-grant](references/table-grant.md) -- [trigger](references/trigger.md) -- [unique-constraint](references/unique-constraint.md) -- [view](references/view.md) -- [view-table](references/view-table.md) -- [view-grant](references/view-grant.md) -- [view-rule](references/view-rule.md) -- [embedding-chunk](references/embedding-chunk.md) -- [secure-table-provision](references/secure-table-provision.md) -- [relation-provision](references/relation-provision.md) -- [session-secrets-module](references/session-secrets-module.md) -- [identity-providers-module](references/identity-providers-module.md) -- [realtime-module](references/realtime-module.md) -- [config-secrets-org-module](references/config-secrets-org-module.md) -- [schema-grant](references/schema-grant.md) -- [default-privilege](references/default-privilege.md) -- [enum](references/enum.md) -- [function](references/function.md) -- [api-schema](references/api-schema.md) -- [api-module](references/api-module.md) -- [domain](references/domain.md) -- [site-metadatum](references/site-metadatum.md) -- [site-module](references/site-module.md) -- [site-theme](references/site-theme.md) -- [cors-setting](references/cors-setting.md) -- [merkle-store-module](references/merkle-store-module.md) -- [graph-module](references/graph-module.md) -- [trigger-function](references/trigger-function.md) -- [partition](references/partition.md) -- [database-transfer](references/database-transfer.md) -- [api](references/api.md) -- [site](references/site.md) -- [app](references/app.md) -- [api-setting](references/api-setting.md) -- [connected-accounts-module](references/connected-accounts-module.md) -- [crypto-addresses-module](references/crypto-addresses-module.md) -- [crypto-auth-module](references/crypto-auth-module.md) -- [default-ids-module](references/default-ids-module.md) -- [denormalized-table-field](references/denormalized-table-field.md) -- [emails-module](references/emails-module.md) -- [config-secrets-user-module](references/config-secrets-user-module.md) -- [invites-module](references/invites-module.md) -- [events-module](references/events-module.md) -- [limits-module](references/limits-module.md) -- [membership-types-module](references/membership-types-module.md) -- [memberships-module](references/memberships-module.md) -- [permissions-module](references/permissions-module.md) -- [phone-numbers-module](references/phone-numbers-module.md) -- [profiles-module](references/profiles-module.md) -- [user-state-module](references/user-state-module.md) -- [sessions-module](references/sessions-module.md) -- [user-auth-module](references/user-auth-module.md) -- [users-module](references/users-module.md) -- [blueprint](references/blueprint.md) -- [blueprint-template](references/blueprint-template.md) -- [blueprint-construction](references/blueprint-construction.md) -- [storage-module](references/storage-module.md) -- [entity-type-provision](references/entity-type-provision.md) -- [webauthn-credentials-module](references/webauthn-credentials-module.md) -- [webauthn-auth-module](references/webauthn-auth-module.md) -- [notifications-module](references/notifications-module.md) -- [inference-log-module](references/inference-log-module.md) -- [compute-log-module](references/compute-log-module.md) -- [transfer-log-module](references/transfer-log-module.md) -- [storage-log-module](references/storage-log-module.md) -- [db-usage-module](references/db-usage-module.md) -- [agent-module](references/agent-module.md) -- [namespace-module](references/namespace-module.md) -- [function-module](references/function-module.md) -- [database-provision-module](references/database-provision-module.md) -- [app-admin-grant](references/app-admin-grant.md) -- [app-owner-grant](references/app-owner-grant.md) -- [app-grant](references/app-grant.md) -- [org-membership](references/org-membership.md) -- [org-member](references/org-member.md) -- [org-admin-grant](references/org-admin-grant.md) -- [org-owner-grant](references/org-owner-grant.md) -- [org-member-profile](references/org-member-profile.md) -- [org-grant](references/org-grant.md) -- [org-chart-edge](references/org-chart-edge.md) -- [org-chart-edge-grant](references/org-chart-edge-grant.md) -- [org-permission-default](references/org-permission-default.md) -- [app-limit](references/app-limit.md) -- [app-limit-credit](references/app-limit-credit.md) -- [app-limit-credit-code-item](references/app-limit-credit-code-item.md) -- [app-limit-credit-redemption](references/app-limit-credit-redemption.md) -- [org-limit](references/org-limit.md) -- [org-limit-credit](references/org-limit-credit.md) -- [org-limit-aggregate](references/org-limit-aggregate.md) -- [org-limit-warning](references/org-limit-warning.md) -- [email](references/email.md) -- [phone-number](references/phone-number.md) -- [crypto-address](references/crypto-address.md) -- [webauthn-credential](references/webauthn-credential.md) -- [app-invite](references/app-invite.md) -- [app-claimed-invite](references/app-claimed-invite.md) -- [org-invite](references/org-invite.md) -- [org-claimed-invite](references/org-claimed-invite.md) -- [audit-log-auth](references/audit-log-auth.md) -- [identity-provider](references/identity-provider.md) -- [app-permission-default](references/app-permission-default.md) -- [role-type](references/role-type.md) -- [migrate-file](references/migrate-file.md) -- [devices-module](references/devices-module.md) -- [app-membership-default](references/app-membership-default.md) -- [org-membership-default](references/org-membership-default.md) -- [node-type-registry](references/node-type-registry.md) -- [app-limit-caps-default](references/app-limit-caps-default.md) -- [org-limit-caps-default](references/org-limit-caps-default.md) -- [app-limit-cap](references/app-limit-cap.md) -- [org-limit-cap](references/org-limit-cap.md) -- [user-connected-account](references/user-connected-account.md) -- [app-limit-default](references/app-limit-default.md) -- [org-limit-default](references/org-limit-default.md) -- [app-limit-credit-code](references/app-limit-credit-code.md) -- [app-limit-warning](references/app-limit-warning.md) -- [pubkey-setting](references/pubkey-setting.md) -- [rate-limits-module](references/rate-limits-module.md) -- [membership-type](references/membership-type.md) -- [rls-setting](references/rls-setting.md) -- [rls-module](references/rls-module.md) -- [rate-limit-meters-module](references/rate-limit-meters-module.md) -- [plans-module](references/plans-module.md) -- [sql-action](references/sql-action.md) -- [database-setting](references/database-setting.md) -- [org-membership-setting](references/org-membership-setting.md) -- [app-limit-event](references/app-limit-event.md) -- [org-limit-event](references/org-limit-event.md) -- [app-membership](references/app-membership.md) -- [user](references/user.md) -- [ast-migration](references/ast-migration.md) -- [webauthn-setting](references/webauthn-setting.md) -- [billing-module](references/billing-module.md) -- [billing-provider-module](references/billing-provider-module.md) -- [hierarchy-module](references/hierarchy-module.md) -- [current-user-id](references/current-user-id.md) -- [current-user-agent](references/current-user-agent.md) -- [current-ip-address](references/current-ip-address.md) -- [require-step-up](references/require-step-up.md) -- [app-permissions-get-padded-mask](references/app-permissions-get-padded-mask.md) -- [org-permissions-get-padded-mask](references/org-permissions-get-padded-mask.md) -- [apply-registry-defaults](references/apply-registry-defaults.md) -- [resolve-blueprint-field](references/resolve-blueprint-field.md) -- [resolve-blueprint-table](references/resolve-blueprint-table.md) -- [org-is-manager-of](references/org-is-manager-of.md) -- [app-permissions-get-mask](references/app-permissions-get-mask.md) -- [org-permissions-get-mask](references/org-permissions-get-mask.md) -- [app-permissions-get-mask-by-names](references/app-permissions-get-mask-by-names.md) -- [org-permissions-get-mask-by-names](references/org-permissions-get-mask-by-names.md) -- [app-permissions-get-by-mask](references/app-permissions-get-by-mask.md) -- [org-permissions-get-by-mask](references/org-permissions-get-by-mask.md) -- [current-user](references/current-user.md) -- [send-account-deletion-email](references/send-account-deletion-email.md) -- [sign-out](references/sign-out.md) -- [accept-database-transfer](references/accept-database-transfer.md) -- [cancel-database-transfer](references/cancel-database-transfer.md) -- [reject-database-transfer](references/reject-database-transfer.md) -- [disconnect-account](references/disconnect-account.md) -- [revoke-api-key](references/revoke-api-key.md) -- [revoke-session](references/revoke-session.md) -- [verify-password](references/verify-password.md) -- [verify-totp](references/verify-totp.md) -- [submit-app-invite-code](references/submit-app-invite-code.md) -- [submit-org-invite-code](references/submit-org-invite-code.md) -- [check-password](references/check-password.md) -- [confirm-delete-account](references/confirm-delete-account.md) -- [set-password](references/set-password.md) -- [verify-email](references/verify-email.md) -- [construct-blueprint](references/construct-blueprint.md) -- [provision-new-user](references/provision-new-user.md) -- [reset-password](references/reset-password.md) -- [provision-check-constraint](references/provision-check-constraint.md) -- [provision-unique-constraint](references/provision-unique-constraint.md) -- [provision-full-text-search](references/provision-full-text-search.md) -- [provision-index](references/provision-index.md) -- [copy-template-to-blueprint](references/copy-template-to-blueprint.md) -- [provision-spatial-relation](references/provision-spatial-relation.md) -- [sign-in-cross-origin](references/sign-in-cross-origin.md) -- [bootstrap-user](references/bootstrap-user.md) -- [sign-up](references/sign-up.md) -- [sign-in](references/sign-in.md) -- [provision-relation](references/provision-relation.md) -- [set-field-order](references/set-field-order.md) -- [apply-rls](references/apply-rls.md) -- [provision-database-with-user](references/provision-database-with-user.md) -- [create-user-database](references/create-user-database.md) -- [extend-token-expires](references/extend-token-expires.md) -- [create-api-key](references/create-api-key.md) -- [request-cross-origin-token](references/request-cross-origin-token.md) -- [provision-table](references/provision-table.md) -- [send-verification-email](references/send-verification-email.md) -- [forgot-password](references/forgot-password.md) -- [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/orm-public/references/accept-database-transfer.md b/.agents/skills/orm-public/references/accept-database-transfer.md deleted file mode 100644 index 402b8961ef..0000000000 --- a/.agents/skills/orm-public/references/accept-database-transfer.md +++ /dev/null @@ -1,19 +0,0 @@ -# acceptDatabaseTransfer - - - -Execute the acceptDatabaseTransfer mutation - -## Usage - -```typescript -db.mutation.acceptDatabaseTransfer({ input: { transferId: '' } }).execute() -``` - -## Examples - -### Run acceptDatabaseTransfer - -```typescript -const result = await db.mutation.acceptDatabaseTransfer({ input: { transferId: '' } }).execute(); -``` diff --git a/.agents/skills/orm-public/references/agent-message.md b/.agents/skills/orm-public/references/agent-message.md deleted file mode 100644 index bb9b753640..0000000000 --- a/.agents/skills/orm-public/references/agent-message.md +++ /dev/null @@ -1,34 +0,0 @@ -# agentMessage - - - -A single message in an agent_thread. The full client-rendered content (TextPart and ToolPart, including the ToolPart state machine and inline approval object) lives in the `parts` jsonb column — there is no separate agent_tool_call or agent_tool_approval table in v1. Cascade-deleted with the parent thread; RLS is owner-only. - -## Usage - -```typescript -db.agentMessage.findMany({ select: { id: true } }).execute() -db.agentMessage.findOne({ id: '', select: { id: true } }).execute() -db.agentMessage.create({ data: { threadId: '', entityId: '', authorRole: '', ownerId: '', parts: '' }, select: { id: true } }).execute() -db.agentMessage.update({ where: { id: '' }, data: { threadId: '' }, select: { id: true } }).execute() -db.agentMessage.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all agentMessage records - -```typescript -const items = await db.agentMessage.findMany({ - select: { id: true, threadId: true } -}).execute(); -``` - -### Create a agentMessage - -```typescript -const item = await db.agentMessage.create({ - data: { threadId: '', entityId: '', authorRole: '', ownerId: '', parts: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/agent-module.md b/.agents/skills/orm-public/references/agent-module.md deleted file mode 100644 index 6dce2be0dd..0000000000 --- a/.agents/skills/orm-public/references/agent-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# agentModule - - - -ORM operations for AgentModule records - -## Usage - -```typescript -db.agentModule.findMany({ select: { id: true } }).execute() -db.agentModule.findOne({ id: '', select: { id: true } }).execute() -db.agentModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', threadTableId: '', messageTableId: '', taskTableId: '', promptsTableId: '', knowledgeTableId: '', threadTableName: '', messageTableName: '', taskTableName: '', promptsTableName: '', knowledgeTableName: '', hasKnowledge: '', apiName: '', membershipType: '', key: '', entityTableId: '', policies: '', knowledgeConfig: '', knowledgePolicies: '', provisions: '' }, select: { id: true } }).execute() -db.agentModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.agentModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all agentModule records - -```typescript -const items = await db.agentModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a agentModule - -```typescript -const item = await db.agentModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', threadTableId: '', messageTableId: '', taskTableId: '', promptsTableId: '', knowledgeTableId: '', threadTableName: '', messageTableName: '', taskTableName: '', promptsTableName: '', knowledgeTableName: '', hasKnowledge: '', apiName: '', membershipType: '', key: '', entityTableId: '', policies: '', knowledgeConfig: '', knowledgePolicies: '', provisions: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/agent-task.md b/.agents/skills/orm-public/references/agent-task.md deleted file mode 100644 index 0193b5e0f4..0000000000 --- a/.agents/skills/orm-public/references/agent-task.md +++ /dev/null @@ -1,34 +0,0 @@ -# agentTask - - - -An agent- or user-authored todo item attached to an agent_thread. Captures the planning surface for agent-mode conversations: each row is a single discrete unit of work with a status lifecycle (pending → in-progress → done|failed). Cascade-deleted with the parent thread; RLS is owner-only. - -## Usage - -```typescript -db.agentTask.findMany({ select: { id: true } }).execute() -db.agentTask.findOne({ id: '', select: { id: true } }).execute() -db.agentTask.create({ data: { threadId: '', entityId: '', description: '', source: '', error: '', ownerId: '', status: '' }, select: { id: true } }).execute() -db.agentTask.update({ where: { id: '' }, data: { threadId: '' }, select: { id: true } }).execute() -db.agentTask.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all agentTask records - -```typescript -const items = await db.agentTask.findMany({ - select: { id: true, threadId: true } -}).execute(); -``` - -### Create a agentTask - -```typescript -const item = await db.agentTask.create({ - data: { threadId: '', entityId: '', description: '', source: '', error: '', ownerId: '', status: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/agent-thread.md b/.agents/skills/orm-public/references/agent-thread.md deleted file mode 100644 index c05029b5c9..0000000000 --- a/.agents/skills/orm-public/references/agent-thread.md +++ /dev/null @@ -1,34 +0,0 @@ -# agentThread - - - -Top-level AI/LLM conversation. Owns the chat-mode + model + system-prompt snapshot for the lifetime of the conversation, and is the entity-scoping anchor — descendants (agent_message, agent_task) inherit entity_id from this row via DataInheritFromParent. RLS is owner-only (AuthzDirectOwner); entity_id is a grouping dimension, not a security dimension. - -## Usage - -```typescript -db.agentThread.findMany({ select: { id: true } }).execute() -db.agentThread.findOne({ id: '', select: { id: true } }).execute() -db.agentThread.create({ data: { title: '', mode: '', model: '', systemPrompt: '', ownerId: '', entityId: '', status: '' }, select: { id: true } }).execute() -db.agentThread.update({ where: { id: '' }, data: { title: '' }, select: { id: true } }).execute() -db.agentThread.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all agentThread records - -```typescript -const items = await db.agentThread.findMany({ - select: { id: true, title: true } -}).execute(); -``` - -### Create a agentThread - -```typescript -const item = await db.agentThread.create({ - data: { title: '', mode: '', model: '', systemPrompt: '', ownerId: '', entityId: '', status: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/api-module.md b/.agents/skills/orm-public/references/api-module.md deleted file mode 100644 index 8b36f45e24..0000000000 --- a/.agents/skills/orm-public/references/api-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# apiModule - - - -Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server - -## Usage - -```typescript -db.apiModule.findMany({ select: { id: true } }).execute() -db.apiModule.findOne({ id: '', select: { id: true } }).execute() -db.apiModule.create({ data: { databaseId: '', apiId: '', name: '', data: '' }, select: { id: true } }).execute() -db.apiModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.apiModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all apiModule records - -```typescript -const items = await db.apiModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a apiModule - -```typescript -const item = await db.apiModule.create({ - data: { databaseId: '', apiId: '', name: '', data: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/api-schema.md b/.agents/skills/orm-public/references/api-schema.md deleted file mode 100644 index 2dff837634..0000000000 --- a/.agents/skills/orm-public/references/api-schema.md +++ /dev/null @@ -1,34 +0,0 @@ -# apiSchema - - - -Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API - -## Usage - -```typescript -db.apiSchema.findMany({ select: { id: true } }).execute() -db.apiSchema.findOne({ id: '', select: { id: true } }).execute() -db.apiSchema.create({ data: { databaseId: '', schemaId: '', apiId: '' }, select: { id: true } }).execute() -db.apiSchema.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.apiSchema.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all apiSchema records - -```typescript -const items = await db.apiSchema.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a apiSchema - -```typescript -const item = await db.apiSchema.create({ - data: { databaseId: '', schemaId: '', apiId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/api-setting.md b/.agents/skills/orm-public/references/api-setting.md deleted file mode 100644 index 8f2426f57c..0000000000 --- a/.agents/skills/orm-public/references/api-setting.md +++ /dev/null @@ -1,34 +0,0 @@ -# apiSetting - - - -Per-API feature flag overrides; NULL columns inherit from database_settings, explicit true/false overrides the database default - -## Usage - -```typescript -db.apiSetting.findMany({ select: { id: true } }).execute() -db.apiSetting.findOne({ id: '', select: { id: true } }).execute() -db.apiSetting.create({ data: { databaseId: '', apiId: '', enableAggregates: '', enablePostgis: '', enableSearch: '', enableDirectUploads: '', enablePresignedUploads: '', enableManyToMany: '', enableConnectionFilter: '', enableLtree: '', enableLlm: '', enableRealtime: '', enableBulk: '', options: '' }, select: { id: true } }).execute() -db.apiSetting.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.apiSetting.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all apiSetting records - -```typescript -const items = await db.apiSetting.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a apiSetting - -```typescript -const item = await db.apiSetting.create({ - data: { databaseId: '', apiId: '', enableAggregates: '', enablePostgis: '', enableSearch: '', enableDirectUploads: '', enablePresignedUploads: '', enableManyToMany: '', enableConnectionFilter: '', enableLtree: '', enableLlm: '', enableRealtime: '', enableBulk: '', options: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/api.md b/.agents/skills/orm-public/references/api.md deleted file mode 100644 index c0e13cf3e9..0000000000 --- a/.agents/skills/orm-public/references/api.md +++ /dev/null @@ -1,34 +0,0 @@ -# api - - - -API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings - -## Usage - -```typescript -db.api.findMany({ select: { id: true } }).execute() -db.api.findOne({ id: '', select: { id: true } }).execute() -db.api.create({ data: { databaseId: '', name: '', dbname: '', roleName: '', anonRole: '', isPublic: '' }, select: { id: true } }).execute() -db.api.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.api.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all api records - -```typescript -const items = await db.api.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a api - -```typescript -const item = await db.api.create({ - data: { databaseId: '', name: '', dbname: '', roleName: '', anonRole: '', isPublic: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/app-achievement.md b/.agents/skills/orm-public/references/app-achievement.md deleted file mode 100644 index fa5a2ebeb6..0000000000 --- a/.agents/skills/orm-public/references/app-achievement.md +++ /dev/null @@ -1,34 +0,0 @@ -# appAchievement - - - -Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually - -## Usage - -```typescript -db.appAchievement.findMany({ select: { id: true } }).execute() -db.appAchievement.findOne({ id: '', select: { id: true } }).execute() -db.appAchievement.create({ data: { actorId: '', name: '', count: '' }, select: { id: true } }).execute() -db.appAchievement.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() -db.appAchievement.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appAchievement records - -```typescript -const items = await db.appAchievement.findMany({ - select: { id: true, actorId: true } -}).execute(); -``` - -### Create a appAchievement - -```typescript -const item = await db.appAchievement.create({ - data: { actorId: '', name: '', count: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/app-admin-grant.md b/.agents/skills/orm-public/references/app-admin-grant.md deleted file mode 100644 index fa61457baf..0000000000 --- a/.agents/skills/orm-public/references/app-admin-grant.md +++ /dev/null @@ -1,34 +0,0 @@ -# appAdminGrant - - - -Records of admin role grants and revocations between members - -## Usage - -```typescript -db.appAdminGrant.findMany({ select: { id: true } }).execute() -db.appAdminGrant.findOne({ id: '', select: { id: true } }).execute() -db.appAdminGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute() -db.appAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute() -db.appAdminGrant.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appAdminGrant records - -```typescript -const items = await db.appAdminGrant.findMany({ - select: { id: true, isGrant: true } -}).execute(); -``` - -### Create a appAdminGrant - -```typescript -const item = await db.appAdminGrant.create({ - data: { isGrant: '', actorId: '', grantorId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/app-claimed-invite.md b/.agents/skills/orm-public/references/app-claimed-invite.md deleted file mode 100644 index b4896768cf..0000000000 --- a/.agents/skills/orm-public/references/app-claimed-invite.md +++ /dev/null @@ -1,34 +0,0 @@ -# appClaimedInvite - - - -Records of successfully claimed invitations, linking senders to receivers - -## Usage - -```typescript -db.appClaimedInvite.findMany({ select: { id: true } }).execute() -db.appClaimedInvite.findOne({ id: '', select: { id: true } }).execute() -db.appClaimedInvite.create({ data: { data: '', senderId: '', receiverId: '' }, select: { id: true } }).execute() -db.appClaimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute() -db.appClaimedInvite.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appClaimedInvite records - -```typescript -const items = await db.appClaimedInvite.findMany({ - select: { id: true, data: true } -}).execute(); -``` - -### Create a appClaimedInvite - -```typescript -const item = await db.appClaimedInvite.create({ - data: { data: '', senderId: '', receiverId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/app-grant.md b/.agents/skills/orm-public/references/app-grant.md deleted file mode 100644 index 659302d488..0000000000 --- a/.agents/skills/orm-public/references/app-grant.md +++ /dev/null @@ -1,34 +0,0 @@ -# appGrant - - - -Records of individual permission grants and revocations for members via bitmask - -## Usage - -```typescript -db.appGrant.findMany({ select: { id: true } }).execute() -db.appGrant.findOne({ id: '', select: { id: true } }).execute() -db.appGrant.create({ data: { permissions: '', isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute() -db.appGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute() -db.appGrant.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appGrant records - -```typescript -const items = await db.appGrant.findMany({ - select: { id: true, permissions: true } -}).execute(); -``` - -### Create a appGrant - -```typescript -const item = await db.appGrant.create({ - data: { permissions: '', isGrant: '', actorId: '', grantorId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/app-invite.md b/.agents/skills/orm-public/references/app-invite.md deleted file mode 100644 index 6e9410ddde..0000000000 --- a/.agents/skills/orm-public/references/app-invite.md +++ /dev/null @@ -1,34 +0,0 @@ -# appInvite - - - -Invitation records sent to prospective members via email, with token-based redemption and expiration - -## Usage - -```typescript -db.appInvite.findMany({ select: { id: true } }).execute() -db.appInvite.findOne({ id: '', select: { id: true } }).execute() -db.appInvite.create({ data: { email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', expiresAt: '' }, select: { id: true } }).execute() -db.appInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute() -db.appInvite.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appInvite records - -```typescript -const items = await db.appInvite.findMany({ - select: { id: true, email: true } -}).execute(); -``` - -### Create a appInvite - -```typescript -const item = await db.appInvite.create({ - data: { email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', expiresAt: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/app-level-requirement.md b/.agents/skills/orm-public/references/app-level-requirement.md deleted file mode 100644 index 0cfae0f497..0000000000 --- a/.agents/skills/orm-public/references/app-level-requirement.md +++ /dev/null @@ -1,34 +0,0 @@ -# appLevelRequirement - - - -Defines the specific requirements that must be met to achieve a level - -## Usage - -```typescript -db.appLevelRequirement.findMany({ select: { id: true } }).execute() -db.appLevelRequirement.findOne({ id: '', select: { id: true } }).execute() -db.appLevelRequirement.create({ data: { name: '', level: '', description: '', requiredCount: '', priority: '' }, select: { id: true } }).execute() -db.appLevelRequirement.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.appLevelRequirement.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appLevelRequirement records - -```typescript -const items = await db.appLevelRequirement.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a appLevelRequirement - -```typescript -const item = await db.appLevelRequirement.create({ - data: { name: '', level: '', description: '', requiredCount: '', priority: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/app-level.md b/.agents/skills/orm-public/references/app-level.md deleted file mode 100644 index 93dce8b0e1..0000000000 --- a/.agents/skills/orm-public/references/app-level.md +++ /dev/null @@ -1,34 +0,0 @@ -# appLevel - - - -Defines available levels that users can achieve by completing requirements - -## Usage - -```typescript -db.appLevel.findMany({ select: { id: true } }).execute() -db.appLevel.findOne({ id: '', select: { id: true } }).execute() -db.appLevel.create({ data: { name: '', description: '', image: '', ownerId: '' }, select: { id: true } }).execute() -db.appLevel.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.appLevel.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appLevel records - -```typescript -const items = await db.appLevel.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a appLevel - -```typescript -const item = await db.appLevel.create({ - data: { name: '', description: '', image: '', ownerId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/app-limit-cap.md b/.agents/skills/orm-public/references/app-limit-cap.md deleted file mode 100644 index 76ac73b9d8..0000000000 --- a/.agents/skills/orm-public/references/app-limit-cap.md +++ /dev/null @@ -1,34 +0,0 @@ -# appLimitCap - - - -Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. - -## Usage - -```typescript -db.appLimitCap.findMany({ select: { id: true } }).execute() -db.appLimitCap.findOne({ id: '', select: { id: true } }).execute() -db.appLimitCap.create({ data: { name: '', entityId: '', max: '' }, select: { id: true } }).execute() -db.appLimitCap.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.appLimitCap.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appLimitCap records - -```typescript -const items = await db.appLimitCap.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a appLimitCap - -```typescript -const item = await db.appLimitCap.create({ - data: { name: '', entityId: '', max: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/app-limit-caps-default.md b/.agents/skills/orm-public/references/app-limit-caps-default.md deleted file mode 100644 index 18848a6a2c..0000000000 --- a/.agents/skills/orm-public/references/app-limit-caps-default.md +++ /dev/null @@ -1,34 +0,0 @@ -# appLimitCapsDefault - - - -Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. - -## Usage - -```typescript -db.appLimitCapsDefault.findMany({ select: { id: true } }).execute() -db.appLimitCapsDefault.findOne({ id: '', select: { id: true } }).execute() -db.appLimitCapsDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute() -db.appLimitCapsDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.appLimitCapsDefault.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appLimitCapsDefault records - -```typescript -const items = await db.appLimitCapsDefault.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a appLimitCapsDefault - -```typescript -const item = await db.appLimitCapsDefault.create({ - data: { name: '', max: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/app-limit-credit-code-item.md b/.agents/skills/orm-public/references/app-limit-credit-code-item.md deleted file mode 100644 index 8bf8044340..0000000000 --- a/.agents/skills/orm-public/references/app-limit-credit-code-item.md +++ /dev/null @@ -1,34 +0,0 @@ -# appLimitCreditCodeItem - - - -Items within a credit code — each row grants credits for a specific limit definition - -## Usage - -```typescript -db.appLimitCreditCodeItem.findMany({ select: { id: true } }).execute() -db.appLimitCreditCodeItem.findOne({ id: '', select: { id: true } }).execute() -db.appLimitCreditCodeItem.create({ data: { creditCodeId: '', defaultLimitId: '', amount: '', creditType: '' }, select: { id: true } }).execute() -db.appLimitCreditCodeItem.update({ where: { id: '' }, data: { creditCodeId: '' }, select: { id: true } }).execute() -db.appLimitCreditCodeItem.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appLimitCreditCodeItem records - -```typescript -const items = await db.appLimitCreditCodeItem.findMany({ - select: { id: true, creditCodeId: true } -}).execute(); -``` - -### Create a appLimitCreditCodeItem - -```typescript -const item = await db.appLimitCreditCodeItem.create({ - data: { creditCodeId: '', defaultLimitId: '', amount: '', creditType: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/app-limit-credit-code.md b/.agents/skills/orm-public/references/app-limit-credit-code.md deleted file mode 100644 index e18ba1c296..0000000000 --- a/.agents/skills/orm-public/references/app-limit-credit-code.md +++ /dev/null @@ -1,34 +0,0 @@ -# appLimitCreditCode - - - -Redeemable credit codes managed by admins with the add_credits permission - -## Usage - -```typescript -db.appLimitCreditCode.findMany({ select: { id: true } }).execute() -db.appLimitCreditCode.findOne({ id: '', select: { id: true } }).execute() -db.appLimitCreditCode.create({ data: { code: '', maxRedemptions: '', currentRedemptions: '', expiresAt: '' }, select: { id: true } }).execute() -db.appLimitCreditCode.update({ where: { id: '' }, data: { code: '' }, select: { id: true } }).execute() -db.appLimitCreditCode.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appLimitCreditCode records - -```typescript -const items = await db.appLimitCreditCode.findMany({ - select: { id: true, code: true } -}).execute(); -``` - -### Create a appLimitCreditCode - -```typescript -const item = await db.appLimitCreditCode.create({ - data: { code: '', maxRedemptions: '', currentRedemptions: '', expiresAt: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/app-limit-credit-redemption.md b/.agents/skills/orm-public/references/app-limit-credit-redemption.md deleted file mode 100644 index 7feb61957c..0000000000 --- a/.agents/skills/orm-public/references/app-limit-credit-redemption.md +++ /dev/null @@ -1,34 +0,0 @@ -# appLimitCreditRedemption - - - -Append-only ledger of code redemptions; AFTER INSERT trigger validates and cascades to limit_credits - -## Usage - -```typescript -db.appLimitCreditRedemption.findMany({ select: { id: true } }).execute() -db.appLimitCreditRedemption.findOne({ id: '', select: { id: true } }).execute() -db.appLimitCreditRedemption.create({ data: { creditCodeId: '', entityId: '' }, select: { id: true } }).execute() -db.appLimitCreditRedemption.update({ where: { id: '' }, data: { creditCodeId: '' }, select: { id: true } }).execute() -db.appLimitCreditRedemption.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appLimitCreditRedemption records - -```typescript -const items = await db.appLimitCreditRedemption.findMany({ - select: { id: true, creditCodeId: true } -}).execute(); -``` - -### Create a appLimitCreditRedemption - -```typescript -const item = await db.appLimitCreditRedemption.create({ - data: { creditCodeId: '', entityId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/app-limit-credit.md b/.agents/skills/orm-public/references/app-limit-credit.md deleted file mode 100644 index e4177b9dde..0000000000 --- a/.agents/skills/orm-public/references/app-limit-credit.md +++ /dev/null @@ -1,34 +0,0 @@ -# appLimitCredit - - - -Append-only ledger of credit grants that automatically update limit ceilings - -## Usage - -```typescript -db.appLimitCredit.findMany({ select: { id: true } }).execute() -db.appLimitCredit.findOne({ id: '', select: { id: true } }).execute() -db.appLimitCredit.create({ data: { defaultLimitId: '', actorId: '', amount: '', creditType: '', reason: '' }, select: { id: true } }).execute() -db.appLimitCredit.update({ where: { id: '' }, data: { defaultLimitId: '' }, select: { id: true } }).execute() -db.appLimitCredit.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appLimitCredit records - -```typescript -const items = await db.appLimitCredit.findMany({ - select: { id: true, defaultLimitId: true } -}).execute(); -``` - -### Create a appLimitCredit - -```typescript -const item = await db.appLimitCredit.create({ - data: { defaultLimitId: '', actorId: '', amount: '', creditType: '', reason: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/app-limit-default.md b/.agents/skills/orm-public/references/app-limit-default.md deleted file mode 100644 index e4fc4452ee..0000000000 --- a/.agents/skills/orm-public/references/app-limit-default.md +++ /dev/null @@ -1,34 +0,0 @@ -# appLimitDefault - - - -Default maximum values for each named limit, applied when no per-actor override exists - -## Usage - -```typescript -db.appLimitDefault.findMany({ select: { id: true } }).execute() -db.appLimitDefault.findOne({ id: '', select: { id: true } }).execute() -db.appLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute() -db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.appLimitDefault.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appLimitDefault records - -```typescript -const items = await db.appLimitDefault.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a appLimitDefault - -```typescript -const item = await db.appLimitDefault.create({ - data: { name: '', max: '', softMax: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/app-limit-event.md b/.agents/skills/orm-public/references/app-limit-event.md deleted file mode 100644 index 61dd781609..0000000000 --- a/.agents/skills/orm-public/references/app-limit-event.md +++ /dev/null @@ -1,34 +0,0 @@ -# appLimitEvent - - - -Append-only log of limit events for historical reporting and audit - -## Usage - -```typescript -db.appLimitEvent.findMany({ select: { id: true } }).execute() -db.appLimitEvent.findOne({ id: '', select: { id: true } }).execute() -db.appLimitEvent.create({ data: { name: '', actorId: '', entityId: '', organizationId: '', entityType: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute() -db.appLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.appLimitEvent.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appLimitEvent records - -```typescript -const items = await db.appLimitEvent.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a appLimitEvent - -```typescript -const item = await db.appLimitEvent.create({ - data: { name: '', actorId: '', entityId: '', organizationId: '', entityType: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/app-limit-warning.md b/.agents/skills/orm-public/references/app-limit-warning.md deleted file mode 100644 index 24501ac07d..0000000000 --- a/.agents/skills/orm-public/references/app-limit-warning.md +++ /dev/null @@ -1,34 +0,0 @@ -# appLimitWarning - - - -Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. - -## Usage - -```typescript -db.appLimitWarning.findMany({ select: { id: true } }).execute() -db.appLimitWarning.findOne({ id: '', select: { id: true } }).execute() -db.appLimitWarning.create({ data: { name: '', warningType: '', thresholdValue: '', taskIdentifier: '' }, select: { id: true } }).execute() -db.appLimitWarning.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.appLimitWarning.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appLimitWarning records - -```typescript -const items = await db.appLimitWarning.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a appLimitWarning - -```typescript -const item = await db.appLimitWarning.create({ - data: { name: '', warningType: '', thresholdValue: '', taskIdentifier: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/app-limit.md b/.agents/skills/orm-public/references/app-limit.md deleted file mode 100644 index 1029c788dc..0000000000 --- a/.agents/skills/orm-public/references/app-limit.md +++ /dev/null @@ -1,34 +0,0 @@ -# appLimit - - - -Tracks per-actor usage counts against configurable maximum limits - -## Usage - -```typescript -db.appLimit.findMany({ select: { id: true } }).execute() -db.appLimit.findOne({ id: '', select: { id: true } }).execute() -db.appLimit.create({ data: { name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '', organizationId: '', entityType: '' }, select: { id: true } }).execute() -db.appLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.appLimit.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appLimit records - -```typescript -const items = await db.appLimit.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a appLimit - -```typescript -const item = await db.appLimit.create({ - data: { name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '', organizationId: '', entityType: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/app-membership-default.md b/.agents/skills/orm-public/references/app-membership-default.md deleted file mode 100644 index c68a6e5233..0000000000 --- a/.agents/skills/orm-public/references/app-membership-default.md +++ /dev/null @@ -1,34 +0,0 @@ -# appMembershipDefault - - - -Default membership settings per entity, controlling initial approval and verification state for new members - -## Usage - -```typescript -db.appMembershipDefault.findMany({ select: { id: true } }).execute() -db.appMembershipDefault.findOne({ id: '', select: { id: true } }).execute() -db.appMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }, select: { id: true } }).execute() -db.appMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() -db.appMembershipDefault.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appMembershipDefault records - -```typescript -const items = await db.appMembershipDefault.findMany({ - select: { id: true, createdBy: true } -}).execute(); -``` - -### Create a appMembershipDefault - -```typescript -const item = await db.appMembershipDefault.create({ - data: { createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/app-membership.md b/.agents/skills/orm-public/references/app-membership.md deleted file mode 100644 index b71afa5451..0000000000 --- a/.agents/skills/orm-public/references/app-membership.md +++ /dev/null @@ -1,34 +0,0 @@ -# appMembership - - - -Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status - -## Usage - -```typescript -db.appMembership.findMany({ select: { id: true } }).execute() -db.appMembership.findOne({ id: '', select: { id: true } }).execute() -db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }, select: { id: true } }).execute() -db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() -db.appMembership.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appMembership records - -```typescript -const items = await db.appMembership.findMany({ - select: { id: true, createdBy: true } -}).execute(); -``` - -### Create a appMembership - -```typescript -const item = await db.appMembership.create({ - data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/app-owner-grant.md b/.agents/skills/orm-public/references/app-owner-grant.md deleted file mode 100644 index 808fff6cfb..0000000000 --- a/.agents/skills/orm-public/references/app-owner-grant.md +++ /dev/null @@ -1,34 +0,0 @@ -# appOwnerGrant - - - -Records of ownership transfers and grants between members - -## Usage - -```typescript -db.appOwnerGrant.findMany({ select: { id: true } }).execute() -db.appOwnerGrant.findOne({ id: '', select: { id: true } }).execute() -db.appOwnerGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute() -db.appOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute() -db.appOwnerGrant.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appOwnerGrant records - -```typescript -const items = await db.appOwnerGrant.findMany({ - select: { id: true, isGrant: true } -}).execute(); -``` - -### Create a appOwnerGrant - -```typescript -const item = await db.appOwnerGrant.create({ - data: { isGrant: '', actorId: '', grantorId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/app-permission-default.md b/.agents/skills/orm-public/references/app-permission-default.md deleted file mode 100644 index f89c6e89f9..0000000000 --- a/.agents/skills/orm-public/references/app-permission-default.md +++ /dev/null @@ -1,34 +0,0 @@ -# appPermissionDefault - - - -Stores the default permission bitmask assigned to new members upon joining - -## Usage - -```typescript -db.appPermissionDefault.findMany({ select: { id: true } }).execute() -db.appPermissionDefault.findOne({ id: '', select: { id: true } }).execute() -db.appPermissionDefault.create({ data: { permissions: '' }, select: { id: true } }).execute() -db.appPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute() -db.appPermissionDefault.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appPermissionDefault records - -```typescript -const items = await db.appPermissionDefault.findMany({ - select: { id: true, permissions: true } -}).execute(); -``` - -### Create a appPermissionDefault - -```typescript -const item = await db.appPermissionDefault.create({ - data: { permissions: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/app-permission.md b/.agents/skills/orm-public/references/app-permission.md deleted file mode 100644 index bbbde8cca6..0000000000 --- a/.agents/skills/orm-public/references/app-permission.md +++ /dev/null @@ -1,34 +0,0 @@ -# appPermission - - - -Defines available permissions as named bits within a bitmask, used by the RBAC system for access control - -## Usage - -```typescript -db.appPermission.findMany({ select: { id: true } }).execute() -db.appPermission.findOne({ id: '', select: { id: true } }).execute() -db.appPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute() -db.appPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.appPermission.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appPermission records - -```typescript -const items = await db.appPermission.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a appPermission - -```typescript -const item = await db.appPermission.create({ - data: { name: '', bitnum: '', bitstr: '', description: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/app-permissions-get-by-mask.md b/.agents/skills/orm-public/references/app-permissions-get-by-mask.md deleted file mode 100644 index 2850e98610..0000000000 --- a/.agents/skills/orm-public/references/app-permissions-get-by-mask.md +++ /dev/null @@ -1,19 +0,0 @@ -# appPermissionsGetByMask - - - -Reads and enables pagination through a set of `AppPermission`. - -## Usage - -```typescript -db.query.appPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute() -``` - -## Examples - -### Run appPermissionsGetByMask - -```typescript -const result = await db.query.appPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); -``` diff --git a/.agents/skills/orm-public/references/app-permissions-get-mask-by-names.md b/.agents/skills/orm-public/references/app-permissions-get-mask-by-names.md deleted file mode 100644 index ce7d5ec46c..0000000000 --- a/.agents/skills/orm-public/references/app-permissions-get-mask-by-names.md +++ /dev/null @@ -1,19 +0,0 @@ -# appPermissionsGetMaskByNames - - - -Execute the appPermissionsGetMaskByNames query - -## Usage - -```typescript -db.query.appPermissionsGetMaskByNames({ names: '' }).execute() -``` - -## Examples - -### Run appPermissionsGetMaskByNames - -```typescript -const result = await db.query.appPermissionsGetMaskByNames({ names: '' }).execute(); -``` diff --git a/.agents/skills/orm-public/references/app-permissions-get-mask.md b/.agents/skills/orm-public/references/app-permissions-get-mask.md deleted file mode 100644 index 21c59c666e..0000000000 --- a/.agents/skills/orm-public/references/app-permissions-get-mask.md +++ /dev/null @@ -1,19 +0,0 @@ -# appPermissionsGetMask - - - -Execute the appPermissionsGetMask query - -## Usage - -```typescript -db.query.appPermissionsGetMask({ ids: '' }).execute() -``` - -## Examples - -### Run appPermissionsGetMask - -```typescript -const result = await db.query.appPermissionsGetMask({ ids: '' }).execute(); -``` diff --git a/.agents/skills/orm-public/references/app-permissions-get-padded-mask.md b/.agents/skills/orm-public/references/app-permissions-get-padded-mask.md deleted file mode 100644 index 79dc57a31b..0000000000 --- a/.agents/skills/orm-public/references/app-permissions-get-padded-mask.md +++ /dev/null @@ -1,19 +0,0 @@ -# appPermissionsGetPaddedMask - - - -Execute the appPermissionsGetPaddedMask query - -## Usage - -```typescript -db.query.appPermissionsGetPaddedMask({ mask: '' }).execute() -``` - -## Examples - -### Run appPermissionsGetPaddedMask - -```typescript -const result = await db.query.appPermissionsGetPaddedMask({ mask: '' }).execute(); -``` diff --git a/.agents/skills/orm-public/references/app-step.md b/.agents/skills/orm-public/references/app-step.md deleted file mode 100644 index 3015966f65..0000000000 --- a/.agents/skills/orm-public/references/app-step.md +++ /dev/null @@ -1,34 +0,0 @@ -# appStep - - - -Log of individual user actions toward level requirements; every single step ever taken is recorded here - -## Usage - -```typescript -db.appStep.findMany({ select: { id: true } }).execute() -db.appStep.findOne({ id: '', select: { id: true } }).execute() -db.appStep.create({ data: { actorId: '', name: '', count: '' }, select: { id: true } }).execute() -db.appStep.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() -db.appStep.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appStep records - -```typescript -const items = await db.appStep.findMany({ - select: { id: true, actorId: true } -}).execute(); -``` - -### Create a appStep - -```typescript -const item = await db.appStep.create({ - data: { actorId: '', name: '', count: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/app.md b/.agents/skills/orm-public/references/app.md deleted file mode 100644 index 6c3685651d..0000000000 --- a/.agents/skills/orm-public/references/app.md +++ /dev/null @@ -1,34 +0,0 @@ -# app - - - -Mobile and native app configuration linked to a site, including store links and identifiers - -## Usage - -```typescript -db.app.findMany({ select: { id: true } }).execute() -db.app.findOne({ id: '', select: { id: true } }).execute() -db.app.create({ data: { databaseId: '', siteId: '', name: '', appImage: '', appStoreLink: '', appStoreId: '', appIdPrefix: '', playStoreLink: '' }, select: { id: true } }).execute() -db.app.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.app.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all app records - -```typescript -const items = await db.app.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a app - -```typescript -const item = await db.app.create({ - data: { databaseId: '', siteId: '', name: '', appImage: '', appStoreLink: '', appStoreId: '', appIdPrefix: '', playStoreLink: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/append-field-smart-tags.md b/.agents/skills/orm-public/references/append-field-smart-tags.md deleted file mode 100644 index d440f488f0..0000000000 --- a/.agents/skills/orm-public/references/append-field-smart-tags.md +++ /dev/null @@ -1,19 +0,0 @@ -# appendFieldSmartTags - - - -Execute the appendFieldSmartTags mutation - -## Usage - -```typescript -db.mutation.appendFieldSmartTags({ input: { pFieldId: '', pTags: '' } }).execute() -``` - -## Examples - -### Run appendFieldSmartTags - -```typescript -const result = await db.mutation.appendFieldSmartTags({ input: { pFieldId: '', pTags: '' } }).execute(); -``` diff --git a/.agents/skills/orm-public/references/append-smart-tags.md b/.agents/skills/orm-public/references/append-smart-tags.md deleted file mode 100644 index 0e6788d97e..0000000000 --- a/.agents/skills/orm-public/references/append-smart-tags.md +++ /dev/null @@ -1,19 +0,0 @@ -# appendSmartTags - - - -Execute the appendSmartTags mutation - -## Usage - -```typescript -db.mutation.appendSmartTags({ input: { pTableId: '', pTags: '' } }).execute() -``` - -## Examples - -### Run appendSmartTags - -```typescript -const result = await db.mutation.appendSmartTags({ input: { pTableId: '', pTags: '' } }).execute(); -``` diff --git a/.agents/skills/orm-public/references/append-table-smart-tags.md b/.agents/skills/orm-public/references/append-table-smart-tags.md deleted file mode 100644 index 9bef5d304c..0000000000 --- a/.agents/skills/orm-public/references/append-table-smart-tags.md +++ /dev/null @@ -1,19 +0,0 @@ -# appendTableSmartTags - - - -Execute the appendTableSmartTags mutation - -## Usage - -```typescript -db.mutation.appendTableSmartTags({ input: { pTableId: '', pTags: '' } }).execute() -``` - -## Examples - -### Run appendTableSmartTags - -```typescript -const result = await db.mutation.appendTableSmartTags({ input: { pTableId: '', pTags: '' } }).execute(); -``` diff --git a/.agents/skills/orm-public/references/apply-registry-defaults.md b/.agents/skills/orm-public/references/apply-registry-defaults.md deleted file mode 100644 index b090f3fe9a..0000000000 --- a/.agents/skills/orm-public/references/apply-registry-defaults.md +++ /dev/null @@ -1,19 +0,0 @@ -# applyRegistryDefaults - - - -Execute the applyRegistryDefaults query - -## Usage - -```typescript -db.query.applyRegistryDefaults({ nodeType: '', data: '' }).execute() -``` - -## Examples - -### Run applyRegistryDefaults - -```typescript -const result = await db.query.applyRegistryDefaults({ nodeType: '', data: '' }).execute(); -``` diff --git a/.agents/skills/orm-public/references/apply-rls.md b/.agents/skills/orm-public/references/apply-rls.md deleted file mode 100644 index e87f1b898f..0000000000 --- a/.agents/skills/orm-public/references/apply-rls.md +++ /dev/null @@ -1,19 +0,0 @@ -# applyRls - - - -Execute the applyRls mutation - -## Usage - -```typescript -db.mutation.applyRls({ input: '' }).execute() -``` - -## Examples - -### Run applyRls - -```typescript -const result = await db.mutation.applyRls({ input: '' }).execute(); -``` diff --git a/.agents/skills/orm-public/references/ast-migration.md b/.agents/skills/orm-public/references/ast-migration.md deleted file mode 100644 index e672e5a347..0000000000 --- a/.agents/skills/orm-public/references/ast-migration.md +++ /dev/null @@ -1,34 +0,0 @@ -# astMigration - - - -ORM operations for AstMigration records - -## Usage - -```typescript -db.astMigration.findMany({ select: { id: true } }).execute() -db.astMigration.findOne({ id: '', select: { id: true } }).execute() -db.astMigration.create({ data: { databaseId: '', name: '', requires: '', payload: '', deploys: '', deploy: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }, select: { id: true } }).execute() -db.astMigration.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.astMigration.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all astMigration records - -```typescript -const items = await db.astMigration.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a astMigration - -```typescript -const item = await db.astMigration.create({ - data: { databaseId: '', name: '', requires: '', payload: '', deploys: '', deploy: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/audit-log-auth.md b/.agents/skills/orm-public/references/audit-log-auth.md deleted file mode 100644 index 0ad392c546..0000000000 --- a/.agents/skills/orm-public/references/audit-log-auth.md +++ /dev/null @@ -1,34 +0,0 @@ -# auditLogAuth - - - -Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) - -## Usage - -```typescript -db.auditLogAuth.findMany({ select: { id: true } }).execute() -db.auditLogAuth.findOne({ id: '', select: { id: true } }).execute() -db.auditLogAuth.create({ data: { event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }, select: { id: true } }).execute() -db.auditLogAuth.update({ where: { id: '' }, data: { event: '' }, select: { id: true } }).execute() -db.auditLogAuth.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all auditLogAuth records - -```typescript -const items = await db.auditLogAuth.findMany({ - select: { id: true, event: true } -}).execute(); -``` - -### Create a auditLogAuth - -```typescript -const item = await db.auditLogAuth.create({ - data: { event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/audit-log.md b/.agents/skills/orm-public/references/audit-log.md deleted file mode 100644 index 3aec8c2786..0000000000 --- a/.agents/skills/orm-public/references/audit-log.md +++ /dev/null @@ -1,34 +0,0 @@ -# auditLog - - - -Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) - -## Usage - -```typescript -db.auditLog.findMany({ select: { id: true } }).execute() -db.auditLog.findOne({ id: '', select: { id: true } }).execute() -db.auditLog.create({ data: { event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }, select: { id: true } }).execute() -db.auditLog.update({ where: { id: '' }, data: { event: '' }, select: { id: true } }).execute() -db.auditLog.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all auditLog records - -```typescript -const items = await db.auditLog.findMany({ - select: { id: true, event: true } -}).execute(); -``` - -### Create a auditLog - -```typescript -const item = await db.auditLog.create({ - data: { event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/billing-module.md b/.agents/skills/orm-public/references/billing-module.md deleted file mode 100644 index a0ed719170..0000000000 --- a/.agents/skills/orm-public/references/billing-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# billingModule - - - -ORM operations for BillingModule records - -## Usage - -```typescript -db.billingModule.findMany({ select: { id: true } }).execute() -db.billingModule.findOne({ id: '', select: { id: true } }).execute() -db.billingModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', meterSourcesTableId: '', meterSourcesTableName: '', recordUsageFunction: '', prefix: '' }, select: { id: true } }).execute() -db.billingModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.billingModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all billingModule records - -```typescript -const items = await db.billingModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a billingModule - -```typescript -const item = await db.billingModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', meterSourcesTableId: '', meterSourcesTableName: '', recordUsageFunction: '', prefix: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/billing-provider-module.md b/.agents/skills/orm-public/references/billing-provider-module.md deleted file mode 100644 index 0bc23c05f0..0000000000 --- a/.agents/skills/orm-public/references/billing-provider-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# billingProviderModule - - - -ORM operations for BillingProviderModule records - -## Usage - -```typescript -db.billingProviderModule.findMany({ select: { id: true } }).execute() -db.billingProviderModule.findOne({ id: '', select: { id: true } }).execute() -db.billingProviderModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', provider: '', productsTableId: '', pricesTableId: '', subscriptionsTableId: '', billingCustomersTableId: '', billingCustomersTableName: '', billingProductsTableId: '', billingProductsTableName: '', billingPricesTableId: '', billingPricesTableName: '', billingSubscriptionsTableId: '', billingSubscriptionsTableName: '', billingWebhookEventsTableId: '', billingWebhookEventsTableName: '', processBillingEventFunction: '', prefix: '' }, select: { id: true } }).execute() -db.billingProviderModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.billingProviderModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all billingProviderModule records - -```typescript -const items = await db.billingProviderModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a billingProviderModule - -```typescript -const item = await db.billingProviderModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', provider: '', productsTableId: '', pricesTableId: '', subscriptionsTableId: '', billingCustomersTableId: '', billingCustomersTableName: '', billingProductsTableId: '', billingProductsTableName: '', billingPricesTableId: '', billingPricesTableName: '', billingSubscriptionsTableId: '', billingSubscriptionsTableName: '', billingWebhookEventsTableId: '', billingWebhookEventsTableName: '', processBillingEventFunction: '', prefix: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/blueprint-construction.md b/.agents/skills/orm-public/references/blueprint-construction.md deleted file mode 100644 index 5636340086..0000000000 --- a/.agents/skills/orm-public/references/blueprint-construction.md +++ /dev/null @@ -1,34 +0,0 @@ -# blueprintConstruction - - - -Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts. - -## Usage - -```typescript -db.blueprintConstruction.findMany({ select: { id: true } }).execute() -db.blueprintConstruction.findOne({ id: '', select: { id: true } }).execute() -db.blueprintConstruction.create({ data: { blueprintId: '', databaseId: '', schemaId: '', status: '', errorDetails: '', tableMap: '', constructedDefinition: '', constructedAt: '' }, select: { id: true } }).execute() -db.blueprintConstruction.update({ where: { id: '' }, data: { blueprintId: '' }, select: { id: true } }).execute() -db.blueprintConstruction.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all blueprintConstruction records - -```typescript -const items = await db.blueprintConstruction.findMany({ - select: { id: true, blueprintId: true } -}).execute(); -``` - -### Create a blueprintConstruction - -```typescript -const item = await db.blueprintConstruction.create({ - data: { blueprintId: '', databaseId: '', schemaId: '', status: '', errorDetails: '', tableMap: '', constructedDefinition: '', constructedAt: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/blueprint-template.md b/.agents/skills/orm-public/references/blueprint-template.md deleted file mode 100644 index 5df1bc5a1e..0000000000 --- a/.agents/skills/orm-public/references/blueprint-template.md +++ /dev/null @@ -1,34 +0,0 @@ -# blueprintTemplate - - - -A shareable, versioned schema recipe for the blueprint marketplace. Templates define arrays of secure_table_provision + relation_provision inputs that together describe a complete domain schema (e.g. e-commerce, telemedicine, habit tracker). Templates are never executed directly — they are copied into a blueprint first via copy_template_to_blueprint(). Can be private (owner-only) or public (marketplace-visible). - -## Usage - -```typescript -db.blueprintTemplate.findMany({ select: { id: true } }).execute() -db.blueprintTemplate.findOne({ id: '', select: { id: true } }).execute() -db.blueprintTemplate.create({ data: { name: '', version: '', displayName: '', description: '', ownerId: '', visibility: '', categories: '', tags: '', definition: '', definitionSchemaVersion: '', source: '', complexity: '', copyCount: '', forkCount: '', forkedFromId: '', definitionHash: '', tableHashes: '' }, select: { id: true } }).execute() -db.blueprintTemplate.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.blueprintTemplate.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all blueprintTemplate records - -```typescript -const items = await db.blueprintTemplate.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a blueprintTemplate - -```typescript -const item = await db.blueprintTemplate.create({ - data: { name: '', version: '', displayName: '', description: '', ownerId: '', visibility: '', categories: '', tags: '', definition: '', definitionSchemaVersion: '', source: '', complexity: '', copyCount: '', forkCount: '', forkedFromId: '', definitionHash: '', tableHashes: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/blueprint.md b/.agents/skills/orm-public/references/blueprint.md deleted file mode 100644 index 277cf80fc2..0000000000 --- a/.agents/skills/orm-public/references/blueprint.md +++ /dev/null @@ -1,34 +0,0 @@ -# blueprint - - - -An owned, editable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition at any time. Execute it with construct_blueprint() which creates a separate blueprint_construction record to track the build. - -## Usage - -```typescript -db.blueprint.findMany({ select: { id: true } }).execute() -db.blueprint.findOne({ id: '', select: { id: true } }).execute() -db.blueprint.create({ data: { ownerId: '', databaseId: '', name: '', displayName: '', description: '', definition: '', templateId: '', definitionHash: '', tableHashes: '' }, select: { id: true } }).execute() -db.blueprint.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute() -db.blueprint.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all blueprint records - -```typescript -const items = await db.blueprint.findMany({ - select: { id: true, ownerId: true } -}).execute(); -``` - -### Create a blueprint - -```typescript -const item = await db.blueprint.create({ - data: { ownerId: '', databaseId: '', name: '', displayName: '', description: '', definition: '', templateId: '', definitionHash: '', tableHashes: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/bootstrap-user.md b/.agents/skills/orm-public/references/bootstrap-user.md deleted file mode 100644 index dc3b925815..0000000000 --- a/.agents/skills/orm-public/references/bootstrap-user.md +++ /dev/null @@ -1,19 +0,0 @@ -# bootstrapUser - - - -Execute the bootstrapUser mutation - -## Usage - -```typescript -db.mutation.bootstrapUser({ input: '' }).execute() -``` - -## Examples - -### Run bootstrapUser - -```typescript -const result = await db.mutation.bootstrapUser({ input: '' }).execute(); -``` diff --git a/.agents/skills/orm-public/references/cancel-database-transfer.md b/.agents/skills/orm-public/references/cancel-database-transfer.md deleted file mode 100644 index 7ec716b88a..0000000000 --- a/.agents/skills/orm-public/references/cancel-database-transfer.md +++ /dev/null @@ -1,19 +0,0 @@ -# cancelDatabaseTransfer - - - -Execute the cancelDatabaseTransfer mutation - -## Usage - -```typescript -db.mutation.cancelDatabaseTransfer({ input: { transferId: '' } }).execute() -``` - -## Examples - -### Run cancelDatabaseTransfer - -```typescript -const result = await db.mutation.cancelDatabaseTransfer({ input: { transferId: '' } }).execute(); -``` diff --git a/.agents/skills/orm-public/references/check-constraint.md b/.agents/skills/orm-public/references/check-constraint.md deleted file mode 100644 index c00c7ff287..0000000000 --- a/.agents/skills/orm-public/references/check-constraint.md +++ /dev/null @@ -1,34 +0,0 @@ -# checkConstraint - - - -ORM operations for CheckConstraint records - -## Usage - -```typescript -db.checkConstraint.findMany({ select: { id: true } }).execute() -db.checkConstraint.findOne({ id: '', select: { id: true } }).execute() -db.checkConstraint.create({ data: { databaseId: '', tableId: '', name: '', type: '', fieldIds: '', expr: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() -db.checkConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.checkConstraint.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all checkConstraint records - -```typescript -const items = await db.checkConstraint.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a checkConstraint - -```typescript -const item = await db.checkConstraint.create({ - data: { databaseId: '', tableId: '', name: '', type: '', fieldIds: '', expr: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/check-password.md b/.agents/skills/orm-public/references/check-password.md deleted file mode 100644 index 279a1fdd8f..0000000000 --- a/.agents/skills/orm-public/references/check-password.md +++ /dev/null @@ -1,19 +0,0 @@ -# checkPassword - - - -Execute the checkPassword mutation - -## Usage - -```typescript -db.mutation.checkPassword({ input: { password: '' } }).execute() -``` - -## Examples - -### Run checkPassword - -```typescript -const result = await db.mutation.checkPassword({ input: { password: '' } }).execute(); -``` diff --git a/.agents/skills/orm-public/references/claimed-invite.md b/.agents/skills/orm-public/references/claimed-invite.md deleted file mode 100644 index 93aa2ca0af..0000000000 --- a/.agents/skills/orm-public/references/claimed-invite.md +++ /dev/null @@ -1,34 +0,0 @@ -# claimedInvite - - - -Records of successfully claimed invitations, linking senders to receivers - -## Usage - -```typescript -db.claimedInvite.findMany({ select: { id: true } }).execute() -db.claimedInvite.findOne({ id: '', select: { id: true } }).execute() -db.claimedInvite.create({ data: { data: '', senderId: '', receiverId: '' }, select: { id: true } }).execute() -db.claimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute() -db.claimedInvite.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all claimedInvite records - -```typescript -const items = await db.claimedInvite.findMany({ - select: { id: true, data: true } -}).execute(); -``` - -### Create a claimedInvite - -```typescript -const item = await db.claimedInvite.create({ - data: { data: '', senderId: '', receiverId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/commit.md b/.agents/skills/orm-public/references/commit.md deleted file mode 100644 index b3e1b59c39..0000000000 --- a/.agents/skills/orm-public/references/commit.md +++ /dev/null @@ -1,34 +0,0 @@ -# commit - - - -A commit records changes to the repository. - -## Usage - -```typescript -db.commit.findMany({ select: { id: true } }).execute() -db.commit.findOne({ id: '', select: { id: true } }).execute() -db.commit.create({ data: { message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute() -db.commit.update({ where: { id: '' }, data: { message: '' }, select: { id: true } }).execute() -db.commit.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all commit records - -```typescript -const items = await db.commit.findMany({ - select: { id: true, message: true } -}).execute(); -``` - -### Create a commit - -```typescript -const item = await db.commit.create({ - data: { message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/compute-log-module.md b/.agents/skills/orm-public/references/compute-log-module.md deleted file mode 100644 index 981f802461..0000000000 --- a/.agents/skills/orm-public/references/compute-log-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# computeLogModule - - - -ORM operations for ComputeLogModule records - -## Usage - -```typescript -db.computeLogModule.findMany({ select: { id: true } }).execute() -db.computeLogModule.findOne({ id: '', select: { id: true } }).execute() -db.computeLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', computeLogTableId: '', computeLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '' }, select: { id: true } }).execute() -db.computeLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.computeLogModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all computeLogModule records - -```typescript -const items = await db.computeLogModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a computeLogModule - -```typescript -const item = await db.computeLogModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', computeLogTableId: '', computeLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/config-secrets-org-module.md b/.agents/skills/orm-public/references/config-secrets-org-module.md deleted file mode 100644 index b8ec2f1064..0000000000 --- a/.agents/skills/orm-public/references/config-secrets-org-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# configSecretsOrgModule - - - -Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. - -## Usage - -```typescript -db.configSecretsOrgModule.findMany({ select: { id: true } }).execute() -db.configSecretsOrgModule.findOne({ id: '', select: { id: true } }).execute() -db.configSecretsOrgModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute() -db.configSecretsOrgModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.configSecretsOrgModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all configSecretsOrgModule records - -```typescript -const items = await db.configSecretsOrgModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a configSecretsOrgModule - -```typescript -const item = await db.configSecretsOrgModule.create({ - data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/config-secrets-user-module.md b/.agents/skills/orm-public/references/config-secrets-user-module.md deleted file mode 100644 index 74429954f8..0000000000 --- a/.agents/skills/orm-public/references/config-secrets-user-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# configSecretsUserModule - - - -ORM operations for ConfigSecretsUserModule records - -## Usage - -```typescript -db.configSecretsUserModule.findMany({ select: { id: true } }).execute() -db.configSecretsUserModule.findOne({ id: '', select: { id: true } }).execute() -db.configSecretsUserModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', configDefinitionsTableId: '' }, select: { id: true } }).execute() -db.configSecretsUserModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.configSecretsUserModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all configSecretsUserModule records - -```typescript -const items = await db.configSecretsUserModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a configSecretsUserModule - -```typescript -const item = await db.configSecretsUserModule.create({ - data: { databaseId: '', schemaId: '', tableId: '', tableName: '', configDefinitionsTableId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/confirm-delete-account.md b/.agents/skills/orm-public/references/confirm-delete-account.md deleted file mode 100644 index aebc859ac5..0000000000 --- a/.agents/skills/orm-public/references/confirm-delete-account.md +++ /dev/null @@ -1,19 +0,0 @@ -# confirmDeleteAccount - - - -Execute the confirmDeleteAccount mutation - -## Usage - -```typescript -db.mutation.confirmDeleteAccount({ input: { userId: '', token: '' } }).execute() -``` - -## Examples - -### Run confirmDeleteAccount - -```typescript -const result = await db.mutation.confirmDeleteAccount({ input: { userId: '', token: '' } }).execute(); -``` diff --git a/.agents/skills/orm-public/references/confirm-upload.md b/.agents/skills/orm-public/references/confirm-upload.md deleted file mode 100644 index ff9f5d4e61..0000000000 --- a/.agents/skills/orm-public/references/confirm-upload.md +++ /dev/null @@ -1,21 +0,0 @@ -# confirmUpload - - - -Confirm that a file has been uploaded to S3. -Verifies the object exists in S3, checks content-type, -and transitions the file status from 'pending' to 'ready'. - -## Usage - -```typescript -db.mutation.confirmUpload({ input: { fileId: '' } }).execute() -``` - -## Examples - -### Run confirmUpload - -```typescript -const result = await db.mutation.confirmUpload({ input: { fileId: '' } }).execute(); -``` diff --git a/.agents/skills/orm-public/references/connected-account.md b/.agents/skills/orm-public/references/connected-account.md deleted file mode 100644 index 96a29b17e7..0000000000 --- a/.agents/skills/orm-public/references/connected-account.md +++ /dev/null @@ -1,34 +0,0 @@ -# connectedAccount - - - -OAuth and social login connections linking external service accounts to users - -## Usage - -```typescript -db.connectedAccount.findMany({ select: { id: true } }).execute() -db.connectedAccount.findOne({ id: '', select: { id: true } }).execute() -db.connectedAccount.create({ data: { ownerId: '', service: '', identifier: '', details: '', isVerified: '' }, select: { id: true } }).execute() -db.connectedAccount.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute() -db.connectedAccount.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all connectedAccount records - -```typescript -const items = await db.connectedAccount.findMany({ - select: { id: true, ownerId: true } -}).execute(); -``` - -### Create a connectedAccount - -```typescript -const item = await db.connectedAccount.create({ - data: { ownerId: '', service: '', identifier: '', details: '', isVerified: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/connected-accounts-module.md b/.agents/skills/orm-public/references/connected-accounts-module.md deleted file mode 100644 index ae1b7bc341..0000000000 --- a/.agents/skills/orm-public/references/connected-accounts-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# connectedAccountsModule - - - -ORM operations for ConnectedAccountsModule records - -## Usage - -```typescript -db.connectedAccountsModule.findMany({ select: { id: true } }).execute() -db.connectedAccountsModule.findOne({ id: '', select: { id: true } }).execute() -db.connectedAccountsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }, select: { id: true } }).execute() -db.connectedAccountsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.connectedAccountsModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all connectedAccountsModule records - -```typescript -const items = await db.connectedAccountsModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a connectedAccountsModule - -```typescript -const item = await db.connectedAccountsModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/construct-blueprint.md b/.agents/skills/orm-public/references/construct-blueprint.md deleted file mode 100644 index f36067fbd0..0000000000 --- a/.agents/skills/orm-public/references/construct-blueprint.md +++ /dev/null @@ -1,19 +0,0 @@ -# constructBlueprint - - - -Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. - -## Usage - -```typescript -db.mutation.constructBlueprint({ input: { blueprintId: '', schemaId: '' } }).execute() -``` - -## Examples - -### Run constructBlueprint - -```typescript -const result = await db.mutation.constructBlueprint({ input: { blueprintId: '', schemaId: '' } }).execute(); -``` diff --git a/.agents/skills/orm-public/references/copy-template-to-blueprint.md b/.agents/skills/orm-public/references/copy-template-to-blueprint.md deleted file mode 100644 index ccc40184d4..0000000000 --- a/.agents/skills/orm-public/references/copy-template-to-blueprint.md +++ /dev/null @@ -1,19 +0,0 @@ -# copyTemplateToBlueprint - - - -Creates a new blueprint by copying a template definition. Checks visibility: owners can always copy their own templates, others require public visibility. Increments the template copy_count. Returns the new blueprint ID. - -## Usage - -```typescript -db.mutation.copyTemplateToBlueprint({ input: { templateId: '', databaseId: '', ownerId: '', nameOverride: '', displayNameOverride: '' } }).execute() -``` - -## Examples - -### Run copyTemplateToBlueprint - -```typescript -const result = await db.mutation.copyTemplateToBlueprint({ input: { templateId: '', databaseId: '', ownerId: '', nameOverride: '', displayNameOverride: '' } }).execute(); -``` diff --git a/.agents/skills/orm-public/references/cors-setting.md b/.agents/skills/orm-public/references/cors-setting.md deleted file mode 100644 index 780cbf6938..0000000000 --- a/.agents/skills/orm-public/references/cors-setting.md +++ /dev/null @@ -1,34 +0,0 @@ -# corsSetting - - - -Per-database and per-API CORS origin configuration; typed replacement for api_modules cors JSONB entries - -## Usage - -```typescript -db.corsSetting.findMany({ select: { id: true } }).execute() -db.corsSetting.findOne({ id: '', select: { id: true } }).execute() -db.corsSetting.create({ data: { databaseId: '', apiId: '', allowedOrigins: '' }, select: { id: true } }).execute() -db.corsSetting.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.corsSetting.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all corsSetting records - -```typescript -const items = await db.corsSetting.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a corsSetting - -```typescript -const item = await db.corsSetting.create({ - data: { databaseId: '', apiId: '', allowedOrigins: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/create-api-key.md b/.agents/skills/orm-public/references/create-api-key.md deleted file mode 100644 index 504504e1a9..0000000000 --- a/.agents/skills/orm-public/references/create-api-key.md +++ /dev/null @@ -1,19 +0,0 @@ -# createApiKey - - - -Execute the createApiKey mutation - -## Usage - -```typescript -db.mutation.createApiKey({ input: { keyName: '', accessLevel: '', mfaLevel: '', expiresIn: '' } }).execute() -``` - -## Examples - -### Run createApiKey - -```typescript -const result = await db.mutation.createApiKey({ input: { keyName: '', accessLevel: '', mfaLevel: '', expiresIn: '' } }).execute(); -``` diff --git a/.agents/skills/orm-public/references/create-user-database.md b/.agents/skills/orm-public/references/create-user-database.md deleted file mode 100644 index e5fad5cf5b..0000000000 --- a/.agents/skills/orm-public/references/create-user-database.md +++ /dev/null @@ -1,35 +0,0 @@ -# createUserDatabase - - - -Creates a new user database with all required modules, permissions, and RLS policies. - -Parameters: - - database_name: Name for the new database (required) - - owner_id: UUID of the owner user (required) - - include_invites: Include invite system (default: true) - - include_groups: Include group-level memberships (default: false) - - include_levels: Include events/analytics (default: false) - - bitlen: Bit length for permission masks (default: 64) - - tokens_expiration: Token expiration interval (default: 30 days) - -Returns the database_id UUID of the newly created database. - -Example usage: - SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid); - SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid, true, true); -- with invites and groups - - -## Usage - -```typescript -db.mutation.createUserDatabase({ input: '' }).execute() -``` - -## Examples - -### Run createUserDatabase - -```typescript -const result = await db.mutation.createUserDatabase({ input: '' }).execute(); -``` diff --git a/.agents/skills/orm-public/references/crypto-address.md b/.agents/skills/orm-public/references/crypto-address.md deleted file mode 100644 index c377edc0ed..0000000000 --- a/.agents/skills/orm-public/references/crypto-address.md +++ /dev/null @@ -1,34 +0,0 @@ -# cryptoAddress - - - -Cryptocurrency wallet addresses owned by users, with network-specific validation and verification - -## Usage - -```typescript -db.cryptoAddress.findMany({ select: { id: true } }).execute() -db.cryptoAddress.findOne({ id: '', select: { id: true } }).execute() -db.cryptoAddress.create({ data: { ownerId: '', address: '', isVerified: '', isPrimary: '', name: '' }, select: { id: true } }).execute() -db.cryptoAddress.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute() -db.cryptoAddress.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all cryptoAddress records - -```typescript -const items = await db.cryptoAddress.findMany({ - select: { id: true, ownerId: true } -}).execute(); -``` - -### Create a cryptoAddress - -```typescript -const item = await db.cryptoAddress.create({ - data: { ownerId: '', address: '', isVerified: '', isPrimary: '', name: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/crypto-addresses-module.md b/.agents/skills/orm-public/references/crypto-addresses-module.md deleted file mode 100644 index 99453f5af7..0000000000 --- a/.agents/skills/orm-public/references/crypto-addresses-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# cryptoAddressesModule - - - -ORM operations for CryptoAddressesModule records - -## Usage - -```typescript -db.cryptoAddressesModule.findMany({ select: { id: true } }).execute() -db.cryptoAddressesModule.findOne({ id: '', select: { id: true } }).execute() -db.cryptoAddressesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', cryptoNetwork: '' }, select: { id: true } }).execute() -db.cryptoAddressesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.cryptoAddressesModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all cryptoAddressesModule records - -```typescript -const items = await db.cryptoAddressesModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a cryptoAddressesModule - -```typescript -const item = await db.cryptoAddressesModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', cryptoNetwork: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/crypto-auth-module.md b/.agents/skills/orm-public/references/crypto-auth-module.md deleted file mode 100644 index ca11788776..0000000000 --- a/.agents/skills/orm-public/references/crypto-auth-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# cryptoAuthModule - - - -ORM operations for CryptoAuthModule records - -## Usage - -```typescript -db.cryptoAuthModule.findMany({ select: { id: true } }).execute() -db.cryptoAuthModule.findOne({ id: '', select: { id: true } }).execute() -db.cryptoAuthModule.create({ data: { databaseId: '', schemaId: '', usersTableId: '', secretsTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', addressesTableId: '', userField: '', cryptoNetwork: '', signInRequestChallenge: '', signInRecordFailure: '', signUpWithKey: '', signInWithChallenge: '' }, select: { id: true } }).execute() -db.cryptoAuthModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.cryptoAuthModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all cryptoAuthModule records - -```typescript -const items = await db.cryptoAuthModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a cryptoAuthModule - -```typescript -const item = await db.cryptoAuthModule.create({ - data: { databaseId: '', schemaId: '', usersTableId: '', secretsTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', addressesTableId: '', userField: '', cryptoNetwork: '', signInRequestChallenge: '', signInRecordFailure: '', signUpWithKey: '', signInWithChallenge: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/current-ip-address.md b/.agents/skills/orm-public/references/current-ip-address.md deleted file mode 100644 index 1710e6e55e..0000000000 --- a/.agents/skills/orm-public/references/current-ip-address.md +++ /dev/null @@ -1,19 +0,0 @@ -# currentIpAddress - - - -Execute the currentIpAddress query - -## Usage - -```typescript -db.query.currentIpAddress().execute() -``` - -## Examples - -### Run currentIpAddress - -```typescript -const result = await db.query.currentIpAddress().execute(); -``` diff --git a/.agents/skills/orm-public/references/current-user-agent.md b/.agents/skills/orm-public/references/current-user-agent.md deleted file mode 100644 index 07c3111b8f..0000000000 --- a/.agents/skills/orm-public/references/current-user-agent.md +++ /dev/null @@ -1,19 +0,0 @@ -# currentUserAgent - - - -Execute the currentUserAgent query - -## Usage - -```typescript -db.query.currentUserAgent().execute() -``` - -## Examples - -### Run currentUserAgent - -```typescript -const result = await db.query.currentUserAgent().execute(); -``` diff --git a/.agents/skills/orm-public/references/current-user-id.md b/.agents/skills/orm-public/references/current-user-id.md deleted file mode 100644 index 82b4141e29..0000000000 --- a/.agents/skills/orm-public/references/current-user-id.md +++ /dev/null @@ -1,19 +0,0 @@ -# currentUserId - - - -Execute the currentUserId query - -## Usage - -```typescript -db.query.currentUserId().execute() -``` - -## Examples - -### Run currentUserId - -```typescript -const result = await db.query.currentUserId().execute(); -``` diff --git a/.agents/skills/orm-public/references/current-user.md b/.agents/skills/orm-public/references/current-user.md deleted file mode 100644 index 9c49471b03..0000000000 --- a/.agents/skills/orm-public/references/current-user.md +++ /dev/null @@ -1,19 +0,0 @@ -# currentUser - - - -Execute the currentUser query - -## Usage - -```typescript -db.query.currentUser().execute() -``` - -## Examples - -### Run currentUser - -```typescript -const result = await db.query.currentUser().execute(); -``` diff --git a/.agents/skills/orm-public/references/database-provision-module.md b/.agents/skills/orm-public/references/database-provision-module.md deleted file mode 100644 index dbb3600ac9..0000000000 --- a/.agents/skills/orm-public/references/database-provision-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# databaseProvisionModule - - - -Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. - -## Usage - -```typescript -db.databaseProvisionModule.findMany({ select: { id: true } }).execute() -db.databaseProvisionModule.findOne({ id: '', select: { id: true } }).execute() -db.databaseProvisionModule.create({ data: { databaseName: '', ownerId: '', subdomain: '', domain: '', modules: '', options: '', bootstrapUser: '', status: '', errorMessage: '', databaseId: '', completedAt: '' }, select: { id: true } }).execute() -db.databaseProvisionModule.update({ where: { id: '' }, data: { databaseName: '' }, select: { id: true } }).execute() -db.databaseProvisionModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all databaseProvisionModule records - -```typescript -const items = await db.databaseProvisionModule.findMany({ - select: { id: true, databaseName: true } -}).execute(); -``` - -### Create a databaseProvisionModule - -```typescript -const item = await db.databaseProvisionModule.create({ - data: { databaseName: '', ownerId: '', subdomain: '', domain: '', modules: '', options: '', bootstrapUser: '', status: '', errorMessage: '', databaseId: '', completedAt: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/database-setting.md b/.agents/skills/orm-public/references/database-setting.md deleted file mode 100644 index abfe867ad1..0000000000 --- a/.agents/skills/orm-public/references/database-setting.md +++ /dev/null @@ -1,34 +0,0 @@ -# databaseSetting - - - -Database-wide feature flags and settings; controls which platform features are available to all APIs in this database - -## Usage - -```typescript -db.databaseSetting.findMany({ select: { id: true } }).execute() -db.databaseSetting.findOne({ id: '', select: { id: true } }).execute() -db.databaseSetting.create({ data: { databaseId: '', enableAggregates: '', enablePostgis: '', enableSearch: '', enableDirectUploads: '', enablePresignedUploads: '', enableManyToMany: '', enableConnectionFilter: '', enableLtree: '', enableLlm: '', enableRealtime: '', enableBulk: '', options: '' }, select: { id: true } }).execute() -db.databaseSetting.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.databaseSetting.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all databaseSetting records - -```typescript -const items = await db.databaseSetting.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a databaseSetting - -```typescript -const item = await db.databaseSetting.create({ - data: { databaseId: '', enableAggregates: '', enablePostgis: '', enableSearch: '', enableDirectUploads: '', enablePresignedUploads: '', enableManyToMany: '', enableConnectionFilter: '', enableLtree: '', enableLlm: '', enableRealtime: '', enableBulk: '', options: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/database-transfer.md b/.agents/skills/orm-public/references/database-transfer.md deleted file mode 100644 index 360741e0bb..0000000000 --- a/.agents/skills/orm-public/references/database-transfer.md +++ /dev/null @@ -1,34 +0,0 @@ -# databaseTransfer - - - -ORM operations for DatabaseTransfer records - -## Usage - -```typescript -db.databaseTransfer.findMany({ select: { id: true } }).execute() -db.databaseTransfer.findOne({ id: '', select: { id: true } }).execute() -db.databaseTransfer.create({ data: { databaseId: '', targetOwnerId: '', sourceApproved: '', targetApproved: '', sourceApprovedAt: '', targetApprovedAt: '', status: '', initiatedBy: '', notes: '', expiresAt: '', completedAt: '' }, select: { id: true } }).execute() -db.databaseTransfer.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.databaseTransfer.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all databaseTransfer records - -```typescript -const items = await db.databaseTransfer.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a databaseTransfer - -```typescript -const item = await db.databaseTransfer.create({ - data: { databaseId: '', targetOwnerId: '', sourceApproved: '', targetApproved: '', sourceApprovedAt: '', targetApprovedAt: '', status: '', initiatedBy: '', notes: '', expiresAt: '', completedAt: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/database.md b/.agents/skills/orm-public/references/database.md deleted file mode 100644 index a225f1def2..0000000000 --- a/.agents/skills/orm-public/references/database.md +++ /dev/null @@ -1,34 +0,0 @@ -# database - - - -ORM operations for Database records - -## Usage - -```typescript -db.database.findMany({ select: { id: true } }).execute() -db.database.findOne({ id: '', select: { id: true } }).execute() -db.database.create({ data: { ownerId: '', schemaHash: '', name: '', label: '', hash: '' }, select: { id: true } }).execute() -db.database.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute() -db.database.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all database records - -```typescript -const items = await db.database.findMany({ - select: { id: true, ownerId: true } -}).execute(); -``` - -### Create a database - -```typescript -const item = await db.database.create({ - data: { ownerId: '', schemaHash: '', name: '', label: '', hash: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/db-usage-module.md b/.agents/skills/orm-public/references/db-usage-module.md deleted file mode 100644 index 024a0dc4f7..0000000000 --- a/.agents/skills/orm-public/references/db-usage-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# dbUsageModule - - - -ORM operations for DbUsageModule records - -## Usage - -```typescript -db.dbUsageModule.findMany({ select: { id: true } }).execute() -db.dbUsageModule.findOne({ id: '', select: { id: true } }).execute() -db.dbUsageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsDailyTableId: '', tableStatsDailyTableName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsDailyTableId: '', queryStatsDailyTableName: '', interval: '', retention: '', premake: '', scope: '', prefix: '' }, select: { id: true } }).execute() -db.dbUsageModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.dbUsageModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all dbUsageModule records - -```typescript -const items = await db.dbUsageModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a dbUsageModule - -```typescript -const item = await db.dbUsageModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsDailyTableId: '', tableStatsDailyTableName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsDailyTableId: '', queryStatsDailyTableName: '', interval: '', retention: '', premake: '', scope: '', prefix: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/default-ids-module.md b/.agents/skills/orm-public/references/default-ids-module.md deleted file mode 100644 index efb0b3a9a2..0000000000 --- a/.agents/skills/orm-public/references/default-ids-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# defaultIdsModule - - - -ORM operations for DefaultIdsModule records - -## Usage - -```typescript -db.defaultIdsModule.findMany({ select: { id: true } }).execute() -db.defaultIdsModule.findOne({ id: '', select: { id: true } }).execute() -db.defaultIdsModule.create({ data: { databaseId: '' }, select: { id: true } }).execute() -db.defaultIdsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.defaultIdsModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all defaultIdsModule records - -```typescript -const items = await db.defaultIdsModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a defaultIdsModule - -```typescript -const item = await db.defaultIdsModule.create({ - data: { databaseId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/default-privilege.md b/.agents/skills/orm-public/references/default-privilege.md deleted file mode 100644 index bfd0e41ead..0000000000 --- a/.agents/skills/orm-public/references/default-privilege.md +++ /dev/null @@ -1,34 +0,0 @@ -# defaultPrivilege - - - -ORM operations for DefaultPrivilege records - -## Usage - -```typescript -db.defaultPrivilege.findMany({ select: { id: true } }).execute() -db.defaultPrivilege.findOne({ id: '', select: { id: true } }).execute() -db.defaultPrivilege.create({ data: { databaseId: '', schemaId: '', objectType: '', privilege: '', granteeName: '', isGrant: '' }, select: { id: true } }).execute() -db.defaultPrivilege.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.defaultPrivilege.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all defaultPrivilege records - -```typescript -const items = await db.defaultPrivilege.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a defaultPrivilege - -```typescript -const item = await db.defaultPrivilege.create({ - data: { databaseId: '', schemaId: '', objectType: '', privilege: '', granteeName: '', isGrant: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/denormalized-table-field.md b/.agents/skills/orm-public/references/denormalized-table-field.md deleted file mode 100644 index 384181d191..0000000000 --- a/.agents/skills/orm-public/references/denormalized-table-field.md +++ /dev/null @@ -1,34 +0,0 @@ -# denormalizedTableField - - - -ORM operations for DenormalizedTableField records - -## Usage - -```typescript -db.denormalizedTableField.findMany({ select: { id: true } }).execute() -db.denormalizedTableField.findOne({ id: '', select: { id: true } }).execute() -db.denormalizedTableField.create({ data: { databaseId: '', tableId: '', fieldId: '', setIds: '', refTableId: '', refFieldId: '', refIds: '', useUpdates: '', updateDefaults: '', funcName: '', funcOrder: '' }, select: { id: true } }).execute() -db.denormalizedTableField.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.denormalizedTableField.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all denormalizedTableField records - -```typescript -const items = await db.denormalizedTableField.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a denormalizedTableField - -```typescript -const item = await db.denormalizedTableField.create({ - data: { databaseId: '', tableId: '', fieldId: '', setIds: '', refTableId: '', refFieldId: '', refIds: '', useUpdates: '', updateDefaults: '', funcName: '', funcOrder: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/devices-module.md b/.agents/skills/orm-public/references/devices-module.md deleted file mode 100644 index b66b4c8580..0000000000 --- a/.agents/skills/orm-public/references/devices-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# devicesModule - - - -ORM operations for DevicesModule records - -## Usage - -```typescript -db.devicesModule.findMany({ select: { id: true } }).execute() -db.devicesModule.findOne({ id: '', select: { id: true } }).execute() -db.devicesModule.create({ data: { databaseId: '', schemaId: '', userDevicesTableId: '', deviceSettingsTableId: '', userDevicesTable: '', deviceSettingsTable: '' }, select: { id: true } }).execute() -db.devicesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.devicesModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all devicesModule records - -```typescript -const items = await db.devicesModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a devicesModule - -```typescript -const item = await db.devicesModule.create({ - data: { databaseId: '', schemaId: '', userDevicesTableId: '', deviceSettingsTableId: '', userDevicesTable: '', deviceSettingsTable: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/disconnect-account.md b/.agents/skills/orm-public/references/disconnect-account.md deleted file mode 100644 index f67b1ba94f..0000000000 --- a/.agents/skills/orm-public/references/disconnect-account.md +++ /dev/null @@ -1,19 +0,0 @@ -# disconnectAccount - - - -Execute the disconnectAccount mutation - -## Usage - -```typescript -db.mutation.disconnectAccount({ input: { accountId: '' } }).execute() -``` - -## Examples - -### Run disconnectAccount - -```typescript -const result = await db.mutation.disconnectAccount({ input: { accountId: '' } }).execute(); -``` diff --git a/.agents/skills/orm-public/references/domain.md b/.agents/skills/orm-public/references/domain.md deleted file mode 100644 index 9f1dae6abd..0000000000 --- a/.agents/skills/orm-public/references/domain.md +++ /dev/null @@ -1,34 +0,0 @@ -# domain - - - -DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site - -## Usage - -```typescript -db.domain.findMany({ select: { id: true } }).execute() -db.domain.findOne({ id: '', select: { id: true } }).execute() -db.domain.create({ data: { databaseId: '', apiId: '', siteId: '', subdomain: '', domain: '' }, select: { id: true } }).execute() -db.domain.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.domain.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all domain records - -```typescript -const items = await db.domain.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a domain - -```typescript -const item = await db.domain.create({ - data: { databaseId: '', apiId: '', siteId: '', subdomain: '', domain: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/email.md b/.agents/skills/orm-public/references/email.md deleted file mode 100644 index 955bed2949..0000000000 --- a/.agents/skills/orm-public/references/email.md +++ /dev/null @@ -1,34 +0,0 @@ -# email - - - -User email addresses with verification and primary-email management - -## Usage - -```typescript -db.email.findMany({ select: { id: true } }).execute() -db.email.findOne({ id: '', select: { id: true } }).execute() -db.email.create({ data: { ownerId: '', email: '', isVerified: '', isPrimary: '', name: '' }, select: { id: true } }).execute() -db.email.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute() -db.email.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all email records - -```typescript -const items = await db.email.findMany({ - select: { id: true, ownerId: true } -}).execute(); -``` - -### Create a email - -```typescript -const item = await db.email.create({ - data: { ownerId: '', email: '', isVerified: '', isPrimary: '', name: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/emails-module.md b/.agents/skills/orm-public/references/emails-module.md deleted file mode 100644 index cf583941a6..0000000000 --- a/.agents/skills/orm-public/references/emails-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# emailsModule - - - -ORM operations for EmailsModule records - -## Usage - -```typescript -db.emailsModule.findMany({ select: { id: true } }).execute() -db.emailsModule.findOne({ id: '', select: { id: true } }).execute() -db.emailsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }, select: { id: true } }).execute() -db.emailsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.emailsModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all emailsModule records - -```typescript -const items = await db.emailsModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a emailsModule - -```typescript -const item = await db.emailsModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/embedding-chunk.md b/.agents/skills/orm-public/references/embedding-chunk.md deleted file mode 100644 index 45edf9c068..0000000000 --- a/.agents/skills/orm-public/references/embedding-chunk.md +++ /dev/null @@ -1,34 +0,0 @@ -# embeddingChunk - - - -ORM operations for EmbeddingChunk records - -## Usage - -```typescript -db.embeddingChunk.findMany({ select: { id: true } }).execute() -db.embeddingChunk.findOne({ id: '', select: { id: true } }).execute() -db.embeddingChunk.create({ data: { databaseId: '', tableId: '', embeddingFieldId: '', chunksTableId: '', chunksTableName: '', contentFieldName: '', dimensions: '', metric: '', chunkSize: '', chunkOverlap: '', chunkStrategy: '', metadataFields: '', searchIndexes: '', enqueueChunkingJob: '', chunkingTaskName: '', embeddingModel: '', embeddingProvider: '', parentFkFieldId: '' }, select: { id: true } }).execute() -db.embeddingChunk.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.embeddingChunk.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all embeddingChunk records - -```typescript -const items = await db.embeddingChunk.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a embeddingChunk - -```typescript -const item = await db.embeddingChunk.create({ - data: { databaseId: '', tableId: '', embeddingFieldId: '', chunksTableId: '', chunksTableName: '', contentFieldName: '', dimensions: '', metric: '', chunkSize: '', chunkOverlap: '', chunkStrategy: '', metadataFields: '', searchIndexes: '', enqueueChunkingJob: '', chunkingTaskName: '', embeddingModel: '', embeddingProvider: '', parentFkFieldId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/encrypted-secrets-module.md b/.agents/skills/orm-public/references/encrypted-secrets-module.md deleted file mode 100644 index ff83bb40cc..0000000000 --- a/.agents/skills/orm-public/references/encrypted-secrets-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# encryptedSecretsModule - - - -ORM operations for EncryptedSecretsModule records - -## Usage - -```typescript -db.encryptedSecretsModule.findMany({ select: { id: true } }).execute() -db.encryptedSecretsModule.findOne({ id: '', select: { id: true } }).execute() -db.encryptedSecretsModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute() -db.encryptedSecretsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.encryptedSecretsModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all encryptedSecretsModule records - -```typescript -const items = await db.encryptedSecretsModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a encryptedSecretsModule - -```typescript -const item = await db.encryptedSecretsModule.create({ - data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/entity-type-provision.md b/.agents/skills/orm-public/references/entity-type-provision.md deleted file mode 100644 index 4cc98c486c..0000000000 --- a/.agents/skills/orm-public/references/entity-type-provision.md +++ /dev/null @@ -1,41 +0,0 @@ -# entityTypeProvision - - - -Provisions a new membership entity type. Each INSERT creates an entity table, registers a membership type, - and installs the required modules (permissions, memberships, limits) plus optional modules (profiles, levels, invites). - Uses provision_membership_table() internally. Graceful: duplicate (database_id, prefix) pairs are silently skipped - via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING). - Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible). - Set table_provision to a single jsonb object (using the same shape as provision_table() / - blueprint tables[] entries) to replace the defaults with your own; set skip_entity_policies=true - as an escape hatch to apply zero policies. - -## Usage - -```typescript -db.entityTypeProvision.findMany({ select: { id: true } }).execute() -db.entityTypeProvision.findOne({ id: '', select: { id: true } }).execute() -db.entityTypeProvision.create({ data: { databaseId: '', name: '', prefix: '', description: '', parentEntity: '', tableName: '', isVisible: '', hasLimits: '', hasProfiles: '', hasLevels: '', hasInvites: '', hasInviteAchievements: '', storage: '', namespaces: '', functions: '', graphs: '', agents: '', skipEntityPolicies: '', tableProvision: '', outMembershipType: '', outEntityTableId: '', outEntityTableName: '', outInstalledModules: '', outStorageModuleId: '', outBucketsTableId: '', outFilesTableId: '', outPathSharesTableId: '', outInvitesModuleId: '', outNamespaceModuleId: '', outNamespacesTableId: '', outNamespaceEventsTableId: '', outFunctionModuleId: '', outDefinitionsTableId: '', outInvocationsTableId: '', outExecutionLogsTableId: '', outSecretDefinitionsTableId: '', outRequirementsTableId: '', outConfigRequirementsTableId: '', outGraphModuleId: '', outGraphsTableId: '', outAgentModuleId: '' }, select: { id: true } }).execute() -db.entityTypeProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.entityTypeProvision.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all entityTypeProvision records - -```typescript -const items = await db.entityTypeProvision.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a entityTypeProvision - -```typescript -const item = await db.entityTypeProvision.create({ - data: { databaseId: '', name: '', prefix: '', description: '', parentEntity: '', tableName: '', isVisible: '', hasLimits: '', hasProfiles: '', hasLevels: '', hasInvites: '', hasInviteAchievements: '', storage: '', namespaces: '', functions: '', graphs: '', agents: '', skipEntityPolicies: '', tableProvision: '', outMembershipType: '', outEntityTableId: '', outEntityTableName: '', outInstalledModules: '', outStorageModuleId: '', outBucketsTableId: '', outFilesTableId: '', outPathSharesTableId: '', outInvitesModuleId: '', outNamespaceModuleId: '', outNamespacesTableId: '', outNamespaceEventsTableId: '', outFunctionModuleId: '', outDefinitionsTableId: '', outInvocationsTableId: '', outExecutionLogsTableId: '', outSecretDefinitionsTableId: '', outRequirementsTableId: '', outConfigRequirementsTableId: '', outGraphModuleId: '', outGraphsTableId: '', outAgentModuleId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/enum.md b/.agents/skills/orm-public/references/enum.md deleted file mode 100644 index a7a06ae94a..0000000000 --- a/.agents/skills/orm-public/references/enum.md +++ /dev/null @@ -1,34 +0,0 @@ -# enum - - - -ORM operations for Enum records - -## Usage - -```typescript -db.enum.findMany({ select: { id: true } }).execute() -db.enum.findOne({ id: '', select: { id: true } }).execute() -db.enum.create({ data: { databaseId: '', schemaId: '', name: '', label: '', description: '', values: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() -db.enum.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.enum.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all enum records - -```typescript -const items = await db.enum.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a enum - -```typescript -const item = await db.enum.create({ - data: { databaseId: '', schemaId: '', name: '', label: '', description: '', values: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/events-module.md b/.agents/skills/orm-public/references/events-module.md deleted file mode 100644 index 26662f7482..0000000000 --- a/.agents/skills/orm-public/references/events-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# eventsModule - - - -ORM operations for EventsModule records - -## Usage - -```typescript -db.eventsModule.findMany({ select: { id: true } }).execute() -db.eventsModule.findOne({ id: '', select: { id: true } }).execute() -db.eventsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', eventsTableId: '', eventsTableName: '', eventAggregatesTableId: '', eventAggregatesTableName: '', eventTypesTableId: '', eventTypesTableName: '', levelsTableId: '', levelsTableName: '', levelRequirementsTableId: '', levelRequirementsTableName: '', levelGrantsTableId: '', levelGrantsTableName: '', achievementRewardsTableId: '', achievementRewardsTableName: '', recordEvent: '', removeEvent: '', tgEvent: '', tgEventToggle: '', tgEventToggleBool: '', tgEventBool: '', upsertAggregate: '', tgUpdateAggregates: '', pruneEvents: '', stepsRequired: '', levelAchieved: '', tgCheckAchievements: '', grantAchievement: '', tgAchievementReward: '', interval: '', retention: '', premake: '', prefix: '', membershipType: '', entityTableId: '', actorTableId: '' }, select: { id: true } }).execute() -db.eventsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.eventsModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all eventsModule records - -```typescript -const items = await db.eventsModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a eventsModule - -```typescript -const item = await db.eventsModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', eventsTableId: '', eventsTableName: '', eventAggregatesTableId: '', eventAggregatesTableName: '', eventTypesTableId: '', eventTypesTableName: '', levelsTableId: '', levelsTableName: '', levelRequirementsTableId: '', levelRequirementsTableName: '', levelGrantsTableId: '', levelGrantsTableName: '', achievementRewardsTableId: '', achievementRewardsTableName: '', recordEvent: '', removeEvent: '', tgEvent: '', tgEventToggle: '', tgEventToggleBool: '', tgEventBool: '', upsertAggregate: '', tgUpdateAggregates: '', pruneEvents: '', stepsRequired: '', levelAchieved: '', tgCheckAchievements: '', grantAchievement: '', tgAchievementReward: '', interval: '', retention: '', premake: '', prefix: '', membershipType: '', entityTableId: '', actorTableId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/extend-token-expires.md b/.agents/skills/orm-public/references/extend-token-expires.md deleted file mode 100644 index ebaf368684..0000000000 --- a/.agents/skills/orm-public/references/extend-token-expires.md +++ /dev/null @@ -1,19 +0,0 @@ -# extendTokenExpires - - - -Execute the extendTokenExpires mutation - -## Usage - -```typescript -db.mutation.extendTokenExpires({ input: { amount: '' } }).execute() -``` - -## Examples - -### Run extendTokenExpires - -```typescript -const result = await db.mutation.extendTokenExpires({ input: { amount: '' } }).execute(); -``` diff --git a/.agents/skills/orm-public/references/field-module.md b/.agents/skills/orm-public/references/field-module.md deleted file mode 100644 index f2f3772ec9..0000000000 --- a/.agents/skills/orm-public/references/field-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# fieldModule - - - -ORM operations for FieldModule records - -## Usage - -```typescript -db.fieldModule.findMany({ select: { id: true } }).execute() -db.fieldModule.findOne({ id: '', select: { id: true } }).execute() -db.fieldModule.create({ data: { databaseId: '', privateSchemaId: '', tableId: '', fieldId: '', nodeType: '', data: '', triggers: '', functions: '' }, select: { id: true } }).execute() -db.fieldModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.fieldModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all fieldModule records - -```typescript -const items = await db.fieldModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a fieldModule - -```typescript -const item = await db.fieldModule.create({ - data: { databaseId: '', privateSchemaId: '', tableId: '', fieldId: '', nodeType: '', data: '', triggers: '', functions: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/field.md b/.agents/skills/orm-public/references/field.md deleted file mode 100644 index e9f555e20b..0000000000 --- a/.agents/skills/orm-public/references/field.md +++ /dev/null @@ -1,34 +0,0 @@ -# field - - - -ORM operations for Field records - -## Usage - -```typescript -db.field.findMany({ select: { id: true } }).execute() -db.field.findOne({ id: '', select: { id: true } }).execute() -db.field.create({ data: { databaseId: '', tableId: '', name: '', label: '', description: '', smartTags: '', isRequired: '', apiRequired: '', defaultValue: '', type: '', fieldOrder: '', regexp: '', chk: '', chkExpr: '', min: '', max: '', tags: '', category: '', module: '', scope: '' }, select: { id: true } }).execute() -db.field.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.field.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all field records - -```typescript -const items = await db.field.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a field - -```typescript -const item = await db.field.create({ - data: { databaseId: '', tableId: '', name: '', label: '', description: '', smartTags: '', isRequired: '', apiRequired: '', defaultValue: '', type: '', fieldOrder: '', regexp: '', chk: '', chkExpr: '', min: '', max: '', tags: '', category: '', module: '', scope: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/foreign-key-constraint.md b/.agents/skills/orm-public/references/foreign-key-constraint.md deleted file mode 100644 index 213fb4e273..0000000000 --- a/.agents/skills/orm-public/references/foreign-key-constraint.md +++ /dev/null @@ -1,34 +0,0 @@ -# foreignKeyConstraint - - - -ORM operations for ForeignKeyConstraint records - -## Usage - -```typescript -db.foreignKeyConstraint.findMany({ select: { id: true } }).execute() -db.foreignKeyConstraint.findOne({ id: '', select: { id: true } }).execute() -db.foreignKeyConstraint.create({ data: { databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', refTableId: '', refFieldIds: '', deleteAction: '', updateAction: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() -db.foreignKeyConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.foreignKeyConstraint.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all foreignKeyConstraint records - -```typescript -const items = await db.foreignKeyConstraint.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a foreignKeyConstraint - -```typescript -const item = await db.foreignKeyConstraint.create({ - data: { databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', refTableId: '', refFieldIds: '', deleteAction: '', updateAction: '', category: '', module: '', scope: '', tags: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/forgot-password.md b/.agents/skills/orm-public/references/forgot-password.md deleted file mode 100644 index 6cb7491ac0..0000000000 --- a/.agents/skills/orm-public/references/forgot-password.md +++ /dev/null @@ -1,19 +0,0 @@ -# forgotPassword - - - -Execute the forgotPassword mutation - -## Usage - -```typescript -db.mutation.forgotPassword({ input: { email: '' } }).execute() -``` - -## Examples - -### Run forgotPassword - -```typescript -const result = await db.mutation.forgotPassword({ input: { email: '' } }).execute(); -``` diff --git a/.agents/skills/orm-public/references/freeze-objects.md b/.agents/skills/orm-public/references/freeze-objects.md deleted file mode 100644 index 110be1e17b..0000000000 --- a/.agents/skills/orm-public/references/freeze-objects.md +++ /dev/null @@ -1,19 +0,0 @@ -# freezeObjects - - - -Execute the freezeObjects mutation - -## Usage - -```typescript -db.mutation.freezeObjects({ input: { databaseId: '', id: '' } }).execute() -``` - -## Examples - -### Run freezeObjects - -```typescript -const result = await db.mutation.freezeObjects({ input: { databaseId: '', id: '' } }).execute(); -``` diff --git a/.agents/skills/orm-public/references/full-text-search.md b/.agents/skills/orm-public/references/full-text-search.md deleted file mode 100644 index 83539792ec..0000000000 --- a/.agents/skills/orm-public/references/full-text-search.md +++ /dev/null @@ -1,34 +0,0 @@ -# fullTextSearch - - - -ORM operations for FullTextSearch records - -## Usage - -```typescript -db.fullTextSearch.findMany({ select: { id: true } }).execute() -db.fullTextSearch.findOne({ id: '', select: { id: true } }).execute() -db.fullTextSearch.create({ data: { databaseId: '', tableId: '', fieldId: '', fieldIds: '', weights: '', langs: '' }, select: { id: true } }).execute() -db.fullTextSearch.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.fullTextSearch.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all fullTextSearch records - -```typescript -const items = await db.fullTextSearch.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a fullTextSearch - -```typescript -const item = await db.fullTextSearch.create({ - data: { databaseId: '', tableId: '', fieldId: '', fieldIds: '', weights: '', langs: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/function-module.md b/.agents/skills/orm-public/references/function-module.md deleted file mode 100644 index 76703a449c..0000000000 --- a/.agents/skills/orm-public/references/function-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# functionModule - - - -ORM operations for FunctionModule records - -## Usage - -```typescript -db.functionModule.findMany({ select: { id: true } }).execute() -db.functionModule.findOne({ id: '', select: { id: true } }).execute() -db.functionModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', definitionsTableId: '', invocationsTableId: '', executionLogsTableId: '', secretDefinitionsTableId: '', requirementsTableId: '', configDefinitionsTableId: '', configRequirementsTableId: '', definitionsTableName: '', invocationsTableName: '', executionLogsTableName: '', secretDefinitionsTableName: '', requirementsTableName: '', configRequirementsTableName: '', apiName: '', privateApiName: '', membershipType: '', prefix: '', key: '', entityTableId: '', policies: '', provisions: '' }, select: { id: true } }).execute() -db.functionModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.functionModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all functionModule records - -```typescript -const items = await db.functionModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a functionModule - -```typescript -const item = await db.functionModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', definitionsTableId: '', invocationsTableId: '', executionLogsTableId: '', secretDefinitionsTableId: '', requirementsTableId: '', configDefinitionsTableId: '', configRequirementsTableId: '', definitionsTableName: '', invocationsTableName: '', executionLogsTableName: '', secretDefinitionsTableName: '', requirementsTableName: '', configRequirementsTableName: '', apiName: '', privateApiName: '', membershipType: '', prefix: '', key: '', entityTableId: '', policies: '', provisions: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/function.md b/.agents/skills/orm-public/references/function.md deleted file mode 100644 index 0e7ffbf59d..0000000000 --- a/.agents/skills/orm-public/references/function.md +++ /dev/null @@ -1,34 +0,0 @@ -# function - - - -ORM operations for Function records - -## Usage - -```typescript -db.function.findMany({ select: { id: true } }).execute() -db.function.findOne({ id: '', select: { id: true } }).execute() -db.function.create({ data: { databaseId: '', schemaId: '', name: '' }, select: { id: true } }).execute() -db.function.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.function.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all function records - -```typescript -const items = await db.function.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a function - -```typescript -const item = await db.function.create({ - data: { databaseId: '', schemaId: '', name: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/get-all-objects-from-root.md b/.agents/skills/orm-public/references/get-all-objects-from-root.md deleted file mode 100644 index b7f2f7210e..0000000000 --- a/.agents/skills/orm-public/references/get-all-objects-from-root.md +++ /dev/null @@ -1,19 +0,0 @@ -# getAllObjectsFromRoot - - - -Reads and enables pagination through a set of `Object`. - -## Usage - -```typescript -db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', offset: '', after: '' }).execute() -``` - -## Examples - -### Run getAllObjectsFromRoot - -```typescript -const result = await db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', offset: '', after: '' }).execute(); -``` diff --git a/.agents/skills/orm-public/references/get-all-record.md b/.agents/skills/orm-public/references/get-all-record.md deleted file mode 100644 index 5a4df6e375..0000000000 --- a/.agents/skills/orm-public/references/get-all-record.md +++ /dev/null @@ -1,34 +0,0 @@ -# getAllRecord - - - -ORM operations for GetAllRecord records - -## Usage - -```typescript -db.getAllRecord.findMany({ select: { id: true } }).execute() -db.getAllRecord.findOne({ id: '', select: { id: true } }).execute() -db.getAllRecord.create({ data: { path: '', data: '' }, select: { id: true } }).execute() -db.getAllRecord.update({ where: { id: '' }, data: { path: '' }, select: { id: true } }).execute() -db.getAllRecord.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all getAllRecord records - -```typescript -const items = await db.getAllRecord.findMany({ - select: { id: true, path: true } -}).execute(); -``` - -### Create a getAllRecord - -```typescript -const item = await db.getAllRecord.create({ - data: { path: '', data: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/get-object-at-path.md b/.agents/skills/orm-public/references/get-object-at-path.md deleted file mode 100644 index cdf5df837b..0000000000 --- a/.agents/skills/orm-public/references/get-object-at-path.md +++ /dev/null @@ -1,19 +0,0 @@ -# getObjectAtPath - - - -Execute the getObjectAtPath query - -## Usage - -```typescript -db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute() -``` - -## Examples - -### Run getObjectAtPath - -```typescript -const result = await db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute(); -``` diff --git a/.agents/skills/orm-public/references/get-path-objects-from-root.md b/.agents/skills/orm-public/references/get-path-objects-from-root.md deleted file mode 100644 index 663305d3fd..0000000000 --- a/.agents/skills/orm-public/references/get-path-objects-from-root.md +++ /dev/null @@ -1,19 +0,0 @@ -# getPathObjectsFromRoot - - - -Reads and enables pagination through a set of `Object`. - -## Usage - -```typescript -db.query.getPathObjectsFromRoot({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }).execute() -``` - -## Examples - -### Run getPathObjectsFromRoot - -```typescript -const result = await db.query.getPathObjectsFromRoot({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }).execute(); -``` diff --git a/.agents/skills/orm-public/references/graph-module.md b/.agents/skills/orm-public/references/graph-module.md deleted file mode 100644 index 0dd83c8ac9..0000000000 --- a/.agents/skills/orm-public/references/graph-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# graphModule - - - -ORM operations for GraphModule records - -## Usage - -```typescript -db.graphModule.findMany({ select: { id: true } }).execute() -db.graphModule.findOne({ id: '', select: { id: true } }).execute() -db.graphModule.create({ data: { databaseId: '', publicSchemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', prefix: '', merkleStoreModuleId: '', graphsTableId: '', executionsTableId: '', outputsTableId: '', apiName: '', privateApiName: '', scopeField: '', membershipType: '', entityTableId: '', policies: '', provisions: '' }, select: { id: true } }).execute() -db.graphModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.graphModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all graphModule records - -```typescript -const items = await db.graphModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a graphModule - -```typescript -const item = await db.graphModule.create({ - data: { databaseId: '', publicSchemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', prefix: '', merkleStoreModuleId: '', graphsTableId: '', executionsTableId: '', outputsTableId: '', apiName: '', privateApiName: '', scopeField: '', membershipType: '', entityTableId: '', policies: '', provisions: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/hierarchy-module.md b/.agents/skills/orm-public/references/hierarchy-module.md deleted file mode 100644 index 6a4468db3b..0000000000 --- a/.agents/skills/orm-public/references/hierarchy-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# hierarchyModule - - - -ORM operations for HierarchyModule records - -## Usage - -```typescript -db.hierarchyModule.findMany({ select: { id: true } }).execute() -db.hierarchyModule.findOne({ id: '', select: { id: true } }).execute() -db.hierarchyModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', chartEdgesTableId: '', chartEdgesTableName: '', hierarchySprtTableId: '', hierarchySprtTableName: '', chartEdgeGrantsTableId: '', chartEdgeGrantsTableName: '', entityTableId: '', usersTableId: '', prefix: '', privateSchemaName: '', sprtTableName: '', rebuildHierarchyFunction: '', getSubordinatesFunction: '', getManagersFunction: '', isManagerOfFunction: '' }, select: { id: true } }).execute() -db.hierarchyModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.hierarchyModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all hierarchyModule records - -```typescript -const items = await db.hierarchyModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a hierarchyModule - -```typescript -const item = await db.hierarchyModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', chartEdgesTableId: '', chartEdgesTableName: '', hierarchySprtTableId: '', hierarchySprtTableName: '', chartEdgeGrantsTableId: '', chartEdgeGrantsTableName: '', entityTableId: '', usersTableId: '', prefix: '', privateSchemaName: '', sprtTableName: '', rebuildHierarchyFunction: '', getSubordinatesFunction: '', getManagersFunction: '', isManagerOfFunction: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/identity-provider.md b/.agents/skills/orm-public/references/identity-provider.md deleted file mode 100644 index 4151a3badc..0000000000 --- a/.agents/skills/orm-public/references/identity-provider.md +++ /dev/null @@ -1,34 +0,0 @@ -# identityProvider - - - -ORM operations for IdentityProvider records - -## Usage - -```typescript -db.identityProvider.findMany({ select: { id: true } }).execute() -db.identityProvider.findOne({ id: '', select: { id: true } }).execute() -db.identityProvider.create({ data: { slug: '', kind: '', displayName: '', enabled: '', isBuiltIn: '' }, select: { id: true } }).execute() -db.identityProvider.update({ where: { id: '' }, data: { slug: '' }, select: { id: true } }).execute() -db.identityProvider.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all identityProvider records - -```typescript -const items = await db.identityProvider.findMany({ - select: { id: true, slug: true } -}).execute(); -``` - -### Create a identityProvider - -```typescript -const item = await db.identityProvider.create({ - data: { slug: '', kind: '', displayName: '', enabled: '', isBuiltIn: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/identity-providers-module.md b/.agents/skills/orm-public/references/identity-providers-module.md deleted file mode 100644 index d85701f62e..0000000000 --- a/.agents/skills/orm-public/references/identity-providers-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# identityProvidersModule - - - -Config row for the identity_providers_module, which provisions a per-database identity_providers config table holding OAuth2 / OIDC (and future SAML) provider definitions: protocol kind, endpoint URLs, encrypted client secret, scopes, audience validation, PKCE, and email-handling flags. Built-in providers (google, github, apple, ...) are seeded as is_built_in=true rows; custom providers use slugs of the form custom:. - -## Usage - -```typescript -db.identityProvidersModule.findMany({ select: { id: true } }).execute() -db.identityProvidersModule.findOne({ id: '', select: { id: true } }).execute() -db.identityProvidersModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute() -db.identityProvidersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.identityProvidersModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all identityProvidersModule records - -```typescript -const items = await db.identityProvidersModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a identityProvidersModule - -```typescript -const item = await db.identityProvidersModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/index.md b/.agents/skills/orm-public/references/index.md deleted file mode 100644 index f996b32ae4..0000000000 --- a/.agents/skills/orm-public/references/index.md +++ /dev/null @@ -1,34 +0,0 @@ -# index - - - -ORM operations for Index records - -## Usage - -```typescript -db.index.findMany({ select: { id: true } }).execute() -db.index.findOne({ id: '', select: { id: true } }).execute() -db.index.create({ data: { databaseId: '', tableId: '', name: '', fieldIds: '', includeFieldIds: '', accessMethod: '', indexParams: '', whereClause: '', isUnique: '', options: '', opClasses: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() -db.index.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.index.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all index records - -```typescript -const items = await db.index.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a index - -```typescript -const item = await db.index.create({ - data: { databaseId: '', tableId: '', name: '', fieldIds: '', includeFieldIds: '', accessMethod: '', indexParams: '', whereClause: '', isUnique: '', options: '', opClasses: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/inference-log-module.md b/.agents/skills/orm-public/references/inference-log-module.md deleted file mode 100644 index 5b327805ad..0000000000 --- a/.agents/skills/orm-public/references/inference-log-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# inferenceLogModule - - - -ORM operations for InferenceLogModule records - -## Usage - -```typescript -db.inferenceLogModule.findMany({ select: { id: true } }).execute() -db.inferenceLogModule.findOne({ id: '', select: { id: true } }).execute() -db.inferenceLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', inferenceLogTableId: '', inferenceLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '' }, select: { id: true } }).execute() -db.inferenceLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.inferenceLogModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all inferenceLogModule records - -```typescript -const items = await db.inferenceLogModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a inferenceLogModule - -```typescript -const item = await db.inferenceLogModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', inferenceLogTableId: '', inferenceLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/init-empty-repo.md b/.agents/skills/orm-public/references/init-empty-repo.md deleted file mode 100644 index 00eb301388..0000000000 --- a/.agents/skills/orm-public/references/init-empty-repo.md +++ /dev/null @@ -1,19 +0,0 @@ -# initEmptyRepo - - - -Execute the initEmptyRepo mutation - -## Usage - -```typescript -db.mutation.initEmptyRepo({ input: { dbId: '', storeId: '' } }).execute() -``` - -## Examples - -### Run initEmptyRepo - -```typescript -const result = await db.mutation.initEmptyRepo({ input: { dbId: '', storeId: '' } }).execute(); -``` diff --git a/.agents/skills/orm-public/references/insert-node-at-path.md b/.agents/skills/orm-public/references/insert-node-at-path.md deleted file mode 100644 index 956ec68ed8..0000000000 --- a/.agents/skills/orm-public/references/insert-node-at-path.md +++ /dev/null @@ -1,19 +0,0 @@ -# insertNodeAtPath - - - -Execute the insertNodeAtPath mutation - -## Usage - -```typescript -db.mutation.insertNodeAtPath({ input: '' }).execute() -``` - -## Examples - -### Run insertNodeAtPath - -```typescript -const result = await db.mutation.insertNodeAtPath({ input: '' }).execute(); -``` diff --git a/.agents/skills/orm-public/references/invite.md b/.agents/skills/orm-public/references/invite.md deleted file mode 100644 index 2647e4af3b..0000000000 --- a/.agents/skills/orm-public/references/invite.md +++ /dev/null @@ -1,34 +0,0 @@ -# invite - - - -Invitation records sent to prospective members via email, with token-based redemption and expiration - -## Usage - -```typescript -db.invite.findMany({ select: { id: true } }).execute() -db.invite.findOne({ id: '', select: { id: true } }).execute() -db.invite.create({ data: { email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '' }, select: { id: true } }).execute() -db.invite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute() -db.invite.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all invite records - -```typescript -const items = await db.invite.findMany({ - select: { id: true, email: true } -}).execute(); -``` - -### Create a invite - -```typescript -const item = await db.invite.create({ - data: { email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/invites-module.md b/.agents/skills/orm-public/references/invites-module.md deleted file mode 100644 index 77c0a502c4..0000000000 --- a/.agents/skills/orm-public/references/invites-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# invitesModule - - - -ORM operations for InvitesModule records - -## Usage - -```typescript -db.invitesModule.findMany({ select: { id: true } }).execute() -db.invitesModule.findOne({ id: '', select: { id: true } }).execute() -db.invitesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', emailsTableId: '', usersTableId: '', invitesTableId: '', claimedInvitesTableId: '', invitesTableName: '', claimedInvitesTableName: '', submitInviteCodeFunction: '', prefix: '', membershipType: '', entityTableId: '' }, select: { id: true } }).execute() -db.invitesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.invitesModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all invitesModule records - -```typescript -const items = await db.invitesModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a invitesModule - -```typescript -const item = await db.invitesModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', emailsTableId: '', usersTableId: '', invitesTableId: '', claimedInvitesTableId: '', invitesTableName: '', claimedInvitesTableName: '', submitInviteCodeFunction: '', prefix: '', membershipType: '', entityTableId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/levels-module.md b/.agents/skills/orm-public/references/levels-module.md deleted file mode 100644 index d7b82be133..0000000000 --- a/.agents/skills/orm-public/references/levels-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# levelsModule - - - -ORM operations for LevelsModule records - -## Usage - -```typescript -db.levelsModule.findMany({ select: { id: true } }).execute() -db.levelsModule.findOne({ id: '', select: { id: true } }).execute() -db.levelsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', stepsTableId: '', stepsTableName: '', achievementsTableId: '', achievementsTableName: '', levelsTableId: '', levelsTableName: '', levelRequirementsTableId: '', levelRequirementsTableName: '', completedStep: '', incompletedStep: '', tgAchievement: '', tgAchievementToggle: '', tgAchievementToggleBoolean: '', tgAchievementBoolean: '', upsertAchievement: '', tgUpdateAchievements: '', stepsRequired: '', levelAchieved: '', prefix: '', membershipType: '', entityTableId: '', actorTableId: '' }, select: { id: true } }).execute() -db.levelsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.levelsModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all levelsModule records - -```typescript -const items = await db.levelsModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a levelsModule - -```typescript -const item = await db.levelsModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', stepsTableId: '', stepsTableName: '', achievementsTableId: '', achievementsTableName: '', levelsTableId: '', levelsTableName: '', levelRequirementsTableId: '', levelRequirementsTableName: '', completedStep: '', incompletedStep: '', tgAchievement: '', tgAchievementToggle: '', tgAchievementToggleBoolean: '', tgAchievementBoolean: '', upsertAchievement: '', tgUpdateAchievements: '', stepsRequired: '', levelAchieved: '', prefix: '', membershipType: '', entityTableId: '', actorTableId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/limits-module.md b/.agents/skills/orm-public/references/limits-module.md deleted file mode 100644 index 7249f0fef4..0000000000 --- a/.agents/skills/orm-public/references/limits-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# limitsModule - - - -ORM operations for LimitsModule records - -## Usage - -```typescript -db.limitsModule.findMany({ select: { id: true } }).execute() -db.limitsModule.findOne({ id: '', select: { id: true } }).execute() -db.limitsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', limitIncrementFunction: '', limitDecrementFunction: '', limitIncrementTrigger: '', limitDecrementTrigger: '', limitUpdateTrigger: '', limitCheckFunction: '', limitCreditsTableId: '', eventsTableId: '', creditCodesTableId: '', creditCodeItemsTableId: '', creditRedemptionsTableId: '', aggregateTableId: '', limitCapsTableId: '', limitCapsDefaultsTableId: '', capCheckTrigger: '', resolveCapFunction: '', limitWarningsTableId: '', limitWarningStateTableId: '', limitCheckSoftFunction: '', limitAggregateCheckSoftFunction: '', prefix: '', membershipType: '', entityTableId: '', actorTableId: '' }, select: { id: true } }).execute() -db.limitsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.limitsModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all limitsModule records - -```typescript -const items = await db.limitsModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a limitsModule - -```typescript -const item = await db.limitsModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', limitIncrementFunction: '', limitDecrementFunction: '', limitIncrementTrigger: '', limitDecrementTrigger: '', limitUpdateTrigger: '', limitCheckFunction: '', limitCreditsTableId: '', eventsTableId: '', creditCodesTableId: '', creditCodeItemsTableId: '', creditRedemptionsTableId: '', aggregateTableId: '', limitCapsTableId: '', limitCapsDefaultsTableId: '', capCheckTrigger: '', resolveCapFunction: '', limitWarningsTableId: '', limitWarningStateTableId: '', limitCheckSoftFunction: '', limitAggregateCheckSoftFunction: '', prefix: '', membershipType: '', entityTableId: '', actorTableId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/membership-type.md b/.agents/skills/orm-public/references/membership-type.md deleted file mode 100644 index d6d7e36a14..0000000000 --- a/.agents/skills/orm-public/references/membership-type.md +++ /dev/null @@ -1,34 +0,0 @@ -# membershipType - - - -Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) - -## Usage - -```typescript -db.membershipType.findMany({ select: { id: true } }).execute() -db.membershipType.findOne({ id: '', select: { id: true } }).execute() -db.membershipType.create({ data: { name: '', description: '', prefix: '', parentMembershipType: '', hasUsersTableEntry: '' }, select: { id: true } }).execute() -db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.membershipType.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all membershipType records - -```typescript -const items = await db.membershipType.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a membershipType - -```typescript -const item = await db.membershipType.create({ - data: { name: '', description: '', prefix: '', parentMembershipType: '', hasUsersTableEntry: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/membership-types-module.md b/.agents/skills/orm-public/references/membership-types-module.md deleted file mode 100644 index 0d6cf60df7..0000000000 --- a/.agents/skills/orm-public/references/membership-types-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# membershipTypesModule - - - -ORM operations for MembershipTypesModule records - -## Usage - -```typescript -db.membershipTypesModule.findMany({ select: { id: true } }).execute() -db.membershipTypesModule.findOne({ id: '', select: { id: true } }).execute() -db.membershipTypesModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute() -db.membershipTypesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.membershipTypesModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all membershipTypesModule records - -```typescript -const items = await db.membershipTypesModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a membershipTypesModule - -```typescript -const item = await db.membershipTypesModule.create({ - data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/memberships-module.md b/.agents/skills/orm-public/references/memberships-module.md deleted file mode 100644 index a67f4911f8..0000000000 --- a/.agents/skills/orm-public/references/memberships-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# membershipsModule - - - -ORM operations for MembershipsModule records - -## Usage - -```typescript -db.membershipsModule.findMany({ select: { id: true } }).execute() -db.membershipsModule.findOne({ id: '', select: { id: true } }).execute() -db.membershipsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', membershipsTableId: '', membershipsTableName: '', membersTableId: '', membersTableName: '', membershipDefaultsTableId: '', membershipDefaultsTableName: '', membershipSettingsTableId: '', membershipSettingsTableName: '', grantsTableId: '', grantsTableName: '', actorTableId: '', limitsTableId: '', defaultLimitsTableId: '', permissionsTableId: '', defaultPermissionsTableId: '', sprtTableId: '', adminGrantsTableId: '', adminGrantsTableName: '', ownerGrantsTableId: '', ownerGrantsTableName: '', membershipType: '', entityTableId: '', entityTableOwnerId: '', prefix: '', getOrgFn: '', actorMaskCheck: '', actorPermCheck: '', entityIdsByMask: '', entityIdsByPerm: '', entityIdsFunction: '', memberProfilesTableId: '' }, select: { id: true } }).execute() -db.membershipsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.membershipsModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all membershipsModule records - -```typescript -const items = await db.membershipsModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a membershipsModule - -```typescript -const item = await db.membershipsModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', membershipsTableId: '', membershipsTableName: '', membersTableId: '', membersTableName: '', membershipDefaultsTableId: '', membershipDefaultsTableName: '', membershipSettingsTableId: '', membershipSettingsTableName: '', grantsTableId: '', grantsTableName: '', actorTableId: '', limitsTableId: '', defaultLimitsTableId: '', permissionsTableId: '', defaultPermissionsTableId: '', sprtTableId: '', adminGrantsTableId: '', adminGrantsTableName: '', ownerGrantsTableId: '', ownerGrantsTableName: '', membershipType: '', entityTableId: '', entityTableOwnerId: '', prefix: '', getOrgFn: '', actorMaskCheck: '', actorPermCheck: '', entityIdsByMask: '', entityIdsByPerm: '', entityIdsFunction: '', memberProfilesTableId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/merkle-store-module.md b/.agents/skills/orm-public/references/merkle-store-module.md deleted file mode 100644 index 781eaa8091..0000000000 --- a/.agents/skills/orm-public/references/merkle-store-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# merkleStoreModule - - - -ORM operations for MerkleStoreModule records - -## Usage - -```typescript -db.merkleStoreModule.findMany({ select: { id: true } }).execute() -db.merkleStoreModule.findOne({ id: '', select: { id: true } }).execute() -db.merkleStoreModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', objectTableId: '', storeTableId: '', commitTableId: '', refTableId: '', prefix: '', apiName: '', privateApiName: '', scopeField: '' }, select: { id: true } }).execute() -db.merkleStoreModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.merkleStoreModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all merkleStoreModule records - -```typescript -const items = await db.merkleStoreModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a merkleStoreModule - -```typescript -const item = await db.merkleStoreModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', objectTableId: '', storeTableId: '', commitTableId: '', refTableId: '', prefix: '', apiName: '', privateApiName: '', scopeField: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/migrate-file.md b/.agents/skills/orm-public/references/migrate-file.md deleted file mode 100644 index 621ea5e796..0000000000 --- a/.agents/skills/orm-public/references/migrate-file.md +++ /dev/null @@ -1,34 +0,0 @@ -# migrateFile - - - -ORM operations for MigrateFile records - -## Usage - -```typescript -db.migrateFile.findMany({ select: { id: true } }).execute() -db.migrateFile.findOne({ id: '', select: { id: true } }).execute() -db.migrateFile.create({ data: { databaseId: '', upload: '' }, select: { id: true } }).execute() -db.migrateFile.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.migrateFile.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all migrateFile records - -```typescript -const items = await db.migrateFile.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a migrateFile - -```typescript -const item = await db.migrateFile.create({ - data: { databaseId: '', upload: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/namespace-module.md b/.agents/skills/orm-public/references/namespace-module.md deleted file mode 100644 index 965973adb9..0000000000 --- a/.agents/skills/orm-public/references/namespace-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# namespaceModule - - - -ORM operations for NamespaceModule records - -## Usage - -```typescript -db.namespaceModule.findMany({ select: { id: true } }).execute() -db.namespaceModule.findOne({ id: '', select: { id: true } }).execute() -db.namespaceModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', namespacesTableId: '', namespaceEventsTableId: '', namespacesTableName: '', namespaceEventsTableName: '', apiName: '', privateApiName: '', membershipType: '', key: '', entityTableId: '', policies: '', provisions: '' }, select: { id: true } }).execute() -db.namespaceModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.namespaceModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all namespaceModule records - -```typescript -const items = await db.namespaceModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a namespaceModule - -```typescript -const item = await db.namespaceModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', namespacesTableId: '', namespaceEventsTableId: '', namespacesTableName: '', namespaceEventsTableName: '', apiName: '', privateApiName: '', membershipType: '', key: '', entityTableId: '', policies: '', provisions: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/node-type-registry.md b/.agents/skills/orm-public/references/node-type-registry.md deleted file mode 100644 index 2c5dff04d0..0000000000 --- a/.agents/skills/orm-public/references/node-type-registry.md +++ /dev/null @@ -1,34 +0,0 @@ -# nodeTypeRegistry - - - -ORM operations for NodeTypeRegistry records - -## Usage - -```typescript -db.nodeTypeRegistry.findMany({ select: { id: true } }).execute() -db.nodeTypeRegistry.findOne({ name: '', select: { id: true } }).execute() -db.nodeTypeRegistry.create({ data: { slug: '', category: '', displayName: '', description: '', parameterSchema: '', tags: '' }, select: { id: true } }).execute() -db.nodeTypeRegistry.update({ where: { name: '' }, data: { slug: '' }, select: { id: true } }).execute() -db.nodeTypeRegistry.delete({ where: { name: '' } }).execute() -``` - -## Examples - -### List all nodeTypeRegistry records - -```typescript -const items = await db.nodeTypeRegistry.findMany({ - select: { name: true, slug: true } -}).execute(); -``` - -### Create a nodeTypeRegistry - -```typescript -const item = await db.nodeTypeRegistry.create({ - data: { slug: '', category: '', displayName: '', description: '', parameterSchema: '', tags: '' }, - select: { name: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/notifications-module.md b/.agents/skills/orm-public/references/notifications-module.md deleted file mode 100644 index 83fc188079..0000000000 --- a/.agents/skills/orm-public/references/notifications-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# notificationsModule - - - -ORM operations for NotificationsModule records - -## Usage - -```typescript -db.notificationsModule.findMany({ select: { id: true } }).execute() -db.notificationsModule.findOne({ id: '', select: { id: true } }).execute() -db.notificationsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', notificationsTableId: '', readStateTableId: '', preferencesTableId: '', channelsTableId: '', deliveryLogTableId: '', ownerTableId: '', userSettingsTableId: '', organizationSettingsTableId: '', hasChannels: '', hasPreferences: '', hasSettingsExtension: '', hasDigestMetadata: '', hasSubscriptions: '' }, select: { id: true } }).execute() -db.notificationsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.notificationsModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all notificationsModule records - -```typescript -const items = await db.notificationsModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a notificationsModule - -```typescript -const item = await db.notificationsModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', notificationsTableId: '', readStateTableId: '', preferencesTableId: '', channelsTableId: '', deliveryLogTableId: '', ownerTableId: '', userSettingsTableId: '', organizationSettingsTableId: '', hasChannels: '', hasPreferences: '', hasSettingsExtension: '', hasDigestMetadata: '', hasSubscriptions: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/object.md b/.agents/skills/orm-public/references/object.md deleted file mode 100644 index 130fc55c2f..0000000000 --- a/.agents/skills/orm-public/references/object.md +++ /dev/null @@ -1,34 +0,0 @@ -# object - - - -ORM operations for Object records - -## Usage - -```typescript -db.object.findMany({ select: { id: true } }).execute() -db.object.findOne({ id: '', select: { id: true } }).execute() -db.object.create({ data: { hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute() -db.object.update({ where: { id: '' }, data: { hashUuid: '' }, select: { id: true } }).execute() -db.object.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all object records - -```typescript -const items = await db.object.findMany({ - select: { id: true, hashUuid: true } -}).execute(); -``` - -### Create a object - -```typescript -const item = await db.object.create({ - data: { hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/one-time-token.md b/.agents/skills/orm-public/references/one-time-token.md deleted file mode 100644 index 0772a30934..0000000000 --- a/.agents/skills/orm-public/references/one-time-token.md +++ /dev/null @@ -1,19 +0,0 @@ -# oneTimeToken - - - -Execute the oneTimeToken mutation - -## Usage - -```typescript -db.mutation.oneTimeToken({ input: { email: '', password: '', origin: '', rememberMe: '' } }).execute() -``` - -## Examples - -### Run oneTimeToken - -```typescript -const result = await db.mutation.oneTimeToken({ input: { email: '', password: '', origin: '', rememberMe: '' } }).execute(); -``` diff --git a/.agents/skills/orm-public/references/org-admin-grant.md b/.agents/skills/orm-public/references/org-admin-grant.md deleted file mode 100644 index 3760631e15..0000000000 --- a/.agents/skills/orm-public/references/org-admin-grant.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgAdminGrant - - - -Records of admin role grants and revocations between members - -## Usage - -```typescript -db.orgAdminGrant.findMany({ select: { id: true } }).execute() -db.orgAdminGrant.findOne({ id: '', select: { id: true } }).execute() -db.orgAdminGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute() -db.orgAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute() -db.orgAdminGrant.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgAdminGrant records - -```typescript -const items = await db.orgAdminGrant.findMany({ - select: { id: true, isGrant: true } -}).execute(); -``` - -### Create a orgAdminGrant - -```typescript -const item = await db.orgAdminGrant.create({ - data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/org-chart-edge-grant.md b/.agents/skills/orm-public/references/org-chart-edge-grant.md deleted file mode 100644 index b7af9dd681..0000000000 --- a/.agents/skills/orm-public/references/org-chart-edge-grant.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgChartEdgeGrant - - - -Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table - -## Usage - -```typescript -db.orgChartEdgeGrant.findMany({ select: { id: true } }).execute() -db.orgChartEdgeGrant.findOne({ id: '', select: { id: true } }).execute() -db.orgChartEdgeGrant.create({ data: { entityId: '', childId: '', parentId: '', grantorId: '', isGrant: '', positionTitle: '', positionLevel: '' }, select: { id: true } }).execute() -db.orgChartEdgeGrant.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute() -db.orgChartEdgeGrant.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgChartEdgeGrant records - -```typescript -const items = await db.orgChartEdgeGrant.findMany({ - select: { id: true, entityId: true } -}).execute(); -``` - -### Create a orgChartEdgeGrant - -```typescript -const item = await db.orgChartEdgeGrant.create({ - data: { entityId: '', childId: '', parentId: '', grantorId: '', isGrant: '', positionTitle: '', positionLevel: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/org-chart-edge.md b/.agents/skills/orm-public/references/org-chart-edge.md deleted file mode 100644 index 02a3ccdb6c..0000000000 --- a/.agents/skills/orm-public/references/org-chart-edge.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgChartEdge - - - -Organizational chart edges defining parent-child reporting relationships between members within an entity - -## Usage - -```typescript -db.orgChartEdge.findMany({ select: { id: true } }).execute() -db.orgChartEdge.findOne({ id: '', select: { id: true } }).execute() -db.orgChartEdge.create({ data: { entityId: '', childId: '', parentId: '', positionTitle: '', positionLevel: '' }, select: { id: true } }).execute() -db.orgChartEdge.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute() -db.orgChartEdge.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgChartEdge records - -```typescript -const items = await db.orgChartEdge.findMany({ - select: { id: true, entityId: true } -}).execute(); -``` - -### Create a orgChartEdge - -```typescript -const item = await db.orgChartEdge.create({ - data: { entityId: '', childId: '', parentId: '', positionTitle: '', positionLevel: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/org-claimed-invite.md b/.agents/skills/orm-public/references/org-claimed-invite.md deleted file mode 100644 index 4f0e583da5..0000000000 --- a/.agents/skills/orm-public/references/org-claimed-invite.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgClaimedInvite - - - -Records of successfully claimed invitations, linking senders to receivers - -## Usage - -```typescript -db.orgClaimedInvite.findMany({ select: { id: true } }).execute() -db.orgClaimedInvite.findOne({ id: '', select: { id: true } }).execute() -db.orgClaimedInvite.create({ data: { data: '', senderId: '', receiverId: '', entityId: '' }, select: { id: true } }).execute() -db.orgClaimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute() -db.orgClaimedInvite.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgClaimedInvite records - -```typescript -const items = await db.orgClaimedInvite.findMany({ - select: { id: true, data: true } -}).execute(); -``` - -### Create a orgClaimedInvite - -```typescript -const item = await db.orgClaimedInvite.create({ - data: { data: '', senderId: '', receiverId: '', entityId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/org-get-managers-record.md b/.agents/skills/orm-public/references/org-get-managers-record.md deleted file mode 100644 index 040c21068b..0000000000 --- a/.agents/skills/orm-public/references/org-get-managers-record.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgGetManagersRecord - - - -ORM operations for OrgGetManagersRecord records - -## Usage - -```typescript -db.orgGetManagersRecord.findMany({ select: { id: true } }).execute() -db.orgGetManagersRecord.findOne({ id: '', select: { id: true } }).execute() -db.orgGetManagersRecord.create({ data: { userId: '', depth: '' }, select: { id: true } }).execute() -db.orgGetManagersRecord.update({ where: { id: '' }, data: { userId: '' }, select: { id: true } }).execute() -db.orgGetManagersRecord.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgGetManagersRecord records - -```typescript -const items = await db.orgGetManagersRecord.findMany({ - select: { id: true, userId: true } -}).execute(); -``` - -### Create a orgGetManagersRecord - -```typescript -const item = await db.orgGetManagersRecord.create({ - data: { userId: '', depth: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/org-get-subordinates-record.md b/.agents/skills/orm-public/references/org-get-subordinates-record.md deleted file mode 100644 index 03cd7f3cc0..0000000000 --- a/.agents/skills/orm-public/references/org-get-subordinates-record.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgGetSubordinatesRecord - - - -ORM operations for OrgGetSubordinatesRecord records - -## Usage - -```typescript -db.orgGetSubordinatesRecord.findMany({ select: { id: true } }).execute() -db.orgGetSubordinatesRecord.findOne({ id: '', select: { id: true } }).execute() -db.orgGetSubordinatesRecord.create({ data: { userId: '', depth: '' }, select: { id: true } }).execute() -db.orgGetSubordinatesRecord.update({ where: { id: '' }, data: { userId: '' }, select: { id: true } }).execute() -db.orgGetSubordinatesRecord.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgGetSubordinatesRecord records - -```typescript -const items = await db.orgGetSubordinatesRecord.findMany({ - select: { id: true, userId: true } -}).execute(); -``` - -### Create a orgGetSubordinatesRecord - -```typescript -const item = await db.orgGetSubordinatesRecord.create({ - data: { userId: '', depth: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/org-grant.md b/.agents/skills/orm-public/references/org-grant.md deleted file mode 100644 index b4673cc424..0000000000 --- a/.agents/skills/orm-public/references/org-grant.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgGrant - - - -Records of individual permission grants and revocations for members via bitmask - -## Usage - -```typescript -db.orgGrant.findMany({ select: { id: true } }).execute() -db.orgGrant.findOne({ id: '', select: { id: true } }).execute() -db.orgGrant.create({ data: { permissions: '', isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute() -db.orgGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute() -db.orgGrant.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgGrant records - -```typescript -const items = await db.orgGrant.findMany({ - select: { id: true, permissions: true } -}).execute(); -``` - -### Create a orgGrant - -```typescript -const item = await db.orgGrant.create({ - data: { permissions: '', isGrant: '', actorId: '', entityId: '', grantorId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/org-invite.md b/.agents/skills/orm-public/references/org-invite.md deleted file mode 100644 index 1b03e67831..0000000000 --- a/.agents/skills/orm-public/references/org-invite.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgInvite - - - -Invitation records sent to prospective members via email, with token-based redemption and expiration - -## Usage - -```typescript -db.orgInvite.findMany({ select: { id: true } }).execute() -db.orgInvite.findOne({ id: '', select: { id: true } }).execute() -db.orgInvite.create({ data: { email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', isReadOnly: '', expiresAt: '', entityId: '' }, select: { id: true } }).execute() -db.orgInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute() -db.orgInvite.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgInvite records - -```typescript -const items = await db.orgInvite.findMany({ - select: { id: true, email: true } -}).execute(); -``` - -### Create a orgInvite - -```typescript -const item = await db.orgInvite.create({ - data: { email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', isReadOnly: '', expiresAt: '', entityId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/org-is-manager-of.md b/.agents/skills/orm-public/references/org-is-manager-of.md deleted file mode 100644 index 4c9b730fcc..0000000000 --- a/.agents/skills/orm-public/references/org-is-manager-of.md +++ /dev/null @@ -1,19 +0,0 @@ -# orgIsManagerOf - - - -Execute the orgIsManagerOf query - -## Usage - -```typescript -db.query.orgIsManagerOf({ pEntityId: '', pManagerId: '', pUserId: '', pMaxDepth: '' }).execute() -``` - -## Examples - -### Run orgIsManagerOf - -```typescript -const result = await db.query.orgIsManagerOf({ pEntityId: '', pManagerId: '', pUserId: '', pMaxDepth: '' }).execute(); -``` diff --git a/.agents/skills/orm-public/references/org-limit-aggregate.md b/.agents/skills/orm-public/references/org-limit-aggregate.md deleted file mode 100644 index cab72fb348..0000000000 --- a/.agents/skills/orm-public/references/org-limit-aggregate.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgLimitAggregate - - - -Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) - -## Usage - -```typescript -db.orgLimitAggregate.findMany({ select: { id: true } }).execute() -db.orgLimitAggregate.findOne({ id: '', select: { id: true } }).execute() -db.orgLimitAggregate.create({ data: { name: '', entityId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '', reserved: '', organizationId: '', entityType: '' }, select: { id: true } }).execute() -db.orgLimitAggregate.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.orgLimitAggregate.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgLimitAggregate records - -```typescript -const items = await db.orgLimitAggregate.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a orgLimitAggregate - -```typescript -const item = await db.orgLimitAggregate.create({ - data: { name: '', entityId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '', reserved: '', organizationId: '', entityType: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/org-limit-cap.md b/.agents/skills/orm-public/references/org-limit-cap.md deleted file mode 100644 index 72fc875db3..0000000000 --- a/.agents/skills/orm-public/references/org-limit-cap.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgLimitCap - - - -Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. - -## Usage - -```typescript -db.orgLimitCap.findMany({ select: { id: true } }).execute() -db.orgLimitCap.findOne({ id: '', select: { id: true } }).execute() -db.orgLimitCap.create({ data: { name: '', entityId: '', max: '' }, select: { id: true } }).execute() -db.orgLimitCap.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.orgLimitCap.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgLimitCap records - -```typescript -const items = await db.orgLimitCap.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a orgLimitCap - -```typescript -const item = await db.orgLimitCap.create({ - data: { name: '', entityId: '', max: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/org-limit-caps-default.md b/.agents/skills/orm-public/references/org-limit-caps-default.md deleted file mode 100644 index d314196a9f..0000000000 --- a/.agents/skills/orm-public/references/org-limit-caps-default.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgLimitCapsDefault - - - -Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. - -## Usage - -```typescript -db.orgLimitCapsDefault.findMany({ select: { id: true } }).execute() -db.orgLimitCapsDefault.findOne({ id: '', select: { id: true } }).execute() -db.orgLimitCapsDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute() -db.orgLimitCapsDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.orgLimitCapsDefault.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgLimitCapsDefault records - -```typescript -const items = await db.orgLimitCapsDefault.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a orgLimitCapsDefault - -```typescript -const item = await db.orgLimitCapsDefault.create({ - data: { name: '', max: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/org-limit-credit.md b/.agents/skills/orm-public/references/org-limit-credit.md deleted file mode 100644 index 74ec168607..0000000000 --- a/.agents/skills/orm-public/references/org-limit-credit.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgLimitCredit - - - -Append-only ledger of credit grants that automatically update limit ceilings - -## Usage - -```typescript -db.orgLimitCredit.findMany({ select: { id: true } }).execute() -db.orgLimitCredit.findOne({ id: '', select: { id: true } }).execute() -db.orgLimitCredit.create({ data: { defaultLimitId: '', actorId: '', entityId: '', amount: '', creditType: '', reason: '' }, select: { id: true } }).execute() -db.orgLimitCredit.update({ where: { id: '' }, data: { defaultLimitId: '' }, select: { id: true } }).execute() -db.orgLimitCredit.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgLimitCredit records - -```typescript -const items = await db.orgLimitCredit.findMany({ - select: { id: true, defaultLimitId: true } -}).execute(); -``` - -### Create a orgLimitCredit - -```typescript -const item = await db.orgLimitCredit.create({ - data: { defaultLimitId: '', actorId: '', entityId: '', amount: '', creditType: '', reason: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/org-limit-default.md b/.agents/skills/orm-public/references/org-limit-default.md deleted file mode 100644 index 70eb9ec161..0000000000 --- a/.agents/skills/orm-public/references/org-limit-default.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgLimitDefault - - - -Default maximum values for each named limit, applied when no per-actor override exists - -## Usage - -```typescript -db.orgLimitDefault.findMany({ select: { id: true } }).execute() -db.orgLimitDefault.findOne({ id: '', select: { id: true } }).execute() -db.orgLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute() -db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.orgLimitDefault.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgLimitDefault records - -```typescript -const items = await db.orgLimitDefault.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a orgLimitDefault - -```typescript -const item = await db.orgLimitDefault.create({ - data: { name: '', max: '', softMax: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/org-limit-event.md b/.agents/skills/orm-public/references/org-limit-event.md deleted file mode 100644 index c00894412f..0000000000 --- a/.agents/skills/orm-public/references/org-limit-event.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgLimitEvent - - - -Append-only log of limit events for historical reporting and audit - -## Usage - -```typescript -db.orgLimitEvent.findMany({ select: { id: true } }).execute() -db.orgLimitEvent.findOne({ id: '', select: { id: true } }).execute() -db.orgLimitEvent.create({ data: { name: '', actorId: '', entityId: '', organizationId: '', entityType: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute() -db.orgLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.orgLimitEvent.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgLimitEvent records - -```typescript -const items = await db.orgLimitEvent.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a orgLimitEvent - -```typescript -const item = await db.orgLimitEvent.create({ - data: { name: '', actorId: '', entityId: '', organizationId: '', entityType: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/org-limit-warning.md b/.agents/skills/orm-public/references/org-limit-warning.md deleted file mode 100644 index fc33071499..0000000000 --- a/.agents/skills/orm-public/references/org-limit-warning.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgLimitWarning - - - -Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. - -## Usage - -```typescript -db.orgLimitWarning.findMany({ select: { id: true } }).execute() -db.orgLimitWarning.findOne({ id: '', select: { id: true } }).execute() -db.orgLimitWarning.create({ data: { name: '', warningType: '', thresholdValue: '', taskIdentifier: '', entityId: '' }, select: { id: true } }).execute() -db.orgLimitWarning.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.orgLimitWarning.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgLimitWarning records - -```typescript -const items = await db.orgLimitWarning.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a orgLimitWarning - -```typescript -const item = await db.orgLimitWarning.create({ - data: { name: '', warningType: '', thresholdValue: '', taskIdentifier: '', entityId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/org-limit.md b/.agents/skills/orm-public/references/org-limit.md deleted file mode 100644 index 6376b75357..0000000000 --- a/.agents/skills/orm-public/references/org-limit.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgLimit - - - -Tracks per-actor usage counts against configurable maximum limits - -## Usage - -```typescript -db.orgLimit.findMany({ select: { id: true } }).execute() -db.orgLimit.findOne({ id: '', select: { id: true } }).execute() -db.orgLimit.create({ data: { name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '', entityId: '', organizationId: '', entityType: '' }, select: { id: true } }).execute() -db.orgLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.orgLimit.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgLimit records - -```typescript -const items = await db.orgLimit.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a orgLimit - -```typescript -const item = await db.orgLimit.create({ - data: { name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '', entityId: '', organizationId: '', entityType: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/org-member-profile.md b/.agents/skills/orm-public/references/org-member-profile.md deleted file mode 100644 index 09a8f167ab..0000000000 --- a/.agents/skills/orm-public/references/org-member-profile.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgMemberProfile - - - -Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) - -## Usage - -```typescript -db.orgMemberProfile.findMany({ select: { id: true } }).execute() -db.orgMemberProfile.findOne({ id: '', select: { id: true } }).execute() -db.orgMemberProfile.create({ data: { membershipId: '', entityId: '', actorId: '', displayName: '', email: '', title: '', bio: '', profilePicture: '' }, select: { id: true } }).execute() -db.orgMemberProfile.update({ where: { id: '' }, data: { membershipId: '' }, select: { id: true } }).execute() -db.orgMemberProfile.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgMemberProfile records - -```typescript -const items = await db.orgMemberProfile.findMany({ - select: { id: true, membershipId: true } -}).execute(); -``` - -### Create a orgMemberProfile - -```typescript -const item = await db.orgMemberProfile.create({ - data: { membershipId: '', entityId: '', actorId: '', displayName: '', email: '', title: '', bio: '', profilePicture: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/org-member.md b/.agents/skills/orm-public/references/org-member.md deleted file mode 100644 index e96ac4313e..0000000000 --- a/.agents/skills/orm-public/references/org-member.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgMember - - - -Simplified view of active members in an entity, used for listing who belongs to an org or group - -## Usage - -```typescript -db.orgMember.findMany({ select: { id: true } }).execute() -db.orgMember.findOne({ id: '', select: { id: true } }).execute() -db.orgMember.create({ data: { isAdmin: '', actorId: '', entityId: '' }, select: { id: true } }).execute() -db.orgMember.update({ where: { id: '' }, data: { isAdmin: '' }, select: { id: true } }).execute() -db.orgMember.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgMember records - -```typescript -const items = await db.orgMember.findMany({ - select: { id: true, isAdmin: true } -}).execute(); -``` - -### Create a orgMember - -```typescript -const item = await db.orgMember.create({ - data: { isAdmin: '', actorId: '', entityId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/org-membership-default.md b/.agents/skills/orm-public/references/org-membership-default.md deleted file mode 100644 index 879318e192..0000000000 --- a/.agents/skills/orm-public/references/org-membership-default.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgMembershipDefault - - - -Default membership settings per entity, controlling initial approval and verification state for new members - -## Usage - -```typescript -db.orgMembershipDefault.findMany({ select: { id: true } }).execute() -db.orgMembershipDefault.findOne({ id: '', select: { id: true } }).execute() -db.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '' }, select: { id: true } }).execute() -db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() -db.orgMembershipDefault.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgMembershipDefault records - -```typescript -const items = await db.orgMembershipDefault.findMany({ - select: { id: true, createdBy: true } -}).execute(); -``` - -### Create a orgMembershipDefault - -```typescript -const item = await db.orgMembershipDefault.create({ - data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/org-membership-setting.md b/.agents/skills/orm-public/references/org-membership-setting.md deleted file mode 100644 index 687837b001..0000000000 --- a/.agents/skills/orm-public/references/org-membership-setting.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgMembershipSetting - - - -Per-entity settings for the memberships module - -## Usage - -```typescript -db.orgMembershipSetting.findMany({ select: { id: true } }).execute() -db.orgMembershipSetting.findOne({ id: '', select: { id: true } }).execute() -db.orgMembershipSetting.create({ data: { createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', inviteProfileAssignmentMode: '', populateMemberEmail: '', limitAllocationMode: '' }, select: { id: true } }).execute() -db.orgMembershipSetting.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() -db.orgMembershipSetting.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgMembershipSetting records - -```typescript -const items = await db.orgMembershipSetting.findMany({ - select: { id: true, createdBy: true } -}).execute(); -``` - -### Create a orgMembershipSetting - -```typescript -const item = await db.orgMembershipSetting.create({ - data: { createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', inviteProfileAssignmentMode: '', populateMemberEmail: '', limitAllocationMode: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/org-membership.md b/.agents/skills/orm-public/references/org-membership.md deleted file mode 100644 index 6407f09ee1..0000000000 --- a/.agents/skills/orm-public/references/org-membership.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgMembership - - - -Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status - -## Usage - -```typescript -db.orgMembership.findMany({ select: { id: true } }).execute() -db.orgMembership.findOne({ id: '', select: { id: true } }).execute() -db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isExternal: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', isReadOnly: '', profileId: '' }, select: { id: true } }).execute() -db.orgMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() -db.orgMembership.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgMembership records - -```typescript -const items = await db.orgMembership.findMany({ - select: { id: true, createdBy: true } -}).execute(); -``` - -### Create a orgMembership - -```typescript -const item = await db.orgMembership.create({ - data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isExternal: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', isReadOnly: '', profileId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/org-owner-grant.md b/.agents/skills/orm-public/references/org-owner-grant.md deleted file mode 100644 index 225c9adf87..0000000000 --- a/.agents/skills/orm-public/references/org-owner-grant.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgOwnerGrant - - - -Records of ownership transfers and grants between members - -## Usage - -```typescript -db.orgOwnerGrant.findMany({ select: { id: true } }).execute() -db.orgOwnerGrant.findOne({ id: '', select: { id: true } }).execute() -db.orgOwnerGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute() -db.orgOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute() -db.orgOwnerGrant.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgOwnerGrant records - -```typescript -const items = await db.orgOwnerGrant.findMany({ - select: { id: true, isGrant: true } -}).execute(); -``` - -### Create a orgOwnerGrant - -```typescript -const item = await db.orgOwnerGrant.create({ - data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/org-permission-default.md b/.agents/skills/orm-public/references/org-permission-default.md deleted file mode 100644 index 00402203b8..0000000000 --- a/.agents/skills/orm-public/references/org-permission-default.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgPermissionDefault - - - -Stores the default permission bitmask assigned to new members upon joining - -## Usage - -```typescript -db.orgPermissionDefault.findMany({ select: { id: true } }).execute() -db.orgPermissionDefault.findOne({ id: '', select: { id: true } }).execute() -db.orgPermissionDefault.create({ data: { permissions: '', entityId: '' }, select: { id: true } }).execute() -db.orgPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute() -db.orgPermissionDefault.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgPermissionDefault records - -```typescript -const items = await db.orgPermissionDefault.findMany({ - select: { id: true, permissions: true } -}).execute(); -``` - -### Create a orgPermissionDefault - -```typescript -const item = await db.orgPermissionDefault.create({ - data: { permissions: '', entityId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/org-permission.md b/.agents/skills/orm-public/references/org-permission.md deleted file mode 100644 index 9856832f93..0000000000 --- a/.agents/skills/orm-public/references/org-permission.md +++ /dev/null @@ -1,34 +0,0 @@ -# orgPermission - - - -Defines available permissions as named bits within a bitmask, used by the RBAC system for access control - -## Usage - -```typescript -db.orgPermission.findMany({ select: { id: true } }).execute() -db.orgPermission.findOne({ id: '', select: { id: true } }).execute() -db.orgPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute() -db.orgPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.orgPermission.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all orgPermission records - -```typescript -const items = await db.orgPermission.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a orgPermission - -```typescript -const item = await db.orgPermission.create({ - data: { name: '', bitnum: '', bitstr: '', description: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/org-permissions-get-by-mask.md b/.agents/skills/orm-public/references/org-permissions-get-by-mask.md deleted file mode 100644 index 7d1ded0863..0000000000 --- a/.agents/skills/orm-public/references/org-permissions-get-by-mask.md +++ /dev/null @@ -1,19 +0,0 @@ -# orgPermissionsGetByMask - - - -Reads and enables pagination through a set of `OrgPermission`. - -## Usage - -```typescript -db.query.orgPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute() -``` - -## Examples - -### Run orgPermissionsGetByMask - -```typescript -const result = await db.query.orgPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); -``` diff --git a/.agents/skills/orm-public/references/org-permissions-get-mask-by-names.md b/.agents/skills/orm-public/references/org-permissions-get-mask-by-names.md deleted file mode 100644 index bfe6e1e783..0000000000 --- a/.agents/skills/orm-public/references/org-permissions-get-mask-by-names.md +++ /dev/null @@ -1,19 +0,0 @@ -# orgPermissionsGetMaskByNames - - - -Execute the orgPermissionsGetMaskByNames query - -## Usage - -```typescript -db.query.orgPermissionsGetMaskByNames({ names: '' }).execute() -``` - -## Examples - -### Run orgPermissionsGetMaskByNames - -```typescript -const result = await db.query.orgPermissionsGetMaskByNames({ names: '' }).execute(); -``` diff --git a/.agents/skills/orm-public/references/org-permissions-get-mask.md b/.agents/skills/orm-public/references/org-permissions-get-mask.md deleted file mode 100644 index cf869c6fae..0000000000 --- a/.agents/skills/orm-public/references/org-permissions-get-mask.md +++ /dev/null @@ -1,19 +0,0 @@ -# orgPermissionsGetMask - - - -Execute the orgPermissionsGetMask query - -## Usage - -```typescript -db.query.orgPermissionsGetMask({ ids: '' }).execute() -``` - -## Examples - -### Run orgPermissionsGetMask - -```typescript -const result = await db.query.orgPermissionsGetMask({ ids: '' }).execute(); -``` diff --git a/.agents/skills/orm-public/references/org-permissions-get-padded-mask.md b/.agents/skills/orm-public/references/org-permissions-get-padded-mask.md deleted file mode 100644 index 49d92879b4..0000000000 --- a/.agents/skills/orm-public/references/org-permissions-get-padded-mask.md +++ /dev/null @@ -1,19 +0,0 @@ -# orgPermissionsGetPaddedMask - - - -Execute the orgPermissionsGetPaddedMask query - -## Usage - -```typescript -db.query.orgPermissionsGetPaddedMask({ mask: '' }).execute() -``` - -## Examples - -### Run orgPermissionsGetPaddedMask - -```typescript -const result = await db.query.orgPermissionsGetPaddedMask({ mask: '' }).execute(); -``` diff --git a/.agents/skills/orm-public/references/partition.md b/.agents/skills/orm-public/references/partition.md deleted file mode 100644 index ae1962e6c9..0000000000 --- a/.agents/skills/orm-public/references/partition.md +++ /dev/null @@ -1,34 +0,0 @@ -# partition - - - -ORM operations for Partition records - -## Usage - -```typescript -db.partition.findMany({ select: { id: true } }).execute() -db.partition.findOne({ id: '', select: { id: true } }).execute() -db.partition.create({ data: { databaseId: '', tableId: '', strategy: '', partitionKeyId: '', interval: '', retention: '', retentionKeepTable: '', premake: '', namingPattern: '', isParented: '' }, select: { id: true } }).execute() -db.partition.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.partition.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all partition records - -```typescript -const items = await db.partition.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a partition - -```typescript -const item = await db.partition.create({ - data: { databaseId: '', tableId: '', strategy: '', partitionKeyId: '', interval: '', retention: '', retentionKeepTable: '', premake: '', namingPattern: '', isParented: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/permissions-module.md b/.agents/skills/orm-public/references/permissions-module.md deleted file mode 100644 index 03a4743110..0000000000 --- a/.agents/skills/orm-public/references/permissions-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# permissionsModule - - - -ORM operations for PermissionsModule records - -## Usage - -```typescript -db.permissionsModule.findMany({ select: { id: true } }).execute() -db.permissionsModule.findOne({ id: '', select: { id: true } }).execute() -db.permissionsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', bitlen: '', membershipType: '', entityTableId: '', actorTableId: '', prefix: '', getPaddedMask: '', getMask: '', getByMask: '', getMaskByName: '' }, select: { id: true } }).execute() -db.permissionsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.permissionsModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all permissionsModule records - -```typescript -const items = await db.permissionsModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a permissionsModule - -```typescript -const item = await db.permissionsModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', bitlen: '', membershipType: '', entityTableId: '', actorTableId: '', prefix: '', getPaddedMask: '', getMask: '', getByMask: '', getMaskByName: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/phone-number.md b/.agents/skills/orm-public/references/phone-number.md deleted file mode 100644 index ba36dbfe42..0000000000 --- a/.agents/skills/orm-public/references/phone-number.md +++ /dev/null @@ -1,34 +0,0 @@ -# phoneNumber - - - -User phone numbers with country code, verification, and primary-number management - -## Usage - -```typescript -db.phoneNumber.findMany({ select: { id: true } }).execute() -db.phoneNumber.findOne({ id: '', select: { id: true } }).execute() -db.phoneNumber.create({ data: { ownerId: '', cc: '', number: '', isVerified: '', isPrimary: '', name: '' }, select: { id: true } }).execute() -db.phoneNumber.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute() -db.phoneNumber.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all phoneNumber records - -```typescript -const items = await db.phoneNumber.findMany({ - select: { id: true, ownerId: true } -}).execute(); -``` - -### Create a phoneNumber - -```typescript -const item = await db.phoneNumber.create({ - data: { ownerId: '', cc: '', number: '', isVerified: '', isPrimary: '', name: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/phone-numbers-module.md b/.agents/skills/orm-public/references/phone-numbers-module.md deleted file mode 100644 index 879e9ee829..0000000000 --- a/.agents/skills/orm-public/references/phone-numbers-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# phoneNumbersModule - - - -ORM operations for PhoneNumbersModule records - -## Usage - -```typescript -db.phoneNumbersModule.findMany({ select: { id: true } }).execute() -db.phoneNumbersModule.findOne({ id: '', select: { id: true } }).execute() -db.phoneNumbersModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }, select: { id: true } }).execute() -db.phoneNumbersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.phoneNumbersModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all phoneNumbersModule records - -```typescript -const items = await db.phoneNumbersModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a phoneNumbersModule - -```typescript -const item = await db.phoneNumbersModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/plans-module.md b/.agents/skills/orm-public/references/plans-module.md deleted file mode 100644 index 5b5d7362a8..0000000000 --- a/.agents/skills/orm-public/references/plans-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# plansModule - - - -ORM operations for PlansModule records - -## Usage - -```typescript -db.plansModule.findMany({ select: { id: true } }).execute() -db.plansModule.findOne({ id: '', select: { id: true } }).execute() -db.plansModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', plansTableId: '', plansTableName: '', planLimitsTableId: '', planLimitsTableName: '', planPricingTableId: '', planOverridesTableId: '', applyPlanFunction: '', applyPlanAggregateFunction: '', prefix: '' }, select: { id: true } }).execute() -db.plansModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.plansModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all plansModule records - -```typescript -const items = await db.plansModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a plansModule - -```typescript -const item = await db.plansModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', plansTableId: '', plansTableName: '', planLimitsTableId: '', planLimitsTableName: '', planPricingTableId: '', planOverridesTableId: '', applyPlanFunction: '', applyPlanAggregateFunction: '', prefix: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/policy.md b/.agents/skills/orm-public/references/policy.md deleted file mode 100644 index a96ff2dc53..0000000000 --- a/.agents/skills/orm-public/references/policy.md +++ /dev/null @@ -1,34 +0,0 @@ -# policy - - - -ORM operations for Policy records - -## Usage - -```typescript -db.policy.findMany({ select: { id: true } }).execute() -db.policy.findOne({ id: '', select: { id: true } }).execute() -db.policy.create({ data: { databaseId: '', tableId: '', name: '', granteeName: '', privilege: '', permissive: '', disabled: '', policyType: '', data: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() -db.policy.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.policy.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all policy records - -```typescript -const items = await db.policy.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a policy - -```typescript -const item = await db.policy.create({ - data: { databaseId: '', tableId: '', name: '', granteeName: '', privilege: '', permissive: '', disabled: '', policyType: '', data: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/primary-key-constraint.md b/.agents/skills/orm-public/references/primary-key-constraint.md deleted file mode 100644 index a8036ef905..0000000000 --- a/.agents/skills/orm-public/references/primary-key-constraint.md +++ /dev/null @@ -1,34 +0,0 @@ -# primaryKeyConstraint - - - -ORM operations for PrimaryKeyConstraint records - -## Usage - -```typescript -db.primaryKeyConstraint.findMany({ select: { id: true } }).execute() -db.primaryKeyConstraint.findOne({ id: '', select: { id: true } }).execute() -db.primaryKeyConstraint.create({ data: { databaseId: '', tableId: '', name: '', type: '', fieldIds: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() -db.primaryKeyConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.primaryKeyConstraint.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all primaryKeyConstraint records - -```typescript -const items = await db.primaryKeyConstraint.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a primaryKeyConstraint - -```typescript -const item = await db.primaryKeyConstraint.create({ - data: { databaseId: '', tableId: '', name: '', type: '', fieldIds: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/profiles-module.md b/.agents/skills/orm-public/references/profiles-module.md deleted file mode 100644 index 54564ac1f8..0000000000 --- a/.agents/skills/orm-public/references/profiles-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# profilesModule - - - -ORM operations for ProfilesModule records - -## Usage - -```typescript -db.profilesModule.findMany({ select: { id: true } }).execute() -db.profilesModule.findOne({ id: '', select: { id: true } }).execute() -db.profilesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', profileTemplatesTableId: '', profileTemplatesTableName: '', membershipType: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', prefix: '' }, select: { id: true } }).execute() -db.profilesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.profilesModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all profilesModule records - -```typescript -const items = await db.profilesModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a profilesModule - -```typescript -const item = await db.profilesModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', profileTemplatesTableId: '', profileTemplatesTableName: '', membershipType: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', prefix: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/provision-bucket.md b/.agents/skills/orm-public/references/provision-bucket.md deleted file mode 100644 index a9133530f2..0000000000 --- a/.agents/skills/orm-public/references/provision-bucket.md +++ /dev/null @@ -1,22 +0,0 @@ -# provisionBucket - - - -Provision an S3 bucket for a logical bucket in the database. -Reads the bucket config via RLS, then creates and configures -the S3 bucket with the appropriate privacy policies, CORS rules, -and lifecycle settings. - -## Usage - -```typescript -db.mutation.provisionBucket({ input: { bucketKey: '', ownerId: '' } }).execute() -``` - -## Examples - -### Run provisionBucket - -```typescript -const result = await db.mutation.provisionBucket({ input: { bucketKey: '', ownerId: '' } }).execute(); -``` diff --git a/.agents/skills/orm-public/references/provision-check-constraint.md b/.agents/skills/orm-public/references/provision-check-constraint.md deleted file mode 100644 index bf24f38093..0000000000 --- a/.agents/skills/orm-public/references/provision-check-constraint.md +++ /dev/null @@ -1,19 +0,0 @@ -# provisionCheckConstraint - - - -Creates a check constraint on a table from a $type + data blueprint definition. Supports: CheckOneOf (enum validation via = ANY(ARRAY[...])), CheckGreaterThan (single-column > value or cross-column), CheckLessThan (single-column < value or cross-column), CheckNotEqual (cross-column inequality). Builds AST expressions via ast_helpers and inserts into metaschema_public.check_constraint. Graceful: skips if a constraint with the same name already exists. - -## Usage - -```typescript -db.mutation.provisionCheckConstraint({ input: { databaseId: '', tableId: '', definition: '' } }).execute() -``` - -## Examples - -### Run provisionCheckConstraint - -```typescript -const result = await db.mutation.provisionCheckConstraint({ input: { databaseId: '', tableId: '', definition: '' } }).execute(); -``` diff --git a/.agents/skills/orm-public/references/provision-database-with-user.md b/.agents/skills/orm-public/references/provision-database-with-user.md deleted file mode 100644 index 9efd82846e..0000000000 --- a/.agents/skills/orm-public/references/provision-database-with-user.md +++ /dev/null @@ -1,19 +0,0 @@ -# provisionDatabaseWithUser - - - -Execute the provisionDatabaseWithUser mutation - -## Usage - -```typescript -db.mutation.provisionDatabaseWithUser({ input: { pDatabaseName: '', pDomain: '', pSubdomain: '', pModules: '', pOptions: '' } }).execute() -``` - -## Examples - -### Run provisionDatabaseWithUser - -```typescript -const result = await db.mutation.provisionDatabaseWithUser({ input: { pDatabaseName: '', pDomain: '', pSubdomain: '', pModules: '', pOptions: '' } }).execute(); -``` diff --git a/.agents/skills/orm-public/references/provision-full-text-search.md b/.agents/skills/orm-public/references/provision-full-text-search.md deleted file mode 100644 index af6c6dfe60..0000000000 --- a/.agents/skills/orm-public/references/provision-full-text-search.md +++ /dev/null @@ -1,19 +0,0 @@ -# provisionFullTextSearch - - - -Creates a full-text search configuration on a table. Accepts a jsonb definition with field (tsvector column name) and sources (array of {field, weight, lang}). Graceful: skips if FTS config already exists for the same (table_id, field_id). Returns the fts_id. - -## Usage - -```typescript -db.mutation.provisionFullTextSearch({ input: { databaseId: '', tableId: '', definition: '' } }).execute() -``` - -## Examples - -### Run provisionFullTextSearch - -```typescript -const result = await db.mutation.provisionFullTextSearch({ input: { databaseId: '', tableId: '', definition: '' } }).execute(); -``` diff --git a/.agents/skills/orm-public/references/provision-index.md b/.agents/skills/orm-public/references/provision-index.md deleted file mode 100644 index 183d8b63bf..0000000000 --- a/.agents/skills/orm-public/references/provision-index.md +++ /dev/null @@ -1,19 +0,0 @@ -# provisionIndex - - - -Creates an index on a table. Accepts a jsonb definition with columns (array of names or single column string), access_method (default BTREE), is_unique, op_classes, options, and name (auto-generated if omitted). Graceful: skips if an index with the same (table_id, field_ids, access_method) already exists. Returns the index_id. - -## Usage - -```typescript -db.mutation.provisionIndex({ input: { databaseId: '', tableId: '', definition: '' } }).execute() -``` - -## Examples - -### Run provisionIndex - -```typescript -const result = await db.mutation.provisionIndex({ input: { databaseId: '', tableId: '', definition: '' } }).execute(); -``` diff --git a/.agents/skills/orm-public/references/provision-new-user.md b/.agents/skills/orm-public/references/provision-new-user.md deleted file mode 100644 index b5b29a1339..0000000000 --- a/.agents/skills/orm-public/references/provision-new-user.md +++ /dev/null @@ -1,19 +0,0 @@ -# provisionNewUser - - - -Execute the provisionNewUser mutation - -## Usage - -```typescript -db.mutation.provisionNewUser({ input: { email: '', password: '' } }).execute() -``` - -## Examples - -### Run provisionNewUser - -```typescript -const result = await db.mutation.provisionNewUser({ input: { email: '', password: '' } }).execute(); -``` diff --git a/.agents/skills/orm-public/references/provision-relation.md b/.agents/skills/orm-public/references/provision-relation.md deleted file mode 100644 index 61b6712cf8..0000000000 --- a/.agents/skills/orm-public/references/provision-relation.md +++ /dev/null @@ -1,19 +0,0 @@ -# provisionRelation - - - -Composable relation provisioning: creates FK fields, indexes, unique constraints, and junction tables depending on the relation_type. Supports RelationBelongsTo, RelationHasOne, RelationHasMany, and RelationManyToMany. ManyToMany uses provision_table() internally for junction table creation with full node/grant/policy support. All operations are graceful (skip existing). Returns (out_field_id, out_junction_table_id, out_source_field_id, out_target_field_id). - -## Usage - -```typescript -db.mutation.provisionRelation({ input: '' }).execute() -``` - -## Examples - -### Run provisionRelation - -```typescript -const result = await db.mutation.provisionRelation({ input: '' }).execute(); -``` diff --git a/.agents/skills/orm-public/references/provision-spatial-relation.md b/.agents/skills/orm-public/references/provision-spatial-relation.md deleted file mode 100644 index 78407861b1..0000000000 --- a/.agents/skills/orm-public/references/provision-spatial-relation.md +++ /dev/null @@ -1,19 +0,0 @@ -# provisionSpatialRelation - - - -Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row declaring a spatial predicate between two geometry/geography columns (owner and target). Called from construct_blueprint when a relation entry has $type=RelationSpatial. Graceful: re-running with the same (source_table_id, name) returns the existing id without modifying the row. Operator whitelist and st_dwithin ↔ param_name pairing are enforced by the spatial_relation table CHECKs. Both fields must already exist — this is a metadata-only insert. - -## Usage - -```typescript -db.mutation.provisionSpatialRelation({ input: '' }).execute() -``` - -## Examples - -### Run provisionSpatialRelation - -```typescript -const result = await db.mutation.provisionSpatialRelation({ input: '' }).execute(); -``` diff --git a/.agents/skills/orm-public/references/provision-table.md b/.agents/skills/orm-public/references/provision-table.md deleted file mode 100644 index e8989d30c3..0000000000 --- a/.agents/skills/orm-public/references/provision-table.md +++ /dev/null @@ -1,19 +0,0 @@ -# provisionTable - - - -Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). - -## Usage - -```typescript -db.mutation.provisionTable({ input: '' }).execute() -``` - -## Examples - -### Run provisionTable - -```typescript -const result = await db.mutation.provisionTable({ input: '' }).execute(); -``` diff --git a/.agents/skills/orm-public/references/provision-unique-constraint.md b/.agents/skills/orm-public/references/provision-unique-constraint.md deleted file mode 100644 index d0de9114f9..0000000000 --- a/.agents/skills/orm-public/references/provision-unique-constraint.md +++ /dev/null @@ -1,19 +0,0 @@ -# provisionUniqueConstraint - - - -Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists. - -## Usage - -```typescript -db.mutation.provisionUniqueConstraint({ input: { databaseId: '', tableId: '', definition: '' } }).execute() -``` - -## Examples - -### Run provisionUniqueConstraint - -```typescript -const result = await db.mutation.provisionUniqueConstraint({ input: { databaseId: '', tableId: '', definition: '' } }).execute(); -``` diff --git a/.agents/skills/orm-public/references/pubkey-setting.md b/.agents/skills/orm-public/references/pubkey-setting.md deleted file mode 100644 index 27069a4617..0000000000 --- a/.agents/skills/orm-public/references/pubkey-setting.md +++ /dev/null @@ -1,34 +0,0 @@ -# pubkeySetting - - - -Per-database public-key crypto auth runtime configuration; typed replacement for api_modules pubkey_challenge JSONB entries - -## Usage - -```typescript -db.pubkeySetting.findMany({ select: { id: true } }).execute() -db.pubkeySetting.findOne({ id: '', select: { id: true } }).execute() -db.pubkeySetting.create({ data: { databaseId: '', schemaId: '', cryptoNetwork: '', userField: '', signUpWithKeyFunctionId: '', signInRequestChallengeFunctionId: '', signInRecordFailureFunctionId: '', signInWithChallengeFunctionId: '' }, select: { id: true } }).execute() -db.pubkeySetting.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.pubkeySetting.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all pubkeySetting records - -```typescript -const items = await db.pubkeySetting.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a pubkeySetting - -```typescript -const item = await db.pubkeySetting.create({ - data: { databaseId: '', schemaId: '', cryptoNetwork: '', userField: '', signUpWithKeyFunctionId: '', signInRequestChallengeFunctionId: '', signInRecordFailureFunctionId: '', signInWithChallengeFunctionId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/rate-limit-meters-module.md b/.agents/skills/orm-public/references/rate-limit-meters-module.md deleted file mode 100644 index 6dbb27c0ba..0000000000 --- a/.agents/skills/orm-public/references/rate-limit-meters-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# rateLimitMetersModule - - - -ORM operations for RateLimitMetersModule records - -## Usage - -```typescript -db.rateLimitMetersModule.findMany({ select: { id: true } }).execute() -db.rateLimitMetersModule.findOne({ id: '', select: { id: true } }).execute() -db.rateLimitMetersModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', rateLimitStateTableId: '', rateLimitStateTableName: '', rateLimitOverridesTableId: '', rateLimitOverridesTableName: '', rateWindowLimitsTableId: '', rateWindowLimitsTableName: '', checkRateLimitFunction: '', prefix: '' }, select: { id: true } }).execute() -db.rateLimitMetersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.rateLimitMetersModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all rateLimitMetersModule records - -```typescript -const items = await db.rateLimitMetersModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a rateLimitMetersModule - -```typescript -const item = await db.rateLimitMetersModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', rateLimitStateTableId: '', rateLimitStateTableName: '', rateLimitOverridesTableId: '', rateLimitOverridesTableName: '', rateWindowLimitsTableId: '', rateWindowLimitsTableName: '', checkRateLimitFunction: '', prefix: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/rate-limits-module.md b/.agents/skills/orm-public/references/rate-limits-module.md deleted file mode 100644 index f9e2535eca..0000000000 --- a/.agents/skills/orm-public/references/rate-limits-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# rateLimitsModule - - - -ORM operations for RateLimitsModule records - -## Usage - -```typescript -db.rateLimitsModule.findMany({ select: { id: true } }).execute() -db.rateLimitsModule.findOne({ id: '', select: { id: true } }).execute() -db.rateLimitsModule.create({ data: { databaseId: '', schemaId: '', rateLimitSettingsTableId: '', ipRateLimitsTableId: '', rateLimitsTableId: '', rateLimitSettingsTable: '', ipRateLimitsTable: '', rateLimitsTable: '' }, select: { id: true } }).execute() -db.rateLimitsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.rateLimitsModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all rateLimitsModule records - -```typescript -const items = await db.rateLimitsModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a rateLimitsModule - -```typescript -const item = await db.rateLimitsModule.create({ - data: { databaseId: '', schemaId: '', rateLimitSettingsTableId: '', ipRateLimitsTableId: '', rateLimitsTableId: '', rateLimitSettingsTable: '', ipRateLimitsTable: '', rateLimitsTable: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/realtime-module.md b/.agents/skills/orm-public/references/realtime-module.md deleted file mode 100644 index 720b38a111..0000000000 --- a/.agents/skills/orm-public/references/realtime-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# realtimeModule - - - -ORM operations for RealtimeModule records - -## Usage - -```typescript -db.realtimeModule.findMany({ select: { id: true } }).execute() -db.realtimeModule.findOne({ id: '', select: { id: true } }).execute() -db.realtimeModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', subscriptionsSchemaId: '', changeLogTableId: '', listenerNodeTableId: '', sourceRegistryTableId: '', retentionHours: '', premake: '', interval: '', notifyChannel: '' }, select: { id: true } }).execute() -db.realtimeModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.realtimeModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all realtimeModule records - -```typescript -const items = await db.realtimeModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a realtimeModule - -```typescript -const item = await db.realtimeModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', subscriptionsSchemaId: '', changeLogTableId: '', listenerNodeTableId: '', sourceRegistryTableId: '', retentionHours: '', premake: '', interval: '', notifyChannel: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/ref.md b/.agents/skills/orm-public/references/ref.md deleted file mode 100644 index 56499466ae..0000000000 --- a/.agents/skills/orm-public/references/ref.md +++ /dev/null @@ -1,34 +0,0 @@ -# ref - - - -A ref is a data structure for pointing to a commit. - -## Usage - -```typescript -db.ref.findMany({ select: { id: true } }).execute() -db.ref.findOne({ id: '', select: { id: true } }).execute() -db.ref.create({ data: { name: '', databaseId: '', storeId: '', commitId: '' }, select: { id: true } }).execute() -db.ref.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.ref.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all ref records - -```typescript -const items = await db.ref.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a ref - -```typescript -const item = await db.ref.create({ - data: { name: '', databaseId: '', storeId: '', commitId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/reject-database-transfer.md b/.agents/skills/orm-public/references/reject-database-transfer.md deleted file mode 100644 index a4e8548411..0000000000 --- a/.agents/skills/orm-public/references/reject-database-transfer.md +++ /dev/null @@ -1,19 +0,0 @@ -# rejectDatabaseTransfer - - - -Execute the rejectDatabaseTransfer mutation - -## Usage - -```typescript -db.mutation.rejectDatabaseTransfer({ input: { transferId: '' } }).execute() -``` - -## Examples - -### Run rejectDatabaseTransfer - -```typescript -const result = await db.mutation.rejectDatabaseTransfer({ input: { transferId: '' } }).execute(); -``` diff --git a/.agents/skills/orm-public/references/relation-provision.md b/.agents/skills/orm-public/references/relation-provision.md deleted file mode 100644 index ec6d973a92..0000000000 --- a/.agents/skills/orm-public/references/relation-provision.md +++ /dev/null @@ -1,41 +0,0 @@ -# relationProvision - - - -Provisions relational structure between tables. Supports four relation types: - - RelationBelongsTo: adds a FK field on the source table referencing the target table (child perspective: "tasks belongs to projects" -> tasks.project_id). - - RelationHasMany: adds a FK field on the target table referencing the source table (parent perspective: "projects has many tasks" -> tasks.project_id). Inverse of BelongsTo. - - RelationHasOne: adds a FK field with a unique constraint on the source table referencing the target table. Also supports shared-primary-key patterns where the FK field IS the primary key (set field_name to the existing PK field name). - - RelationManyToMany: creates a junction table with FK fields to both source and target tables, delegating table creation and security to secure_table_provision. - This is a one-and-done structural provisioner. To layer additional security onto junction tables after creation, use secure_table_provision directly. - All operations are graceful: existing fields, FK constraints, and unique constraints are reused if found. - The trigger never injects values the caller did not provide. All security config is forwarded to secure_table_provision as-is. - -## Usage - -```typescript -db.relationProvision.findMany({ select: { id: true } }).execute() -db.relationProvision.findOne({ id: '', select: { id: true } }).execute() -db.relationProvision.create({ data: { databaseId: '', relationType: '', sourceTableId: '', targetTableId: '', fieldName: '', deleteAction: '', isRequired: '', apiRequired: '', junctionTableId: '', junctionTableName: '', junctionSchemaId: '', sourceFieldName: '', targetFieldName: '', useCompositeKey: '', createIndex: '', exposeInApi: '', nodes: '', grants: '', policies: '', outFieldId: '', outJunctionTableId: '', outSourceFieldId: '', outTargetFieldId: '' }, select: { id: true } }).execute() -db.relationProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.relationProvision.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all relationProvision records - -```typescript -const items = await db.relationProvision.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a relationProvision - -```typescript -const item = await db.relationProvision.create({ - data: { databaseId: '', relationType: '', sourceTableId: '', targetTableId: '', fieldName: '', deleteAction: '', isRequired: '', apiRequired: '', junctionTableId: '', junctionTableName: '', junctionSchemaId: '', sourceFieldName: '', targetFieldName: '', useCompositeKey: '', createIndex: '', exposeInApi: '', nodes: '', grants: '', policies: '', outFieldId: '', outJunctionTableId: '', outSourceFieldId: '', outTargetFieldId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/remove-node-at-path.md b/.agents/skills/orm-public/references/remove-node-at-path.md deleted file mode 100644 index 84d7fdbbf2..0000000000 --- a/.agents/skills/orm-public/references/remove-node-at-path.md +++ /dev/null @@ -1,19 +0,0 @@ -# removeNodeAtPath - - - -Execute the removeNodeAtPath mutation - -## Usage - -```typescript -db.mutation.removeNodeAtPath({ input: { dbId: '', root: '', path: '' } }).execute() -``` - -## Examples - -### Run removeNodeAtPath - -```typescript -const result = await db.mutation.removeNodeAtPath({ input: { dbId: '', root: '', path: '' } }).execute(); -``` diff --git a/.agents/skills/orm-public/references/request-cross-origin-token.md b/.agents/skills/orm-public/references/request-cross-origin-token.md deleted file mode 100644 index 10572d1426..0000000000 --- a/.agents/skills/orm-public/references/request-cross-origin-token.md +++ /dev/null @@ -1,19 +0,0 @@ -# requestCrossOriginToken - - - -Execute the requestCrossOriginToken mutation - -## Usage - -```typescript -db.mutation.requestCrossOriginToken({ input: { email: '', password: '', origin: '', rememberMe: '' } }).execute() -``` - -## Examples - -### Run requestCrossOriginToken - -```typescript -const result = await db.mutation.requestCrossOriginToken({ input: { email: '', password: '', origin: '', rememberMe: '' } }).execute(); -``` diff --git a/.agents/skills/orm-public/references/request-upload-url.md b/.agents/skills/orm-public/references/request-upload-url.md deleted file mode 100644 index e3c6d37ef8..0000000000 --- a/.agents/skills/orm-public/references/request-upload-url.md +++ /dev/null @@ -1,22 +0,0 @@ -# requestUploadUrl - - - -Request a presigned URL for uploading a file directly to S3. -Client computes SHA-256 of the file content and provides it here. -If a file with the same hash already exists (dedup), returns the -existing file ID and deduplicated=true with no uploadUrl. - -## Usage - -```typescript -db.mutation.requestUploadUrl({ input: '' }).execute() -``` - -## Examples - -### Run requestUploadUrl - -```typescript -const result = await db.mutation.requestUploadUrl({ input: '' }).execute(); -``` diff --git a/.agents/skills/orm-public/references/require-step-up.md b/.agents/skills/orm-public/references/require-step-up.md deleted file mode 100644 index a0838149e4..0000000000 --- a/.agents/skills/orm-public/references/require-step-up.md +++ /dev/null @@ -1,19 +0,0 @@ -# requireStepUp - - - -Execute the requireStepUp query - -## Usage - -```typescript -db.query.requireStepUp({ stepUpType: '' }).execute() -``` - -## Examples - -### Run requireStepUp - -```typescript -const result = await db.query.requireStepUp({ stepUpType: '' }).execute(); -``` diff --git a/.agents/skills/orm-public/references/reset-password.md b/.agents/skills/orm-public/references/reset-password.md deleted file mode 100644 index 16cfacbd4f..0000000000 --- a/.agents/skills/orm-public/references/reset-password.md +++ /dev/null @@ -1,19 +0,0 @@ -# resetPassword - - - -Execute the resetPassword mutation - -## Usage - -```typescript -db.mutation.resetPassword({ input: { roleId: '', resetToken: '', newPassword: '' } }).execute() -``` - -## Examples - -### Run resetPassword - -```typescript -const result = await db.mutation.resetPassword({ input: { roleId: '', resetToken: '', newPassword: '' } }).execute(); -``` diff --git a/.agents/skills/orm-public/references/resolve-blueprint-field.md b/.agents/skills/orm-public/references/resolve-blueprint-field.md deleted file mode 100644 index 55ae9fa56c..0000000000 --- a/.agents/skills/orm-public/references/resolve-blueprint-field.md +++ /dev/null @@ -1,19 +0,0 @@ -# resolveBlueprintField - - - -Resolves a field_name within a given table_id to a field_id. Throws if no match is found. Used by construct_blueprint to translate user-authored field names (e.g. "location") into field UUIDs for downstream provisioning procedures. table_id must already be resolved (via resolve_blueprint_table) before calling this. - -## Usage - -```typescript -db.query.resolveBlueprintField({ databaseId: '', tableId: '', fieldName: '' }).execute() -``` - -## Examples - -### Run resolveBlueprintField - -```typescript -const result = await db.query.resolveBlueprintField({ databaseId: '', tableId: '', fieldName: '' }).execute(); -``` diff --git a/.agents/skills/orm-public/references/resolve-blueprint-table.md b/.agents/skills/orm-public/references/resolve-blueprint-table.md deleted file mode 100644 index d3fb9c40e7..0000000000 --- a/.agents/skills/orm-public/references/resolve-blueprint-table.md +++ /dev/null @@ -1,19 +0,0 @@ -# resolveBlueprintTable - - - -Resolves a table_name (with optional schema_name) to a table_id. Resolution order: (1) if schema_name provided, exact lookup via metaschema_public.schema.name + metaschema_public.table; (2) check local table_map (tables created in current blueprint); (3) search metaschema_public.table by name across all schemas; (4) if multiple matches, throw ambiguous error asking for schema_name; (5) if no match, throw not-found error. - -## Usage - -```typescript -db.query.resolveBlueprintTable({ databaseId: '', tableName: '', schemaName: '', tableMap: '', defaultSchemaId: '' }).execute() -``` - -## Examples - -### Run resolveBlueprintTable - -```typescript -const result = await db.query.resolveBlueprintTable({ databaseId: '', tableName: '', schemaName: '', tableMap: '', defaultSchemaId: '' }).execute(); -``` diff --git a/.agents/skills/orm-public/references/rev-parse.md b/.agents/skills/orm-public/references/rev-parse.md deleted file mode 100644 index 7fffc37e47..0000000000 --- a/.agents/skills/orm-public/references/rev-parse.md +++ /dev/null @@ -1,19 +0,0 @@ -# revParse - - - -Execute the revParse query - -## Usage - -```typescript -db.query.revParse({ dbId: '', storeId: '', refname: '' }).execute() -``` - -## Examples - -### Run revParse - -```typescript -const result = await db.query.revParse({ dbId: '', storeId: '', refname: '' }).execute(); -``` diff --git a/.agents/skills/orm-public/references/revoke-api-key.md b/.agents/skills/orm-public/references/revoke-api-key.md deleted file mode 100644 index 08dd4669a2..0000000000 --- a/.agents/skills/orm-public/references/revoke-api-key.md +++ /dev/null @@ -1,19 +0,0 @@ -# revokeApiKey - - - -Execute the revokeApiKey mutation - -## Usage - -```typescript -db.mutation.revokeApiKey({ input: { keyId: '' } }).execute() -``` - -## Examples - -### Run revokeApiKey - -```typescript -const result = await db.mutation.revokeApiKey({ input: { keyId: '' } }).execute(); -``` diff --git a/.agents/skills/orm-public/references/revoke-session.md b/.agents/skills/orm-public/references/revoke-session.md deleted file mode 100644 index 4a3282392f..0000000000 --- a/.agents/skills/orm-public/references/revoke-session.md +++ /dev/null @@ -1,19 +0,0 @@ -# revokeSession - - - -Execute the revokeSession mutation - -## Usage - -```typescript -db.mutation.revokeSession({ input: { sessionId: '' } }).execute() -``` - -## Examples - -### Run revokeSession - -```typescript -const result = await db.mutation.revokeSession({ input: { sessionId: '' } }).execute(); -``` diff --git a/.agents/skills/orm-public/references/rls-module.md b/.agents/skills/orm-public/references/rls-module.md deleted file mode 100644 index e60c78a17a..0000000000 --- a/.agents/skills/orm-public/references/rls-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# rlsModule - - - -ORM operations for RlsModule records - -## Usage - -```typescript -db.rlsModule.findMany({ select: { id: true } }).execute() -db.rlsModule.findOne({ id: '', select: { id: true } }).execute() -db.rlsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', sessionCredentialsTableId: '', sessionsTableId: '', usersTableId: '', authenticate: '', authenticateStrict: '', currentRole: '', currentRoleId: '' }, select: { id: true } }).execute() -db.rlsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.rlsModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all rlsModule records - -```typescript -const items = await db.rlsModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a rlsModule - -```typescript -const item = await db.rlsModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', sessionCredentialsTableId: '', sessionsTableId: '', usersTableId: '', authenticate: '', authenticateStrict: '', currentRole: '', currentRoleId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/rls-setting.md b/.agents/skills/orm-public/references/rls-setting.md deleted file mode 100644 index deb6e1b174..0000000000 --- a/.agents/skills/orm-public/references/rls-setting.md +++ /dev/null @@ -1,34 +0,0 @@ -# rlsSetting - - - -Per-database RLS module runtime configuration; typed replacement for api_modules rls_module JSONB entries - -## Usage - -```typescript -db.rlsSetting.findMany({ select: { id: true } }).execute() -db.rlsSetting.findOne({ id: '', select: { id: true } }).execute() -db.rlsSetting.create({ data: { databaseId: '', authenticateSchemaId: '', roleSchemaId: '', authenticateFunctionId: '', authenticateStrictFunctionId: '', currentRoleFunctionId: '', currentRoleIdFunctionId: '', currentUserAgentFunctionId: '', currentIpAddressFunctionId: '' }, select: { id: true } }).execute() -db.rlsSetting.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.rlsSetting.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all rlsSetting records - -```typescript -const items = await db.rlsSetting.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a rlsSetting - -```typescript -const item = await db.rlsSetting.create({ - data: { databaseId: '', authenticateSchemaId: '', roleSchemaId: '', authenticateFunctionId: '', authenticateStrictFunctionId: '', currentRoleFunctionId: '', currentRoleIdFunctionId: '', currentUserAgentFunctionId: '', currentIpAddressFunctionId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/role-type.md b/.agents/skills/orm-public/references/role-type.md deleted file mode 100644 index f0e1b91ed5..0000000000 --- a/.agents/skills/orm-public/references/role-type.md +++ /dev/null @@ -1,34 +0,0 @@ -# roleType - - - -ORM operations for RoleType records - -## Usage - -```typescript -db.roleType.findMany({ select: { id: true } }).execute() -db.roleType.findOne({ id: '', select: { id: true } }).execute() -db.roleType.create({ data: { name: '' }, select: { id: true } }).execute() -db.roleType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.roleType.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all roleType records - -```typescript -const items = await db.roleType.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a roleType - -```typescript -const item = await db.roleType.create({ - data: { name: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/schema-grant.md b/.agents/skills/orm-public/references/schema-grant.md deleted file mode 100644 index c13416b524..0000000000 --- a/.agents/skills/orm-public/references/schema-grant.md +++ /dev/null @@ -1,34 +0,0 @@ -# schemaGrant - - - -ORM operations for SchemaGrant records - -## Usage - -```typescript -db.schemaGrant.findMany({ select: { id: true } }).execute() -db.schemaGrant.findOne({ id: '', select: { id: true } }).execute() -db.schemaGrant.create({ data: { databaseId: '', schemaId: '', granteeName: '' }, select: { id: true } }).execute() -db.schemaGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.schemaGrant.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all schemaGrant records - -```typescript -const items = await db.schemaGrant.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a schemaGrant - -```typescript -const item = await db.schemaGrant.create({ - data: { databaseId: '', schemaId: '', granteeName: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/schema.md b/.agents/skills/orm-public/references/schema.md deleted file mode 100644 index e028a6438f..0000000000 --- a/.agents/skills/orm-public/references/schema.md +++ /dev/null @@ -1,34 +0,0 @@ -# schema - - - -ORM operations for Schema records - -## Usage - -```typescript -db.schema.findMany({ select: { id: true } }).execute() -db.schema.findOne({ id: '', select: { id: true } }).execute() -db.schema.create({ data: { databaseId: '', name: '', schemaName: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', tags: '', isPublic: '' }, select: { id: true } }).execute() -db.schema.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.schema.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all schema records - -```typescript -const items = await db.schema.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a schema - -```typescript -const item = await db.schema.create({ - data: { databaseId: '', name: '', schemaName: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', tags: '', isPublic: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/secrets-module.md b/.agents/skills/orm-public/references/secrets-module.md deleted file mode 100644 index b8c9874585..0000000000 --- a/.agents/skills/orm-public/references/secrets-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# secretsModule - - - -ORM operations for SecretsModule records - -## Usage - -```typescript -db.secretsModule.findMany({ select: { id: true } }).execute() -db.secretsModule.findOne({ id: '', select: { id: true } }).execute() -db.secretsModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute() -db.secretsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.secretsModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all secretsModule records - -```typescript -const items = await db.secretsModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a secretsModule - -```typescript -const item = await db.secretsModule.create({ - data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/secure-table-provision.md b/.agents/skills/orm-public/references/secure-table-provision.md deleted file mode 100644 index e5bc1b0178..0000000000 --- a/.agents/skills/orm-public/references/secure-table-provision.md +++ /dev/null @@ -1,34 +0,0 @@ -# secureTableProvision - - - -Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grants[] array (supporting per-role privilege targeting), (3) create RLS policies via policies[] array (supporting multiple Authz* policies per row). Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. - -## Usage - -```typescript -db.secureTableProvision.findMany({ select: { id: true } }).execute() -db.secureTableProvision.findOne({ id: '', select: { id: true } }).execute() -db.secureTableProvision.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', nodes: '', useRls: '', fields: '', grants: '', policies: '', outFields: '' }, select: { id: true } }).execute() -db.secureTableProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.secureTableProvision.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all secureTableProvision records - -```typescript -const items = await db.secureTableProvision.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a secureTableProvision - -```typescript -const item = await db.secureTableProvision.create({ - data: { databaseId: '', schemaId: '', tableId: '', tableName: '', nodes: '', useRls: '', fields: '', grants: '', policies: '', outFields: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/send-account-deletion-email.md b/.agents/skills/orm-public/references/send-account-deletion-email.md deleted file mode 100644 index 08b00dc3d5..0000000000 --- a/.agents/skills/orm-public/references/send-account-deletion-email.md +++ /dev/null @@ -1,19 +0,0 @@ -# sendAccountDeletionEmail - - - -Execute the sendAccountDeletionEmail mutation - -## Usage - -```typescript -db.mutation.sendAccountDeletionEmail({ input: '' }).execute() -``` - -## Examples - -### Run sendAccountDeletionEmail - -```typescript -const result = await db.mutation.sendAccountDeletionEmail({ input: '' }).execute(); -``` diff --git a/.agents/skills/orm-public/references/send-verification-email.md b/.agents/skills/orm-public/references/send-verification-email.md deleted file mode 100644 index 20ea144e4a..0000000000 --- a/.agents/skills/orm-public/references/send-verification-email.md +++ /dev/null @@ -1,19 +0,0 @@ -# sendVerificationEmail - - - -Execute the sendVerificationEmail mutation - -## Usage - -```typescript -db.mutation.sendVerificationEmail({ input: { email: '' } }).execute() -``` - -## Examples - -### Run sendVerificationEmail - -```typescript -const result = await db.mutation.sendVerificationEmail({ input: { email: '' } }).execute(); -``` diff --git a/.agents/skills/orm-public/references/session-secrets-module.md b/.agents/skills/orm-public/references/session-secrets-module.md deleted file mode 100644 index 996da9a44c..0000000000 --- a/.agents/skills/orm-public/references/session-secrets-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# sessionSecretsModule - - - -Config row for the session_secrets_module, which provisions a DB-private, session-scoped ephemeral key-value store for challenges, nonces, and one-time tokens that must never be readable by end users. - -## Usage - -```typescript -db.sessionSecretsModule.findMany({ select: { id: true } }).execute() -db.sessionSecretsModule.findOne({ id: '', select: { id: true } }).execute() -db.sessionSecretsModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', sessionsTableId: '' }, select: { id: true } }).execute() -db.sessionSecretsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.sessionSecretsModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all sessionSecretsModule records - -```typescript -const items = await db.sessionSecretsModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a sessionSecretsModule - -```typescript -const item = await db.sessionSecretsModule.create({ - data: { databaseId: '', schemaId: '', tableId: '', tableName: '', sessionsTableId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/sessions-module.md b/.agents/skills/orm-public/references/sessions-module.md deleted file mode 100644 index 7820e56214..0000000000 --- a/.agents/skills/orm-public/references/sessions-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# sessionsModule - - - -ORM operations for SessionsModule records - -## Usage - -```typescript -db.sessionsModule.findMany({ select: { id: true } }).execute() -db.sessionsModule.findOne({ id: '', select: { id: true } }).execute() -db.sessionsModule.create({ data: { databaseId: '', schemaId: '', sessionsTableId: '', sessionCredentialsTableId: '', authSettingsTableId: '', usersTableId: '', sessionsDefaultExpiration: '', sessionsTable: '', sessionCredentialsTable: '', authSettingsTable: '' }, select: { id: true } }).execute() -db.sessionsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.sessionsModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all sessionsModule records - -```typescript -const items = await db.sessionsModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a sessionsModule - -```typescript -const item = await db.sessionsModule.create({ - data: { databaseId: '', schemaId: '', sessionsTableId: '', sessionCredentialsTableId: '', authSettingsTableId: '', usersTableId: '', sessionsDefaultExpiration: '', sessionsTable: '', sessionCredentialsTable: '', authSettingsTable: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/set-and-commit.md b/.agents/skills/orm-public/references/set-and-commit.md deleted file mode 100644 index ad6df17886..0000000000 --- a/.agents/skills/orm-public/references/set-and-commit.md +++ /dev/null @@ -1,19 +0,0 @@ -# setAndCommit - - - -Execute the setAndCommit mutation - -## Usage - -```typescript -db.mutation.setAndCommit({ input: '' }).execute() -``` - -## Examples - -### Run setAndCommit - -```typescript -const result = await db.mutation.setAndCommit({ input: '' }).execute(); -``` diff --git a/.agents/skills/orm-public/references/set-data-at-path.md b/.agents/skills/orm-public/references/set-data-at-path.md deleted file mode 100644 index 6098a15a51..0000000000 --- a/.agents/skills/orm-public/references/set-data-at-path.md +++ /dev/null @@ -1,19 +0,0 @@ -# setDataAtPath - - - -Execute the setDataAtPath mutation - -## Usage - -```typescript -db.mutation.setDataAtPath({ input: { dbId: '', root: '', path: '', data: '' } }).execute() -``` - -## Examples - -### Run setDataAtPath - -```typescript -const result = await db.mutation.setDataAtPath({ input: { dbId: '', root: '', path: '', data: '' } }).execute(); -``` diff --git a/.agents/skills/orm-public/references/set-field-order.md b/.agents/skills/orm-public/references/set-field-order.md deleted file mode 100644 index a210bff170..0000000000 --- a/.agents/skills/orm-public/references/set-field-order.md +++ /dev/null @@ -1,19 +0,0 @@ -# setFieldOrder - - - -Execute the setFieldOrder mutation - -## Usage - -```typescript -db.mutation.setFieldOrder({ input: { fieldIds: '' } }).execute() -``` - -## Examples - -### Run setFieldOrder - -```typescript -const result = await db.mutation.setFieldOrder({ input: { fieldIds: '' } }).execute(); -``` diff --git a/.agents/skills/orm-public/references/set-password.md b/.agents/skills/orm-public/references/set-password.md deleted file mode 100644 index 599e1aac53..0000000000 --- a/.agents/skills/orm-public/references/set-password.md +++ /dev/null @@ -1,19 +0,0 @@ -# setPassword - - - -Execute the setPassword mutation - -## Usage - -```typescript -db.mutation.setPassword({ input: { currentPassword: '', newPassword: '' } }).execute() -``` - -## Examples - -### Run setPassword - -```typescript -const result = await db.mutation.setPassword({ input: { currentPassword: '', newPassword: '' } }).execute(); -``` diff --git a/.agents/skills/orm-public/references/set-props-and-commit.md b/.agents/skills/orm-public/references/set-props-and-commit.md deleted file mode 100644 index c5573289b9..0000000000 --- a/.agents/skills/orm-public/references/set-props-and-commit.md +++ /dev/null @@ -1,19 +0,0 @@ -# setPropsAndCommit - - - -Execute the setPropsAndCommit mutation - -## Usage - -```typescript -db.mutation.setPropsAndCommit({ input: { dbId: '', storeId: '', refname: '', path: '', data: '' } }).execute() -``` - -## Examples - -### Run setPropsAndCommit - -```typescript -const result = await db.mutation.setPropsAndCommit({ input: { dbId: '', storeId: '', refname: '', path: '', data: '' } }).execute(); -``` diff --git a/.agents/skills/orm-public/references/sign-in-cross-origin.md b/.agents/skills/orm-public/references/sign-in-cross-origin.md deleted file mode 100644 index f61dfa8459..0000000000 --- a/.agents/skills/orm-public/references/sign-in-cross-origin.md +++ /dev/null @@ -1,19 +0,0 @@ -# signInCrossOrigin - - - -Execute the signInCrossOrigin mutation - -## Usage - -```typescript -db.mutation.signInCrossOrigin({ input: { token: '', credentialKind: '' } }).execute() -``` - -## Examples - -### Run signInCrossOrigin - -```typescript -const result = await db.mutation.signInCrossOrigin({ input: { token: '', credentialKind: '' } }).execute(); -``` diff --git a/.agents/skills/orm-public/references/sign-in-one-time-token.md b/.agents/skills/orm-public/references/sign-in-one-time-token.md deleted file mode 100644 index 7f7eb4da11..0000000000 --- a/.agents/skills/orm-public/references/sign-in-one-time-token.md +++ /dev/null @@ -1,19 +0,0 @@ -# signInOneTimeToken - - - -Execute the signInOneTimeToken mutation - -## Usage - -```typescript -db.mutation.signInOneTimeToken({ input: { token: '', credentialKind: '' } }).execute() -``` - -## Examples - -### Run signInOneTimeToken - -```typescript -const result = await db.mutation.signInOneTimeToken({ input: { token: '', credentialKind: '' } }).execute(); -``` diff --git a/.agents/skills/orm-public/references/sign-in.md b/.agents/skills/orm-public/references/sign-in.md deleted file mode 100644 index 60bab69861..0000000000 --- a/.agents/skills/orm-public/references/sign-in.md +++ /dev/null @@ -1,19 +0,0 @@ -# signIn - - - -Execute the signIn mutation - -## Usage - -```typescript -db.mutation.signIn({ input: '' }).execute() -``` - -## Examples - -### Run signIn - -```typescript -const result = await db.mutation.signIn({ input: '' }).execute(); -``` diff --git a/.agents/skills/orm-public/references/sign-out.md b/.agents/skills/orm-public/references/sign-out.md deleted file mode 100644 index 40fa429979..0000000000 --- a/.agents/skills/orm-public/references/sign-out.md +++ /dev/null @@ -1,19 +0,0 @@ -# signOut - - - -Execute the signOut mutation - -## Usage - -```typescript -db.mutation.signOut({ input: '' }).execute() -``` - -## Examples - -### Run signOut - -```typescript -const result = await db.mutation.signOut({ input: '' }).execute(); -``` diff --git a/.agents/skills/orm-public/references/sign-up.md b/.agents/skills/orm-public/references/sign-up.md deleted file mode 100644 index e0416150e0..0000000000 --- a/.agents/skills/orm-public/references/sign-up.md +++ /dev/null @@ -1,19 +0,0 @@ -# signUp - - - -Execute the signUp mutation - -## Usage - -```typescript -db.mutation.signUp({ input: '' }).execute() -``` - -## Examples - -### Run signUp - -```typescript -const result = await db.mutation.signUp({ input: '' }).execute(); -``` diff --git a/.agents/skills/orm-public/references/site-metadatum.md b/.agents/skills/orm-public/references/site-metadatum.md deleted file mode 100644 index 90648b34a9..0000000000 --- a/.agents/skills/orm-public/references/site-metadatum.md +++ /dev/null @@ -1,34 +0,0 @@ -# siteMetadatum - - - -SEO and social sharing metadata for a site: page title, description, and Open Graph image - -## Usage - -```typescript -db.siteMetadatum.findMany({ select: { id: true } }).execute() -db.siteMetadatum.findOne({ id: '', select: { id: true } }).execute() -db.siteMetadatum.create({ data: { databaseId: '', siteId: '', title: '', description: '', ogImage: '' }, select: { id: true } }).execute() -db.siteMetadatum.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.siteMetadatum.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all siteMetadatum records - -```typescript -const items = await db.siteMetadatum.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a siteMetadatum - -```typescript -const item = await db.siteMetadatum.create({ - data: { databaseId: '', siteId: '', title: '', description: '', ogImage: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/site-module.md b/.agents/skills/orm-public/references/site-module.md deleted file mode 100644 index a55da11dfb..0000000000 --- a/.agents/skills/orm-public/references/site-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# siteModule - - - -Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site - -## Usage - -```typescript -db.siteModule.findMany({ select: { id: true } }).execute() -db.siteModule.findOne({ id: '', select: { id: true } }).execute() -db.siteModule.create({ data: { databaseId: '', siteId: '', name: '', data: '' }, select: { id: true } }).execute() -db.siteModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.siteModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all siteModule records - -```typescript -const items = await db.siteModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a siteModule - -```typescript -const item = await db.siteModule.create({ - data: { databaseId: '', siteId: '', name: '', data: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/site-theme.md b/.agents/skills/orm-public/references/site-theme.md deleted file mode 100644 index 7d9777c6cf..0000000000 --- a/.agents/skills/orm-public/references/site-theme.md +++ /dev/null @@ -1,34 +0,0 @@ -# siteTheme - - - -Theme configuration for a site; stores design tokens, colors, and typography as JSONB - -## Usage - -```typescript -db.siteTheme.findMany({ select: { id: true } }).execute() -db.siteTheme.findOne({ id: '', select: { id: true } }).execute() -db.siteTheme.create({ data: { databaseId: '', siteId: '', theme: '' }, select: { id: true } }).execute() -db.siteTheme.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.siteTheme.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all siteTheme records - -```typescript -const items = await db.siteTheme.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a siteTheme - -```typescript -const item = await db.siteTheme.create({ - data: { databaseId: '', siteId: '', theme: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/site.md b/.agents/skills/orm-public/references/site.md deleted file mode 100644 index 80a999a93a..0000000000 --- a/.agents/skills/orm-public/references/site.md +++ /dev/null @@ -1,34 +0,0 @@ -# site - - - -Top-level site configuration: branding assets, title, and description for a deployed application - -## Usage - -```typescript -db.site.findMany({ select: { id: true } }).execute() -db.site.findOne({ id: '', select: { id: true } }).execute() -db.site.create({ data: { databaseId: '', title: '', description: '', ogImage: '', favicon: '', appleTouchIcon: '', logo: '', dbname: '' }, select: { id: true } }).execute() -db.site.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.site.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all site records - -```typescript -const items = await db.site.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a site - -```typescript -const item = await db.site.create({ - data: { databaseId: '', title: '', description: '', ogImage: '', favicon: '', appleTouchIcon: '', logo: '', dbname: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/spatial-relation.md b/.agents/skills/orm-public/references/spatial-relation.md deleted file mode 100644 index c0094eb821..0000000000 --- a/.agents/skills/orm-public/references/spatial-relation.md +++ /dev/null @@ -1,34 +0,0 @@ -# spatialRelation - - - -ORM operations for SpatialRelation records - -## Usage - -```typescript -db.spatialRelation.findMany({ select: { id: true } }).execute() -db.spatialRelation.findOne({ id: '', select: { id: true } }).execute() -db.spatialRelation.create({ data: { databaseId: '', tableId: '', fieldId: '', refTableId: '', refFieldId: '', name: '', operator: '', paramName: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() -db.spatialRelation.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.spatialRelation.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all spatialRelation records - -```typescript -const items = await db.spatialRelation.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a spatialRelation - -```typescript -const item = await db.spatialRelation.create({ - data: { databaseId: '', tableId: '', fieldId: '', refTableId: '', refFieldId: '', name: '', operator: '', paramName: '', category: '', module: '', scope: '', tags: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/sql-action.md b/.agents/skills/orm-public/references/sql-action.md deleted file mode 100644 index 856968aa22..0000000000 --- a/.agents/skills/orm-public/references/sql-action.md +++ /dev/null @@ -1,34 +0,0 @@ -# sqlAction - - - -ORM operations for SqlAction records - -## Usage - -```typescript -db.sqlAction.findMany({ select: { id: true } }).execute() -db.sqlAction.findOne({ id: '', select: { id: true } }).execute() -db.sqlAction.create({ data: { name: '', databaseId: '', deploy: '', deps: '', payload: '', content: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }, select: { id: true } }).execute() -db.sqlAction.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.sqlAction.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all sqlAction records - -```typescript -const items = await db.sqlAction.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a sqlAction - -```typescript -const item = await db.sqlAction.create({ - data: { name: '', databaseId: '', deploy: '', deps: '', payload: '', content: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/sql-migration.md b/.agents/skills/orm-public/references/sql-migration.md deleted file mode 100644 index a0c3eca969..0000000000 --- a/.agents/skills/orm-public/references/sql-migration.md +++ /dev/null @@ -1,34 +0,0 @@ -# sqlMigration - - - -ORM operations for SqlMigration records - -## Usage - -```typescript -db.sqlMigration.findMany({ select: { id: true } }).execute() -db.sqlMigration.findOne({ id: '', select: { id: true } }).execute() -db.sqlMigration.create({ data: { name: '', databaseId: '', deploy: '', deps: '', payload: '', content: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }, select: { id: true } }).execute() -db.sqlMigration.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.sqlMigration.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all sqlMigration records - -```typescript -const items = await db.sqlMigration.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a sqlMigration - -```typescript -const item = await db.sqlMigration.create({ - data: { name: '', databaseId: '', deploy: '', deps: '', payload: '', content: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/steps-achieved.md b/.agents/skills/orm-public/references/steps-achieved.md deleted file mode 100644 index 692487f2be..0000000000 --- a/.agents/skills/orm-public/references/steps-achieved.md +++ /dev/null @@ -1,19 +0,0 @@ -# stepsAchieved - - - -Execute the stepsAchieved query - -## Usage - -```typescript -db.query.stepsAchieved({ level: '', roleId: '' }).execute() -``` - -## Examples - -### Run stepsAchieved - -```typescript -const result = await db.query.stepsAchieved({ level: '', roleId: '' }).execute(); -``` diff --git a/.agents/skills/orm-public/references/steps-required.md b/.agents/skills/orm-public/references/steps-required.md deleted file mode 100644 index 4eace17069..0000000000 --- a/.agents/skills/orm-public/references/steps-required.md +++ /dev/null @@ -1,19 +0,0 @@ -# stepsRequired - - - -Reads and enables pagination through a set of `AppLevelRequirement`. - -## Usage - -```typescript -db.query.stepsRequired({ level: '', roleId: '', first: '', offset: '', after: '' }).execute() -``` - -## Examples - -### Run stepsRequired - -```typescript -const result = await db.query.stepsRequired({ level: '', roleId: '', first: '', offset: '', after: '' }).execute(); -``` diff --git a/.agents/skills/orm-public/references/storage-log-module.md b/.agents/skills/orm-public/references/storage-log-module.md deleted file mode 100644 index 90686e4f55..0000000000 --- a/.agents/skills/orm-public/references/storage-log-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# storageLogModule - - - -ORM operations for StorageLogModule records - -## Usage - -```typescript -db.storageLogModule.findMany({ select: { id: true } }).execute() -db.storageLogModule.findOne({ id: '', select: { id: true } }).execute() -db.storageLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', storageLogTableId: '', storageLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '' }, select: { id: true } }).execute() -db.storageLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.storageLogModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all storageLogModule records - -```typescript -const items = await db.storageLogModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a storageLogModule - -```typescript -const item = await db.storageLogModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', storageLogTableId: '', storageLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/storage-module.md b/.agents/skills/orm-public/references/storage-module.md deleted file mode 100644 index 1d505cac2f..0000000000 --- a/.agents/skills/orm-public/references/storage-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# storageModule - - - -ORM operations for StorageModule records - -## Usage - -```typescript -db.storageModule.findMany({ select: { id: true } }).execute() -db.storageModule.findOne({ id: '', select: { id: true } }).execute() -db.storageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', membershipType: '', key: '', policies: '', provisions: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '' }, select: { id: true } }).execute() -db.storageModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.storageModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all storageModule records - -```typescript -const items = await db.storageModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a storageModule - -```typescript -const item = await db.storageModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', membershipType: '', key: '', policies: '', provisions: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/store.md b/.agents/skills/orm-public/references/store.md deleted file mode 100644 index 63f88e898e..0000000000 --- a/.agents/skills/orm-public/references/store.md +++ /dev/null @@ -1,34 +0,0 @@ -# store - - - -A store represents an isolated object repository within a database. - -## Usage - -```typescript -db.store.findMany({ select: { id: true } }).execute() -db.store.findOne({ id: '', select: { id: true } }).execute() -db.store.create({ data: { name: '', databaseId: '', hash: '' }, select: { id: true } }).execute() -db.store.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() -db.store.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all store records - -```typescript -const items = await db.store.findMany({ - select: { id: true, name: true } -}).execute(); -``` - -### Create a store - -```typescript -const item = await db.store.create({ - data: { name: '', databaseId: '', hash: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/submit-app-invite-code.md b/.agents/skills/orm-public/references/submit-app-invite-code.md deleted file mode 100644 index 1ba6fcae30..0000000000 --- a/.agents/skills/orm-public/references/submit-app-invite-code.md +++ /dev/null @@ -1,19 +0,0 @@ -# submitAppInviteCode - - - -Execute the submitAppInviteCode mutation - -## Usage - -```typescript -db.mutation.submitAppInviteCode({ input: { token: '' } }).execute() -``` - -## Examples - -### Run submitAppInviteCode - -```typescript -const result = await db.mutation.submitAppInviteCode({ input: { token: '' } }).execute(); -``` diff --git a/.agents/skills/orm-public/references/submit-invite-code.md b/.agents/skills/orm-public/references/submit-invite-code.md deleted file mode 100644 index c4c989519e..0000000000 --- a/.agents/skills/orm-public/references/submit-invite-code.md +++ /dev/null @@ -1,19 +0,0 @@ -# submitInviteCode - - - -Execute the submitInviteCode mutation - -## Usage - -```typescript -db.mutation.submitInviteCode({ input: { token: '' } }).execute() -``` - -## Examples - -### Run submitInviteCode - -```typescript -const result = await db.mutation.submitInviteCode({ input: { token: '' } }).execute(); -``` diff --git a/.agents/skills/orm-public/references/submit-org-invite-code.md b/.agents/skills/orm-public/references/submit-org-invite-code.md deleted file mode 100644 index 702fd53a46..0000000000 --- a/.agents/skills/orm-public/references/submit-org-invite-code.md +++ /dev/null @@ -1,19 +0,0 @@ -# submitOrgInviteCode - - - -Execute the submitOrgInviteCode mutation - -## Usage - -```typescript -db.mutation.submitOrgInviteCode({ input: { token: '' } }).execute() -``` - -## Examples - -### Run submitOrgInviteCode - -```typescript -const result = await db.mutation.submitOrgInviteCode({ input: { token: '' } }).execute(); -``` diff --git a/.agents/skills/orm-public/references/table-grant.md b/.agents/skills/orm-public/references/table-grant.md deleted file mode 100644 index a312157df1..0000000000 --- a/.agents/skills/orm-public/references/table-grant.md +++ /dev/null @@ -1,34 +0,0 @@ -# tableGrant - - - -ORM operations for TableGrant records - -## Usage - -```typescript -db.tableGrant.findMany({ select: { id: true } }).execute() -db.tableGrant.findOne({ id: '', select: { id: true } }).execute() -db.tableGrant.create({ data: { databaseId: '', tableId: '', privilege: '', granteeName: '', fieldIds: '', isGrant: '' }, select: { id: true } }).execute() -db.tableGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.tableGrant.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all tableGrant records - -```typescript -const items = await db.tableGrant.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a tableGrant - -```typescript -const item = await db.tableGrant.create({ - data: { databaseId: '', tableId: '', privilege: '', granteeName: '', fieldIds: '', isGrant: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/table-template-module.md b/.agents/skills/orm-public/references/table-template-module.md deleted file mode 100644 index 8deefecb0f..0000000000 --- a/.agents/skills/orm-public/references/table-template-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# tableTemplateModule - - - -ORM operations for TableTemplateModule records - -## Usage - -```typescript -db.tableTemplateModule.findMany({ select: { id: true } }).execute() -db.tableTemplateModule.findOne({ id: '', select: { id: true } }).execute() -db.tableTemplateModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', nodeType: '', data: '' }, select: { id: true } }).execute() -db.tableTemplateModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.tableTemplateModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all tableTemplateModule records - -```typescript -const items = await db.tableTemplateModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a tableTemplateModule - -```typescript -const item = await db.tableTemplateModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', nodeType: '', data: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/table.md b/.agents/skills/orm-public/references/table.md deleted file mode 100644 index e10c909b0d..0000000000 --- a/.agents/skills/orm-public/references/table.md +++ /dev/null @@ -1,34 +0,0 @@ -# table - - - -ORM operations for Table records - -## Usage - -```typescript -db.table.findMany({ select: { id: true } }).execute() -db.table.findOne({ id: '', select: { id: true } }).execute() -db.table.create({ data: { databaseId: '', schemaId: '', name: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', useRls: '', timestamps: '', peoplestamps: '', pluralName: '', singularName: '', tags: '', partitioned: '', partitionStrategy: '', partitionKeyNames: '', partitionKeyTypes: '', inheritsId: '' }, select: { id: true } }).execute() -db.table.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.table.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all table records - -```typescript -const items = await db.table.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a table - -```typescript -const item = await db.table.create({ - data: { databaseId: '', schemaId: '', name: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', useRls: '', timestamps: '', peoplestamps: '', pluralName: '', singularName: '', tags: '', partitioned: '', partitionStrategy: '', partitionKeyNames: '', partitionKeyTypes: '', inheritsId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/transfer-log-module.md b/.agents/skills/orm-public/references/transfer-log-module.md deleted file mode 100644 index ef006392d1..0000000000 --- a/.agents/skills/orm-public/references/transfer-log-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# transferLogModule - - - -ORM operations for TransferLogModule records - -## Usage - -```typescript -db.transferLogModule.findMany({ select: { id: true } }).execute() -db.transferLogModule.findOne({ id: '', select: { id: true } }).execute() -db.transferLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', transferLogTableId: '', transferLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '' }, select: { id: true } }).execute() -db.transferLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.transferLogModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all transferLogModule records - -```typescript -const items = await db.transferLogModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a transferLogModule - -```typescript -const item = await db.transferLogModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', transferLogTableId: '', transferLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/trigger-function.md b/.agents/skills/orm-public/references/trigger-function.md deleted file mode 100644 index 4cef6f445b..0000000000 --- a/.agents/skills/orm-public/references/trigger-function.md +++ /dev/null @@ -1,34 +0,0 @@ -# triggerFunction - - - -ORM operations for TriggerFunction records - -## Usage - -```typescript -db.triggerFunction.findMany({ select: { id: true } }).execute() -db.triggerFunction.findOne({ id: '', select: { id: true } }).execute() -db.triggerFunction.create({ data: { databaseId: '', name: '', code: '' }, select: { id: true } }).execute() -db.triggerFunction.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.triggerFunction.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all triggerFunction records - -```typescript -const items = await db.triggerFunction.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a triggerFunction - -```typescript -const item = await db.triggerFunction.create({ - data: { databaseId: '', name: '', code: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/trigger.md b/.agents/skills/orm-public/references/trigger.md deleted file mode 100644 index ed25868a14..0000000000 --- a/.agents/skills/orm-public/references/trigger.md +++ /dev/null @@ -1,34 +0,0 @@ -# trigger - - - -ORM operations for Trigger records - -## Usage - -```typescript -db.trigger.findMany({ select: { id: true } }).execute() -db.trigger.findOne({ id: '', select: { id: true } }).execute() -db.trigger.create({ data: { databaseId: '', tableId: '', name: '', event: '', functionName: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() -db.trigger.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.trigger.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all trigger records - -```typescript -const items = await db.trigger.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a trigger - -```typescript -const item = await db.trigger.create({ - data: { databaseId: '', tableId: '', name: '', event: '', functionName: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/unique-constraint.md b/.agents/skills/orm-public/references/unique-constraint.md deleted file mode 100644 index 3202c59c00..0000000000 --- a/.agents/skills/orm-public/references/unique-constraint.md +++ /dev/null @@ -1,34 +0,0 @@ -# uniqueConstraint - - - -ORM operations for UniqueConstraint records - -## Usage - -```typescript -db.uniqueConstraint.findMany({ select: { id: true } }).execute() -db.uniqueConstraint.findOne({ id: '', select: { id: true } }).execute() -db.uniqueConstraint.create({ data: { databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() -db.uniqueConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.uniqueConstraint.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all uniqueConstraint records - -```typescript -const items = await db.uniqueConstraint.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a uniqueConstraint - -```typescript -const item = await db.uniqueConstraint.create({ - data: { databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', category: '', module: '', scope: '', tags: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/update-node-at-path.md b/.agents/skills/orm-public/references/update-node-at-path.md deleted file mode 100644 index f5d70a74a4..0000000000 --- a/.agents/skills/orm-public/references/update-node-at-path.md +++ /dev/null @@ -1,19 +0,0 @@ -# updateNodeAtPath - - - -Execute the updateNodeAtPath mutation - -## Usage - -```typescript -db.mutation.updateNodeAtPath({ input: '' }).execute() -``` - -## Examples - -### Run updateNodeAtPath - -```typescript -const result = await db.mutation.updateNodeAtPath({ input: '' }).execute(); -``` diff --git a/.agents/skills/orm-public/references/usage-snapshot.md b/.agents/skills/orm-public/references/usage-snapshot.md deleted file mode 100644 index 10db640433..0000000000 --- a/.agents/skills/orm-public/references/usage-snapshot.md +++ /dev/null @@ -1,34 +0,0 @@ -# usageSnapshot - - - -Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. - -## Usage - -```typescript -db.usageSnapshot.findMany({ select: { id: true } }).execute() -db.usageSnapshot.findOne({ id: '', select: { id: true } }).execute() -db.usageSnapshot.create({ data: { databaseId: '', metricName: '', metricValue: '', dimensions: '', capturedAt: '' }, select: { id: true } }).execute() -db.usageSnapshot.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.usageSnapshot.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all usageSnapshot records - -```typescript -const items = await db.usageSnapshot.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a usageSnapshot - -```typescript -const item = await db.usageSnapshot.create({ - data: { databaseId: '', metricName: '', metricValue: '', dimensions: '', capturedAt: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/user-auth-module.md b/.agents/skills/orm-public/references/user-auth-module.md deleted file mode 100644 index c4d91dae94..0000000000 --- a/.agents/skills/orm-public/references/user-auth-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# userAuthModule - - - -ORM operations for UserAuthModule records - -## Usage - -```typescript -db.userAuthModule.findMany({ select: { id: true } }).execute() -db.userAuthModule.findOne({ id: '', select: { id: true } }).execute() -db.userAuthModule.create({ data: { databaseId: '', schemaId: '', emailsTableId: '', usersTableId: '', secretsTableId: '', encryptedTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', auditsTableId: '', auditsTableName: '', signInFunction: '', signUpFunction: '', signOutFunction: '', setPasswordFunction: '', resetPasswordFunction: '', forgotPasswordFunction: '', sendVerificationEmailFunction: '', verifyEmailFunction: '', verifyPasswordFunction: '', checkPasswordFunction: '', sendAccountDeletionEmailFunction: '', deleteAccountFunction: '', signInCrossOriginFunction: '', requestCrossOriginTokenFunction: '', extendTokenExpires: '' }, select: { id: true } }).execute() -db.userAuthModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.userAuthModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all userAuthModule records - -```typescript -const items = await db.userAuthModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a userAuthModule - -```typescript -const item = await db.userAuthModule.create({ - data: { databaseId: '', schemaId: '', emailsTableId: '', usersTableId: '', secretsTableId: '', encryptedTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', auditsTableId: '', auditsTableName: '', signInFunction: '', signUpFunction: '', signOutFunction: '', setPasswordFunction: '', resetPasswordFunction: '', forgotPasswordFunction: '', sendVerificationEmailFunction: '', verifyEmailFunction: '', verifyPasswordFunction: '', checkPasswordFunction: '', sendAccountDeletionEmailFunction: '', deleteAccountFunction: '', signInCrossOriginFunction: '', requestCrossOriginTokenFunction: '', extendTokenExpires: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/user-connected-account.md b/.agents/skills/orm-public/references/user-connected-account.md deleted file mode 100644 index 107f387513..0000000000 --- a/.agents/skills/orm-public/references/user-connected-account.md +++ /dev/null @@ -1,34 +0,0 @@ -# userConnectedAccount - - - -ORM operations for UserConnectedAccount records - -## Usage - -```typescript -db.userConnectedAccount.findMany({ select: { id: true } }).execute() -db.userConnectedAccount.findOne({ id: '', select: { id: true } }).execute() -db.userConnectedAccount.create({ data: { ownerId: '', service: '', identifier: '', details: '', isVerified: '' }, select: { id: true } }).execute() -db.userConnectedAccount.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute() -db.userConnectedAccount.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all userConnectedAccount records - -```typescript -const items = await db.userConnectedAccount.findMany({ - select: { id: true, ownerId: true } -}).execute(); -``` - -### Create a userConnectedAccount - -```typescript -const item = await db.userConnectedAccount.create({ - data: { ownerId: '', service: '', identifier: '', details: '', isVerified: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/user-state-module.md b/.agents/skills/orm-public/references/user-state-module.md deleted file mode 100644 index 4110d5ff75..0000000000 --- a/.agents/skills/orm-public/references/user-state-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# userStateModule - - - -ORM operations for UserStateModule records - -## Usage - -```typescript -db.userStateModule.findMany({ select: { id: true } }).execute() -db.userStateModule.findOne({ id: '', select: { id: true } }).execute() -db.userStateModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute() -db.userStateModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.userStateModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all userStateModule records - -```typescript -const items = await db.userStateModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a userStateModule - -```typescript -const item = await db.userStateModule.create({ - data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/user.md b/.agents/skills/orm-public/references/user.md deleted file mode 100644 index 2d8a3cb41d..0000000000 --- a/.agents/skills/orm-public/references/user.md +++ /dev/null @@ -1,37 +0,0 @@ -# user - - - -ORM operations for User records - -**Unified Search API fields:** `searchTsv` -Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. - -## Usage - -```typescript -db.user.findMany({ select: { id: true } }).execute() -db.user.findOne({ id: '', select: { id: true } }).execute() -db.user.create({ data: { username: '', displayName: '', profilePicture: '', searchTsv: '', type: '', searchTsvRank: '', displayNameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute() -db.user.update({ where: { id: '' }, data: { username: '' }, select: { id: true } }).execute() -db.user.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all user records - -```typescript -const items = await db.user.findMany({ - select: { id: true, username: true } -}).execute(); -``` - -### Create a user - -```typescript -const item = await db.user.create({ - data: { username: '', displayName: '', profilePicture: '', searchTsv: '', type: '', searchTsvRank: '', displayNameTrgmSimilarity: '', searchScore: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/users-module.md b/.agents/skills/orm-public/references/users-module.md deleted file mode 100644 index 631d9acdf9..0000000000 --- a/.agents/skills/orm-public/references/users-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# usersModule - - - -ORM operations for UsersModule records - -## Usage - -```typescript -db.usersModule.findMany({ select: { id: true } }).execute() -db.usersModule.findOne({ id: '', select: { id: true } }).execute() -db.usersModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', typeTableId: '', typeTableName: '' }, select: { id: true } }).execute() -db.usersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.usersModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all usersModule records - -```typescript -const items = await db.usersModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a usersModule - -```typescript -const item = await db.usersModule.create({ - data: { databaseId: '', schemaId: '', tableId: '', tableName: '', typeTableId: '', typeTableName: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/verify-email.md b/.agents/skills/orm-public/references/verify-email.md deleted file mode 100644 index 773e857183..0000000000 --- a/.agents/skills/orm-public/references/verify-email.md +++ /dev/null @@ -1,19 +0,0 @@ -# verifyEmail - - - -Execute the verifyEmail mutation - -## Usage - -```typescript -db.mutation.verifyEmail({ input: { emailId: '', token: '' } }).execute() -``` - -## Examples - -### Run verifyEmail - -```typescript -const result = await db.mutation.verifyEmail({ input: { emailId: '', token: '' } }).execute(); -``` diff --git a/.agents/skills/orm-public/references/verify-password.md b/.agents/skills/orm-public/references/verify-password.md deleted file mode 100644 index 90053064ae..0000000000 --- a/.agents/skills/orm-public/references/verify-password.md +++ /dev/null @@ -1,19 +0,0 @@ -# verifyPassword - - - -Execute the verifyPassword mutation - -## Usage - -```typescript -db.mutation.verifyPassword({ input: { password: '' } }).execute() -``` - -## Examples - -### Run verifyPassword - -```typescript -const result = await db.mutation.verifyPassword({ input: { password: '' } }).execute(); -``` diff --git a/.agents/skills/orm-public/references/verify-totp.md b/.agents/skills/orm-public/references/verify-totp.md deleted file mode 100644 index a1d71c2348..0000000000 --- a/.agents/skills/orm-public/references/verify-totp.md +++ /dev/null @@ -1,19 +0,0 @@ -# verifyTotp - - - -Execute the verifyTotp mutation - -## Usage - -```typescript -db.mutation.verifyTotp({ input: { totpValue: '' } }).execute() -``` - -## Examples - -### Run verifyTotp - -```typescript -const result = await db.mutation.verifyTotp({ input: { totpValue: '' } }).execute(); -``` diff --git a/.agents/skills/orm-public/references/view-grant.md b/.agents/skills/orm-public/references/view-grant.md deleted file mode 100644 index dd146a26d8..0000000000 --- a/.agents/skills/orm-public/references/view-grant.md +++ /dev/null @@ -1,34 +0,0 @@ -# viewGrant - - - -ORM operations for ViewGrant records - -## Usage - -```typescript -db.viewGrant.findMany({ select: { id: true } }).execute() -db.viewGrant.findOne({ id: '', select: { id: true } }).execute() -db.viewGrant.create({ data: { databaseId: '', viewId: '', granteeName: '', privilege: '', withGrantOption: '', isGrant: '' }, select: { id: true } }).execute() -db.viewGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.viewGrant.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all viewGrant records - -```typescript -const items = await db.viewGrant.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a viewGrant - -```typescript -const item = await db.viewGrant.create({ - data: { databaseId: '', viewId: '', granteeName: '', privilege: '', withGrantOption: '', isGrant: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/view-rule.md b/.agents/skills/orm-public/references/view-rule.md deleted file mode 100644 index 4f35c87d46..0000000000 --- a/.agents/skills/orm-public/references/view-rule.md +++ /dev/null @@ -1,34 +0,0 @@ -# viewRule - - - -DO INSTEAD rules for views (e.g., read-only enforcement) - -## Usage - -```typescript -db.viewRule.findMany({ select: { id: true } }).execute() -db.viewRule.findOne({ id: '', select: { id: true } }).execute() -db.viewRule.create({ data: { databaseId: '', viewId: '', name: '', event: '', action: '' }, select: { id: true } }).execute() -db.viewRule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.viewRule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all viewRule records - -```typescript -const items = await db.viewRule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a viewRule - -```typescript -const item = await db.viewRule.create({ - data: { databaseId: '', viewId: '', name: '', event: '', action: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/view-table.md b/.agents/skills/orm-public/references/view-table.md deleted file mode 100644 index cc8dc554c9..0000000000 --- a/.agents/skills/orm-public/references/view-table.md +++ /dev/null @@ -1,34 +0,0 @@ -# viewTable - - - -Junction table linking views to their joined tables for referential integrity - -## Usage - -```typescript -db.viewTable.findMany({ select: { id: true } }).execute() -db.viewTable.findOne({ id: '', select: { id: true } }).execute() -db.viewTable.create({ data: { viewId: '', tableId: '', joinOrder: '' }, select: { id: true } }).execute() -db.viewTable.update({ where: { id: '' }, data: { viewId: '' }, select: { id: true } }).execute() -db.viewTable.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all viewTable records - -```typescript -const items = await db.viewTable.findMany({ - select: { id: true, viewId: true } -}).execute(); -``` - -### Create a viewTable - -```typescript -const item = await db.viewTable.create({ - data: { viewId: '', tableId: '', joinOrder: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/view.md b/.agents/skills/orm-public/references/view.md deleted file mode 100644 index d68d36500a..0000000000 --- a/.agents/skills/orm-public/references/view.md +++ /dev/null @@ -1,34 +0,0 @@ -# view - - - -ORM operations for View records - -## Usage - -```typescript -db.view.findMany({ select: { id: true } }).execute() -db.view.findOne({ id: '', select: { id: true } }).execute() -db.view.create({ data: { databaseId: '', schemaId: '', name: '', tableId: '', viewType: '', data: '', filterType: '', filterData: '', securityInvoker: '', isReadOnly: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() -db.view.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.view.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all view records - -```typescript -const items = await db.view.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a view - -```typescript -const item = await db.view.create({ - data: { databaseId: '', schemaId: '', name: '', tableId: '', viewType: '', data: '', filterType: '', filterData: '', securityInvoker: '', isReadOnly: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/webauthn-auth-module.md b/.agents/skills/orm-public/references/webauthn-auth-module.md deleted file mode 100644 index c8d9588e01..0000000000 --- a/.agents/skills/orm-public/references/webauthn-auth-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# webauthnAuthModule - - - -ORM operations for WebauthnAuthModule records - -## Usage - -```typescript -db.webauthnAuthModule.findMany({ select: { id: true } }).execute() -db.webauthnAuthModule.findOne({ id: '', select: { id: true } }).execute() -db.webauthnAuthModule.create({ data: { databaseId: '', schemaId: '', usersTableId: '', credentialsTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', sessionSecretsTableId: '', authSettingsTableId: '', rpId: '', rpName: '', originAllowlist: '', attestationType: '', requireUserVerification: '', residentKey: '', challengeExpiry: '' }, select: { id: true } }).execute() -db.webauthnAuthModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.webauthnAuthModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all webauthnAuthModule records - -```typescript -const items = await db.webauthnAuthModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a webauthnAuthModule - -```typescript -const item = await db.webauthnAuthModule.create({ - data: { databaseId: '', schemaId: '', usersTableId: '', credentialsTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', sessionSecretsTableId: '', authSettingsTableId: '', rpId: '', rpName: '', originAllowlist: '', attestationType: '', requireUserVerification: '', residentKey: '', challengeExpiry: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/webauthn-credential.md b/.agents/skills/orm-public/references/webauthn-credential.md deleted file mode 100644 index 4f923f712c..0000000000 --- a/.agents/skills/orm-public/references/webauthn-credential.md +++ /dev/null @@ -1,34 +0,0 @@ -# webauthnCredential - - - -WebAuthn/passkey credentials owned by users. One row per registered authenticator (security key, device biometric, synced passkey). Schema mirrors SimpleWebAuthn's canonical Passkey object. - -## Usage - -```typescript -db.webauthnCredential.findMany({ select: { id: true } }).execute() -db.webauthnCredential.findOne({ id: '', select: { id: true } }).execute() -db.webauthnCredential.create({ data: { ownerId: '', credentialId: '', publicKey: '', signCount: '', webauthnUserId: '', transports: '', credentialDeviceType: '', backupEligible: '', backupState: '', name: '', lastUsedAt: '' }, select: { id: true } }).execute() -db.webauthnCredential.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute() -db.webauthnCredential.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all webauthnCredential records - -```typescript -const items = await db.webauthnCredential.findMany({ - select: { id: true, ownerId: true } -}).execute(); -``` - -### Create a webauthnCredential - -```typescript -const item = await db.webauthnCredential.create({ - data: { ownerId: '', credentialId: '', publicKey: '', signCount: '', webauthnUserId: '', transports: '', credentialDeviceType: '', backupEligible: '', backupState: '', name: '', lastUsedAt: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/webauthn-credentials-module.md b/.agents/skills/orm-public/references/webauthn-credentials-module.md deleted file mode 100644 index bd8654a08e..0000000000 --- a/.agents/skills/orm-public/references/webauthn-credentials-module.md +++ /dev/null @@ -1,34 +0,0 @@ -# webauthnCredentialsModule - - - -Config row for the webauthn_credentials_module, which provisions the per-user WebAuthn/passkey credentials table (public key, counter, transports, device type, backup state) mirroring crypto_addresses_module. The sibling webauthn_auth_module holds RP config and the registration/sign-in challenge state. - -## Usage - -```typescript -db.webauthnCredentialsModule.findMany({ select: { id: true } }).execute() -db.webauthnCredentialsModule.findOne({ id: '', select: { id: true } }).execute() -db.webauthnCredentialsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }, select: { id: true } }).execute() -db.webauthnCredentialsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.webauthnCredentialsModule.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all webauthnCredentialsModule records - -```typescript -const items = await db.webauthnCredentialsModule.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a webauthnCredentialsModule - -```typescript -const item = await db.webauthnCredentialsModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-public/references/webauthn-setting.md b/.agents/skills/orm-public/references/webauthn-setting.md deleted file mode 100644 index 9464fed54e..0000000000 --- a/.agents/skills/orm-public/references/webauthn-setting.md +++ /dev/null @@ -1,34 +0,0 @@ -# webauthnSetting - - - -Per-database WebAuthn/passkey runtime configuration; typed replacement for api_modules webauthn_challenge JSONB entries - -## Usage - -```typescript -db.webauthnSetting.findMany({ select: { id: true } }).execute() -db.webauthnSetting.findOne({ id: '', select: { id: true } }).execute() -db.webauthnSetting.create({ data: { databaseId: '', schemaId: '', credentialsSchemaId: '', sessionsSchemaId: '', sessionSecretsSchemaId: '', credentialsTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', sessionSecretsTableId: '', userFieldId: '', rpId: '', rpName: '', originAllowlist: '', attestationType: '', requireUserVerification: '', residentKey: '', challengeExpirySeconds: '' }, select: { id: true } }).execute() -db.webauthnSetting.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() -db.webauthnSetting.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all webauthnSetting records - -```typescript -const items = await db.webauthnSetting.findMany({ - select: { id: true, databaseId: true } -}).execute(); -``` - -### Create a webauthnSetting - -```typescript -const item = await db.webauthnSetting.create({ - data: { databaseId: '', schemaId: '', credentialsSchemaId: '', sessionsSchemaId: '', sessionSecretsSchemaId: '', credentialsTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', sessionSecretsTableId: '', userFieldId: '', rpId: '', rpName: '', originAllowlist: '', attestationType: '', requireUserVerification: '', residentKey: '', challengeExpirySeconds: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-remote/SKILL.md b/.agents/skills/orm-remote/SKILL.md index cc937bceed..1c7d61ae14 100644 --- a/.agents/skills/orm-remote/SKILL.md +++ b/.agents/skills/orm-remote/SKILL.md @@ -1,13 +1,13 @@ --- name: orm-remote -description: ORM client for the remote API — provides typed CRUD operations for 3 tables and 2 custom operations +description: ORM client for the remote API — provides typed CRUD operations for 3 tables and 3 custom operations --- # orm-remote -ORM client for the remote API — provides typed CRUD operations for 3 tables and 2 custom operations +ORM client for the remote API — provides typed CRUD operations for 3 tables and 3 custom operations ## Usage @@ -40,5 +40,6 @@ See the `references/` directory for detailed per-entity API documentation: - [machine](references/machine.md) - [machine-message](references/machine-message.md) - [machine-session](references/machine-session.md) +- [current-database-id](references/current-database-id.md) - [machines-enroll](references/machines-enroll.md) - [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/orm-remote/references/current-database-id.md b/.agents/skills/orm-remote/references/current-database-id.md new file mode 100644 index 0000000000..5877233d74 --- /dev/null +++ b/.agents/skills/orm-remote/references/current-database-id.md @@ -0,0 +1,19 @@ +# currentDatabaseId + + + +Execute the currentDatabaseId query + +## Usage + +```typescript +db.query.currentDatabaseId().execute() +``` + +## Examples + +### Run currentDatabaseId + +```typescript +const result = await db.query.currentDatabaseId().execute(); +``` diff --git a/.agents/skills/orm-storage/references/bucket.md b/.agents/skills/orm-storage/references/bucket.md index 01a2080eb1..197d687c52 100644 --- a/.agents/skills/orm-storage/references/bucket.md +++ b/.agents/skills/orm-storage/references/bucket.md @@ -9,7 +9,7 @@ Logical storage containers that group files with shared access policies and CDN ```typescript db.bucket.findMany({ select: { id: true } }).execute() db.bucket.findOne({ id: '', select: { id: true } }).execute() -db.bucket.create({ data: { actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', databaseId: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxBulkFiles: '', maxFileSize: '', physicalName: '', provisionRequestedAt: '', stagingTtl: '', tags: '', type: '' }, select: { id: true } }).execute() +db.bucket.create({ data: { actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', databaseId: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxFileSize: '', physicalName: '', provisionRequestedAt: '', stagingTtl: '', tags: '', type: '' }, select: { id: true } }).execute() db.bucket.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() db.bucket.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.bucket.findMany({ ```typescript const item = await db.bucket.create({ - data: { actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', databaseId: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxBulkFiles: '', maxFileSize: '', physicalName: '', provisionRequestedAt: '', stagingTtl: '', tags: '', type: '' }, + data: { actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', databaseId: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxFileSize: '', physicalName: '', provisionRequestedAt: '', stagingTtl: '', tags: '', type: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-storage/references/file.md b/.agents/skills/orm-storage/references/file.md index c528fdeb8b..ff6d77cb8a 100644 --- a/.agents/skills/orm-storage/references/file.md +++ b/.agents/skills/orm-storage/references/file.md @@ -9,7 +9,6 @@ Individual file records within buckets, with immutable identity fields and mutab ```typescript db.file.findMany({ select: { id: true } }).execute() db.file.findOne({ id: '', select: { id: true } }).execute() -db.file.create({ data: { actorId: '', bucketId: '', contentHash: '', databaseId: '', description: '', downloadUrl: '', expiryEnqueuedAt: '', filePath: '', filename: '', isPublic: '', key: '', mimeType: '', promotedAt: '', size: '', status: '', tags: '', upload: '' }, select: { id: true } }).execute() db.file.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() db.file.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.file.findMany({ select: { id: true, actorId: true } }).execute(); ``` - -### Create a file - -```typescript -const item = await db.file.create({ - data: { actorId: '', bucketId: '', contentHash: '', databaseId: '', description: '', downloadUrl: '', expiryEnqueuedAt: '', filePath: '', filename: '', isPublic: '', key: '', mimeType: '', promotedAt: '', size: '', status: '', tags: '', upload: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-storage/references/platform-bucket.md b/.agents/skills/orm-storage/references/platform-bucket.md index b189a23075..ec39053906 100644 --- a/.agents/skills/orm-storage/references/platform-bucket.md +++ b/.agents/skills/orm-storage/references/platform-bucket.md @@ -9,7 +9,7 @@ Logical storage containers that group files with shared access policies and CDN ```typescript db.platformBucket.findMany({ select: { id: true } }).execute() db.platformBucket.findOne({ id: '', select: { id: true } }).execute() -db.platformBucket.create({ data: { actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxBulkFiles: '', maxFileSize: '', physicalName: '', provisionRequestedAt: '', stagingTtl: '', tags: '', type: '' }, select: { id: true } }).execute() +db.platformBucket.create({ data: { actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxFileSize: '', physicalName: '', provisionRequestedAt: '', stagingTtl: '', tags: '', type: '' }, select: { id: true } }).execute() db.platformBucket.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() db.platformBucket.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.platformBucket.findMany({ ```typescript const item = await db.platformBucket.create({ - data: { actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxBulkFiles: '', maxFileSize: '', physicalName: '', provisionRequestedAt: '', stagingTtl: '', tags: '', type: '' }, + data: { actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxFileSize: '', physicalName: '', provisionRequestedAt: '', stagingTtl: '', tags: '', type: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-storage/references/platform-file.md b/.agents/skills/orm-storage/references/platform-file.md index 66cbc1eaa6..c9fae29f2f 100644 --- a/.agents/skills/orm-storage/references/platform-file.md +++ b/.agents/skills/orm-storage/references/platform-file.md @@ -9,7 +9,6 @@ Individual file records within buckets, with immutable identity fields and mutab ```typescript db.platformFile.findMany({ select: { id: true } }).execute() db.platformFile.findOne({ id: '', select: { id: true } }).execute() -db.platformFile.create({ data: { actorId: '', bucketId: '', contentHash: '', description: '', downloadUrl: '', expiryEnqueuedAt: '', filePath: '', filename: '', isPublic: '', key: '', mimeType: '', promotedAt: '', size: '', status: '', tags: '', upload: '' }, select: { id: true } }).execute() db.platformFile.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() db.platformFile.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.platformFile.findMany({ select: { id: true, actorId: true } }).execute(); ``` - -### Create a platformFile - -```typescript -const item = await db.platformFile.create({ - data: { actorId: '', bucketId: '', contentHash: '', description: '', downloadUrl: '', expiryEnqueuedAt: '', filePath: '', filename: '', isPublic: '', key: '', mimeType: '', promotedAt: '', size: '', status: '', tags: '', upload: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-storage/references/upload-files.md b/.agents/skills/orm-storage/references/upload-files.md index 811de7b398..4d88d3b043 100644 --- a/.agents/skills/orm-storage/references/upload-files.md +++ b/.agents/skills/orm-storage/references/upload-files.md @@ -7,7 +7,7 @@ Upload multiple files: resolves the bucket by key, creates file rows, and return ## Usage ```typescript -db.mutation.uploadFiles({ input: { bucketKey: '', files: '', isPublic: '' } }).execute() +db.mutation.uploadFiles({ input: { bucketKey: '', databaseId: '', files: '', isPublic: '' } }).execute() ``` ## Examples @@ -15,5 +15,5 @@ db.mutation.uploadFiles({ input: { bucketKey: '', files: '', files: '', isPublic: '' } }).execute(); +const result = await db.mutation.uploadFiles({ input: { bucketKey: '', databaseId: '', files: '', isPublic: '' } }).execute(); ``` diff --git a/.agents/skills/orm-usage/references/app-achievement-reward.md b/.agents/skills/orm-usage/references/app-achievement-reward.md deleted file mode 100644 index be0fd8dfbc..0000000000 --- a/.agents/skills/orm-usage/references/app-achievement-reward.md +++ /dev/null @@ -1,34 +0,0 @@ -# appAchievementReward - - - -Defines rewards granted when a level is achieved; supports limit_credits and meter_credits - -## Usage - -```typescript -db.appAchievementReward.findMany({ select: { id: true } }).execute() -db.appAchievementReward.findOne({ id: '', select: { id: true } }).execute() -db.appAchievementReward.create({ data: { amount: '', creditType: '', expiresInterval: '', levelName: '', rewardType: '', targetName: '' }, select: { id: true } }).execute() -db.appAchievementReward.update({ where: { id: '' }, data: { amount: '' }, select: { id: true } }).execute() -db.appAchievementReward.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appAchievementReward records - -```typescript -const items = await db.appAchievementReward.findMany({ - select: { id: true, amount: true } -}).execute(); -``` - -### Create a appAchievementReward - -```typescript -const item = await db.appAchievementReward.create({ - data: { amount: '', creditType: '', expiresInterval: '', levelName: '', rewardType: '', targetName: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-usage/references/app-event-aggregate.md b/.agents/skills/orm-usage/references/app-event-aggregate.md deleted file mode 100644 index 1183966bc2..0000000000 --- a/.agents/skills/orm-usage/references/app-event-aggregate.md +++ /dev/null @@ -1,34 +0,0 @@ -# appEventAggregate - - - -Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually - -## Usage - -```typescript -db.appEventAggregate.findMany({ select: { id: true } }).execute() -db.appEventAggregate.findOne({ id: '', select: { id: true } }).execute() -db.appEventAggregate.create({ data: { actorId: '', count: '', name: '', periodStart: '' }, select: { id: true } }).execute() -db.appEventAggregate.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() -db.appEventAggregate.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appEventAggregate records - -```typescript -const items = await db.appEventAggregate.findMany({ - select: { id: true, actorId: true } -}).execute(); -``` - -### Create a appEventAggregate - -```typescript -const item = await db.appEventAggregate.create({ - data: { actorId: '', count: '', name: '', periodStart: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-usage/references/app-event-type.md b/.agents/skills/orm-usage/references/app-event-type.md deleted file mode 100644 index 19018bc143..0000000000 --- a/.agents/skills/orm-usage/references/app-event-type.md +++ /dev/null @@ -1,34 +0,0 @@ -# appEventType - - - -Catalog of known event types with per-type configuration for aggregation, retention, and level participation - -## Usage - -```typescript -db.appEventType.findMany({ select: { id: true } }).execute() -db.appEventType.findOne({ id: '', select: { id: true } }).execute() -db.appEventType.create({ data: { aggregation: '', category: '', description: '', feedsLevels: '', isActive: '', name: '', periodInterval: '' }, select: { id: true } }).execute() -db.appEventType.update({ where: { id: '' }, data: { aggregation: '' }, select: { id: true } }).execute() -db.appEventType.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appEventType records - -```typescript -const items = await db.appEventType.findMany({ - select: { id: true, aggregation: true } -}).execute(); -``` - -### Create a appEventType - -```typescript -const item = await db.appEventType.create({ - data: { aggregation: '', category: '', description: '', feedsLevels: '', isActive: '', name: '', periodInterval: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-usage/references/app-event.md b/.agents/skills/orm-usage/references/app-event.md deleted file mode 100644 index 86c3da2f99..0000000000 --- a/.agents/skills/orm-usage/references/app-event.md +++ /dev/null @@ -1,34 +0,0 @@ -# appEvent - - - -Partitioned append-only log of individual user actions; every single event ever recorded - -## Usage - -```typescript -db.appEvent.findMany({ select: { id: true } }).execute() -db.appEvent.findOne({ id: '', select: { id: true } }).execute() -db.appEvent.create({ data: { actorId: '', count: '', name: '' }, select: { id: true } }).execute() -db.appEvent.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() -db.appEvent.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appEvent records - -```typescript -const items = await db.appEvent.findMany({ - select: { id: true, actorId: true } -}).execute(); -``` - -### Create a appEvent - -```typescript -const item = await db.appEvent.create({ - data: { actorId: '', count: '', name: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-usage/references/app-level-grant.md b/.agents/skills/orm-usage/references/app-level-grant.md deleted file mode 100644 index 4e6c6acba4..0000000000 --- a/.agents/skills/orm-usage/references/app-level-grant.md +++ /dev/null @@ -1,34 +0,0 @@ -# appLevelGrant - - - -Records when a user achieves a level; prevents duplicate reward grants - -## Usage - -```typescript -db.appLevelGrant.findMany({ select: { id: true } }).execute() -db.appLevelGrant.findOne({ id: '', select: { id: true } }).execute() -db.appLevelGrant.create({ data: { actorId: '', expiresAt: '', levelName: '', periodStart: '' }, select: { id: true } }).execute() -db.appLevelGrant.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() -db.appLevelGrant.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appLevelGrant records - -```typescript -const items = await db.appLevelGrant.findMany({ - select: { id: true, actorId: true } -}).execute(); -``` - -### Create a appLevelGrant - -```typescript -const item = await db.appLevelGrant.create({ - data: { actorId: '', expiresAt: '', levelName: '', periodStart: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-usage/references/app-level-requirement.md b/.agents/skills/orm-usage/references/app-level-requirement.md deleted file mode 100644 index abcb050f8d..0000000000 --- a/.agents/skills/orm-usage/references/app-level-requirement.md +++ /dev/null @@ -1,34 +0,0 @@ -# appLevelRequirement - - - -Defines the specific requirements that must be met to achieve a level - -## Usage - -```typescript -db.appLevelRequirement.findMany({ select: { id: true } }).execute() -db.appLevelRequirement.findOne({ id: '', select: { id: true } }).execute() -db.appLevelRequirement.create({ data: { description: '', groupKey: '', level: '', metric: '', name: '', priority: '', requiredCount: '' }, select: { id: true } }).execute() -db.appLevelRequirement.update({ where: { id: '' }, data: { description: '' }, select: { id: true } }).execute() -db.appLevelRequirement.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appLevelRequirement records - -```typescript -const items = await db.appLevelRequirement.findMany({ - select: { id: true, description: true } -}).execute(); -``` - -### Create a appLevelRequirement - -```typescript -const item = await db.appLevelRequirement.create({ - data: { description: '', groupKey: '', level: '', metric: '', name: '', priority: '', requiredCount: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-usage/references/app-level.md b/.agents/skills/orm-usage/references/app-level.md deleted file mode 100644 index 97493a679e..0000000000 --- a/.agents/skills/orm-usage/references/app-level.md +++ /dev/null @@ -1,34 +0,0 @@ -# appLevel - - - -Defines available levels that users can achieve by completing requirements - -## Usage - -```typescript -db.appLevel.findMany({ select: { id: true } }).execute() -db.appLevel.findOne({ id: '', select: { id: true } }).execute() -db.appLevel.create({ data: { description: '', image: '', name: '', ownerId: '' }, select: { id: true } }).execute() -db.appLevel.update({ where: { id: '' }, data: { description: '' }, select: { id: true } }).execute() -db.appLevel.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all appLevel records - -```typescript -const items = await db.appLevel.findMany({ - select: { id: true, description: true } -}).execute(); -``` - -### Create a appLevel - -```typescript -const item = await db.appLevel.create({ - data: { description: '', image: '', name: '', ownerId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-usage/references/billing-usage-summary.md b/.agents/skills/orm-usage/references/billing-usage-summary.md deleted file mode 100644 index 1fadd99742..0000000000 --- a/.agents/skills/orm-usage/references/billing-usage-summary.md +++ /dev/null @@ -1,34 +0,0 @@ -# billingUsageSummary - - - -Permanent monthly usage summary per entity per meter (user-facing billing dashboard) - -## Usage - -```typescript -db.billingUsageSummary.findMany({ select: { id: true } }).execute() -db.billingUsageSummary.findOne({ id: '', select: { id: true } }).execute() -db.billingUsageSummary.create({ data: { creditsConsumed: '', entityId: '', entityType: '', meterSlug: '', organizationId: '', overageUnits: '', periodEnd: '', periodStart: '', planLimit: '', quantityUsed: '' }, select: { id: true } }).execute() -db.billingUsageSummary.update({ where: { id: '' }, data: { creditsConsumed: '' }, select: { id: true } }).execute() -db.billingUsageSummary.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all billingUsageSummary records - -```typescript -const items = await db.billingUsageSummary.findMany({ - select: { id: true, creditsConsumed: true } -}).execute(); -``` - -### Create a billingUsageSummary - -```typescript -const item = await db.billingUsageSummary.create({ - data: { creditsConsumed: '', entityId: '', entityType: '', meterSlug: '', organizationId: '', overageUnits: '', periodEnd: '', periodStart: '', planLimit: '', quantityUsed: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-usage/references/capture-trust-ladder.md b/.agents/skills/orm-usage/references/capture-trust-ladder.md deleted file mode 100644 index dcaa5c9307..0000000000 --- a/.agents/skills/orm-usage/references/capture-trust-ladder.md +++ /dev/null @@ -1,19 +0,0 @@ -# captureTrustLadder - - - -Execute the captureTrustLadder query - -## Usage - -```typescript -db.query.captureTrustLadder().execute() -``` - -## Examples - -### Run captureTrustLadder - -```typescript -const result = await db.query.captureTrustLadder().execute(); -``` diff --git a/.agents/skills/orm-usage/references/events-achieved.md b/.agents/skills/orm-usage/references/events-achieved.md deleted file mode 100644 index 851ac7ee53..0000000000 --- a/.agents/skills/orm-usage/references/events-achieved.md +++ /dev/null @@ -1,19 +0,0 @@ -# eventsAchieved - - - -Execute the eventsAchieved query - -## Usage - -```typescript -db.query.eventsAchieved({ level: '', roleId: '' }).execute() -``` - -## Examples - -### Run eventsAchieved - -```typescript -const result = await db.query.eventsAchieved({ level: '', roleId: '' }).execute(); -``` diff --git a/.agents/skills/orm-usage/references/events-required.md b/.agents/skills/orm-usage/references/events-required.md deleted file mode 100644 index b63a7f305c..0000000000 --- a/.agents/skills/orm-usage/references/events-required.md +++ /dev/null @@ -1,19 +0,0 @@ -# eventsRequired - - - -Reads and enables pagination through a set of `AppLevelRequirement`. - -## Usage - -```typescript -db.query.eventsRequired({ after: '', first: '', level: '', offset: '', roleId: '' }).execute() -``` - -## Examples - -### Run eventsRequired - -```typescript -const result = await db.query.eventsRequired({ after: '', first: '', level: '', offset: '', roleId: '' }).execute(); -``` diff --git a/.agents/skills/orm-usage/references/grant-achievement.md b/.agents/skills/orm-usage/references/grant-achievement.md deleted file mode 100644 index 3028761f35..0000000000 --- a/.agents/skills/orm-usage/references/grant-achievement.md +++ /dev/null @@ -1,19 +0,0 @@ -# grantAchievement - - - -Execute the grantAchievement mutation - -## Usage - -```typescript -db.mutation.grantAchievement({ input: { actorId: '', levelName: '' } }).execute() -``` - -## Examples - -### Run grantAchievement - -```typescript -const result = await db.mutation.grantAchievement({ input: { actorId: '', levelName: '' } }).execute(); -``` diff --git a/.agents/skills/orm-usage/references/ledger.md b/.agents/skills/orm-usage/references/ledger.md deleted file mode 100644 index a3c3cc14ef..0000000000 --- a/.agents/skills/orm-usage/references/ledger.md +++ /dev/null @@ -1,34 +0,0 @@ -# ledger - - - -Append-only event log for all billing events (usage, grants, adjustments) - -## Usage - -```typescript -db.ledger.findMany({ select: { id: true } }).execute() -db.ledger.findOne({ id: '', select: { id: true } }).execute() -db.ledger.create({ data: { delta: '', entityId: '', entityType: '', entryType: '', ledgerClass: '', metadata: '', meterSlug: '', organizationId: '', usageAfter: '' }, select: { id: true } }).execute() -db.ledger.update({ where: { id: '' }, data: { delta: '' }, select: { id: true } }).execute() -db.ledger.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all ledger records - -```typescript -const items = await db.ledger.findMany({ - select: { id: true, delta: true } -}).execute(); -``` - -### Create a ledger - -```typescript -const item = await db.ledger.create({ - data: { delta: '', entityId: '', entityType: '', entryType: '', ledgerClass: '', metadata: '', meterSlug: '', organizationId: '', usageAfter: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-usage/references/meter-credit.md b/.agents/skills/orm-usage/references/meter-credit.md deleted file mode 100644 index 2517e9011d..0000000000 --- a/.agents/skills/orm-usage/references/meter-credit.md +++ /dev/null @@ -1,34 +0,0 @@ -# meterCredit - - - -Append-only ledger of credit grants for billing meters that automatically update balances - -## Usage - -```typescript -db.meterCredit.findMany({ select: { id: true } }).execute() -db.meterCredit.findOne({ id: '', select: { id: true } }).execute() -db.meterCredit.create({ data: { amount: '', creditType: '', entityId: '', entityType: '', expiresAt: '', meterId: '', organizationId: '', reason: '' }, select: { id: true } }).execute() -db.meterCredit.update({ where: { id: '' }, data: { amount: '' }, select: { id: true } }).execute() -db.meterCredit.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all meterCredit records - -```typescript -const items = await db.meterCredit.findMany({ - select: { id: true, amount: true } -}).execute(); -``` - -### Create a meterCredit - -```typescript -const item = await db.meterCredit.create({ - data: { amount: '', creditType: '', entityId: '', entityType: '', expiresAt: '', meterId: '', organizationId: '', reason: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-usage/references/meter-default.md b/.agents/skills/orm-usage/references/meter-default.md deleted file mode 100644 index 203a9406b8..0000000000 --- a/.agents/skills/orm-usage/references/meter-default.md +++ /dev/null @@ -1,34 +0,0 @@ -# meterDefault - - - -Default meter catalog: defines which meters are available and their default plan_limit values for new entities - -## Usage - -```typescript -db.meterDefault.findMany({ select: { id: true } }).execute() -db.meterDefault.findOne({ id: '', select: { id: true } }).execute() -db.meterDefault.create({ data: { categoryMeter: '', creditCost: '', defaultPlanLimit: '', displayName: '', isActive: '', meterType: '', slug: '', unit: '' }, select: { id: true } }).execute() -db.meterDefault.update({ where: { id: '' }, data: { categoryMeter: '' }, select: { id: true } }).execute() -db.meterDefault.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all meterDefault records - -```typescript -const items = await db.meterDefault.findMany({ - select: { id: true, categoryMeter: true } -}).execute(); -``` - -### Create a meterDefault - -```typescript -const item = await db.meterDefault.create({ - data: { categoryMeter: '', creditCost: '', defaultPlanLimit: '', displayName: '', isActive: '', meterType: '', slug: '', unit: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-usage/references/meter-source.md b/.agents/skills/orm-usage/references/meter-source.md deleted file mode 100644 index ab2bc7a3a9..0000000000 --- a/.agents/skills/orm-usage/references/meter-source.md +++ /dev/null @@ -1,34 +0,0 @@ -# meterSource - - - -Maps billing meters to typed usage summary table columns for automated usage reconciliation. Each row tells reconcile_typed_usage() which column to aggregate and how. - -## Usage - -```typescript -db.meterSource.findMany({ select: { id: true } }).execute() -db.meterSource.findOne({ id: '', select: { id: true } }).execute() -db.meterSource.create({ data: { aggregationType: '', dimensionPath: '', isActive: '', meterSlug: '', sourceMetric: '' }, select: { id: true } }).execute() -db.meterSource.update({ where: { id: '' }, data: { aggregationType: '' }, select: { id: true } }).execute() -db.meterSource.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all meterSource records - -```typescript -const items = await db.meterSource.findMany({ - select: { id: true, aggregationType: true } -}).execute(); -``` - -### Create a meterSource - -```typescript -const item = await db.meterSource.create({ - data: { aggregationType: '', dimensionPath: '', isActive: '', meterSlug: '', sourceMetric: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-usage/references/meter.md b/.agents/skills/orm-usage/references/meter.md deleted file mode 100644 index 542d15b93e..0000000000 --- a/.agents/skills/orm-usage/references/meter.md +++ /dev/null @@ -1,34 +0,0 @@ -# meter - - - -Defines billable meters (what to track: quotas, feature flags, credit pools) - -## Usage - -```typescript -db.meter.findMany({ select: { id: true } }).execute() -db.meter.findOne({ id: '', select: { id: true } }).execute() -db.meter.create({ data: { aggregation: '', categoryMeter: '', creditCost: '', displayName: '', isActive: '', meterType: '', periodInterval: '', rolloverCap: '', slug: '', unit: '' }, select: { id: true } }).execute() -db.meter.update({ where: { id: '' }, data: { aggregation: '' }, select: { id: true } }).execute() -db.meter.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all meter records - -```typescript -const items = await db.meter.findMany({ - select: { id: true, aggregation: true } -}).execute(); -``` - -### Create a meter - -```typescript -const item = await db.meter.create({ - data: { aggregation: '', categoryMeter: '', creditCost: '', displayName: '', isActive: '', meterType: '', periodInterval: '', rolloverCap: '', slug: '', unit: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-usage/references/plan-cap.md b/.agents/skills/orm-usage/references/plan-cap.md deleted file mode 100644 index a88d8408b9..0000000000 --- a/.agents/skills/orm-usage/references/plan-cap.md +++ /dev/null @@ -1,34 +0,0 @@ -# planCap - - - -Maps each plan to feature flag cap values (written to limit_caps when plan is applied) - -## Usage - -```typescript -db.planCap.findMany({ select: { id: true } }).execute() -db.planCap.findOne({ id: '', select: { id: true } }).execute() -db.planCap.create({ data: { capName: '', capValue: '', planId: '' }, select: { id: true } }).execute() -db.planCap.update({ where: { id: '' }, data: { capName: '' }, select: { id: true } }).execute() -db.planCap.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all planCap records - -```typescript -const items = await db.planCap.findMany({ - select: { id: true, capName: true } -}).execute(); -``` - -### Create a planCap - -```typescript -const item = await db.planCap.create({ - data: { capName: '', capValue: '', planId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-usage/references/plan-limit.md b/.agents/skills/orm-usage/references/plan-limit.md deleted file mode 100644 index f342988f7b..0000000000 --- a/.agents/skills/orm-usage/references/plan-limit.md +++ /dev/null @@ -1,34 +0,0 @@ -# planLimit - - - -Maps each plan to specific limit names and their maximum allowed values - -## Usage - -```typescript -db.planLimit.findMany({ select: { id: true } }).execute() -db.planLimit.findOne({ id: '', select: { id: true } }).execute() -db.planLimit.create({ data: { limitName: '', maxValue: '', planId: '' }, select: { id: true } }).execute() -db.planLimit.update({ where: { id: '' }, data: { limitName: '' }, select: { id: true } }).execute() -db.planLimit.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all planLimit records - -```typescript -const items = await db.planLimit.findMany({ - select: { id: true, limitName: true } -}).execute(); -``` - -### Create a planLimit - -```typescript -const item = await db.planLimit.create({ - data: { limitName: '', maxValue: '', planId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-usage/references/plan-meter-limit.md b/.agents/skills/orm-usage/references/plan-meter-limit.md deleted file mode 100644 index d22f29b54f..0000000000 --- a/.agents/skills/orm-usage/references/plan-meter-limit.md +++ /dev/null @@ -1,34 +0,0 @@ -# planMeterLimit - - - -Maps each plan to billing meter quotas (plan_limit values written to balances when plan is applied) - -## Usage - -```typescript -db.planMeterLimit.findMany({ select: { id: true } }).execute() -db.planMeterLimit.findOne({ id: '', select: { id: true } }).execute() -db.planMeterLimit.create({ data: { meterSlug: '', planId: '', planLimit: '' }, select: { id: true } }).execute() -db.planMeterLimit.update({ where: { id: '' }, data: { meterSlug: '' }, select: { id: true } }).execute() -db.planMeterLimit.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all planMeterLimit records - -```typescript -const items = await db.planMeterLimit.findMany({ - select: { id: true, meterSlug: true } -}).execute(); -``` - -### Create a planMeterLimit - -```typescript -const item = await db.planMeterLimit.create({ - data: { meterSlug: '', planId: '', planLimit: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-usage/references/plan-override.md b/.agents/skills/orm-usage/references/plan-override.md deleted file mode 100644 index eefb1a1d5a..0000000000 --- a/.agents/skills/orm-usage/references/plan-override.md +++ /dev/null @@ -1,34 +0,0 @@ -# planOverride - - - -Per-entity limit overrides that take precedence over plan defaults - -## Usage - -```typescript -db.planOverride.findMany({ select: { id: true } }).execute() -db.planOverride.findOne({ id: '', select: { id: true } }).execute() -db.planOverride.create({ data: { entityId: '', expiresAt: '', limitName: '', maxValue: '', reason: '' }, select: { id: true } }).execute() -db.planOverride.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute() -db.planOverride.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all planOverride records - -```typescript -const items = await db.planOverride.findMany({ - select: { id: true, entityId: true } -}).execute(); -``` - -### Create a planOverride - -```typescript -const item = await db.planOverride.create({ - data: { entityId: '', expiresAt: '', limitName: '', maxValue: '', reason: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-usage/references/plan-pricing.md b/.agents/skills/orm-usage/references/plan-pricing.md deleted file mode 100644 index 11acfc123e..0000000000 --- a/.agents/skills/orm-usage/references/plan-pricing.md +++ /dev/null @@ -1,34 +0,0 @@ -# planPricing - - - -Billing intervals and pricing for each plan tier - -## Usage - -```typescript -db.planPricing.findMany({ select: { id: true } }).execute() -db.planPricing.findOne({ id: '', select: { id: true } }).execute() -db.planPricing.create({ data: { billingInterval: '', currency: '', discountPercent: '', isActive: '', planId: '', price: '' }, select: { id: true } }).execute() -db.planPricing.update({ where: { id: '' }, data: { billingInterval: '' }, select: { id: true } }).execute() -db.planPricing.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all planPricing records - -```typescript -const items = await db.planPricing.findMany({ - select: { id: true, billingInterval: true } -}).execute(); -``` - -### Create a planPricing - -```typescript -const item = await db.planPricing.create({ - data: { billingInterval: '', currency: '', discountPercent: '', isActive: '', planId: '', price: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-usage/references/plan-subscription.md b/.agents/skills/orm-usage/references/plan-subscription.md deleted file mode 100644 index 7a71c30d0c..0000000000 --- a/.agents/skills/orm-usage/references/plan-subscription.md +++ /dev/null @@ -1,34 +0,0 @@ -# planSubscription - - - -Assigns a plan to an entity with subscription lifecycle (start, end, active state) - -## Usage - -```typescript -db.planSubscription.findMany({ select: { id: true } }).execute() -db.planSubscription.findOne({ id: '', select: { id: true } }).execute() -db.planSubscription.create({ data: { endsAt: '', entityId: '', entityType: '', isActive: '', organizationId: '', planId: '', startsAt: '' }, select: { id: true } }).execute() -db.planSubscription.update({ where: { id: '' }, data: { endsAt: '' }, select: { id: true } }).execute() -db.planSubscription.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all planSubscription records - -```typescript -const items = await db.planSubscription.findMany({ - select: { id: true, endsAt: true } -}).execute(); -``` - -### Create a planSubscription - -```typescript -const item = await db.planSubscription.create({ - data: { endsAt: '', entityId: '', entityType: '', isActive: '', organizationId: '', planId: '', startsAt: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-usage/references/plan.md b/.agents/skills/orm-usage/references/plan.md deleted file mode 100644 index 8b3777a382..0000000000 --- a/.agents/skills/orm-usage/references/plan.md +++ /dev/null @@ -1,34 +0,0 @@ -# plan - - - -Defines plan tiers with named limit configurations - -## Usage - -```typescript -db.plan.findMany({ select: { id: true } }).execute() -db.plan.findOne({ id: '', select: { id: true } }).execute() -db.plan.create({ data: { description: '', isActive: '', name: '' }, select: { id: true } }).execute() -db.plan.update({ where: { id: '' }, data: { description: '' }, select: { id: true } }).execute() -db.plan.delete({ where: { id: '' } }).execute() -``` - -## Examples - -### List all plan records - -```typescript -const items = await db.plan.findMany({ - select: { id: true, description: true } -}).execute(); -``` - -### Create a plan - -```typescript -const item = await db.plan.create({ - data: { description: '', isActive: '', name: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-usage/references/recompute-capabilities.md b/.agents/skills/orm-usage/references/recompute-capabilities.md deleted file mode 100644 index f440ff06d3..0000000000 --- a/.agents/skills/orm-usage/references/recompute-capabilities.md +++ /dev/null @@ -1,19 +0,0 @@ -# recomputeCapabilities - - - -Execute the recomputeCapabilities mutation - -## Usage - -```typescript -db.mutation.recomputeCapabilities({ input: { actorId: '' } }).execute() -``` - -## Examples - -### Run recomputeCapabilities - -```typescript -const result = await db.mutation.recomputeCapabilities({ input: { actorId: '' } }).execute(); -``` diff --git a/.agents/skills/orm-usage/references/revoke-achievement.md b/.agents/skills/orm-usage/references/revoke-achievement.md deleted file mode 100644 index 716d39274e..0000000000 --- a/.agents/skills/orm-usage/references/revoke-achievement.md +++ /dev/null @@ -1,19 +0,0 @@ -# revokeAchievement - - - -Execute the revokeAchievement mutation - -## Usage - -```typescript -db.mutation.revokeAchievement({ input: { actorId: '', levelName: '' } }).execute() -``` - -## Examples - -### Run revokeAchievement - -```typescript -const result = await db.mutation.revokeAchievement({ input: { actorId: '', levelName: '' } }).execute(); -``` diff --git a/.agents/skills/orm-usage/references/seed-meter-defaults.md b/.agents/skills/orm-usage/references/seed-meter-defaults.md deleted file mode 100644 index 50bc92ff31..0000000000 --- a/.agents/skills/orm-usage/references/seed-meter-defaults.md +++ /dev/null @@ -1,19 +0,0 @@ -# seedMeterDefaults - - - -Execute the seedMeterDefaults mutation - -## Usage - -```typescript -db.mutation.seedMeterDefaults({ input: { defaults: '' } }).execute() -``` - -## Examples - -### Run seedMeterDefaults - -```typescript -const result = await db.mutation.seedMeterDefaults({ input: { defaults: '' } }).execute(); -``` diff --git a/.agents/skills/orm-usage/references/seed-plan.md b/.agents/skills/orm-usage/references/seed-plan.md deleted file mode 100644 index c468d7f796..0000000000 --- a/.agents/skills/orm-usage/references/seed-plan.md +++ /dev/null @@ -1,19 +0,0 @@ -# seedPlan - - - -Execute the seedPlan mutation - -## Usage - -```typescript -db.mutation.seedPlan({ input: { planConfig: '', planName: '' } }).execute() -``` - -## Examples - -### Run seedPlan - -```typescript -const result = await db.mutation.seedPlan({ input: { planConfig: '', planName: '' } }).execute(); -``` diff --git a/.agents/skills/orm-usage/references/seed-trust-ladder.md b/.agents/skills/orm-usage/references/seed-trust-ladder.md deleted file mode 100644 index 943f243748..0000000000 --- a/.agents/skills/orm-usage/references/seed-trust-ladder.md +++ /dev/null @@ -1,19 +0,0 @@ -# seedTrustLadder - - - -Execute the seedTrustLadder mutation - -## Usage - -```typescript -db.mutation.seedTrustLadder({ input: { ladder: '' } }).execute() -``` - -## Examples - -### Run seedTrustLadder - -```typescript -const result = await db.mutation.seedTrustLadder({ input: { ladder: '' } }).execute(); -``` diff --git a/sdk/constructive-cli/src/admin/cli/README.md b/sdk/constructive-cli/src/admin/cli/README.md index 54c0915d77..2420f7569e 100644 --- a/sdk/constructive-cli/src/admin/cli/README.md +++ b/sdk/constructive-cli/src/admin/cli/README.md @@ -407,7 +407,6 @@ CRUD operations for MyPendingAppInvitesRecord records. | `list` | List all myPendingAppInvitesRecord records | | `find-first` | Find first matching myPendingAppInvitesRecord record | | `get` | Get a myPendingAppInvitesRecord by id | -| `create` | Create a new myPendingAppInvitesRecord | | `update` | Update an existing myPendingAppInvitesRecord | | `delete` | Delete a myPendingAppInvitesRecord | @@ -432,7 +431,6 @@ CRUD operations for MyPendingOrgInvitesRecord records. | `list` | List all myPendingOrgInvitesRecord records | | `find-first` | Find first matching myPendingOrgInvitesRecord record | | `get` | Get a myPendingOrgInvitesRecord by id | -| `create` | Create a new myPendingOrgInvitesRecord | | `update` | Update an existing myPendingOrgInvitesRecord | | `delete` | Delete a myPendingOrgInvitesRecord | @@ -626,7 +624,6 @@ CRUD operations for OrgGetManagersRecord records. | `list` | List all orgGetManagersRecord records | | `find-first` | Find first matching orgGetManagersRecord record | | `get` | Get a orgGetManagersRecord by id | -| `create` | Create a new orgGetManagersRecord | | `update` | Update an existing orgGetManagersRecord | | `delete` | Delete a orgGetManagersRecord | @@ -648,7 +645,6 @@ CRUD operations for OrgGetSubordinatesRecord records. | `list` | List all orgGetSubordinatesRecord records | | `find-first` | Find first matching orgGetSubordinatesRecord record | | `get` | Get a orgGetSubordinatesRecord by id | -| `create` | Create a new orgGetSubordinatesRecord | | `update` | Update an existing orgGetSubordinatesRecord | | `delete` | Delete a orgGetSubordinatesRecord | @@ -780,6 +776,8 @@ CRUD operations for OrgMemberProfile records. | `id` | UUID | | `membershipId` | UUID | | `profilePicture` | Image | +| `profilePictureUrl` | String | +| `profilePictureVersions` | FileVersion | | `title` | String | | `updatedAt` | Datetime | diff --git a/sdk/constructive-cli/src/admin/cli/commands/my-pending-app-invites-record.ts b/sdk/constructive-cli/src/admin/cli/commands/my-pending-app-invites-record.ts index c59e6c6505..bfe91ccc9c 100644 --- a/sdk/constructive-cli/src/admin/cli/commands/my-pending-app-invites-record.ts +++ b/sdk/constructive-cli/src/admin/cli/commands/my-pending-app-invites-record.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateMyPendingAppInvitesRecordInput, MyPendingAppInvitesRecordPatch, MyPendingAppInvitesRecordSelect, MyPendingAppInvitesRecordFilter, @@ -40,7 +39,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -57,8 +56,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -122,56 +119,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'channel', - message: 'channel', - required: true, - }, - { - type: 'text', - name: 'expiresAt', - message: 'expiresAt', - required: true, - }, - { - type: 'text', - name: 'senderId', - message: 'senderId', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateMyPendingAppInvitesRecordInput['myPendingAppInvitesRecord']; - const client = getClient(); - const result = await client.myPendingAppInvitesRecord - .create({ - data: { - channel: cleanedData.channel, - expiresAt: cleanedData.expiresAt, - senderId: cleanedData.senderId, - }, - select: { - channel: true, - createdAt: true, - expiresAt: true, - id: true, - senderId: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/admin/cli/commands/my-pending-org-invites-record.ts b/sdk/constructive-cli/src/admin/cli/commands/my-pending-org-invites-record.ts index b173292810..05628abd75 100644 --- a/sdk/constructive-cli/src/admin/cli/commands/my-pending-org-invites-record.ts +++ b/sdk/constructive-cli/src/admin/cli/commands/my-pending-org-invites-record.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateMyPendingOrgInvitesRecordInput, MyPendingOrgInvitesRecordPatch, MyPendingOrgInvitesRecordSelect, MyPendingOrgInvitesRecordFilter, @@ -41,7 +40,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -58,8 +57,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -125,64 +122,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'channel', - message: 'channel', - required: true, - }, - { - type: 'text', - name: 'entityId', - message: 'entityId', - required: true, - }, - { - type: 'text', - name: 'expiresAt', - message: 'expiresAt', - required: true, - }, - { - type: 'text', - name: 'senderId', - message: 'senderId', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateMyPendingOrgInvitesRecordInput['myPendingOrgInvitesRecord']; - const client = getClient(); - const result = await client.myPendingOrgInvitesRecord - .create({ - data: { - channel: cleanedData.channel, - entityId: cleanedData.entityId, - expiresAt: cleanedData.expiresAt, - senderId: cleanedData.senderId, - }, - select: { - channel: true, - createdAt: true, - entityId: true, - expiresAt: true, - id: true, - senderId: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/admin/cli/commands/org-get-managers-record.ts b/sdk/constructive-cli/src/admin/cli/commands/org-get-managers-record.ts index 5f71e46bfe..b6dee3e94d 100644 --- a/sdk/constructive-cli/src/admin/cli/commands/org-get-managers-record.ts +++ b/sdk/constructive-cli/src/admin/cli/commands/org-get-managers-record.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateOrgGetManagersRecordInput, OrgGetManagersRecordPatch, OrgGetManagersRecordSelect, OrgGetManagersRecordFilter, @@ -37,7 +36,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -54,8 +53,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -113,46 +110,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'depth', - message: 'depth', - required: true, - }, - { - type: 'text', - name: 'userId', - message: 'userId', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateOrgGetManagersRecordInput['orgGetManagersRecord']; - const client = getClient(); - const result = await client.orgGetManagersRecord - .create({ - data: { - depth: cleanedData.depth, - userId: cleanedData.userId, - }, - select: { - depth: true, - userId: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/admin/cli/commands/org-get-subordinates-record.ts b/sdk/constructive-cli/src/admin/cli/commands/org-get-subordinates-record.ts index 0118c800c3..f79f902aed 100644 --- a/sdk/constructive-cli/src/admin/cli/commands/org-get-subordinates-record.ts +++ b/sdk/constructive-cli/src/admin/cli/commands/org-get-subordinates-record.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateOrgGetSubordinatesRecordInput, OrgGetSubordinatesRecordPatch, OrgGetSubordinatesRecordSelect, OrgGetSubordinatesRecordFilter, @@ -37,7 +36,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -54,8 +53,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -113,46 +110,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'depth', - message: 'depth', - required: true, - }, - { - type: 'text', - name: 'userId', - message: 'userId', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateOrgGetSubordinatesRecordInput['orgGetSubordinatesRecord']; - const client = getClient(); - const result = await client.orgGetSubordinatesRecord - .create({ - data: { - depth: cleanedData.depth, - userId: cleanedData.userId, - }, - select: { - depth: true, - userId: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/admin/cli/commands/org-member-profile.ts b/sdk/constructive-cli/src/admin/cli/commands/org-member-profile.ts index 2ee08ef06a..15ab54202b 100644 --- a/sdk/constructive-cli/src/admin/cli/commands/org-member-profile.ts +++ b/sdk/constructive-cli/src/admin/cli/commands/org-member-profile.ts @@ -25,6 +25,8 @@ const fieldSchema: FieldSchema = { id: 'uuid', membershipId: 'uuid', profilePicture: 'string', + profilePictureUrl: 'string', + profilePictureVersions: 'string', title: 'string', updatedAt: 'string', }; diff --git a/sdk/constructive-cli/src/admin/orm/README.md b/sdk/constructive-cli/src/admin/orm/README.md index 0a5e8c1664..37cf602ec8 100644 --- a/sdk/constructive-cli/src/admin/orm/README.md +++ b/sdk/constructive-cli/src/admin/orm/README.md @@ -31,16 +31,16 @@ const db = createClient({ | `appMembershipDefault` | findMany, findOne, create, update, delete | | `appOwnerGrant` | findMany, findOne, create, update, delete | | `membershipType` | findMany, findOne, create, update, delete | -| `myPendingAppInvitesRecord` | findMany, findOne, create, update, delete | -| `myPendingOrgInvitesRecord` | findMany, findOne, create, update, delete | +| `myPendingAppInvitesRecord` | findMany, findOne, update, delete | +| `myPendingOrgInvitesRecord` | findMany, findOne, update, delete | | `orgAdminGrant` | findMany, findOne, create, update, delete | | `orgCapabilityDefaultCapability` | findMany, findOne, create, update, delete | | `orgCapabilityDefaultGrant` | findMany, findOne, create, update, delete | | `orgChartEdge` | findMany, findOne, create, update, delete | | `orgChartEdgeGrant` | findMany, findOne, create, update, delete | | `orgClaimedInvite` | findMany, findOne, create, update, delete | -| `orgGetManagersRecord` | findMany, findOne, create, update, delete | -| `orgGetSubordinatesRecord` | findMany, findOne, create, update, delete | +| `orgGetManagersRecord` | findMany, findOne, update, delete | +| `orgGetSubordinatesRecord` | findMany, findOne, update, delete | | `orgGrant` | findMany, findOne, create, update, delete | | `orgInvite` | findMany, findOne, create, update, delete | | `orgMember` | findMany, findOne, create, update, delete | @@ -438,9 +438,6 @@ const items = await db.myPendingAppInvitesRecord.findMany({ select: { channel: t // Get one by id const item = await db.myPendingAppInvitesRecord.findOne({ id: '', select: { channel: true, createdAt: true, expiresAt: true, id: true, senderId: true } }).execute(); -// Create -const created = await db.myPendingAppInvitesRecord.create({ data: { channel: '', expiresAt: '', senderId: '' }, select: { id: true } }).execute(); - // Update const updated = await db.myPendingAppInvitesRecord.update({ where: { id: '' }, data: { channel: '' }, select: { id: true } }).execute(); @@ -472,9 +469,6 @@ const items = await db.myPendingOrgInvitesRecord.findMany({ select: { channel: t // Get one by id const item = await db.myPendingOrgInvitesRecord.findOne({ id: '', select: { channel: true, createdAt: true, entityId: true, expiresAt: true, id: true, senderId: true } }).execute(); -// Create -const created = await db.myPendingOrgInvitesRecord.create({ data: { channel: '', entityId: '', expiresAt: '', senderId: '' }, select: { id: true } }).execute(); - // Update const updated = await db.myPendingOrgInvitesRecord.update({ where: { id: '' }, data: { channel: '' }, select: { id: true } }).execute(); @@ -713,9 +707,6 @@ const items = await db.orgGetManagersRecord.findMany({ select: { depth: true, us // Get one by id const item = await db.orgGetManagersRecord.findOne({ id: '', select: { depth: true, userId: true } }).execute(); -// Create -const created = await db.orgGetManagersRecord.create({ data: { depth: '', userId: '' }, select: { id: true } }).execute(); - // Update const updated = await db.orgGetManagersRecord.update({ where: { id: '' }, data: { depth: '' }, select: { id: true } }).execute(); @@ -743,9 +734,6 @@ const items = await db.orgGetSubordinatesRecord.findMany({ select: { depth: true // Get one by id const item = await db.orgGetSubordinatesRecord.findOne({ id: '', select: { depth: true, userId: true } }).execute(); -// Create -const created = await db.orgGetSubordinatesRecord.create({ data: { depth: '', userId: '' }, select: { id: true } }).execute(); - // Update const updated = await db.orgGetSubordinatesRecord.update({ where: { id: '' }, data: { depth: '' }, select: { id: true } }).execute(); @@ -884,6 +872,8 @@ CRUD operations for OrgMemberProfile records. | `id` | UUID | No | | `membershipId` | UUID | Yes | | `profilePicture` | ConstructiveInternalTypeImage | Yes | +| `profilePictureUrl` | String | No | +| `profilePictureVersions` | FileVersion | No | | `title` | String | Yes | | `updatedAt` | Datetime | No | diff --git a/sdk/constructive-cli/src/admin/orm/input-types.ts b/sdk/constructive-cli/src/admin/orm/input-types.ts index 9bc1f6a8e9..03690156c2 100644 --- a/sdk/constructive-cli/src/admin/orm/input-types.ts +++ b/sdk/constructive-cli/src/admin/orm/input-types.ts @@ -576,6 +576,10 @@ export interface OrgMemberProfile { membershipId?: string | null; /** Profile picture visible to other entity members */ profilePicture?: ConstructiveInternalTypeImage | null; + /** URL to fetch `profilePicture`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + profilePictureUrl?: string | null; + /** The versions rendered beside `profilePicture`, narrowest first, each with a URL. Empty when there are none. */ + profilePictureVersions?: FileVersion[] | null; /** Job title or role description visible to other entity members */ title?: string | null; updatedAt?: string | null; @@ -987,6 +991,15 @@ export type OrgMemberProfileSelect = { id?: boolean; membershipId?: boolean; profilePicture?: boolean; + profilePictureUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + profilePictureVersions?: { + select: FileVersionSelect; + }; title?: boolean; updatedAt?: boolean; membership?: { @@ -2582,14 +2595,6 @@ export interface DeleteMembershipTypeInput { clientMutationId?: string; id: number; } -export interface CreateMyPendingAppInvitesRecordInput { - clientMutationId?: string; - myPendingAppInvitesRecord: { - channel?: string; - expiresAt?: string; - senderId: string; - }; -} export interface MyPendingAppInvitesRecordPatch { channel?: string | null; expiresAt?: string | null; @@ -2604,15 +2609,6 @@ export interface DeleteMyPendingAppInvitesRecordInput { clientMutationId?: string; id: string; } -export interface CreateMyPendingOrgInvitesRecordInput { - clientMutationId?: string; - myPendingOrgInvitesRecord: { - channel?: string; - entityId: string; - expiresAt?: string; - senderId: string; - }; -} export interface MyPendingOrgInvitesRecordPatch { channel?: string | null; entityId?: string | null; @@ -2776,13 +2772,6 @@ export interface DeleteOrgClaimedInviteInput { clientMutationId?: string; id: string; } -export interface CreateOrgGetManagersRecordInput { - clientMutationId?: string; - orgGetManagersRecord: { - depth?: number; - userId: string; - }; -} export interface OrgGetManagersRecordPatch { depth?: number | null; userId?: string | null; @@ -2796,13 +2785,6 @@ export interface DeleteOrgGetManagersRecordInput { clientMutationId?: string; id: string; } -export interface CreateOrgGetSubordinatesRecordInput { - clientMutationId?: string; - orgGetSubordinatesRecord: { - depth?: number; - userId: string; - }; -} export interface OrgGetSubordinatesRecordPatch { depth?: number | null; userId?: string | null; @@ -2931,7 +2913,6 @@ export interface OrgMemberProfilePatch { entityId?: string | null; membershipId?: string | null; profilePicture?: ConstructiveInternalTypeImage | null; - profilePictureUpload?: File | null; title?: string | null; } export interface UpdateOrgMemberProfileInput { @@ -4883,6 +4864,25 @@ export type DeleteOrgOwnerGrantPayloadSelect = { select: OrgOwnerGrantEdgeSelect; }; }; +/** One version rendered beside a file, with a URL to fetch it. */ +export interface FileVersion { + format?: string | null; + height?: number | null; + key: string; + name?: string | null; + size?: number | null; + url: string; + width?: number | null; +} +export type FileVersionSelect = { + format?: boolean; + height?: boolean; + key?: boolean; + name?: boolean; + size?: boolean; + url?: boolean; + width?: boolean; +}; export interface ProvisionAppUserRecord { created?: boolean | null; inviteId?: string | null; diff --git a/sdk/constructive-cli/src/admin/orm/models/myPendingAppInvitesRecord.ts b/sdk/constructive-cli/src/admin/orm/models/myPendingAppInvitesRecord.ts index 498d67ae85..dc0fa5a44f 100644 --- a/sdk/constructive-cli/src/admin/orm/models/myPendingAppInvitesRecord.ts +++ b/sdk/constructive-cli/src/admin/orm/models/myPendingAppInvitesRecord.ts @@ -29,7 +29,6 @@ import type { MyPendingAppInvitesRecordSelect, MyPendingAppInvitesRecordFilter, MyPendingAppInvitesRecordsOrderBy, - CreateMyPendingAppInvitesRecordInput, UpdateMyPendingAppInvitesRecordInput, MyPendingAppInvitesRecordPatch, } from '../input-types'; @@ -146,31 +145,4 @@ export class MyPendingAppInvitesRecordModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createMyPendingAppInvitesRecord: { - myPendingAppInvitesRecord: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'MyPendingAppInvitesRecord', - 'createMyPendingAppInvitesRecord', - 'myPendingAppInvitesRecord', - args.select, - args.data, - 'CreateMyPendingAppInvitesRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'MyPendingAppInvitesRecord', - fieldName: 'createMyPendingAppInvitesRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/admin/orm/models/myPendingOrgInvitesRecord.ts b/sdk/constructive-cli/src/admin/orm/models/myPendingOrgInvitesRecord.ts index b5913b8869..274dc17d9e 100644 --- a/sdk/constructive-cli/src/admin/orm/models/myPendingOrgInvitesRecord.ts +++ b/sdk/constructive-cli/src/admin/orm/models/myPendingOrgInvitesRecord.ts @@ -29,7 +29,6 @@ import type { MyPendingOrgInvitesRecordSelect, MyPendingOrgInvitesRecordFilter, MyPendingOrgInvitesRecordsOrderBy, - CreateMyPendingOrgInvitesRecordInput, UpdateMyPendingOrgInvitesRecordInput, MyPendingOrgInvitesRecordPatch, } from '../input-types'; @@ -146,31 +145,4 @@ export class MyPendingOrgInvitesRecordModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createMyPendingOrgInvitesRecord: { - myPendingOrgInvitesRecord: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'MyPendingOrgInvitesRecord', - 'createMyPendingOrgInvitesRecord', - 'myPendingOrgInvitesRecord', - args.select, - args.data, - 'CreateMyPendingOrgInvitesRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'MyPendingOrgInvitesRecord', - fieldName: 'createMyPendingOrgInvitesRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/admin/orm/models/orgGetManagersRecord.ts b/sdk/constructive-cli/src/admin/orm/models/orgGetManagersRecord.ts index 7c333b76d3..21f4008311 100644 --- a/sdk/constructive-cli/src/admin/orm/models/orgGetManagersRecord.ts +++ b/sdk/constructive-cli/src/admin/orm/models/orgGetManagersRecord.ts @@ -29,7 +29,6 @@ import type { OrgGetManagersRecordSelect, OrgGetManagersRecordFilter, OrgGetManagersRecordsOrderBy, - CreateOrgGetManagersRecordInput, UpdateOrgGetManagersRecordInput, OrgGetManagersRecordPatch, } from '../input-types'; @@ -104,31 +103,4 @@ export class OrgGetManagersRecordModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgGetManagersRecord: { - orgGetManagersRecord: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgGetManagersRecord', - 'createOrgGetManagersRecord', - 'orgGetManagersRecord', - args.select, - args.data, - 'CreateOrgGetManagersRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgGetManagersRecord', - fieldName: 'createOrgGetManagersRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/admin/orm/models/orgGetSubordinatesRecord.ts b/sdk/constructive-cli/src/admin/orm/models/orgGetSubordinatesRecord.ts index f259e10434..a5b89052df 100644 --- a/sdk/constructive-cli/src/admin/orm/models/orgGetSubordinatesRecord.ts +++ b/sdk/constructive-cli/src/admin/orm/models/orgGetSubordinatesRecord.ts @@ -29,7 +29,6 @@ import type { OrgGetSubordinatesRecordSelect, OrgGetSubordinatesRecordFilter, OrgGetSubordinatesRecordsOrderBy, - CreateOrgGetSubordinatesRecordInput, UpdateOrgGetSubordinatesRecordInput, OrgGetSubordinatesRecordPatch, } from '../input-types'; @@ -106,31 +105,4 @@ export class OrgGetSubordinatesRecordModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgGetSubordinatesRecord: { - orgGetSubordinatesRecord: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgGetSubordinatesRecord', - 'createOrgGetSubordinatesRecord', - 'orgGetSubordinatesRecord', - args.select, - args.data, - 'CreateOrgGetSubordinatesRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgGetSubordinatesRecord', - fieldName: 'createOrgGetSubordinatesRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/admin/orm/query-builder.ts b/sdk/constructive-cli/src/admin/orm/query-builder.ts index fd785bbae6..d6c981907f 100644 --- a/sdk/constructive-cli/src/admin/orm/query-builder.ts +++ b/sdk/constructive-cli/src/admin/orm/query-builder.ts @@ -140,9 +140,7 @@ export function buildSelections( ); const nestedSelect = nested.select; if (nestedSelect && typeof nestedSelect === 'object') { - const subSelections = Object.entries(nestedSelect) - .filter(([, v]) => v) - .map(([name]) => t.field({ name })); + const subSelections = buildSelections(nestedSelect, connectionFieldsMap); fields.push( t.field({ name: key, diff --git a/sdk/constructive-cli/src/admin/orm/select-types.ts b/sdk/constructive-cli/src/admin/orm/select-types.ts index 4b39d7e820..783c4603df 100644 --- a/sdk/constructive-cli/src/admin/orm/select-types.ts +++ b/sdk/constructive-cli/src/admin/orm/select-types.ts @@ -159,9 +159,13 @@ export type InferSelectResult = TSelect extends undefined ? K extends keyof TEntity ? NonNullable extends ConnectionResult ? ConnectionResult> - : - | InferSelectResult, NestedSelect> - | (null extends TEntity[K] ? null : never) + : NonNullable extends readonly (infer Item)[] + ? + | InferSelectResult, NestedSelect>[] + | (null extends TEntity[K] ? null : never) + : + | InferSelectResult, NestedSelect> + | (null extends TEntity[K] ? null : never) : never : K extends keyof TEntity ? TEntity[K] diff --git a/sdk/constructive-cli/src/agent/cli/README.md b/sdk/constructive-cli/src/agent/cli/README.md index 99b5135a32..5112f1268c 100644 --- a/sdk/constructive-cli/src/agent/cli/README.md +++ b/sdk/constructive-cli/src/agent/cli/README.md @@ -161,7 +161,7 @@ CRUD operations for AgentEvent records. | `updatedAt` | Datetime | | `visibility` | String | -**Required create fields:** `entry`, `recordedAt`, `runId`, `seq`, `transcriptVersion` +**Required create fields:** `actorId`, `databaseId`, `entry`, `recordedAt`, `runId`, `seq`, `transcriptVersion`, `visibility` **Optional create fields (backend defaults):** `transcriptFormat` ### `agent-message` @@ -195,7 +195,7 @@ CRUD operations for AgentMessage records. | `updatedAt` | Datetime | | `visibility` | String | -**Required create fields:** `authorRole`, `threadId` +**Required create fields:** `authorRole`, `databaseId`, `threadId`, `visibility` **Optional create fields (backend defaults):** `actorId`, `agentId`, `deliveredRunId`, `kind`, `model`, `parts` ### `agent-persona` @@ -262,7 +262,7 @@ CRUD operations for AgentPlan records. | `updatedAt` | Datetime | | `visibility` | String | -**Required create fields:** `threadId`, `title` +**Required create fields:** `databaseId`, `threadId`, `title`, `visibility` **Optional create fields (backend defaults):** `description`, `ownerId`, `status` ### `agent-prompt` @@ -342,14 +342,14 @@ CRUD operations for AgentResourceChunk records. *Vector similarity search via `embedding` (manual vector):* ```bash # Pass a pre-computed vector array via dot-notation -csdk agent-resource-chunk list --where.embedding.vector '[0.1,0.2,0.3]' --where.embedding.distance 1.0 --select title,embeddingVectorDistance +csdk agent-resource-chunk list --where.embedding.vector '[0.1,0.2,0.3]' --where.embedding.distance 1.0 --select body,embeddingVectorDistance ``` *Vector semantic search via `embedding` with --auto-embed:* ```bash # --auto-embed converts text to vectors using the configured embedder (e.g. Ollama nomic-embed-text) -EMBEDDER_PROVIDER=ollama csdk agent-resource-chunk search "semantic query" --auto-embed --select title,embeddingVectorDistance -EMBEDDER_PROVIDER=ollama csdk agent-resource-chunk list --where.embedding.vector "semantic query" --auto-embed --select title,embeddingVectorDistance +EMBEDDER_PROVIDER=ollama csdk agent-resource-chunk search "semantic query" --auto-embed --select body,embeddingVectorDistance +EMBEDDER_PROVIDER=ollama csdk agent-resource-chunk list --where.embedding.vector "semantic query" --auto-embed --select body,embeddingVectorDistance ``` *Create/update with auto-embedded `embedding` via --auto-embed:* @@ -361,8 +361,8 @@ EMBEDDER_PROVIDER=ollama csdk agent-resource-chunk update --embedding "new text *Search with pagination and field projection:* ```bash -csdk agent-resource-chunk list --where.unifiedSearch "query" --limit 10 --select id,title,searchScore -csdk agent-resource-chunk search "query" --limit 10 --select id,title,searchScore +csdk agent-resource-chunk list --where.unifiedSearch "query" --limit 10 --select id,body,searchScore +csdk agent-resource-chunk search "query" --limit 10 --select id,body,searchScore ``` @@ -394,6 +394,8 @@ CRUD operations for AgentResource records. | `description` | String | | `descriptionTrgmSimilarity` | Float | | `embedding` | Vector | +| `embeddingModel` | String | +| `embeddingModelTrgmSimilarity` | Float | | `embeddingUpdatedAt` | Datetime | | `embeddingVectorDistance` | Float | | `id` | UUID | @@ -418,7 +420,7 @@ CRUD operations for AgentResource records. > **pgvector embedding fields:** `embedding` > High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. Supports chunk-aware search: set `includeChunks: true` in VectorNearbyInput to transparently query across parent and chunk embeddings, returning the minimum distance. -> **Unified Search API fields:** `bodyTrgmSimilarity`, `descriptionTrgmSimilarity`, `kindTrgmSimilarity`, `search`, `searchScore`, `titleTrgmSimilarity` +> **Unified Search API fields:** `bodyTrgmSimilarity`, `descriptionTrgmSimilarity`, `embeddingModelTrgmSimilarity`, `kindTrgmSimilarity`, `search`, `searchScore`, `searchTsvRank`, `titleTrgmSimilarity` > Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. **Search Examples:** @@ -453,6 +455,11 @@ csdk agent-resource list --where.trgmBody.value "approximate query" --where.trgm csdk agent-resource list --where.trgmDescription.value "approximate query" --where.trgmDescription.threshold 0.3 --select title,descriptionTrgmSimilarity ``` +*Fuzzy search via trigram similarity (`trgmEmbeddingModel`):* +```bash +csdk agent-resource list --where.trgmEmbeddingModel.value "approximate query" --where.trgmEmbeddingModel.threshold 0.3 --select title,embeddingModelTrgmSimilarity +``` + *Fuzzy search via trigram similarity (`trgmKind`):* ```bash csdk agent-resource list --where.trgmKind.value "approximate query" --where.trgmKind.threshold 0.3 --select title,kindTrgmSimilarity @@ -460,7 +467,7 @@ csdk agent-resource list --where.trgmKind.value "approximate query" --where.trgm *Full-text search via tsvector (`search`):* ```bash -csdk agent-resource list --where.search "search query" --select title,tsvRank +csdk agent-resource list --where.search "search query" --select title,searchTsvRank ``` *Fuzzy search via trigram similarity (`trgmTitle`):* @@ -470,7 +477,7 @@ csdk agent-resource list --where.trgmTitle.value "approximate query" --where.trg *Composite search (unifiedSearch dispatches to all text adapters):* ```bash -csdk agent-resource list --where.unifiedSearch "search query" --select title,bodyTrgmSimilarity,descriptionTrgmSimilarity,kindTrgmSimilarity,tsvRank,searchScore,titleTrgmSimilarity +csdk agent-resource list --where.unifiedSearch "search query" --select title,bodyTrgmSimilarity,descriptionTrgmSimilarity,embeddingModelTrgmSimilarity,kindTrgmSimilarity,searchTsvRank,searchScore,titleTrgmSimilarity ``` *Search with pagination and field projection:* @@ -524,7 +531,7 @@ CRUD operations for AgentRun records. | `updatedAt` | Datetime | | `visibility` | String | -**Required create fields:** `threadId` +**Required create fields:** `databaseId`, `threadId`, `visibility` **Optional create fields (backend defaults):** `actorId`, `artifacts`, `attempt`, `baseCommit`, `branch`, `deadlineAt`, `entityId`, `error`, `executionId`, `finishedAt`, `headCommit`, `lastEventSeq`, `parentRunId`, `placement`, `principalId`, `repoUrl`, `startedAt`, `status`, `tokenUsage`, `totalCost` ### `agent-run-workspace` @@ -565,7 +572,7 @@ CRUD operations for AgentRunWorkspace records. | `updatedAt` | Datetime | | `visibility` | String | -**Required create fields:** `baseBranch`, `branch`, `provider`, `repo`, `runId` +**Required create fields:** `actorId`, `baseBranch`, `branch`, `databaseId`, `provider`, `repo`, `runId`, `visibility` **Optional create fields (backend defaults):** `artifacts`, `baseCommit`, `clonedAt`, `headCommit`, `lastUsedAt`, `ordinal`, `publication`, `repositoryId`, `state` ### `agent-task` @@ -603,7 +610,7 @@ CRUD operations for AgentTask records. | `updatedAt` | Datetime | | `visibility` | String | -**Required create fields:** `description`, `planId` +**Required create fields:** `databaseId`, `description`, `planId`, `visibility` **Optional create fields (backend defaults):** `actorId`, `approvalFeedback`, `approvalStatus`, `approvedAt`, `approvedBy`, `error`, `orderIndex`, `requiresApproval`, `source`, `status` ### `agent-thread` @@ -705,7 +712,7 @@ CRUD operations for PlatformAgentEvent records. | `updatedAt` | Datetime | | `visibility` | String | -**Required create fields:** `entry`, `recordedAt`, `runId`, `seq`, `transcriptVersion` +**Required create fields:** `actorId`, `entry`, `recordedAt`, `runId`, `seq`, `transcriptVersion`, `visibility` **Optional create fields (backend defaults):** `transcriptFormat` ### `platform-agent-message` @@ -738,7 +745,7 @@ CRUD operations for PlatformAgentMessage records. | `updatedAt` | Datetime | | `visibility` | String | -**Required create fields:** `authorRole`, `threadId` +**Required create fields:** `authorRole`, `threadId`, `visibility` **Optional create fields (backend defaults):** `actorId`, `agentId`, `deliveredRunId`, `kind`, `model`, `parts` ### `platform-agent-persona` @@ -803,7 +810,7 @@ CRUD operations for PlatformAgentPlan records. | `updatedAt` | Datetime | | `visibility` | String | -**Required create fields:** `threadId`, `title` +**Required create fields:** `threadId`, `title`, `visibility` **Optional create fields (backend defaults):** `description`, `ownerId`, `status` ### `platform-agent-prompt` @@ -881,14 +888,14 @@ CRUD operations for PlatformAgentResourceChunk records. *Vector similarity search via `embedding` (manual vector):* ```bash # Pass a pre-computed vector array via dot-notation -csdk platform-agent-resource-chunk list --where.embedding.vector '[0.1,0.2,0.3]' --where.embedding.distance 1.0 --select title,embeddingVectorDistance +csdk platform-agent-resource-chunk list --where.embedding.vector '[0.1,0.2,0.3]' --where.embedding.distance 1.0 --select body,embeddingVectorDistance ``` *Vector semantic search via `embedding` with --auto-embed:* ```bash # --auto-embed converts text to vectors using the configured embedder (e.g. Ollama nomic-embed-text) -EMBEDDER_PROVIDER=ollama csdk platform-agent-resource-chunk search "semantic query" --auto-embed --select title,embeddingVectorDistance -EMBEDDER_PROVIDER=ollama csdk platform-agent-resource-chunk list --where.embedding.vector "semantic query" --auto-embed --select title,embeddingVectorDistance +EMBEDDER_PROVIDER=ollama csdk platform-agent-resource-chunk search "semantic query" --auto-embed --select body,embeddingVectorDistance +EMBEDDER_PROVIDER=ollama csdk platform-agent-resource-chunk list --where.embedding.vector "semantic query" --auto-embed --select body,embeddingVectorDistance ``` *Create/update with auto-embedded `embedding` via --auto-embed:* @@ -900,8 +907,8 @@ EMBEDDER_PROVIDER=ollama csdk platform-agent-resource-chunk update --embedding " *Search with pagination and field projection:* ```bash -csdk platform-agent-resource-chunk list --where.unifiedSearch "query" --limit 10 --select id,title,searchScore -csdk platform-agent-resource-chunk search "query" --limit 10 --select id,title,searchScore +csdk platform-agent-resource-chunk list --where.unifiedSearch "query" --limit 10 --select id,body,searchScore +csdk platform-agent-resource-chunk search "query" --limit 10 --select id,body,searchScore ``` @@ -932,6 +939,8 @@ CRUD operations for PlatformAgentResource records. | `description` | String | | `descriptionTrgmSimilarity` | Float | | `embedding` | Vector | +| `embeddingModel` | String | +| `embeddingModelTrgmSimilarity` | Float | | `embeddingUpdatedAt` | Datetime | | `embeddingVectorDistance` | Float | | `id` | UUID | @@ -956,7 +965,7 @@ CRUD operations for PlatformAgentResource records. > **pgvector embedding fields:** `embedding` > High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. Supports chunk-aware search: set `includeChunks: true` in VectorNearbyInput to transparently query across parent and chunk embeddings, returning the minimum distance. -> **Unified Search API fields:** `bodyTrgmSimilarity`, `descriptionTrgmSimilarity`, `kindTrgmSimilarity`, `search`, `searchScore`, `titleTrgmSimilarity` +> **Unified Search API fields:** `bodyTrgmSimilarity`, `descriptionTrgmSimilarity`, `embeddingModelTrgmSimilarity`, `kindTrgmSimilarity`, `search`, `searchScore`, `searchTsvRank`, `titleTrgmSimilarity` > Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. **Search Examples:** @@ -991,6 +1000,11 @@ csdk platform-agent-resource list --where.trgmBody.value "approximate query" --w csdk platform-agent-resource list --where.trgmDescription.value "approximate query" --where.trgmDescription.threshold 0.3 --select title,descriptionTrgmSimilarity ``` +*Fuzzy search via trigram similarity (`trgmEmbeddingModel`):* +```bash +csdk platform-agent-resource list --where.trgmEmbeddingModel.value "approximate query" --where.trgmEmbeddingModel.threshold 0.3 --select title,embeddingModelTrgmSimilarity +``` + *Fuzzy search via trigram similarity (`trgmKind`):* ```bash csdk platform-agent-resource list --where.trgmKind.value "approximate query" --where.trgmKind.threshold 0.3 --select title,kindTrgmSimilarity @@ -998,7 +1012,7 @@ csdk platform-agent-resource list --where.trgmKind.value "approximate query" --w *Full-text search via tsvector (`search`):* ```bash -csdk platform-agent-resource list --where.search "search query" --select title,tsvRank +csdk platform-agent-resource list --where.search "search query" --select title,searchTsvRank ``` *Fuzzy search via trigram similarity (`trgmTitle`):* @@ -1008,7 +1022,7 @@ csdk platform-agent-resource list --where.trgmTitle.value "approximate query" -- *Composite search (unifiedSearch dispatches to all text adapters):* ```bash -csdk platform-agent-resource list --where.unifiedSearch "search query" --select title,bodyTrgmSimilarity,descriptionTrgmSimilarity,kindTrgmSimilarity,tsvRank,searchScore,titleTrgmSimilarity +csdk platform-agent-resource list --where.unifiedSearch "search query" --select title,bodyTrgmSimilarity,descriptionTrgmSimilarity,embeddingModelTrgmSimilarity,kindTrgmSimilarity,searchTsvRank,searchScore,titleTrgmSimilarity ``` *Search with pagination and field projection:* @@ -1062,7 +1076,7 @@ CRUD operations for PlatformAgentRun records. | `updatedAt` | Datetime | | `visibility` | String | -**Required create fields:** `threadId` +**Required create fields:** `threadId`, `visibility` **Optional create fields (backend defaults):** `actorId`, `artifacts`, `attempt`, `baseCommit`, `branch`, `databaseId`, `deadlineAt`, `entityId`, `error`, `executionId`, `finishedAt`, `headCommit`, `lastEventSeq`, `parentRunId`, `placement`, `principalId`, `repoUrl`, `startedAt`, `status`, `tokenUsage`, `totalCost` ### `platform-agent-run-workspace` @@ -1102,7 +1116,7 @@ CRUD operations for PlatformAgentRunWorkspace records. | `updatedAt` | Datetime | | `visibility` | String | -**Required create fields:** `baseBranch`, `branch`, `provider`, `repo`, `runId` +**Required create fields:** `actorId`, `baseBranch`, `branch`, `provider`, `repo`, `runId`, `visibility` **Optional create fields (backend defaults):** `artifacts`, `baseCommit`, `clonedAt`, `headCommit`, `lastUsedAt`, `ordinal`, `publication`, `repositoryId`, `state` ### `platform-agent-task` @@ -1139,7 +1153,7 @@ CRUD operations for PlatformAgentTask records. | `updatedAt` | Datetime | | `visibility` | String | -**Required create fields:** `description`, `planId` +**Required create fields:** `description`, `planId`, `visibility` **Optional create fields (backend defaults):** `actorId`, `approvalFeedback`, `approvalStatus`, `approvedAt`, `approvedBy`, `error`, `orderIndex`, `requiresApproval`, `source`, `status` ### `platform-agent-thread` diff --git a/sdk/constructive-cli/src/agent/cli/commands/agent-event.ts b/sdk/constructive-cli/src/agent/cli/commands/agent-event.ts index e5dad38c35..96410f17b9 100644 --- a/sdk/constructive-cli/src/agent/cli/commands/agent-event.ts +++ b/sdk/constructive-cli/src/agent/cli/commands/agent-event.ts @@ -80,7 +80,9 @@ async function handleTableSubcommand( async function handleList(argv: Partial>, _prompter: Inquirerer) { try { const defaultSelect = { + actorId: true, createdAt: true, + databaseId: true, entry: true, id: true, recordedAt: true, @@ -89,6 +91,7 @@ async function handleList(argv: Partial>, _prompter: Inq transcriptFormat: true, transcriptVersion: true, updatedAt: true, + visibility: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -109,7 +112,9 @@ async function handleList(argv: Partial>, _prompter: Inq async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { try { const defaultSelect = { + actorId: true, createdAt: true, + databaseId: true, entry: true, id: true, recordedAt: true, @@ -118,6 +123,7 @@ async function handleFindFirst(argv: Partial>, _prompter transcriptFormat: true, transcriptVersion: true, updatedAt: true, + visibility: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -150,7 +156,9 @@ async function handleGet(argv: Partial>, prompter: Inqui .findOne({ id: answers.id as string, select: { + actorId: true, createdAt: true, + databaseId: true, entry: true, id: true, recordedAt: true, @@ -159,6 +167,7 @@ async function handleGet(argv: Partial>, prompter: Inqui transcriptFormat: true, transcriptVersion: true, updatedAt: true, + visibility: true, }, }) .execute(); @@ -226,7 +235,9 @@ async function handleCreate(argv: Partial>, prompter: In transcriptVersion: cleanedData.transcriptVersion, }, select: { + actorId: true, createdAt: true, + databaseId: true, entry: true, id: true, recordedAt: true, @@ -235,6 +246,7 @@ async function handleCreate(argv: Partial>, prompter: In transcriptFormat: true, transcriptVersion: true, updatedAt: true, + visibility: true, }, }) .execute(); @@ -256,6 +268,18 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'id', required: true, }, + { + type: 'text', + name: 'actorId', + message: 'actorId', + required: false, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, { type: 'json', name: 'entry', @@ -293,6 +317,12 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'transcriptVersion', required: false, }, + { + type: 'text', + name: 'visibility', + message: 'visibility', + required: false, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as AgentEventPatch; @@ -303,15 +333,20 @@ async function handleUpdate(argv: Partial>, prompter: In id: answers.id as string, }, data: { + actorId: cleanedData.actorId, + databaseId: cleanedData.databaseId, entry: cleanedData.entry, recordedAt: cleanedData.recordedAt, runId: cleanedData.runId, seq: cleanedData.seq, transcriptFormat: cleanedData.transcriptFormat, transcriptVersion: cleanedData.transcriptVersion, + visibility: cleanedData.visibility, }, select: { + actorId: true, createdAt: true, + databaseId: true, entry: true, id: true, recordedAt: true, @@ -320,6 +355,7 @@ async function handleUpdate(argv: Partial>, prompter: In transcriptFormat: true, transcriptVersion: true, updatedAt: true, + visibility: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/agent/cli/commands/agent-message.ts b/sdk/constructive-cli/src/agent/cli/commands/agent-message.ts index c84fa72bdf..1ad9b9daa0 100644 --- a/sdk/constructive-cli/src/agent/cli/commands/agent-message.ts +++ b/sdk/constructive-cli/src/agent/cli/commands/agent-message.ts @@ -85,6 +85,7 @@ async function handleList(argv: Partial>, _prompter: Inq agentId: true, authorRole: true, createdAt: true, + databaseId: true, deliveredRunId: true, id: true, kind: true, @@ -92,6 +93,7 @@ async function handleList(argv: Partial>, _prompter: Inq parts: true, threadId: true, updatedAt: true, + visibility: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -116,6 +118,7 @@ async function handleFindFirst(argv: Partial>, _prompter agentId: true, authorRole: true, createdAt: true, + databaseId: true, deliveredRunId: true, id: true, kind: true, @@ -123,6 +126,7 @@ async function handleFindFirst(argv: Partial>, _prompter parts: true, threadId: true, updatedAt: true, + visibility: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -159,6 +163,7 @@ async function handleGet(argv: Partial>, prompter: Inqui agentId: true, authorRole: true, createdAt: true, + databaseId: true, deliveredRunId: true, id: true, kind: true, @@ -166,6 +171,7 @@ async function handleGet(argv: Partial>, prompter: Inqui parts: true, threadId: true, updatedAt: true, + visibility: true, }, }) .execute(); @@ -259,6 +265,7 @@ async function handleCreate(argv: Partial>, prompter: In agentId: true, authorRole: true, createdAt: true, + databaseId: true, deliveredRunId: true, id: true, kind: true, @@ -266,6 +273,7 @@ async function handleCreate(argv: Partial>, prompter: In parts: true, threadId: true, updatedAt: true, + visibility: true, }, }) .execute(); @@ -307,6 +315,12 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'authorRole', required: false, }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, { type: 'text', name: 'deliveredRunId', @@ -341,6 +355,12 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'threadId', required: false, }, + { + type: 'text', + name: 'visibility', + message: 'visibility', + required: false, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as AgentMessagePatch; @@ -354,17 +374,20 @@ async function handleUpdate(argv: Partial>, prompter: In actorId: cleanedData.actorId, agentId: cleanedData.agentId, authorRole: cleanedData.authorRole, + databaseId: cleanedData.databaseId, deliveredRunId: cleanedData.deliveredRunId, kind: cleanedData.kind, model: cleanedData.model, parts: cleanedData.parts, threadId: cleanedData.threadId, + visibility: cleanedData.visibility, }, select: { actorId: true, agentId: true, authorRole: true, createdAt: true, + databaseId: true, deliveredRunId: true, id: true, kind: true, @@ -372,6 +395,7 @@ async function handleUpdate(argv: Partial>, prompter: In parts: true, threadId: true, updatedAt: true, + visibility: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/agent/cli/commands/agent-plan.ts b/sdk/constructive-cli/src/agent/cli/commands/agent-plan.ts index 921ddf9f8d..12a56bc78b 100644 --- a/sdk/constructive-cli/src/agent/cli/commands/agent-plan.ts +++ b/sdk/constructive-cli/src/agent/cli/commands/agent-plan.ts @@ -79,6 +79,7 @@ async function handleList(argv: Partial>, _prompter: Inq try { const defaultSelect = { createdAt: true, + databaseId: true, description: true, id: true, ownerId: true, @@ -86,6 +87,7 @@ async function handleList(argv: Partial>, _prompter: Inq threadId: true, title: true, updatedAt: true, + visibility: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -107,6 +109,7 @@ async function handleFindFirst(argv: Partial>, _prompter try { const defaultSelect = { createdAt: true, + databaseId: true, description: true, id: true, ownerId: true, @@ -114,6 +117,7 @@ async function handleFindFirst(argv: Partial>, _prompter threadId: true, title: true, updatedAt: true, + visibility: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -147,6 +151,7 @@ async function handleGet(argv: Partial>, prompter: Inqui id: answers.id as string, select: { createdAt: true, + databaseId: true, description: true, id: true, ownerId: true, @@ -154,6 +159,7 @@ async function handleGet(argv: Partial>, prompter: Inqui threadId: true, title: true, updatedAt: true, + visibility: true, }, }) .execute(); @@ -217,6 +223,7 @@ async function handleCreate(argv: Partial>, prompter: In }, select: { createdAt: true, + databaseId: true, description: true, id: true, ownerId: true, @@ -224,6 +231,7 @@ async function handleCreate(argv: Partial>, prompter: In threadId: true, title: true, updatedAt: true, + visibility: true, }, }) .execute(); @@ -245,6 +253,12 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'id', required: true, }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, { type: 'text', name: 'description', @@ -278,6 +292,12 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'title', required: false, }, + { + type: 'text', + name: 'visibility', + message: 'visibility', + required: false, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as AgentPlanPatch; @@ -288,14 +308,17 @@ async function handleUpdate(argv: Partial>, prompter: In id: answers.id as string, }, data: { + databaseId: cleanedData.databaseId, description: cleanedData.description, ownerId: cleanedData.ownerId, status: cleanedData.status, threadId: cleanedData.threadId, title: cleanedData.title, + visibility: cleanedData.visibility, }, select: { createdAt: true, + databaseId: true, description: true, id: true, ownerId: true, @@ -303,6 +326,7 @@ async function handleUpdate(argv: Partial>, prompter: In threadId: true, title: true, updatedAt: true, + visibility: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/agent/cli/commands/agent-resource.ts b/sdk/constructive-cli/src/agent/cli/commands/agent-resource.ts index 0141f622ed..db0c400c4a 100644 --- a/sdk/constructive-cli/src/agent/cli/commands/agent-resource.ts +++ b/sdk/constructive-cli/src/agent/cli/commands/agent-resource.ts @@ -26,6 +26,8 @@ const fieldSchema: FieldSchema = { description: 'string', descriptionTrgmSimilarity: 'float', embedding: 'string', + embeddingModel: 'string', + embeddingModelTrgmSimilarity: 'float', embeddingUpdatedAt: 'string', embeddingVectorDistance: 'float', id: 'uuid', @@ -203,6 +205,10 @@ async function handleSearch(argv: Partial>, _prompter: I value: query, threshold: 0.3, }, + trgmEmbeddingModel: { + value: query, + threshold: 0.3, + }, trgmKind: { value: query, threshold: 0.3, diff --git a/sdk/constructive-cli/src/agent/cli/commands/agent-run-workspace.ts b/sdk/constructive-cli/src/agent/cli/commands/agent-run-workspace.ts index 576ba2c975..4c5c090aec 100644 --- a/sdk/constructive-cli/src/agent/cli/commands/agent-run-workspace.ts +++ b/sdk/constructive-cli/src/agent/cli/commands/agent-run-workspace.ts @@ -88,12 +88,14 @@ async function handleTableSubcommand( async function handleList(argv: Partial>, _prompter: Inquirerer) { try { const defaultSelect = { + actorId: true, artifacts: true, baseBranch: true, baseCommit: true, branch: true, clonedAt: true, createdAt: true, + databaseId: true, headCommit: true, id: true, lastUsedAt: true, @@ -105,6 +107,7 @@ async function handleList(argv: Partial>, _prompter: Inq runId: true, state: true, updatedAt: true, + visibility: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -125,12 +128,14 @@ async function handleList(argv: Partial>, _prompter: Inq async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { try { const defaultSelect = { + actorId: true, artifacts: true, baseBranch: true, baseCommit: true, branch: true, clonedAt: true, createdAt: true, + databaseId: true, headCommit: true, id: true, lastUsedAt: true, @@ -142,6 +147,7 @@ async function handleFindFirst(argv: Partial>, _prompter runId: true, state: true, updatedAt: true, + visibility: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -174,12 +180,14 @@ async function handleGet(argv: Partial>, prompter: Inqui .findOne({ id: answers.id as string, select: { + actorId: true, artifacts: true, baseBranch: true, baseCommit: true, branch: true, clonedAt: true, createdAt: true, + databaseId: true, headCommit: true, id: true, lastUsedAt: true, @@ -191,6 +199,7 @@ async function handleGet(argv: Partial>, prompter: Inqui runId: true, state: true, updatedAt: true, + visibility: true, }, }) .execute(); @@ -325,12 +334,14 @@ async function handleCreate(argv: Partial>, prompter: In state: cleanedData.state, }, select: { + actorId: true, artifacts: true, baseBranch: true, baseCommit: true, branch: true, clonedAt: true, createdAt: true, + databaseId: true, headCommit: true, id: true, lastUsedAt: true, @@ -342,6 +353,7 @@ async function handleCreate(argv: Partial>, prompter: In runId: true, state: true, updatedAt: true, + visibility: true, }, }) .execute(); @@ -363,6 +375,12 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'id', required: true, }, + { + type: 'text', + name: 'actorId', + message: 'actorId', + required: false, + }, { type: 'json', name: 'artifacts', @@ -396,6 +414,12 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, { type: 'text', name: 'headCommit', @@ -456,6 +480,12 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'visibility', + message: 'visibility', + required: false, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as AgentRunWorkspacePatch; @@ -466,11 +496,13 @@ async function handleUpdate(argv: Partial>, prompter: In id: answers.id as string, }, data: { + actorId: cleanedData.actorId, artifacts: cleanedData.artifacts, baseBranch: cleanedData.baseBranch, baseCommit: cleanedData.baseCommit, branch: cleanedData.branch, clonedAt: cleanedData.clonedAt, + databaseId: cleanedData.databaseId, headCommit: cleanedData.headCommit, lastUsedAt: cleanedData.lastUsedAt, ordinal: cleanedData.ordinal, @@ -480,14 +512,17 @@ async function handleUpdate(argv: Partial>, prompter: In repositoryId: cleanedData.repositoryId, runId: cleanedData.runId, state: cleanedData.state, + visibility: cleanedData.visibility, }, select: { + actorId: true, artifacts: true, baseBranch: true, baseCommit: true, branch: true, clonedAt: true, createdAt: true, + databaseId: true, headCommit: true, id: true, lastUsedAt: true, @@ -499,6 +534,7 @@ async function handleUpdate(argv: Partial>, prompter: In runId: true, state: true, updatedAt: true, + visibility: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/agent/cli/commands/agent-run.ts b/sdk/constructive-cli/src/agent/cli/commands/agent-run.ts index b041640fc5..c08b2dde1c 100644 --- a/sdk/constructive-cli/src/agent/cli/commands/agent-run.ts +++ b/sdk/constructive-cli/src/agent/cli/commands/agent-run.ts @@ -100,6 +100,7 @@ async function handleList(argv: Partial>, _prompter: Inq baseCommit: true, branch: true, createdAt: true, + databaseId: true, deadlineAt: true, entityId: true, error: true, @@ -118,6 +119,7 @@ async function handleList(argv: Partial>, _prompter: Inq tokenUsage: true, totalCost: true, updatedAt: true, + visibility: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -144,6 +146,7 @@ async function handleFindFirst(argv: Partial>, _prompter baseCommit: true, branch: true, createdAt: true, + databaseId: true, deadlineAt: true, entityId: true, error: true, @@ -162,6 +165,7 @@ async function handleFindFirst(argv: Partial>, _prompter tokenUsage: true, totalCost: true, updatedAt: true, + visibility: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -200,6 +204,7 @@ async function handleGet(argv: Partial>, prompter: Inqui baseCommit: true, branch: true, createdAt: true, + databaseId: true, deadlineAt: true, entityId: true, error: true, @@ -218,6 +223,7 @@ async function handleGet(argv: Partial>, prompter: Inqui tokenUsage: true, totalCost: true, updatedAt: true, + visibility: true, }, }) .execute(); @@ -415,6 +421,7 @@ async function handleCreate(argv: Partial>, prompter: In baseCommit: true, branch: true, createdAt: true, + databaseId: true, deadlineAt: true, entityId: true, error: true, @@ -433,6 +440,7 @@ async function handleCreate(argv: Partial>, prompter: In tokenUsage: true, totalCost: true, updatedAt: true, + visibility: true, }, }) .execute(); @@ -489,6 +497,12 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, { type: 'text', name: 'deadlineAt', @@ -600,6 +614,12 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'visibility', + message: 'visibility', + required: false, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as AgentRunPatch; @@ -615,6 +635,7 @@ async function handleUpdate(argv: Partial>, prompter: In attempt: cleanedData.attempt, baseCommit: cleanedData.baseCommit, branch: cleanedData.branch, + databaseId: cleanedData.databaseId, deadlineAt: cleanedData.deadlineAt, entityId: cleanedData.entityId, error: cleanedData.error, @@ -631,6 +652,7 @@ async function handleUpdate(argv: Partial>, prompter: In threadId: cleanedData.threadId, tokenUsage: cleanedData.tokenUsage, totalCost: cleanedData.totalCost, + visibility: cleanedData.visibility, }, select: { actorId: true, @@ -639,6 +661,7 @@ async function handleUpdate(argv: Partial>, prompter: In baseCommit: true, branch: true, createdAt: true, + databaseId: true, deadlineAt: true, entityId: true, error: true, @@ -657,6 +680,7 @@ async function handleUpdate(argv: Partial>, prompter: In tokenUsage: true, totalCost: true, updatedAt: true, + visibility: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/agent/cli/commands/agent-task.ts b/sdk/constructive-cli/src/agent/cli/commands/agent-task.ts index 2b87568edd..d165bbb0de 100644 --- a/sdk/constructive-cli/src/agent/cli/commands/agent-task.ts +++ b/sdk/constructive-cli/src/agent/cli/commands/agent-task.ts @@ -91,6 +91,7 @@ async function handleList(argv: Partial>, _prompter: Inq approvedAt: true, approvedBy: true, createdAt: true, + databaseId: true, description: true, error: true, id: true, @@ -100,6 +101,7 @@ async function handleList(argv: Partial>, _prompter: Inq source: true, status: true, updatedAt: true, + visibility: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -126,6 +128,7 @@ async function handleFindFirst(argv: Partial>, _prompter approvedAt: true, approvedBy: true, createdAt: true, + databaseId: true, description: true, error: true, id: true, @@ -135,6 +138,7 @@ async function handleFindFirst(argv: Partial>, _prompter source: true, status: true, updatedAt: true, + visibility: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -173,6 +177,7 @@ async function handleGet(argv: Partial>, prompter: Inqui approvedAt: true, approvedBy: true, createdAt: true, + databaseId: true, description: true, error: true, id: true, @@ -182,6 +187,7 @@ async function handleGet(argv: Partial>, prompter: Inqui source: true, status: true, updatedAt: true, + visibility: true, }, }) .execute(); @@ -306,6 +312,7 @@ async function handleCreate(argv: Partial>, prompter: In approvedAt: true, approvedBy: true, createdAt: true, + databaseId: true, description: true, error: true, id: true, @@ -315,6 +322,7 @@ async function handleCreate(argv: Partial>, prompter: In source: true, status: true, updatedAt: true, + visibility: true, }, }) .execute(); @@ -371,6 +379,12 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, { type: 'text', name: 'description', @@ -418,6 +432,12 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'visibility', + message: 'visibility', + required: false, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as AgentTaskPatch; @@ -433,6 +453,7 @@ async function handleUpdate(argv: Partial>, prompter: In approvalStatus: cleanedData.approvalStatus, approvedAt: cleanedData.approvedAt, approvedBy: cleanedData.approvedBy, + databaseId: cleanedData.databaseId, description: cleanedData.description, error: cleanedData.error, orderIndex: cleanedData.orderIndex, @@ -440,6 +461,7 @@ async function handleUpdate(argv: Partial>, prompter: In requiresApproval: cleanedData.requiresApproval, source: cleanedData.source, status: cleanedData.status, + visibility: cleanedData.visibility, }, select: { actorId: true, @@ -448,6 +470,7 @@ async function handleUpdate(argv: Partial>, prompter: In approvedAt: true, approvedBy: true, createdAt: true, + databaseId: true, description: true, error: true, id: true, @@ -457,6 +480,7 @@ async function handleUpdate(argv: Partial>, prompter: In source: true, status: true, updatedAt: true, + visibility: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/agent/cli/commands/platform-agent-event.ts b/sdk/constructive-cli/src/agent/cli/commands/platform-agent-event.ts index 07e0cb15f0..25f5fe5a26 100644 --- a/sdk/constructive-cli/src/agent/cli/commands/platform-agent-event.ts +++ b/sdk/constructive-cli/src/agent/cli/commands/platform-agent-event.ts @@ -79,6 +79,7 @@ async function handleTableSubcommand( async function handleList(argv: Partial>, _prompter: Inquirerer) { try { const defaultSelect = { + actorId: true, createdAt: true, entry: true, id: true, @@ -88,6 +89,7 @@ async function handleList(argv: Partial>, _prompter: Inq transcriptFormat: true, transcriptVersion: true, updatedAt: true, + visibility: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs< @@ -112,6 +114,7 @@ async function handleList(argv: Partial>, _prompter: Inq async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { try { const defaultSelect = { + actorId: true, createdAt: true, entry: true, id: true, @@ -121,6 +124,7 @@ async function handleFindFirst(argv: Partial>, _prompter transcriptFormat: true, transcriptVersion: true, updatedAt: true, + visibility: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs< @@ -157,6 +161,7 @@ async function handleGet(argv: Partial>, prompter: Inqui .findOne({ id: answers.id as string, select: { + actorId: true, createdAt: true, entry: true, id: true, @@ -166,6 +171,7 @@ async function handleGet(argv: Partial>, prompter: Inqui transcriptFormat: true, transcriptVersion: true, updatedAt: true, + visibility: true, }, }) .execute(); @@ -236,6 +242,7 @@ async function handleCreate(argv: Partial>, prompter: In transcriptVersion: cleanedData.transcriptVersion, }, select: { + actorId: true, createdAt: true, entry: true, id: true, @@ -245,6 +252,7 @@ async function handleCreate(argv: Partial>, prompter: In transcriptFormat: true, transcriptVersion: true, updatedAt: true, + visibility: true, }, }) .execute(); @@ -266,6 +274,12 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'id', required: true, }, + { + type: 'text', + name: 'actorId', + message: 'actorId', + required: false, + }, { type: 'json', name: 'entry', @@ -303,6 +317,12 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'transcriptVersion', required: false, }, + { + type: 'text', + name: 'visibility', + message: 'visibility', + required: false, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as PlatformAgentEventPatch; @@ -313,14 +333,17 @@ async function handleUpdate(argv: Partial>, prompter: In id: answers.id as string, }, data: { + actorId: cleanedData.actorId, entry: cleanedData.entry, recordedAt: cleanedData.recordedAt, runId: cleanedData.runId, seq: cleanedData.seq, transcriptFormat: cleanedData.transcriptFormat, transcriptVersion: cleanedData.transcriptVersion, + visibility: cleanedData.visibility, }, select: { + actorId: true, createdAt: true, entry: true, id: true, @@ -330,6 +353,7 @@ async function handleUpdate(argv: Partial>, prompter: In transcriptFormat: true, transcriptVersion: true, updatedAt: true, + visibility: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/agent/cli/commands/platform-agent-message.ts b/sdk/constructive-cli/src/agent/cli/commands/platform-agent-message.ts index ff2cc5c421..f0dcea8a95 100644 --- a/sdk/constructive-cli/src/agent/cli/commands/platform-agent-message.ts +++ b/sdk/constructive-cli/src/agent/cli/commands/platform-agent-message.ts @@ -91,6 +91,7 @@ async function handleList(argv: Partial>, _prompter: Inq parts: true, threadId: true, updatedAt: true, + visibility: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs< @@ -126,6 +127,7 @@ async function handleFindFirst(argv: Partial>, _prompter parts: true, threadId: true, updatedAt: true, + visibility: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs< @@ -173,6 +175,7 @@ async function handleGet(argv: Partial>, prompter: Inqui parts: true, threadId: true, updatedAt: true, + visibility: true, }, }) .execute(); @@ -273,6 +276,7 @@ async function handleCreate(argv: Partial>, prompter: In parts: true, threadId: true, updatedAt: true, + visibility: true, }, }) .execute(); @@ -348,6 +352,12 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'threadId', required: false, }, + { + type: 'text', + name: 'visibility', + message: 'visibility', + required: false, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as PlatformAgentMessagePatch; @@ -366,6 +376,7 @@ async function handleUpdate(argv: Partial>, prompter: In model: cleanedData.model, parts: cleanedData.parts, threadId: cleanedData.threadId, + visibility: cleanedData.visibility, }, select: { actorId: true, @@ -379,6 +390,7 @@ async function handleUpdate(argv: Partial>, prompter: In parts: true, threadId: true, updatedAt: true, + visibility: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/agent/cli/commands/platform-agent-plan.ts b/sdk/constructive-cli/src/agent/cli/commands/platform-agent-plan.ts index ad8d7616ab..3dce28bed9 100644 --- a/sdk/constructive-cli/src/agent/cli/commands/platform-agent-plan.ts +++ b/sdk/constructive-cli/src/agent/cli/commands/platform-agent-plan.ts @@ -85,6 +85,7 @@ async function handleList(argv: Partial>, _prompter: Inq threadId: true, title: true, updatedAt: true, + visibility: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -113,6 +114,7 @@ async function handleFindFirst(argv: Partial>, _prompter threadId: true, title: true, updatedAt: true, + visibility: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -153,6 +155,7 @@ async function handleGet(argv: Partial>, prompter: Inqui threadId: true, title: true, updatedAt: true, + visibility: true, }, }) .execute(); @@ -226,6 +229,7 @@ async function handleCreate(argv: Partial>, prompter: In threadId: true, title: true, updatedAt: true, + visibility: true, }, }) .execute(); @@ -280,6 +284,12 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'title', required: false, }, + { + type: 'text', + name: 'visibility', + message: 'visibility', + required: false, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as PlatformAgentPlanPatch; @@ -295,6 +305,7 @@ async function handleUpdate(argv: Partial>, prompter: In status: cleanedData.status, threadId: cleanedData.threadId, title: cleanedData.title, + visibility: cleanedData.visibility, }, select: { createdAt: true, @@ -305,6 +316,7 @@ async function handleUpdate(argv: Partial>, prompter: In threadId: true, title: true, updatedAt: true, + visibility: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/agent/cli/commands/platform-agent-resource.ts b/sdk/constructive-cli/src/agent/cli/commands/platform-agent-resource.ts index 404dbea326..ec3818a987 100644 --- a/sdk/constructive-cli/src/agent/cli/commands/platform-agent-resource.ts +++ b/sdk/constructive-cli/src/agent/cli/commands/platform-agent-resource.ts @@ -25,6 +25,8 @@ const fieldSchema: FieldSchema = { description: 'string', descriptionTrgmSimilarity: 'float', embedding: 'string', + embeddingModel: 'string', + embeddingModelTrgmSimilarity: 'float', embeddingUpdatedAt: 'string', embeddingVectorDistance: 'float', id: 'uuid', @@ -208,6 +210,10 @@ async function handleSearch(argv: Partial>, _prompter: I value: query, threshold: 0.3, }, + trgmEmbeddingModel: { + value: query, + threshold: 0.3, + }, trgmKind: { value: query, threshold: 0.3, diff --git a/sdk/constructive-cli/src/agent/cli/commands/platform-agent-run-workspace.ts b/sdk/constructive-cli/src/agent/cli/commands/platform-agent-run-workspace.ts index 0143c43926..80bea28bbf 100644 --- a/sdk/constructive-cli/src/agent/cli/commands/platform-agent-run-workspace.ts +++ b/sdk/constructive-cli/src/agent/cli/commands/platform-agent-run-workspace.ts @@ -87,6 +87,7 @@ async function handleTableSubcommand( async function handleList(argv: Partial>, _prompter: Inquirerer) { try { const defaultSelect = { + actorId: true, artifacts: true, baseBranch: true, baseCommit: true, @@ -104,6 +105,7 @@ async function handleList(argv: Partial>, _prompter: Inq runId: true, state: true, updatedAt: true, + visibility: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs< @@ -128,6 +130,7 @@ async function handleList(argv: Partial>, _prompter: Inq async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { try { const defaultSelect = { + actorId: true, artifacts: true, baseBranch: true, baseCommit: true, @@ -145,6 +148,7 @@ async function handleFindFirst(argv: Partial>, _prompter runId: true, state: true, updatedAt: true, + visibility: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs< @@ -181,6 +185,7 @@ async function handleGet(argv: Partial>, prompter: Inqui .findOne({ id: answers.id as string, select: { + actorId: true, artifacts: true, baseBranch: true, baseCommit: true, @@ -198,6 +203,7 @@ async function handleGet(argv: Partial>, prompter: Inqui runId: true, state: true, updatedAt: true, + visibility: true, }, }) .execute(); @@ -332,6 +338,7 @@ async function handleCreate(argv: Partial>, prompter: In state: cleanedData.state, }, select: { + actorId: true, artifacts: true, baseBranch: true, baseCommit: true, @@ -349,6 +356,7 @@ async function handleCreate(argv: Partial>, prompter: In runId: true, state: true, updatedAt: true, + visibility: true, }, }) .execute(); @@ -370,6 +378,12 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'id', required: true, }, + { + type: 'text', + name: 'actorId', + message: 'actorId', + required: false, + }, { type: 'json', name: 'artifacts', @@ -463,6 +477,12 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'visibility', + message: 'visibility', + required: false, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as PlatformAgentRunWorkspacePatch; @@ -473,6 +493,7 @@ async function handleUpdate(argv: Partial>, prompter: In id: answers.id as string, }, data: { + actorId: cleanedData.actorId, artifacts: cleanedData.artifacts, baseBranch: cleanedData.baseBranch, baseCommit: cleanedData.baseCommit, @@ -487,8 +508,10 @@ async function handleUpdate(argv: Partial>, prompter: In repositoryId: cleanedData.repositoryId, runId: cleanedData.runId, state: cleanedData.state, + visibility: cleanedData.visibility, }, select: { + actorId: true, artifacts: true, baseBranch: true, baseCommit: true, @@ -506,6 +529,7 @@ async function handleUpdate(argv: Partial>, prompter: In runId: true, state: true, updatedAt: true, + visibility: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/agent/cli/commands/platform-agent-run.ts b/sdk/constructive-cli/src/agent/cli/commands/platform-agent-run.ts index d8571f0598..e05ca4e8ae 100644 --- a/sdk/constructive-cli/src/agent/cli/commands/platform-agent-run.ts +++ b/sdk/constructive-cli/src/agent/cli/commands/platform-agent-run.ts @@ -119,6 +119,7 @@ async function handleList(argv: Partial>, _prompter: Inq tokenUsage: true, totalCost: true, updatedAt: true, + visibility: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -164,6 +165,7 @@ async function handleFindFirst(argv: Partial>, _prompter tokenUsage: true, totalCost: true, updatedAt: true, + visibility: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -221,6 +223,7 @@ async function handleGet(argv: Partial>, prompter: Inqui tokenUsage: true, totalCost: true, updatedAt: true, + visibility: true, }, }) .execute(); @@ -448,6 +451,7 @@ async function handleCreate(argv: Partial>, prompter: In tokenUsage: true, totalCost: true, updatedAt: true, + visibility: true, }, }) .execute(); @@ -622,6 +626,12 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'visibility', + message: 'visibility', + required: false, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as PlatformAgentRunPatch; @@ -654,6 +664,7 @@ async function handleUpdate(argv: Partial>, prompter: In threadId: cleanedData.threadId, tokenUsage: cleanedData.tokenUsage, totalCost: cleanedData.totalCost, + visibility: cleanedData.visibility, }, select: { actorId: true, @@ -681,6 +692,7 @@ async function handleUpdate(argv: Partial>, prompter: In tokenUsage: true, totalCost: true, updatedAt: true, + visibility: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/agent/cli/commands/platform-agent-task.ts b/sdk/constructive-cli/src/agent/cli/commands/platform-agent-task.ts index 18c8bd663b..994b9d4e88 100644 --- a/sdk/constructive-cli/src/agent/cli/commands/platform-agent-task.ts +++ b/sdk/constructive-cli/src/agent/cli/commands/platform-agent-task.ts @@ -99,6 +99,7 @@ async function handleList(argv: Partial>, _prompter: Inq source: true, status: true, updatedAt: true, + visibility: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -134,6 +135,7 @@ async function handleFindFirst(argv: Partial>, _prompter source: true, status: true, updatedAt: true, + visibility: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -181,6 +183,7 @@ async function handleGet(argv: Partial>, prompter: Inqui source: true, status: true, updatedAt: true, + visibility: true, }, }) .execute(); @@ -317,6 +320,7 @@ async function handleCreate(argv: Partial>, prompter: In source: true, status: true, updatedAt: true, + visibility: true, }, }) .execute(); @@ -420,6 +424,12 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'visibility', + message: 'visibility', + required: false, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as PlatformAgentTaskPatch; @@ -442,6 +452,7 @@ async function handleUpdate(argv: Partial>, prompter: In requiresApproval: cleanedData.requiresApproval, source: cleanedData.source, status: cleanedData.status, + visibility: cleanedData.visibility, }, select: { actorId: true, @@ -459,6 +470,7 @@ async function handleUpdate(argv: Partial>, prompter: In source: true, status: true, updatedAt: true, + visibility: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/agent/orm/README.md b/sdk/constructive-cli/src/agent/orm/README.md index a201a35f2d..7e92ad0fca 100644 --- a/sdk/constructive-cli/src/agent/orm/README.md +++ b/sdk/constructive-cli/src/agent/orm/README.md @@ -305,10 +305,10 @@ CRUD operations for AgentResourceChunk records. | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | | `embedding` | Vector | Yes | -| `embeddingVectorDistance` | Float | Yes | +| `embeddingVectorDistance` | Float | No | | `id` | UUID | No | | `metadata` | JSON | Yes | -| `searchScore` | Float | Yes | +| `searchScore` | Float | No | | `updatedAt` | Datetime | No | **Operations:** @@ -321,7 +321,7 @@ const items = await db.agentResourceChunk.findMany({ select: { agentResourceId: const item = await db.agentResourceChunk.findOne({ id: '', select: { agentResourceId: true, body: true, chunkIndex: true, createdAt: true, databaseId: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, searchScore: true, updatedAt: true } }).execute(); // Create -const created = await db.agentResourceChunk.create({ data: { agentResourceId: '', body: '', chunkIndex: '', databaseId: '', embedding: '', embeddingVectorDistance: '', metadata: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.agentResourceChunk.create({ data: { agentResourceId: '', body: '', chunkIndex: '', databaseId: '', embedding: '', metadata: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentResourceChunk.update({ where: { id: '' }, data: { agentResourceId: '' }, select: { id: true } }).execute(); @@ -343,29 +343,31 @@ CRUD operations for AgentResource records. |-------|------|----------| | `archivedAt` | Datetime | Yes | | `body` | String | Yes | -| `bodyTrgmSimilarity` | Float | Yes | +| `bodyTrgmSimilarity` | Float | No | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | | `createdByPrincipal` | UUID | Yes | | `databaseId` | UUID | Yes | | `description` | String | Yes | -| `descriptionTrgmSimilarity` | Float | Yes | +| `descriptionTrgmSimilarity` | Float | No | | `embedding` | Vector | Yes | -| `embeddingUpdatedAt` | Datetime | Yes | -| `embeddingVectorDistance` | Float | Yes | +| `embeddingModel` | String | No | +| `embeddingModelTrgmSimilarity` | Float | No | +| `embeddingUpdatedAt` | Datetime | No | +| `embeddingVectorDistance` | Float | No | | `id` | UUID | No | | `isActive` | Boolean | Yes | | `isArchived` | Boolean | Yes | | `keywords` | String | Yes | | `kind` | String | Yes | -| `kindTrgmSimilarity` | Float | Yes | +| `kindTrgmSimilarity` | Float | No | | `metadata` | JSON | Yes | -| `search` | FullText | Yes | -| `searchScore` | Float | Yes | -| `searchTsvRank` | Float | Yes | +| `search` | FullText | No | +| `searchScore` | Float | No | +| `searchTsvRank` | Float | No | | `slug` | String | Yes | | `title` | String | Yes | -| `titleTrgmSimilarity` | Float | Yes | +| `titleTrgmSimilarity` | Float | No | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | | `updatedByPrincipal` | UUID | Yes | @@ -374,13 +376,13 @@ CRUD operations for AgentResource records. ```typescript // List all agentResource records -const items = await db.agentResource.findMany({ select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const items = await db.agentResource.findMany({ select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.agentResource.findOne({ id: '', select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const item = await db.agentResource.findOne({ id: '', select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.agentResource.create({ data: { archivedAt: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', isActive: '', isArchived: '', keywords: '', kind: '', kindTrgmSimilarity: '', metadata: '', search: '', searchScore: '', searchTsvRank: '', slug: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); +const created = await db.agentResource.create({ data: { archivedAt: '', body: '', createdBy: '', createdByPrincipal: '', databaseId: '', description: '', embedding: '', isActive: '', isArchived: '', keywords: '', kind: '', metadata: '', slug: '', title: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentResource.update({ where: { id: '' }, data: { archivedAt: '' }, select: { id: true } }).execute(); @@ -836,11 +838,11 @@ CRUD operations for PlatformAgentResourceChunk records. | `chunkIndex` | Int | Yes | | `createdAt` | Datetime | No | | `embedding` | Vector | Yes | -| `embeddingVectorDistance` | Float | Yes | +| `embeddingVectorDistance` | Float | No | | `id` | UUID | No | | `metadata` | JSON | Yes | | `platformAgentResourceId` | UUID | Yes | -| `searchScore` | Float | Yes | +| `searchScore` | Float | No | | `updatedAt` | Datetime | No | **Operations:** @@ -853,7 +855,7 @@ const items = await db.platformAgentResourceChunk.findMany({ select: { body: tru const item = await db.platformAgentResourceChunk.findOne({ id: '', select: { body: true, chunkIndex: true, createdAt: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, platformAgentResourceId: true, searchScore: true, updatedAt: true } }).execute(); // Create -const created = await db.platformAgentResourceChunk.create({ data: { body: '', chunkIndex: '', embedding: '', embeddingVectorDistance: '', metadata: '', platformAgentResourceId: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.platformAgentResourceChunk.create({ data: { body: '', chunkIndex: '', embedding: '', metadata: '', platformAgentResourceId: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformAgentResourceChunk.update({ where: { id: '' }, data: { body: '' }, select: { id: true } }).execute(); @@ -875,28 +877,30 @@ CRUD operations for PlatformAgentResource records. |-------|------|----------| | `archivedAt` | Datetime | Yes | | `body` | String | Yes | -| `bodyTrgmSimilarity` | Float | Yes | +| `bodyTrgmSimilarity` | Float | No | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | | `createdByPrincipal` | UUID | Yes | | `description` | String | Yes | -| `descriptionTrgmSimilarity` | Float | Yes | +| `descriptionTrgmSimilarity` | Float | No | | `embedding` | Vector | Yes | -| `embeddingUpdatedAt` | Datetime | Yes | -| `embeddingVectorDistance` | Float | Yes | +| `embeddingModel` | String | No | +| `embeddingModelTrgmSimilarity` | Float | No | +| `embeddingUpdatedAt` | Datetime | No | +| `embeddingVectorDistance` | Float | No | | `id` | UUID | No | | `isActive` | Boolean | Yes | | `isArchived` | Boolean | Yes | | `keywords` | String | Yes | | `kind` | String | Yes | -| `kindTrgmSimilarity` | Float | Yes | +| `kindTrgmSimilarity` | Float | No | | `metadata` | JSON | Yes | -| `search` | FullText | Yes | -| `searchScore` | Float | Yes | -| `searchTsvRank` | Float | Yes | +| `search` | FullText | No | +| `searchScore` | Float | No | +| `searchTsvRank` | Float | No | | `slug` | String | Yes | | `title` | String | Yes | -| `titleTrgmSimilarity` | Float | Yes | +| `titleTrgmSimilarity` | Float | No | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | | `updatedByPrincipal` | UUID | Yes | @@ -905,13 +909,13 @@ CRUD operations for PlatformAgentResource records. ```typescript // List all platformAgentResource records -const items = await db.platformAgentResource.findMany({ select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const items = await db.platformAgentResource.findMany({ select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.platformAgentResource.findOne({ id: '', select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const item = await db.platformAgentResource.findOne({ id: '', select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.platformAgentResource.create({ data: { archivedAt: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', isActive: '', isArchived: '', keywords: '', kind: '', kindTrgmSimilarity: '', metadata: '', search: '', searchScore: '', searchTsvRank: '', slug: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); +const created = await db.platformAgentResource.create({ data: { archivedAt: '', body: '', createdBy: '', createdByPrincipal: '', description: '', embedding: '', isActive: '', isArchived: '', keywords: '', kind: '', metadata: '', slug: '', title: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformAgentResource.update({ where: { id: '' }, data: { archivedAt: '' }, select: { id: true } }).execute(); diff --git a/sdk/constructive-cli/src/agent/orm/input-types.ts b/sdk/constructive-cli/src/agent/orm/input-types.ts index 203bbeda25..fc4524c9f2 100644 --- a/sdk/constructive-cli/src/agent/orm/input-types.ts +++ b/sdk/constructive-cli/src/agent/orm/input-types.ts @@ -407,6 +407,9 @@ export interface AgentResource { /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ descriptionTrgmSimilarity?: number | null; embedding?: number[] | null; + embeddingModel?: string | null; + /** TRGM similarity when searching `embeddingModel`. Returns null when no trgm search filter is active. */ + embeddingModelTrgmSimilarity?: number | null; embeddingUpdatedAt?: string | null; /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ embeddingVectorDistance?: number | null; @@ -758,6 +761,9 @@ export interface PlatformAgentResource { /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ descriptionTrgmSimilarity?: number | null; embedding?: number[] | null; + embeddingModel?: string | null; + /** TRGM similarity when searching `embeddingModel`. Returns null when no trgm search filter is active. */ + embeddingModelTrgmSimilarity?: number | null; embeddingUpdatedAt?: string | null; /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ embeddingVectorDistance?: number | null; @@ -1262,6 +1268,8 @@ export type AgentResourceSelect = { description?: boolean; descriptionTrgmSimilarity?: boolean; embedding?: boolean; + embeddingModel?: boolean; + embeddingModelTrgmSimilarity?: boolean; embeddingUpdatedAt?: boolean; embeddingVectorDistance?: boolean; id?: boolean; @@ -1598,6 +1606,8 @@ export type PlatformAgentResourceSelect = { description?: boolean; descriptionTrgmSimilarity?: boolean; embedding?: boolean; + embeddingModel?: boolean; + embeddingModelTrgmSimilarity?: boolean; embeddingUpdatedAt?: boolean; embeddingVectorDistance?: boolean; id?: boolean; @@ -2066,6 +2076,8 @@ export interface AgentResourceFilter { description?: StringTrgmFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -2094,6 +2106,8 @@ export interface AgentResourceFilter { trgmBody?: TrgmSearchInput; /** TRGM search on the `description` column. */ trgmDescription?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `kind` column. */ trgmKind?: TrgmSearchInput; /** TRGM search on the `title` column. */ @@ -2632,6 +2646,8 @@ export interface PlatformAgentResourceFilter { description?: StringTrgmFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -2664,6 +2680,8 @@ export interface PlatformAgentResourceFilter { trgmBody?: TrgmSearchInput; /** TRGM search on the `description` column. */ trgmDescription?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `kind` column. */ trgmKind?: TrgmSearchInput; /** TRGM search on the `title` column. */ @@ -3141,6 +3159,10 @@ export type AgentResourceOrderBy = | 'DESCRIPTION_TRGM_SIMILARITY_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_ASC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' @@ -3561,6 +3583,10 @@ export type PlatformAgentResourceOrderBy = | 'DESCRIPTION_TRGM_SIMILARITY_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_ASC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' @@ -4838,10 +4864,12 @@ export interface VectorNearbyInput { includeChunks?: boolean; /** Similarity metric to use (default: COSINE). */ metric?: VectorMetric; - /** Natural language text to embed server-side for similarity search. Mutually exclusive with `vector` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** The model that produced `vector`. On a column that records the model of each row's vector, only rows embedded with this model are compared; vectors of two models are not comparable. Filled in server-side when `text` is embedded. */ + model?: string; + /** Natural language text to embed server-side for similarity search. Provide exactly one of `text` or `vector`; sending both or neither is an error. Blank text on its own counts as not given. Requires the LLM plugin to be configured with an embedding provider. */ text?: string; /** Query vector for similarity search. */ - vector: number[]; + vector?: number[]; } /** A filter to be used against many `AgentResourceChunk` object types. All fields are combined with a logical ‘and.’ */ export interface AgentResourceToManyAgentResourceChunkFilter { @@ -5266,7 +5294,7 @@ export interface AgentResourceChunkInput { /** Policy-required field derived from source table (used by AuthzRelatedEntityMembership) */ databaseId?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; metadata?: Record; @@ -5286,7 +5314,7 @@ export interface AgentResourceInput { /** Brief description of this resource */ description?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; /** Whether this resource is active and retrievable */ @@ -5581,7 +5609,7 @@ export interface PlatformAgentResourceChunkInput { chunkIndex?: number; createdAt?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; metadata?: Record; @@ -5600,7 +5628,7 @@ export interface PlatformAgentResourceInput { /** Brief description of this resource */ description?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; /** Whether this resource is active and retrievable */ @@ -6992,6 +7020,8 @@ export interface AgentResourceFilter { description?: StringTrgmFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -7020,6 +7050,8 @@ export interface AgentResourceFilter { trgmBody?: TrgmSearchInput; /** TRGM search on the `description` column. */ trgmDescription?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `kind` column. */ trgmKind?: TrgmSearchInput; /** TRGM search on the `title` column. */ @@ -7181,6 +7213,8 @@ export interface PlatformAgentResourceFilter { description?: StringTrgmFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -7213,6 +7247,8 @@ export interface PlatformAgentResourceFilter { trgmBody?: TrgmSearchInput; /** TRGM search on the `description` column. */ trgmDescription?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `kind` column. */ trgmKind?: TrgmSearchInput; /** TRGM search on the `title` column. */ diff --git a/sdk/constructive-cli/src/agent/orm/query-builder.ts b/sdk/constructive-cli/src/agent/orm/query-builder.ts index fd785bbae6..d6c981907f 100644 --- a/sdk/constructive-cli/src/agent/orm/query-builder.ts +++ b/sdk/constructive-cli/src/agent/orm/query-builder.ts @@ -140,9 +140,7 @@ export function buildSelections( ); const nestedSelect = nested.select; if (nestedSelect && typeof nestedSelect === 'object') { - const subSelections = Object.entries(nestedSelect) - .filter(([, v]) => v) - .map(([name]) => t.field({ name })); + const subSelections = buildSelections(nestedSelect, connectionFieldsMap); fields.push( t.field({ name: key, diff --git a/sdk/constructive-cli/src/agent/orm/select-types.ts b/sdk/constructive-cli/src/agent/orm/select-types.ts index 4b39d7e820..783c4603df 100644 --- a/sdk/constructive-cli/src/agent/orm/select-types.ts +++ b/sdk/constructive-cli/src/agent/orm/select-types.ts @@ -159,9 +159,13 @@ export type InferSelectResult = TSelect extends undefined ? K extends keyof TEntity ? NonNullable extends ConnectionResult ? ConnectionResult> - : - | InferSelectResult, NestedSelect> - | (null extends TEntity[K] ? null : never) + : NonNullable extends readonly (infer Item)[] + ? + | InferSelectResult, NestedSelect>[] + | (null extends TEntity[K] ? null : never) + : + | InferSelectResult, NestedSelect> + | (null extends TEntity[K] ? null : never) : never : K extends keyof TEntity ? TEntity[K] diff --git a/sdk/constructive-cli/src/api/README.md b/sdk/constructive-cli/src/api/README.md index ed2d731670..f6c834f65d 100644 --- a/sdk/constructive-cli/src/api/README.md +++ b/sdk/constructive-cli/src/api/README.md @@ -8,8 +8,8 @@ ## Overview -- **Tables:** 90 -- **Custom queries:** 18 +- **Tables:** 91 +- **Custom queries:** 14 - **Custom mutations:** 31 **Generators:** ORM, CLI diff --git a/sdk/constructive-cli/src/api/cli/README.md b/sdk/constructive-cli/src/api/cli/README.md index 11b2d3237c..24d2e7e4ac 100644 --- a/sdk/constructive-cli/src/api/cli/README.md +++ b/sdk/constructive-cli/src/api/cli/README.md @@ -75,6 +75,7 @@ csdk auth set-token | `platform-get-site-previews-record` | platformGetSitePreviewsRecord CRUD operations | | `platform-managed-domain` | platformManagedDomain CRUD operations | | `platform-page` | platformPage CRUD operations | +| `platform-reserved-subdomain` | platformReservedSubdomain CRUD operations | | `platform-site-app-link` | platformSiteAppLink CRUD operations | | `platform-site` | platformSite CRUD operations | | `platform-site-deep-link` | platformSiteDeepLink CRUD operations | @@ -116,7 +117,6 @@ csdk auth set-token | `view-rule` | viewRule CRUD operations | | `view-table` | viewTable CRUD operations | | `webauthn-setting` | webauthnSetting CRUD operations | -| `api-schema-names` | apiSchemaNames | | `apply-registry-defaults` | applyRegistryDefaults | | `email-shared-account` | emailSharedAccount | | `get-site-preview-commit` | getSitePreviewCommit | @@ -128,9 +128,6 @@ csdk auth set-token | `platform-sites-deep-link-url` | platformSitesDeepLinkUrl | | `platform-sites-site-origin` | platformSitesSiteOrigin | | `platform-verify-site-preview-token` | platformVerifySitePreviewToken | -| `resolve-deep-link` | resolveDeepLink | -| `resolve-route` | resolveRoute | -| `resolve-site-app-links` | resolveSiteAppLinks | | `sites-deep-link-url` | sitesDeepLinkUrl | | `sites-site-origin` | sitesSiteOrigin | | `verify-site-preview-token` | verifySitePreviewToken | @@ -240,15 +237,15 @@ CRUD operations for Api records. | `config` | JSON | | `createdAt` | Datetime | | `databaseId` | UUID | -| `dbname` | String | | `id` | UUID | | `isPublished` | Boolean | | `name` | String | | `roleName` | String | +| `serviceHostname` | String | | `updatedAt` | Datetime | **Required create fields:** `databaseId`, `name` -**Optional create fields (backend defaults):** `anonRole`, `config`, `dbname`, `isPublished`, `roleName` +**Optional create fields (backend defaults):** `anonRole`, `config`, `isPublished`, `roleName` ### `api-schema` @@ -299,7 +296,6 @@ CRUD operations for ApiSetting records. | `enableAggregates` | Boolean | | `enableBulk` | Boolean | | `enableConnectionFilter` | Boolean | -| `enableDirectUploads` | Boolean | | `enableI18N` | Boolean | | `enableIntrospection` | Boolean | | `enableLlm` | Boolean | @@ -325,7 +321,7 @@ CRUD operations for ApiSetting records. | `updatedAt` | Datetime | **Required create fields:** `apiId`, `databaseId` -**Optional create fields (backend defaults):** `enableAggregates`, `enableBulk`, `enableConnectionFilter`, `enableDirectUploads`, `enableI18N`, `enableIntrospection`, `enableLlm`, `enableLtree`, `enableManyToMany`, `enablePostgis`, `enablePresignedUploads`, `enableRealtime`, `enableSearch`, `idleInTransactionTimeoutMs`, `lockTimeoutMs`, `maxConcurrentRequests`, `maxPageSize`, `maxQueryCost`, `maxQueryDepth`, `maxQueueWaitMs`, `maxRequestBytes`, `options`, `rateLimitBurst`, `rateLimitRpm`, `statementTimeoutMs` +**Optional create fields (backend defaults):** `enableAggregates`, `enableBulk`, `enableConnectionFilter`, `enableI18N`, `enableIntrospection`, `enableLlm`, `enableLtree`, `enableManyToMany`, `enablePostgis`, `enablePresignedUploads`, `enableRealtime`, `enableSearch`, `idleInTransactionTimeoutMs`, `lockTimeoutMs`, `maxConcurrentRequests`, `maxPageSize`, `maxQueryCost`, `maxQueryDepth`, `maxQueueWaitMs`, `maxRequestBytes`, `options`, `rateLimitBurst`, `rateLimitRpm`, `statementTimeoutMs` ### `ast-migration` @@ -336,7 +332,6 @@ CRUD operations for AstMigration records. | `list` | List all astMigration records | | `find-first` | Find first matching astMigration record | | `get` | Get a astMigration by id | -| `create` | Create a new astMigration | | `update` | Update an existing astMigration | | `delete` | Delete a astMigration | @@ -508,7 +503,6 @@ CRUD operations for DatabaseSetting records. | `enableBilling` | Boolean | | `enableBulk` | Boolean | | `enableConnectionFilter` | Boolean | -| `enableDirectUploads` | Boolean | | `enableI18N` | Boolean | | `enableIntrospection` | Boolean | | `enableLlm` | Boolean | @@ -535,7 +529,7 @@ CRUD operations for DatabaseSetting records. | `updatedAt` | Datetime | **Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `annotations`, `creditsPerCent`, `enableAggregates`, `enableBilling`, `enableBulk`, `enableConnectionFilter`, `enableDirectUploads`, `enableI18N`, `enableIntrospection`, `enableLlm`, `enableLtree`, `enableManyToMany`, `enablePostgis`, `enablePresignedUploads`, `enableRealtime`, `enableSearch`, `idleInTransactionTimeoutMs`, `labels`, `lockTimeoutMs`, `maxConcurrentRequests`, `maxPageSize`, `maxQueryCost`, `maxQueryDepth`, `maxQueueWaitMs`, `maxRequestBytes`, `options`, `rateLimitBurst`, `rateLimitRpm`, `statementTimeoutMs` +**Optional create fields (backend defaults):** `annotations`, `creditsPerCent`, `enableAggregates`, `enableBilling`, `enableBulk`, `enableConnectionFilter`, `enableI18N`, `enableIntrospection`, `enableLlm`, `enableLtree`, `enableManyToMany`, `enablePostgis`, `enablePresignedUploads`, `enableRealtime`, `enableSearch`, `idleInTransactionTimeoutMs`, `labels`, `lockTimeoutMs`, `maxConcurrentRequests`, `maxPageSize`, `maxQueryCost`, `maxQueryDepth`, `maxQueueWaitMs`, `maxRequestBytes`, `options`, `rateLimitBurst`, `rateLimitRpm`, `statementTimeoutMs` ### `database-transfer` @@ -1201,7 +1195,6 @@ CRUD operations for GetSitePreviewsRecord records. | `list` | List all getSitePreviewsRecord records | | `find-first` | Find first matching getSitePreviewsRecord record | | `get` | Get a getSitePreviewsRecord by id | -| `create` | Create a new getSitePreviewsRecord | | `update` | Update an existing getSitePreviewsRecord | | `delete` | Delete a getSitePreviewsRecord | @@ -1291,7 +1284,6 @@ CRUD operations for ListSuspendedDatabasesRecord records. | `list` | List all listSuspendedDatabasesRecord records | | `find-first` | Find first matching listSuspendedDatabasesRecord record | | `get` | Get a listSuspendedDatabasesRecord by id | -| `create` | Create a new listSuspendedDatabasesRecord | | `update` | Update an existing listSuspendedDatabasesRecord | | `delete` | Delete a listSuspendedDatabasesRecord | @@ -1457,15 +1449,15 @@ CRUD operations for PlatformApi records. | `anonRole` | String | | `config` | JSON | | `createdAt` | Datetime | -| `dbname` | String | | `id` | UUID | | `isPublished` | Boolean | | `name` | String | | `roleName` | String | +| `serviceHostname` | String | | `updatedAt` | Datetime | **Required create fields:** `name` -**Optional create fields (backend defaults):** `anonRole`, `config`, `dbname`, `isPublished`, `roleName` +**Optional create fields (backend defaults):** `anonRole`, `config`, `isPublished`, `roleName` ### `platform-api-schema` @@ -1514,7 +1506,6 @@ CRUD operations for PlatformApiSetting records. | `enableAggregates` | Boolean | | `enableBulk` | Boolean | | `enableConnectionFilter` | Boolean | -| `enableDirectUploads` | Boolean | | `enableI18N` | Boolean | | `enableIntrospection` | Boolean | | `enableLlm` | Boolean | @@ -1540,7 +1531,7 @@ CRUD operations for PlatformApiSetting records. | `updatedAt` | Datetime | **Required create fields:** `apiId` -**Optional create fields (backend defaults):** `enableAggregates`, `enableBulk`, `enableConnectionFilter`, `enableDirectUploads`, `enableI18N`, `enableIntrospection`, `enableLlm`, `enableLtree`, `enableManyToMany`, `enablePostgis`, `enablePresignedUploads`, `enableRealtime`, `enableSearch`, `idleInTransactionTimeoutMs`, `lockTimeoutMs`, `maxConcurrentRequests`, `maxPageSize`, `maxQueryCost`, `maxQueryDepth`, `maxQueueWaitMs`, `maxRequestBytes`, `options`, `rateLimitBurst`, `rateLimitRpm`, `statementTimeoutMs` +**Optional create fields (backend defaults):** `enableAggregates`, `enableBulk`, `enableConnectionFilter`, `enableI18N`, `enableIntrospection`, `enableLlm`, `enableLtree`, `enableManyToMany`, `enablePostgis`, `enablePresignedUploads`, `enableRealtime`, `enableSearch`, `idleInTransactionTimeoutMs`, `lockTimeoutMs`, `maxConcurrentRequests`, `maxPageSize`, `maxQueryCost`, `maxQueryDepth`, `maxQueueWaitMs`, `maxRequestBytes`, `options`, `rateLimitBurst`, `rateLimitRpm`, `statementTimeoutMs` ### `platform-cors-setting` @@ -1773,7 +1764,6 @@ CRUD operations for PlatformGetSitePreviewsRecord records. | `list` | List all platformGetSitePreviewsRecord records | | `find-first` | Find first matching platformGetSitePreviewsRecord record | | `get` | Get a platformGetSitePreviewsRecord by id | -| `create` | Create a new platformGetSitePreviewsRecord | | `update` | Update an existing platformGetSitePreviewsRecord | | `delete` | Delete a platformGetSitePreviewsRecord | @@ -1852,6 +1842,35 @@ CRUD operations for PlatformPage records. **Required create fields:** `content`, `siteId`, `slug` **Optional create fields (backend defaults):** `commitId`, `seededFrom`, `storeId` +### `platform-reserved-subdomain` + +CRUD operations for PlatformReservedSubdomain records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all platformReservedSubdomain records | +| `find-first` | Find first matching platformReservedSubdomain record | +| `get` | Get a platformReservedSubdomain by id | +| `create` | Create a new platformReservedSubdomain | +| `update` | Update an existing platformReservedSubdomain | +| `delete` | Delete a platformReservedSubdomain | + +**Fields:** + +| Field | Type | +|-------|------| +| `createdAt` | Datetime | +| `createdByPrincipal` | UUID | +| `id` | UUID | +| `label` | String | +| `match` | String | +| `reason` | String | +| `updatedAt` | Datetime | +| `updatedByPrincipal` | UUID | + +**Required create fields:** `label` +**Optional create fields (backend defaults):** `createdByPrincipal`, `match`, `reason`, `updatedByPrincipal` + ### `platform-site-app-link` CRUD operations for PlatformSiteAppLink records. @@ -1990,14 +2009,22 @@ CRUD operations for PlatformSiteMetadatum records. | Field | Type | |-------|------| | `appleTouchIcon` | Image | +| `appleTouchIconUrl` | String | +| `appleTouchIconVersions` | FileVersion | | `canonicalUrl` | String | | `commitId` | UUID | | `createdAt` | Datetime | | `description` | String | | `favicon` | Image | +| `faviconUrl` | String | +| `faviconVersions` | FileVersion | | `id` | UUID | | `logo` | Image | +| `logoUrl` | String | +| `logoVersions` | FileVersion | | `ogImage` | Image | +| `ogImageUrl` | String | +| `ogImageVersions` | FileVersion | | `robots` | String | | `robotsSeededFrom` | JSON | | `siteId` | UUID | @@ -2538,15 +2565,23 @@ CRUD operations for SiteMetadatum records. | Field | Type | |-------|------| | `appleTouchIcon` | Image | +| `appleTouchIconUrl` | String | +| `appleTouchIconVersions` | FileVersion | | `canonicalUrl` | String | | `commitId` | UUID | | `createdAt` | Datetime | | `databaseId` | UUID | | `description` | String | | `favicon` | Image | +| `faviconUrl` | String | +| `faviconVersions` | FileVersion | | `id` | UUID | | `logo` | Image | +| `logoUrl` | String | +| `logoVersions` | FileVersion | | `ogImage` | Image | +| `ogImageUrl` | String | +| `ogImageVersions` | FileVersion | | `robots` | String | | `robotsSeededFrom` | JSON | | `siteId` | UUID | @@ -2720,7 +2755,6 @@ CRUD operations for SqlAction records. | `list` | List all sqlAction records | | `find-first` | Find first matching sqlAction record | | `get` | Get a sqlAction by id | -| `create` | Create a new sqlAction | | `update` | Update an existing sqlAction | | `delete` | Delete a sqlAction | @@ -3168,17 +3202,6 @@ CRUD operations for WebauthnSetting records. ## Custom Operations -### `api-schema-names` - -apiSchemaNames - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--targetApiId` | UUID | - ### `apply-registry-defaults` applyRegistryDefaults @@ -3305,42 +3328,6 @@ platformVerifySitePreviewToken | `--siteId` | UUID | | `--token` | String | -### `resolve-deep-link` - -resolveDeepLink - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--linkSlug` | String | - | `--targetSiteId` | UUID | - -### `resolve-route` - -resolveRoute - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--requestHost` | String | - | `--requestMethod` | String | - | `--requestPath` | String | - -### `resolve-site-app-links` - -resolveSiteAppLinks - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--targetSiteId` | UUID | - ### `sites-deep-link-url` sitesDeepLinkUrl diff --git a/sdk/constructive-cli/src/api/cli/commands.ts b/sdk/constructive-cli/src/api/cli/commands.ts index 407d060a60..c397ac0d60 100644 --- a/sdk/constructive-cli/src/api/cli/commands.ts +++ b/sdk/constructive-cli/src/api/cli/commands.ts @@ -55,6 +55,7 @@ import platformEmailSiteIdentityCmd from './commands/platform-email-site-identit import platformGetSitePreviewsRecordCmd from './commands/platform-get-site-previews-record'; import platformManagedDomainCmd from './commands/platform-managed-domain'; import platformPageCmd from './commands/platform-page'; +import platformReservedSubdomainCmd from './commands/platform-reserved-subdomain'; import platformSiteAppLinkCmd from './commands/platform-site-app-link'; import platformSiteCmd from './commands/platform-site'; import platformSiteDeepLinkCmd from './commands/platform-site-deep-link'; @@ -96,7 +97,6 @@ import viewGrantCmd from './commands/view-grant'; import viewRuleCmd from './commands/view-rule'; import viewTableCmd from './commands/view-table'; import webauthnSettingCmd from './commands/webauthn-setting'; -import apiSchemaNamesCmd from './commands/api-schema-names'; import applyRegistryDefaultsCmd from './commands/apply-registry-defaults'; import emailSharedAccountCmd from './commands/email-shared-account'; import getSitePreviewCommitCmd from './commands/get-site-preview-commit'; @@ -108,9 +108,6 @@ import platformPagePublishedCmd from './commands/platform-page-published'; import platformSitesDeepLinkUrlCmd from './commands/platform-sites-deep-link-url'; import platformSitesSiteOriginCmd from './commands/platform-sites-site-origin'; import platformVerifySitePreviewTokenCmd from './commands/platform-verify-site-preview-token'; -import resolveDeepLinkCmd from './commands/resolve-deep-link'; -import resolveRouteCmd from './commands/resolve-route'; -import resolveSiteAppLinksCmd from './commands/resolve-site-app-links'; import sitesDeepLinkUrlCmd from './commands/sites-deep-link-url'; import sitesSiteOriginCmd from './commands/sites-site-origin'; import verifySitePreviewTokenCmd from './commands/verify-site-preview-token'; @@ -204,6 +201,7 @@ const createCommandMap: () => Record< 'platform-get-site-previews-record': platformGetSitePreviewsRecordCmd, 'platform-managed-domain': platformManagedDomainCmd, 'platform-page': platformPageCmd, + 'platform-reserved-subdomain': platformReservedSubdomainCmd, 'platform-site-app-link': platformSiteAppLinkCmd, 'platform-site': platformSiteCmd, 'platform-site-deep-link': platformSiteDeepLinkCmd, @@ -245,7 +243,6 @@ const createCommandMap: () => Record< 'view-rule': viewRuleCmd, 'view-table': viewTableCmd, 'webauthn-setting': webauthnSettingCmd, - 'api-schema-names': apiSchemaNamesCmd, 'apply-registry-defaults': applyRegistryDefaultsCmd, 'email-shared-account': emailSharedAccountCmd, 'get-site-preview-commit': getSitePreviewCommitCmd, @@ -257,9 +254,6 @@ const createCommandMap: () => Record< 'platform-sites-deep-link-url': platformSitesDeepLinkUrlCmd, 'platform-sites-site-origin': platformSitesSiteOriginCmd, 'platform-verify-site-preview-token': platformVerifySitePreviewTokenCmd, - 'resolve-deep-link': resolveDeepLinkCmd, - 'resolve-route': resolveRouteCmd, - 'resolve-site-app-links': resolveSiteAppLinksCmd, 'sites-deep-link-url': sitesDeepLinkUrlCmd, 'sites-site-origin': sitesSiteOriginCmd, 'verify-site-preview-token': verifySitePreviewTokenCmd, @@ -296,7 +290,7 @@ const createCommandMap: () => Record< 'update-function-from-source': updateFunctionFromSourceCmd, }); const usage = - "\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n api api CRUD operations\n api-schema apiSchema CRUD operations\n api-setting apiSetting CRUD operations\n ast-migration astMigration CRUD operations\n check-constraint checkConstraint CRUD operations\n composite-type compositeType CRUD operations\n cors-setting corsSetting CRUD operations\n database database CRUD operations\n database-setting databaseSetting CRUD operations\n database-transfer databaseTransfer CRUD operations\n default-privilege defaultPrivilege CRUD operations\n derive derive CRUD operations\n domain domain CRUD operations\n domain-event domainEvent CRUD operations\n domain-type domainType CRUD operations\n domain-verification domainVerification CRUD operations\n email-identity emailIdentity CRUD operations\n email-provider-account emailProviderAccount CRUD operations\n email-site-identity emailSiteIdentity CRUD operations\n embedding-chunk embeddingChunk CRUD operations\n enum enum CRUD operations\n exclusion-constraint exclusionConstraint CRUD operations\n field-behavior fieldBehavior CRUD operations\n field field CRUD operations\n foreign-key-constraint-behavior foreignKeyConstraintBehavior CRUD operations\n foreign-key-constraint foreignKeyConstraint CRUD operations\n full-text-search fullTextSearch CRUD operations\n function function CRUD operations\n get-site-previews-record getSitePreviewsRecord CRUD operations\n identity-provider-registry identityProviderRegistry CRUD operations\n index index CRUD operations\n list-suspended-databases-record listSuspendedDatabasesRecord CRUD operations\n managed-domain managedDomain CRUD operations\n node-type-registry nodeTypeRegistry CRUD operations\n page page CRUD operations\n partition partition CRUD operations\n platform-api platformApi CRUD operations\n platform-api-schema platformApiSchema CRUD operations\n platform-api-setting platformApiSetting CRUD operations\n platform-cors-setting platformCorsSetting CRUD operations\n platform-domain platformDomain CRUD operations\n platform-domain-event platformDomainEvent CRUD operations\n platform-domain-verification platformDomainVerification CRUD operations\n platform-email-identity platformEmailIdentity CRUD operations\n platform-email-provider-account platformEmailProviderAccount CRUD operations\n platform-email-site-identity platformEmailSiteIdentity CRUD operations\n platform-get-site-previews-record platformGetSitePreviewsRecord CRUD operations\n platform-managed-domain platformManagedDomain CRUD operations\n platform-page platformPage CRUD operations\n platform-site-app-link platformSiteAppLink CRUD operations\n platform-site platformSite CRUD operations\n platform-site-deep-link platformSiteDeepLink CRUD operations\n platform-site-error-page platformSiteErrorPage CRUD operations\n platform-site-metadatum platformSiteMetadatum CRUD operations\n platform-site-module platformSiteModule CRUD operations\n platform-site-release platformSiteRelease CRUD operations\n platform-site-theme platformSiteTheme CRUD operations\n platform-site-web-config platformSiteWebConfig CRUD operations\n policy policy CRUD operations\n primary-key-constraint primaryKeyConstraint CRUD operations\n pubkey-setting pubkeySetting CRUD operations\n redirect redirect CRUD operations\n rls-setting rlsSetting CRUD operations\n route route CRUD operations\n schema schema CRUD operations\n schema-grant schemaGrant CRUD operations\n site-app-link siteAppLink CRUD operations\n site site CRUD operations\n site-deep-link siteDeepLink CRUD operations\n site-error-page siteErrorPage CRUD operations\n site-metadatum siteMetadatum CRUD operations\n site-module siteModule CRUD operations\n site-release siteRelease CRUD operations\n site-theme siteTheme CRUD operations\n site-web-config siteWebConfig CRUD operations\n spatial-relation spatialRelation CRUD operations\n sql-action sqlAction CRUD operations\n table-behavior tableBehavior CRUD operations\n table table CRUD operations\n table-grant tableGrant CRUD operations\n trigger trigger CRUD operations\n trigger-function triggerFunction CRUD operations\n unique-constraint-behavior uniqueConstraintBehavior CRUD operations\n unique-constraint uniqueConstraint CRUD operations\n view-behavior viewBehavior CRUD operations\n view view CRUD operations\n view-grant viewGrant CRUD operations\n view-rule viewRule CRUD operations\n view-table viewTable CRUD operations\n webauthn-setting webauthnSetting CRUD operations\n api-schema-names apiSchemaNames\n apply-registry-defaults applyRegistryDefaults\n email-shared-account emailSharedAccount\n get-site-preview-commit getSitePreviewCommit\n get-site-release-manifest getSiteReleaseManifest\n page-published pagePublished\n platform-get-site-preview-commit platformGetSitePreviewCommit\n platform-get-site-release-manifest platformGetSiteReleaseManifest\n platform-page-published platformPagePublished\n platform-sites-deep-link-url platformSitesDeepLinkUrl\n platform-sites-site-origin platformSitesSiteOrigin\n platform-verify-site-preview-token platformVerifySitePreviewToken\n resolve-deep-link resolveDeepLink\n resolve-route resolveRoute\n resolve-site-app-links resolveSiteAppLinks\n sites-deep-link-url sitesDeepLinkUrl\n sites-site-origin sitesSiteOrigin\n verify-site-preview-token verifySitePreviewToken\n accept-database-transfer acceptDatabaseTransfer\n apply-rls applyRls\n cancel-database-transfer cancelDatabaseTransfer\n create-function-from-source Creates a `Function` from its `CREATE FUNCTION` source text.\n delete-site-preview deleteSitePreview\n domains-assign-subdomain domainsAssignSubdomain\n mint-site-preview-token mintSitePreviewToken\n pages-install-pages pagesInstallPages\n platform-delete-site-preview platformDeleteSitePreview\n platform-domains-assign-subdomain platformDomainsAssignSubdomain\n platform-mint-site-preview-token platformMintSitePreviewToken\n platform-pages-install-pages platformPagesInstallPages\n platform-provision-site-preview platformProvisionSitePreview\n platform-set-site-preview platformSetSitePreview\n platform-site-metadata-install-robots platformSiteMetadataInstallRobots\n platform-sites-install-content-preset platformSitesInstallContentPreset\n platform-sites-install-mantra platformSitesInstallMantra\n platform-sites-provision-static-site platformSitesProvisionStaticSite\n provision-bucket Reconcile an S3 bucket for a logical bucket in the database.\nRecords the request on the bucket row via RLS; the bucket's job\ntrigger then enqueues the same storage:provision_bucket job used on\nINSERT, and repeated requests collapse into one pending job. This is\nidempotent for an already-reconciled bucket; failures become GraphQL\nerrors.\n provision-site-preview provisionSitePreview\n reject-database-transfer rejectDatabaseTransfer\n request-database Requests a database and returns a ticket (database_provision_module row) to poll.\n\nPass exactly one of preset_slug or modules. Pass organization_id to have the organization own the database from the start (the caller must be an owner of that organization); the requesting user is still the identity bootstrapped into the new database. Omit it for a personal database. The pool, presets, and owner bootstrap are private implementation details: a warm pool hit fulfills the ticket immediately (fulfilled_at set, deferred owner bootstrap), otherwise the database is cold-provisioned asynchronously with exactly the requested modules. Poll the ticket until status = 'completed'; it then carries database_id and fulfilled_at.\n\nExample usage:\n SELECT * FROM metaschema_public.request_database('my_app', 'example.com', preset_slug := 'full');\n SELECT * FROM metaschema_public.request_database('my_app', 'example.com', modules := '[\"users_module\", \"emails_module\"]'::jsonb);\n SELECT * FROM metaschema_public.request_database('team_app', 'example.com', preset_slug := 'full', organization_id := '00000000-0000-0000-0000-000000000000'::uuid);\n set-field-order setFieldOrder\n set-site-preview setSitePreview\n site-metadata-install-robots siteMetadataInstallRobots\n sites-install-content-preset sitesInstallContentPreset\n sites-install-mantra sitesInstallMantra\n sites-provision-static-site sitesProvisionStaticSite\n suspend-database suspendDatabase\n unsuspend-database unsuspendDatabase\n update-function-from-source Replaces a `Function`'s definition from its source text; its database, schema and exposure are unchanged.\n\n --help, -h Show this help message\n --version, -v Show version\n"; + "\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n api api CRUD operations\n api-schema apiSchema CRUD operations\n api-setting apiSetting CRUD operations\n ast-migration astMigration CRUD operations\n check-constraint checkConstraint CRUD operations\n composite-type compositeType CRUD operations\n cors-setting corsSetting CRUD operations\n database database CRUD operations\n database-setting databaseSetting CRUD operations\n database-transfer databaseTransfer CRUD operations\n default-privilege defaultPrivilege CRUD operations\n derive derive CRUD operations\n domain domain CRUD operations\n domain-event domainEvent CRUD operations\n domain-type domainType CRUD operations\n domain-verification domainVerification CRUD operations\n email-identity emailIdentity CRUD operations\n email-provider-account emailProviderAccount CRUD operations\n email-site-identity emailSiteIdentity CRUD operations\n embedding-chunk embeddingChunk CRUD operations\n enum enum CRUD operations\n exclusion-constraint exclusionConstraint CRUD operations\n field-behavior fieldBehavior CRUD operations\n field field CRUD operations\n foreign-key-constraint-behavior foreignKeyConstraintBehavior CRUD operations\n foreign-key-constraint foreignKeyConstraint CRUD operations\n full-text-search fullTextSearch CRUD operations\n function function CRUD operations\n get-site-previews-record getSitePreviewsRecord CRUD operations\n identity-provider-registry identityProviderRegistry CRUD operations\n index index CRUD operations\n list-suspended-databases-record listSuspendedDatabasesRecord CRUD operations\n managed-domain managedDomain CRUD operations\n node-type-registry nodeTypeRegistry CRUD operations\n page page CRUD operations\n partition partition CRUD operations\n platform-api platformApi CRUD operations\n platform-api-schema platformApiSchema CRUD operations\n platform-api-setting platformApiSetting CRUD operations\n platform-cors-setting platformCorsSetting CRUD operations\n platform-domain platformDomain CRUD operations\n platform-domain-event platformDomainEvent CRUD operations\n platform-domain-verification platformDomainVerification CRUD operations\n platform-email-identity platformEmailIdentity CRUD operations\n platform-email-provider-account platformEmailProviderAccount CRUD operations\n platform-email-site-identity platformEmailSiteIdentity CRUD operations\n platform-get-site-previews-record platformGetSitePreviewsRecord CRUD operations\n platform-managed-domain platformManagedDomain CRUD operations\n platform-page platformPage CRUD operations\n platform-reserved-subdomain platformReservedSubdomain CRUD operations\n platform-site-app-link platformSiteAppLink CRUD operations\n platform-site platformSite CRUD operations\n platform-site-deep-link platformSiteDeepLink CRUD operations\n platform-site-error-page platformSiteErrorPage CRUD operations\n platform-site-metadatum platformSiteMetadatum CRUD operations\n platform-site-module platformSiteModule CRUD operations\n platform-site-release platformSiteRelease CRUD operations\n platform-site-theme platformSiteTheme CRUD operations\n platform-site-web-config platformSiteWebConfig CRUD operations\n policy policy CRUD operations\n primary-key-constraint primaryKeyConstraint CRUD operations\n pubkey-setting pubkeySetting CRUD operations\n redirect redirect CRUD operations\n rls-setting rlsSetting CRUD operations\n route route CRUD operations\n schema schema CRUD operations\n schema-grant schemaGrant CRUD operations\n site-app-link siteAppLink CRUD operations\n site site CRUD operations\n site-deep-link siteDeepLink CRUD operations\n site-error-page siteErrorPage CRUD operations\n site-metadatum siteMetadatum CRUD operations\n site-module siteModule CRUD operations\n site-release siteRelease CRUD operations\n site-theme siteTheme CRUD operations\n site-web-config siteWebConfig CRUD operations\n spatial-relation spatialRelation CRUD operations\n sql-action sqlAction CRUD operations\n table-behavior tableBehavior CRUD operations\n table table CRUD operations\n table-grant tableGrant CRUD operations\n trigger trigger CRUD operations\n trigger-function triggerFunction CRUD operations\n unique-constraint-behavior uniqueConstraintBehavior CRUD operations\n unique-constraint uniqueConstraint CRUD operations\n view-behavior viewBehavior CRUD operations\n view view CRUD operations\n view-grant viewGrant CRUD operations\n view-rule viewRule CRUD operations\n view-table viewTable CRUD operations\n webauthn-setting webauthnSetting CRUD operations\n apply-registry-defaults applyRegistryDefaults\n email-shared-account emailSharedAccount\n get-site-preview-commit getSitePreviewCommit\n get-site-release-manifest getSiteReleaseManifest\n page-published pagePublished\n platform-get-site-preview-commit platformGetSitePreviewCommit\n platform-get-site-release-manifest platformGetSiteReleaseManifest\n platform-page-published platformPagePublished\n platform-sites-deep-link-url platformSitesDeepLinkUrl\n platform-sites-site-origin platformSitesSiteOrigin\n platform-verify-site-preview-token platformVerifySitePreviewToken\n sites-deep-link-url sitesDeepLinkUrl\n sites-site-origin sitesSiteOrigin\n verify-site-preview-token verifySitePreviewToken\n accept-database-transfer acceptDatabaseTransfer\n apply-rls applyRls\n cancel-database-transfer cancelDatabaseTransfer\n create-function-from-source Creates a `Function` from its `CREATE FUNCTION` source text.\n delete-site-preview deleteSitePreview\n domains-assign-subdomain domainsAssignSubdomain\n mint-site-preview-token mintSitePreviewToken\n pages-install-pages pagesInstallPages\n platform-delete-site-preview platformDeleteSitePreview\n platform-domains-assign-subdomain platformDomainsAssignSubdomain\n platform-mint-site-preview-token platformMintSitePreviewToken\n platform-pages-install-pages platformPagesInstallPages\n platform-provision-site-preview platformProvisionSitePreview\n platform-set-site-preview platformSetSitePreview\n platform-site-metadata-install-robots platformSiteMetadataInstallRobots\n platform-sites-install-content-preset platformSitesInstallContentPreset\n platform-sites-install-mantra platformSitesInstallMantra\n platform-sites-provision-static-site platformSitesProvisionStaticSite\n provision-bucket Reconcile an S3 bucket for a logical bucket in the database.\nRecords the request on the bucket row via RLS; the bucket's job\ntrigger then enqueues the same storage:provision_bucket job used on\nINSERT, and repeated requests collapse into one pending job. This is\nidempotent for an already-reconciled bucket; failures become GraphQL\nerrors.\n provision-site-preview provisionSitePreview\n reject-database-transfer rejectDatabaseTransfer\n request-database Requests a database and returns a ticket (database_provision_module row) to poll.\n\nPass exactly one of preset_slug or modules. Pass organization_id to have the organization own the database from the start (the caller must be an owner of that organization); the requesting user is still the identity bootstrapped into the new database. Omit it for a personal database. The pool, presets, and owner bootstrap are private implementation details: a warm pool hit fulfills the ticket immediately (fulfilled_at set, deferred owner bootstrap), otherwise the database is cold-provisioned asynchronously with exactly the requested modules. Poll the ticket until status = 'completed'; it then carries database_id and fulfilled_at.\n\nExample usage:\n SELECT * FROM metaschema_public.request_database('my_app', 'example.com', preset_slug := 'full');\n SELECT * FROM metaschema_public.request_database('my_app', 'example.com', modules := '[\"users_module\", \"emails_module\"]'::jsonb);\n SELECT * FROM metaschema_public.request_database('team_app', 'example.com', preset_slug := 'full', organization_id := '00000000-0000-0000-0000-000000000000'::uuid);\n set-field-order setFieldOrder\n set-site-preview setSitePreview\n site-metadata-install-robots siteMetadataInstallRobots\n sites-install-content-preset sitesInstallContentPreset\n sites-install-mantra sitesInstallMantra\n sites-provision-static-site sitesProvisionStaticSite\n suspend-database suspendDatabase\n unsuspend-database unsuspendDatabase\n update-function-from-source Replaces a `Function`'s definition from its source text; its database, schema and exposure are unchanged.\n\n --help, -h Show this help message\n --version, -v Show version\n"; export const commands = async ( argv: Partial>, prompter: Inquirerer, diff --git a/sdk/constructive-cli/src/api/cli/commands/api-setting.ts b/sdk/constructive-cli/src/api/cli/commands/api-setting.ts index d1f652b230..cdc629beb0 100644 --- a/sdk/constructive-cli/src/api/cli/commands/api-setting.ts +++ b/sdk/constructive-cli/src/api/cli/commands/api-setting.ts @@ -22,7 +22,6 @@ const fieldSchema: FieldSchema = { enableAggregates: 'boolean', enableBulk: 'boolean', enableConnectionFilter: 'boolean', - enableDirectUploads: 'boolean', enableI18N: 'boolean', enableIntrospection: 'boolean', enableLlm: 'boolean', @@ -104,7 +103,6 @@ async function handleList(argv: Partial>, _prompter: Inq enableAggregates: true, enableBulk: true, enableConnectionFilter: true, - enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, @@ -154,7 +152,6 @@ async function handleFindFirst(argv: Partial>, _prompter enableAggregates: true, enableBulk: true, enableConnectionFilter: true, - enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, @@ -216,7 +213,6 @@ async function handleGet(argv: Partial>, prompter: Inqui enableAggregates: true, enableBulk: true, enableConnectionFilter: true, - enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, @@ -288,13 +284,6 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'boolean', - name: 'enableDirectUploads', - message: 'enableDirectUploads', - required: false, - skipPrompt: true, - }, { type: 'boolean', name: 'enableI18N', @@ -454,7 +443,6 @@ async function handleCreate(argv: Partial>, prompter: In enableAggregates: cleanedData.enableAggregates, enableBulk: cleanedData.enableBulk, enableConnectionFilter: cleanedData.enableConnectionFilter, - enableDirectUploads: cleanedData.enableDirectUploads, enableI18N: cleanedData.enableI18N, enableIntrospection: cleanedData.enableIntrospection, enableLlm: cleanedData.enableLlm, @@ -484,7 +472,6 @@ async function handleCreate(argv: Partial>, prompter: In enableAggregates: true, enableBulk: true, enableConnectionFilter: true, - enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, @@ -562,13 +549,6 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'boolean', - name: 'enableDirectUploads', - message: 'enableDirectUploads', - required: false, - skipPrompt: true, - }, { type: 'boolean', name: 'enableI18N', @@ -731,7 +711,6 @@ async function handleUpdate(argv: Partial>, prompter: In enableAggregates: cleanedData.enableAggregates, enableBulk: cleanedData.enableBulk, enableConnectionFilter: cleanedData.enableConnectionFilter, - enableDirectUploads: cleanedData.enableDirectUploads, enableI18N: cleanedData.enableI18N, enableIntrospection: cleanedData.enableIntrospection, enableLlm: cleanedData.enableLlm, @@ -761,7 +740,6 @@ async function handleUpdate(argv: Partial>, prompter: In enableAggregates: true, enableBulk: true, enableConnectionFilter: true, - enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, diff --git a/sdk/constructive-cli/src/api/cli/commands/api.ts b/sdk/constructive-cli/src/api/cli/commands/api.ts index d7efd0643c..8aee704f86 100644 --- a/sdk/constructive-cli/src/api/cli/commands/api.ts +++ b/sdk/constructive-cli/src/api/cli/commands/api.ts @@ -20,11 +20,11 @@ const fieldSchema: FieldSchema = { config: 'json', createdAt: 'string', databaseId: 'uuid', - dbname: 'string', id: 'uuid', isPublished: 'boolean', name: 'string', roleName: 'string', + serviceHostname: 'string', updatedAt: 'string', }; const usage = @@ -82,7 +82,6 @@ async function handleList(argv: Partial>, _prompter: Inq config: true, createdAt: true, databaseId: true, - dbname: true, id: true, isPublished: true, name: true, @@ -112,7 +111,6 @@ async function handleFindFirst(argv: Partial>, _prompter config: true, createdAt: true, databaseId: true, - dbname: true, id: true, isPublished: true, name: true, @@ -154,7 +152,6 @@ async function handleGet(argv: Partial>, prompter: Inqui config: true, createdAt: true, databaseId: true, - dbname: true, id: true, isPublished: true, name: true, @@ -195,13 +192,6 @@ async function handleCreate(argv: Partial>, prompter: In message: 'databaseId', required: true, }, - { - type: 'text', - name: 'dbname', - message: 'dbname', - required: false, - skipPrompt: true, - }, { type: 'boolean', name: 'isPublished', @@ -232,7 +222,6 @@ async function handleCreate(argv: Partial>, prompter: In anonRole: cleanedData.anonRole, config: cleanedData.config, databaseId: cleanedData.databaseId, - dbname: cleanedData.dbname, isPublished: cleanedData.isPublished, name: cleanedData.name, roleName: cleanedData.roleName, @@ -242,7 +231,6 @@ async function handleCreate(argv: Partial>, prompter: In config: true, createdAt: true, databaseId: true, - dbname: true, id: true, isPublished: true, name: true, @@ -289,13 +277,6 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'databaseId', required: false, }, - { - type: 'text', - name: 'dbname', - message: 'dbname', - required: false, - skipPrompt: true, - }, { type: 'boolean', name: 'isPublished', @@ -329,7 +310,6 @@ async function handleUpdate(argv: Partial>, prompter: In anonRole: cleanedData.anonRole, config: cleanedData.config, databaseId: cleanedData.databaseId, - dbname: cleanedData.dbname, isPublished: cleanedData.isPublished, name: cleanedData.name, roleName: cleanedData.roleName, @@ -339,7 +319,6 @@ async function handleUpdate(argv: Partial>, prompter: In config: true, createdAt: true, databaseId: true, - dbname: true, id: true, isPublished: true, name: true, diff --git a/sdk/constructive-cli/src/api/cli/commands/ast-migration.ts b/sdk/constructive-cli/src/api/cli/commands/ast-migration.ts index 03949dcec5..e9c5395981 100644 --- a/sdk/constructive-cli/src/api/cli/commands/ast-migration.ts +++ b/sdk/constructive-cli/src/api/cli/commands/ast-migration.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateAstMigrationInput, AstMigrationPatch, AstMigrationSelect, AstMigrationFilter, @@ -48,7 +47,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -65,8 +64,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -138,120 +135,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'actionId', - message: 'actionId', - required: true, - }, - { - type: 'text', - name: 'actionName', - message: 'actionName', - required: true, - }, - { - type: 'text', - name: 'actorId', - message: 'actorId', - required: true, - }, - { - type: 'text', - name: 'databaseId', - message: 'databaseId', - required: true, - }, - { - type: 'json', - name: 'deploy', - message: 'deploy', - required: true, - }, - { - type: 'text', - name: 'deploys', - message: 'deploys', - required: true, - }, - { - type: 'text', - name: 'name', - message: 'name', - required: true, - }, - { - type: 'json', - name: 'payload', - message: 'payload', - required: true, - }, - { - type: 'text', - name: 'requires', - message: 'requires', - required: true, - }, - { - type: 'json', - name: 'revert', - message: 'revert', - required: true, - }, - { - type: 'json', - name: 'verify', - message: 'verify', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateAstMigrationInput['astMigration']; - const client = getClient(); - const result = await client.astMigration - .create({ - data: { - actionId: cleanedData.actionId, - actionName: cleanedData.actionName, - actorId: cleanedData.actorId, - databaseId: cleanedData.databaseId, - deploy: cleanedData.deploy, - deploys: cleanedData.deploys, - name: cleanedData.name, - payload: cleanedData.payload, - requires: cleanedData.requires, - revert: cleanedData.revert, - verify: cleanedData.verify, - }, - select: { - actionId: true, - actionName: true, - actorId: true, - createdAt: true, - databaseId: true, - deploy: true, - deploys: true, - id: true, - name: true, - payload: true, - requires: true, - revert: true, - verify: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/api/cli/commands/database-setting.ts b/sdk/constructive-cli/src/api/cli/commands/database-setting.ts index 2f2204abf0..beb72c46dd 100644 --- a/sdk/constructive-cli/src/api/cli/commands/database-setting.ts +++ b/sdk/constructive-cli/src/api/cli/commands/database-setting.ts @@ -24,7 +24,6 @@ const fieldSchema: FieldSchema = { enableBilling: 'boolean', enableBulk: 'boolean', enableConnectionFilter: 'boolean', - enableDirectUploads: 'boolean', enableI18N: 'boolean', enableIntrospection: 'boolean', enableLlm: 'boolean', @@ -109,7 +108,6 @@ async function handleList(argv: Partial>, _prompter: Inq enableBilling: true, enableBulk: true, enableConnectionFilter: true, - enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, @@ -162,7 +160,6 @@ async function handleFindFirst(argv: Partial>, _prompter enableBilling: true, enableBulk: true, enableConnectionFilter: true, - enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, @@ -227,7 +224,6 @@ async function handleGet(argv: Partial>, prompter: Inqui enableBilling: true, enableBulk: true, enableConnectionFilter: true, - enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, @@ -315,13 +311,6 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'boolean', - name: 'enableDirectUploads', - message: 'enableDirectUploads', - required: false, - skipPrompt: true, - }, { type: 'boolean', name: 'enableI18N', @@ -493,7 +482,6 @@ async function handleCreate(argv: Partial>, prompter: In enableBilling: cleanedData.enableBilling, enableBulk: cleanedData.enableBulk, enableConnectionFilter: cleanedData.enableConnectionFilter, - enableDirectUploads: cleanedData.enableDirectUploads, enableI18N: cleanedData.enableI18N, enableIntrospection: cleanedData.enableIntrospection, enableLlm: cleanedData.enableLlm, @@ -526,7 +514,6 @@ async function handleCreate(argv: Partial>, prompter: In enableBilling: true, enableBulk: true, enableConnectionFilter: true, - enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, @@ -620,13 +607,6 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'boolean', - name: 'enableDirectUploads', - message: 'enableDirectUploads', - required: false, - skipPrompt: true, - }, { type: 'boolean', name: 'enableI18N', @@ -798,7 +778,6 @@ async function handleUpdate(argv: Partial>, prompter: In enableBilling: cleanedData.enableBilling, enableBulk: cleanedData.enableBulk, enableConnectionFilter: cleanedData.enableConnectionFilter, - enableDirectUploads: cleanedData.enableDirectUploads, enableI18N: cleanedData.enableI18N, enableIntrospection: cleanedData.enableIntrospection, enableLlm: cleanedData.enableLlm, @@ -831,7 +810,6 @@ async function handleUpdate(argv: Partial>, prompter: In enableBilling: true, enableBulk: true, enableConnectionFilter: true, - enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, diff --git a/sdk/constructive-cli/src/api/cli/commands/get-site-previews-record.ts b/sdk/constructive-cli/src/api/cli/commands/get-site-previews-record.ts index c451a67725..2747f2e59d 100644 --- a/sdk/constructive-cli/src/api/cli/commands/get-site-previews-record.ts +++ b/sdk/constructive-cli/src/api/cli/commands/get-site-previews-record.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateGetSitePreviewsRecordInput, GetSitePreviewsRecordPatch, GetSitePreviewsRecordSelect, GetSitePreviewsRecordFilter, @@ -37,7 +36,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -54,8 +53,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -113,46 +110,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'commitId', - message: 'commitId', - required: true, - }, - { - type: 'text', - name: 'name', - message: 'name', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateGetSitePreviewsRecordInput['getSitePreviewsRecord']; - const client = getClient(); - const result = await client.getSitePreviewsRecord - .create({ - data: { - commitId: cleanedData.commitId, - name: cleanedData.name, - }, - select: { - commitId: true, - name: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/api/cli/commands/list-suspended-databases-record.ts b/sdk/constructive-cli/src/api/cli/commands/list-suspended-databases-record.ts index d33a796eef..9a8add754e 100644 --- a/sdk/constructive-cli/src/api/cli/commands/list-suspended-databases-record.ts +++ b/sdk/constructive-cli/src/api/cli/commands/list-suspended-databases-record.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateListSuspendedDatabasesRecordInput, ListSuspendedDatabasesRecordPatch, ListSuspendedDatabasesRecordSelect, ListSuspendedDatabasesRecordFilter, @@ -40,7 +39,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -57,8 +56,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -122,63 +119,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'name', - message: 'name', - required: true, - }, - { - type: 'text', - name: 'ownerId', - message: 'ownerId', - required: true, - }, - { - type: 'text', - name: 'suspendedAt', - message: 'suspendedAt', - required: true, - }, - { - type: 'text', - name: 'suspendedReason', - message: 'suspendedReason', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateListSuspendedDatabasesRecordInput['listSuspendedDatabasesRecord']; - const client = getClient(); - const result = await client.listSuspendedDatabasesRecord - .create({ - data: { - name: cleanedData.name, - ownerId: cleanedData.ownerId, - suspendedAt: cleanedData.suspendedAt, - suspendedReason: cleanedData.suspendedReason, - }, - select: { - id: true, - name: true, - ownerId: true, - suspendedAt: true, - suspendedReason: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/api/cli/commands/platform-api-setting.ts b/sdk/constructive-cli/src/api/cli/commands/platform-api-setting.ts index adeb216356..bba93745ae 100644 --- a/sdk/constructive-cli/src/api/cli/commands/platform-api-setting.ts +++ b/sdk/constructive-cli/src/api/cli/commands/platform-api-setting.ts @@ -21,7 +21,6 @@ const fieldSchema: FieldSchema = { enableAggregates: 'boolean', enableBulk: 'boolean', enableConnectionFilter: 'boolean', - enableDirectUploads: 'boolean', enableI18N: 'boolean', enableIntrospection: 'boolean', enableLlm: 'boolean', @@ -102,7 +101,6 @@ async function handleList(argv: Partial>, _prompter: Inq enableAggregates: true, enableBulk: true, enableConnectionFilter: true, - enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, @@ -155,7 +153,6 @@ async function handleFindFirst(argv: Partial>, _prompter enableAggregates: true, enableBulk: true, enableConnectionFilter: true, - enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, @@ -220,7 +217,6 @@ async function handleGet(argv: Partial>, prompter: Inqui enableAggregates: true, enableBulk: true, enableConnectionFilter: true, - enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, @@ -286,13 +282,6 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'boolean', - name: 'enableDirectUploads', - message: 'enableDirectUploads', - required: false, - skipPrompt: true, - }, { type: 'boolean', name: 'enableI18N', @@ -454,7 +443,6 @@ async function handleCreate(argv: Partial>, prompter: In enableAggregates: cleanedData.enableAggregates, enableBulk: cleanedData.enableBulk, enableConnectionFilter: cleanedData.enableConnectionFilter, - enableDirectUploads: cleanedData.enableDirectUploads, enableI18N: cleanedData.enableI18N, enableIntrospection: cleanedData.enableIntrospection, enableLlm: cleanedData.enableLlm, @@ -483,7 +471,6 @@ async function handleCreate(argv: Partial>, prompter: In enableAggregates: true, enableBulk: true, enableConnectionFilter: true, - enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, @@ -555,13 +542,6 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'boolean', - name: 'enableDirectUploads', - message: 'enableDirectUploads', - required: false, - skipPrompt: true, - }, { type: 'boolean', name: 'enableI18N', @@ -723,7 +703,6 @@ async function handleUpdate(argv: Partial>, prompter: In enableAggregates: cleanedData.enableAggregates, enableBulk: cleanedData.enableBulk, enableConnectionFilter: cleanedData.enableConnectionFilter, - enableDirectUploads: cleanedData.enableDirectUploads, enableI18N: cleanedData.enableI18N, enableIntrospection: cleanedData.enableIntrospection, enableLlm: cleanedData.enableLlm, @@ -752,7 +731,6 @@ async function handleUpdate(argv: Partial>, prompter: In enableAggregates: true, enableBulk: true, enableConnectionFilter: true, - enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, diff --git a/sdk/constructive-cli/src/api/cli/commands/platform-api.ts b/sdk/constructive-cli/src/api/cli/commands/platform-api.ts index 6338ed05c9..63a1663114 100644 --- a/sdk/constructive-cli/src/api/cli/commands/platform-api.ts +++ b/sdk/constructive-cli/src/api/cli/commands/platform-api.ts @@ -19,11 +19,11 @@ const fieldSchema: FieldSchema = { anonRole: 'string', config: 'json', createdAt: 'string', - dbname: 'string', id: 'uuid', isPublished: 'boolean', name: 'string', roleName: 'string', + serviceHostname: 'string', updatedAt: 'string', }; const usage = @@ -80,7 +80,6 @@ async function handleList(argv: Partial>, _prompter: Inq anonRole: true, config: true, createdAt: true, - dbname: true, id: true, isPublished: true, name: true, @@ -109,7 +108,6 @@ async function handleFindFirst(argv: Partial>, _prompter anonRole: true, config: true, createdAt: true, - dbname: true, id: true, isPublished: true, name: true, @@ -150,7 +148,6 @@ async function handleGet(argv: Partial>, prompter: Inqui anonRole: true, config: true, createdAt: true, - dbname: true, id: true, isPublished: true, name: true, @@ -185,13 +182,6 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'dbname', - message: 'dbname', - required: false, - skipPrompt: true, - }, { type: 'boolean', name: 'isPublished', @@ -224,7 +214,6 @@ async function handleCreate(argv: Partial>, prompter: In data: { anonRole: cleanedData.anonRole, config: cleanedData.config, - dbname: cleanedData.dbname, isPublished: cleanedData.isPublished, name: cleanedData.name, roleName: cleanedData.roleName, @@ -233,7 +222,6 @@ async function handleCreate(argv: Partial>, prompter: In anonRole: true, config: true, createdAt: true, - dbname: true, id: true, isPublished: true, name: true, @@ -274,13 +262,6 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'dbname', - message: 'dbname', - required: false, - skipPrompt: true, - }, { type: 'boolean', name: 'isPublished', @@ -313,7 +294,6 @@ async function handleUpdate(argv: Partial>, prompter: In data: { anonRole: cleanedData.anonRole, config: cleanedData.config, - dbname: cleanedData.dbname, isPublished: cleanedData.isPublished, name: cleanedData.name, roleName: cleanedData.roleName, @@ -322,7 +302,6 @@ async function handleUpdate(argv: Partial>, prompter: In anonRole: true, config: true, createdAt: true, - dbname: true, id: true, isPublished: true, name: true, diff --git a/sdk/constructive-cli/src/api/cli/commands/platform-get-site-previews-record.ts b/sdk/constructive-cli/src/api/cli/commands/platform-get-site-previews-record.ts index c3f9d9b6b0..794cf4d66c 100644 --- a/sdk/constructive-cli/src/api/cli/commands/platform-get-site-previews-record.ts +++ b/sdk/constructive-cli/src/api/cli/commands/platform-get-site-previews-record.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreatePlatformGetSitePreviewsRecordInput, PlatformGetSitePreviewsRecordPatch, PlatformGetSitePreviewsRecordSelect, PlatformGetSitePreviewsRecordFilter, @@ -37,7 +36,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -54,8 +53,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -113,46 +110,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'commitId', - message: 'commitId', - required: true, - }, - { - type: 'text', - name: 'name', - message: 'name', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreatePlatformGetSitePreviewsRecordInput['platformGetSitePreviewsRecord']; - const client = getClient(); - const result = await client.platformGetSitePreviewsRecord - .create({ - data: { - commitId: cleanedData.commitId, - name: cleanedData.name, - }, - select: { - commitId: true, - name: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/api/cli/commands/platform-reserved-subdomain.ts b/sdk/constructive-cli/src/api/cli/commands/platform-reserved-subdomain.ts new file mode 100644 index 0000000000..5d5c1eb2ca --- /dev/null +++ b/sdk/constructive-cli/src/api/cli/commands/platform-reserved-subdomain.ts @@ -0,0 +1,359 @@ +/** + * CLI commands for PlatformReservedSubdomain + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; +import { getClient } from '../executor'; +import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; +import type { FieldSchema } from '../utils'; +import type { + CreatePlatformReservedSubdomainInput, + PlatformReservedSubdomainPatch, + PlatformReservedSubdomainSelect, + PlatformReservedSubdomainFilter, + PlatformReservedSubdomainOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + createdAt: 'string', + createdByPrincipal: 'uuid', + id: 'uuid', + label: 'string', + match: 'string', + reason: 'string', + updatedAt: 'string', + updatedByPrincipal: 'uuid', +}; +const usage = + '\nplatform-reserved-subdomain \n\nCommands:\n list List platformReservedSubdomain records\n find-first Find first matching platformReservedSubdomain record\n get Get a platformReservedSubdomain by ID\n create Create a new platformReservedSubdomain\n update Update an existing platformReservedSubdomain\n delete Delete a platformReservedSubdomain\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + if (argv.help || argv.h) { + console.log(usage); + process.exit(0); + } + const { first: subcommand, newArgv } = extractFirst(argv); + if (!subcommand) { + const answer = await prompter.prompt(argv, [ + { + type: 'autocomplete', + name: 'subcommand', + message: 'What do you want to do?', + options: ['list', 'find-first', 'get', 'create', 'update', 'delete'], + }, + ]); + return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); + } + return handleTableSubcommand(subcommand, newArgv, prompter); +}; +async function handleTableSubcommand( + subcommand: string, + argv: Partial>, + prompter: Inquirerer +) { + switch (subcommand) { + case 'list': + return handleList(argv, prompter); + case 'find-first': + return handleFindFirst(argv, prompter); + case 'get': + return handleGet(argv, prompter); + case 'create': + return handleCreate(argv, prompter); + case 'update': + return handleUpdate(argv, prompter); + case 'delete': + return handleDelete(argv, prompter); + default: + console.log(usage); + process.exit(1); + } +} +async function handleList(argv: Partial>, _prompter: Inquirerer) { + try { + const defaultSelect = { + createdAt: true, + createdByPrincipal: true, + id: true, + label: true, + match: true, + reason: true, + updatedAt: true, + updatedByPrincipal: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + PlatformReservedSubdomainSelect, + PlatformReservedSubdomainFilter, + PlatformReservedSubdomainOrderBy + > & { + select: PlatformReservedSubdomainSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformReservedSubdomain.findMany(findManyArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to list records.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { + try { + const defaultSelect = { + createdAt: true, + createdByPrincipal: true, + id: true, + label: true, + match: true, + reason: true, + updatedAt: true, + updatedByPrincipal: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + PlatformReservedSubdomainSelect, + PlatformReservedSubdomainFilter, + PlatformReservedSubdomainOrderBy + > & { + select: PlatformReservedSubdomainSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformReservedSubdomain.findFirst(findFirstArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to find record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleGet(argv: Partial>, prompter: Inquirerer) { + try { + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const client = getClient(); + const result = await client.platformReservedSubdomain + .findOne({ + id: answers.id as string, + select: { + createdAt: true, + createdByPrincipal: true, + id: true, + label: true, + match: true, + reason: true, + updatedAt: true, + updatedByPrincipal: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Record not found.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleCreate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'label', + message: 'label', + required: true, + }, + { + type: 'text', + name: 'match', + message: 'match', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'reason', + message: 'reason', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreatePlatformReservedSubdomainInput['platformReservedSubdomain']; + const client = getClient(); + const result = await client.platformReservedSubdomain + .create({ + data: { + createdByPrincipal: cleanedData.createdByPrincipal, + label: cleanedData.label, + match: cleanedData.match, + reason: cleanedData.reason, + updatedByPrincipal: cleanedData.updatedByPrincipal, + }, + select: { + createdAt: true, + createdByPrincipal: true, + id: true, + label: true, + match: true, + reason: true, + updatedAt: true, + updatedByPrincipal: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to create record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleUpdate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'label', + message: 'label', + required: false, + }, + { + type: 'text', + name: 'match', + message: 'match', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'reason', + message: 'reason', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as PlatformReservedSubdomainPatch; + const client = getClient(); + const result = await client.platformReservedSubdomain + .update({ + where: { + id: answers.id as string, + }, + data: { + createdByPrincipal: cleanedData.createdByPrincipal, + label: cleanedData.label, + match: cleanedData.match, + reason: cleanedData.reason, + updatedByPrincipal: cleanedData.updatedByPrincipal, + }, + select: { + createdAt: true, + createdByPrincipal: true, + id: true, + label: true, + match: true, + reason: true, + updatedAt: true, + updatedByPrincipal: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to update record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleDelete(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const client = getClient(); + const result = await client.platformReservedSubdomain + .delete({ + where: { + id: answers.id as string, + }, + select: { + id: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to delete record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} diff --git a/sdk/constructive-cli/src/api/cli/commands/platform-site-metadatum.ts b/sdk/constructive-cli/src/api/cli/commands/platform-site-metadatum.ts index 3d498d4aa9..885f230ab4 100644 --- a/sdk/constructive-cli/src/api/cli/commands/platform-site-metadatum.ts +++ b/sdk/constructive-cli/src/api/cli/commands/platform-site-metadatum.ts @@ -17,14 +17,22 @@ import type { import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { appleTouchIcon: 'string', + appleTouchIconUrl: 'string', + appleTouchIconVersions: 'string', canonicalUrl: 'string', commitId: 'uuid', createdAt: 'string', description: 'string', favicon: 'string', + faviconUrl: 'string', + faviconVersions: 'string', id: 'uuid', logo: 'string', + logoUrl: 'string', + logoVersions: 'string', ogImage: 'string', + ogImageUrl: 'string', + ogImageVersions: 'string', robots: 'string', robotsSeededFrom: 'json', siteId: 'uuid', diff --git a/sdk/constructive-cli/src/api/cli/commands/resolve-deep-link.ts b/sdk/constructive-cli/src/api/cli/commands/resolve-deep-link.ts deleted file mode 100644 index 61d1d15ae2..0000000000 --- a/sdk/constructive-cli/src/api/cli/commands/resolve-deep-link.ts +++ /dev/null @@ -1,43 +0,0 @@ -/** - * CLI command for query resolveDeepLink - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../executor'; -import type { ResolveDeepLinkVariables } from '../../orm/query'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log('resolve-deep-link - resolveDeepLink\n\nUsage: resolve-deep-link [OPTIONS]\n'); - process.exit(0); - } - const answers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'linkSlug', - message: 'linkSlug', - }, - { - type: 'text', - name: 'targetSiteId', - message: 'targetSiteId', - }, - ]); - const client = getClient(); - const result = await client.query - .resolveDeepLink(answers as unknown as ResolveDeepLinkVariables) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: resolveDeepLink'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/api/cli/commands/resolve-route.ts b/sdk/constructive-cli/src/api/cli/commands/resolve-route.ts deleted file mode 100644 index 45af777b53..0000000000 --- a/sdk/constructive-cli/src/api/cli/commands/resolve-route.ts +++ /dev/null @@ -1,58 +0,0 @@ -/** - * CLI command for query resolveRoute - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../executor'; -import { buildSelectFromPaths } from '../utils'; -import type { ResolveRouteVariables } from '../../orm/query'; -import type { ResolveRouteRecordSelect } from '../../orm/input-types'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log('resolve-route - resolveRoute\n\nUsage: resolve-route [OPTIONS]\n'); - process.exit(0); - } - const answers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'requestHost', - message: 'requestHost', - }, - { - type: 'text', - name: 'requestMethod', - message: 'requestMethod', - }, - { - type: 'text', - name: 'requestPath', - message: 'requestPath', - }, - ]); - const client = getClient(); - const selectFields = buildSelectFromPaths((argv.select as string) ?? ''); - const result = await client.query - .resolveRoute( - answers as unknown as ResolveRouteVariables, - { - select: selectFields, - } as unknown as { - select: ResolveRouteRecordSelect; - } - ) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: resolveRoute'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/api/cli/commands/site-metadatum.ts b/sdk/constructive-cli/src/api/cli/commands/site-metadatum.ts index 7bc2be1a76..a9d9c77267 100644 --- a/sdk/constructive-cli/src/api/cli/commands/site-metadatum.ts +++ b/sdk/constructive-cli/src/api/cli/commands/site-metadatum.ts @@ -17,15 +17,23 @@ import type { import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { appleTouchIcon: 'string', + appleTouchIconUrl: 'string', + appleTouchIconVersions: 'string', canonicalUrl: 'string', commitId: 'uuid', createdAt: 'string', databaseId: 'uuid', description: 'string', favicon: 'string', + faviconUrl: 'string', + faviconVersions: 'string', id: 'uuid', logo: 'string', + logoUrl: 'string', + logoVersions: 'string', ogImage: 'string', + ogImageUrl: 'string', + ogImageVersions: 'string', robots: 'string', robotsSeededFrom: 'json', siteId: 'uuid', diff --git a/sdk/constructive-cli/src/api/cli/commands/sql-action.ts b/sdk/constructive-cli/src/api/cli/commands/sql-action.ts index 7bffadff1d..79691fd002 100644 --- a/sdk/constructive-cli/src/api/cli/commands/sql-action.ts +++ b/sdk/constructive-cli/src/api/cli/commands/sql-action.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateSqlActionInput, SqlActionPatch, SqlActionSelect, SqlActionFilter, @@ -48,7 +47,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -65,8 +64,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -138,117 +135,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'actionId', - message: 'actionId', - required: true, - }, - { - type: 'text', - name: 'actionName', - message: 'actionName', - required: true, - }, - { - type: 'text', - name: 'actorId', - message: 'actorId', - required: true, - }, - { - type: 'text', - name: 'content', - message: 'content', - required: true, - }, - { - type: 'text', - name: 'databaseId', - message: 'databaseId', - required: true, - }, - { - type: 'text', - name: 'deploy', - message: 'deploy', - required: true, - }, - { - type: 'text', - name: 'deps', - message: 'deps', - required: true, - }, - { - type: 'text', - name: 'name', - message: 'name', - required: true, - }, - { - type: 'json', - name: 'payload', - message: 'payload', - required: true, - }, - { - type: 'text', - name: 'revert', - message: 'revert', - required: true, - }, - { - type: 'text', - name: 'verify', - message: 'verify', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as CreateSqlActionInput['sqlAction']; - const client = getClient(); - const result = await client.sqlAction - .create({ - data: { - actionId: cleanedData.actionId, - actionName: cleanedData.actionName, - actorId: cleanedData.actorId, - content: cleanedData.content, - databaseId: cleanedData.databaseId, - deploy: cleanedData.deploy, - deps: cleanedData.deps, - name: cleanedData.name, - payload: cleanedData.payload, - revert: cleanedData.revert, - verify: cleanedData.verify, - }, - select: { - actionId: true, - actionName: true, - actorId: true, - content: true, - createdAt: true, - databaseId: true, - deploy: true, - deps: true, - id: true, - name: true, - payload: true, - revert: true, - verify: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/api/orm/README.md b/sdk/constructive-cli/src/api/orm/README.md index 02e465c85e..7b224670e8 100644 --- a/sdk/constructive-cli/src/api/orm/README.md +++ b/sdk/constructive-cli/src/api/orm/README.md @@ -24,7 +24,7 @@ const db = createClient({ | `api` | findMany, findOne, create, update, delete | | `apiSchema` | findMany, findOne, create, update, delete | | `apiSetting` | findMany, findOne, create, update, delete | -| `astMigration` | findMany, findOne, create, update, delete | +| `astMigration` | findMany, findOne, update, delete | | `checkConstraint` | findMany, findOne, create, update, delete | | `compositeType` | findMany, findOne, create, update, delete | | `corsSetting` | findMany, findOne, create, update, delete | @@ -49,10 +49,10 @@ const db = createClient({ | `foreignKeyConstraint` | findMany, findOne, create, update, delete | | `fullTextSearch` | findMany, findOne, create, update, delete | | `function` | findMany, findOne, create, update, delete | -| `getSitePreviewsRecord` | findMany, findOne, create, update, delete | +| `getSitePreviewsRecord` | findMany, findOne, update, delete | | `identityProviderRegistry` | findMany, findOne, create, update, delete | | `index` | findMany, findOne, create, update, delete | -| `listSuspendedDatabasesRecord` | findMany, findOne, create, update, delete | +| `listSuspendedDatabasesRecord` | findMany, findOne, update, delete | | `managedDomain` | findMany, findOne, create, update, delete | | `nodeTypeRegistry` | findMany, findOne, create, update, delete | | `page` | findMany, findOne, create, update, delete | @@ -67,9 +67,10 @@ const db = createClient({ | `platformEmailIdentity` | findMany, findOne, create, update, delete | | `platformEmailProviderAccount` | findMany, findOne, create, update, delete | | `platformEmailSiteIdentity` | findMany, findOne, create, update, delete | -| `platformGetSitePreviewsRecord` | findMany, findOne, create, update, delete | +| `platformGetSitePreviewsRecord` | findMany, findOne, update, delete | | `platformManagedDomain` | findMany, findOne, create, update, delete | | `platformPage` | findMany, findOne, create, update, delete | +| `platformReservedSubdomain` | findMany, findOne, create, update, delete | | `platformSiteAppLink` | findMany, findOne, create, update, delete | | `platformSite` | findMany, findOne, create, update, delete | | `platformSiteDeepLink` | findMany, findOne, create, update, delete | @@ -97,7 +98,7 @@ const db = createClient({ | `siteTheme` | findMany, findOne, create, update, delete | | `siteWebConfig` | findMany, findOne, create, update, delete | | `spatialRelation` | findMany, findOne, create, update, delete | -| `sqlAction` | findMany, findOne, create, update, delete | +| `sqlAction` | findMany, findOne, update, delete | | `tableBehavior` | findMany, findOne, create, update, delete | | `table` | findMany, findOne, create, update, delete | | `tableGrant` | findMany, findOne, create, update, delete | @@ -126,24 +127,24 @@ CRUD operations for Api records. | `config` | JSON | Yes | | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | -| `dbname` | String | Yes | | `id` | UUID | No | | `isPublished` | Boolean | Yes | | `name` | String | Yes | | `roleName` | String | Yes | +| `serviceHostname` | String | No | | `updatedAt` | Datetime | No | **Operations:** ```typescript // List all api records -const items = await db.api.findMany({ select: { anonRole: true, config: true, createdAt: true, databaseId: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }).execute(); +const items = await db.api.findMany({ select: { anonRole: true, config: true, createdAt: true, databaseId: true, id: true, isPublished: true, name: true, roleName: true, serviceHostname: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.api.findOne({ id: '', select: { anonRole: true, config: true, createdAt: true, databaseId: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }).execute(); +const item = await db.api.findOne({ id: '', select: { anonRole: true, config: true, createdAt: true, databaseId: true, id: true, isPublished: true, name: true, roleName: true, serviceHostname: true, updatedAt: true } }).execute(); // Create -const created = await db.api.create({ data: { anonRole: '', config: '', databaseId: '', dbname: '', isPublished: '', name: '', roleName: '' }, select: { id: true } }).execute(); +const created = await db.api.create({ data: { anonRole: '', config: '', databaseId: '', isPublished: '', name: '', roleName: '' }, select: { id: true } }).execute(); // Update const updated = await db.api.update({ where: { id: '' }, data: { anonRole: '' }, select: { id: true } }).execute(); @@ -200,7 +201,6 @@ CRUD operations for ApiSetting records. | `enableAggregates` | Boolean | Yes | | `enableBulk` | Boolean | Yes | | `enableConnectionFilter` | Boolean | Yes | -| `enableDirectUploads` | Boolean | Yes | | `enableI18N` | Boolean | Yes | | `enableIntrospection` | Boolean | Yes | | `enableLlm` | Boolean | Yes | @@ -229,13 +229,13 @@ CRUD operations for ApiSetting records. ```typescript // List all apiSetting records -const items = await db.apiSetting.findMany({ select: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); +const items = await db.apiSetting.findMany({ select: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.apiSetting.findOne({ id: '', select: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); +const item = await db.apiSetting.findOne({ id: '', select: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); // Create -const created = await db.apiSetting.create({ data: { apiId: '', databaseId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute(); +const created = await db.apiSetting.create({ data: { apiId: '', databaseId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute(); // Update const updated = await db.apiSetting.update({ where: { id: '' }, data: { apiId: '' }, select: { id: true } }).execute(); @@ -275,9 +275,6 @@ const items = await db.astMigration.findMany({ select: { actionId: true, actionN // Get one by id const item = await db.astMigration.findOne({ id: '', select: { actionId: true, actionName: true, actorId: true, createdAt: true, databaseId: true, deploy: true, deploys: true, id: true, name: true, payload: true, requires: true, revert: true, verify: true } }).execute(); -// Create -const created = await db.astMigration.create({ data: { actionId: '', actionName: '', actorId: '', databaseId: '', deploy: '', deploys: '', name: '', payload: '', requires: '', revert: '', verify: '' }, select: { id: true } }).execute(); - // Update const updated = await db.astMigration.update({ where: { id: '' }, data: { actionId: '' }, select: { id: true } }).execute(); @@ -414,8 +411,8 @@ CRUD operations for Database records. | `name` | String | Yes | | `ownerId` | UUID | Yes | | `platform` | Boolean | Yes | -| `suspendedAt` | Datetime | Yes | -| `suspendedReason` | String | Yes | +| `suspendedAt` | Datetime | No | +| `suspendedReason` | String | No | | `updatedAt` | Datetime | No | **Operations:** @@ -428,7 +425,7 @@ const items = await db.database.findMany({ select: { createdAt: true, hash: true const item = await db.database.findOne({ id: '', select: { createdAt: true, hash: true, id: true, label: true, name: true, ownerId: true, platform: true, suspendedAt: true, suspendedReason: true, updatedAt: true } }).execute(); // Create -const created = await db.database.create({ data: { hash: '', label: '', name: '', ownerId: '', platform: '', suspendedAt: '', suspendedReason: '' }, select: { id: true } }).execute(); +const created = await db.database.create({ data: { hash: '', label: '', name: '', ownerId: '', platform: '' }, select: { id: true } }).execute(); // Update const updated = await db.database.update({ where: { id: '' }, data: { hash: '' }, select: { id: true } }).execute(); @@ -453,7 +450,6 @@ CRUD operations for DatabaseSetting records. | `enableBilling` | Boolean | Yes | | `enableBulk` | Boolean | Yes | | `enableConnectionFilter` | Boolean | Yes | -| `enableDirectUploads` | Boolean | Yes | | `enableI18N` | Boolean | Yes | | `enableIntrospection` | Boolean | Yes | | `enableLlm` | Boolean | Yes | @@ -483,13 +479,13 @@ CRUD operations for DatabaseSetting records. ```typescript // List all databaseSetting records -const items = await db.databaseSetting.findMany({ select: { annotations: true, createdAt: true, creditsPerCent: true, databaseId: true, enableAggregates: true, enableBilling: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, labels: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); +const items = await db.databaseSetting.findMany({ select: { annotations: true, createdAt: true, creditsPerCent: true, databaseId: true, enableAggregates: true, enableBilling: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, labels: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.databaseSetting.findOne({ id: '', select: { annotations: true, createdAt: true, creditsPerCent: true, databaseId: true, enableAggregates: true, enableBilling: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, labels: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); +const item = await db.databaseSetting.findOne({ id: '', select: { annotations: true, createdAt: true, creditsPerCent: true, databaseId: true, enableAggregates: true, enableBilling: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, labels: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); // Create -const created = await db.databaseSetting.create({ data: { annotations: '', creditsPerCent: '', databaseId: '', enableAggregates: '', enableBilling: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', labels: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute(); +const created = await db.databaseSetting.create({ data: { annotations: '', creditsPerCent: '', databaseId: '', enableAggregates: '', enableBilling: '', enableBulk: '', enableConnectionFilter: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', labels: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute(); // Update const updated = await db.databaseSetting.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -1307,9 +1303,6 @@ const items = await db.getSitePreviewsRecord.findMany({ select: { commitId: true // Get one by id const item = await db.getSitePreviewsRecord.findOne({ id: '', select: { commitId: true, name: true } }).execute(); -// Create -const created = await db.getSitePreviewsRecord.create({ data: { commitId: '', name: '' }, select: { id: true } }).execute(); - // Update const updated = await db.getSitePreviewsRecord.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); @@ -1422,9 +1415,6 @@ const items = await db.listSuspendedDatabasesRecord.findMany({ select: { id: tru // Get one by id const item = await db.listSuspendedDatabasesRecord.findOne({ id: '', select: { id: true, name: true, ownerId: true, suspendedAt: true, suspendedReason: true } }).execute(); -// Create -const created = await db.listSuspendedDatabasesRecord.create({ data: { name: '', ownerId: '', suspendedAt: '', suspendedReason: '' }, select: { id: true } }).execute(); - // Update const updated = await db.listSuspendedDatabasesRecord.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); @@ -1601,24 +1591,24 @@ CRUD operations for PlatformApi records. | `anonRole` | String | Yes | | `config` | JSON | Yes | | `createdAt` | Datetime | No | -| `dbname` | String | Yes | | `id` | UUID | No | | `isPublished` | Boolean | Yes | | `name` | String | Yes | | `roleName` | String | Yes | +| `serviceHostname` | String | No | | `updatedAt` | Datetime | No | **Operations:** ```typescript // List all platformApi records -const items = await db.platformApi.findMany({ select: { anonRole: true, config: true, createdAt: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }).execute(); +const items = await db.platformApi.findMany({ select: { anonRole: true, config: true, createdAt: true, id: true, isPublished: true, name: true, roleName: true, serviceHostname: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.platformApi.findOne({ id: '', select: { anonRole: true, config: true, createdAt: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }).execute(); +const item = await db.platformApi.findOne({ id: '', select: { anonRole: true, config: true, createdAt: true, id: true, isPublished: true, name: true, roleName: true, serviceHostname: true, updatedAt: true } }).execute(); // Create -const created = await db.platformApi.create({ data: { anonRole: '', config: '', dbname: '', isPublished: '', name: '', roleName: '' }, select: { id: true } }).execute(); +const created = await db.platformApi.create({ data: { anonRole: '', config: '', isPublished: '', name: '', roleName: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformApi.update({ where: { id: '' }, data: { anonRole: '' }, select: { id: true } }).execute(); @@ -1673,7 +1663,6 @@ CRUD operations for PlatformApiSetting records. | `enableAggregates` | Boolean | Yes | | `enableBulk` | Boolean | Yes | | `enableConnectionFilter` | Boolean | Yes | -| `enableDirectUploads` | Boolean | Yes | | `enableI18N` | Boolean | Yes | | `enableIntrospection` | Boolean | Yes | | `enableLlm` | Boolean | Yes | @@ -1702,13 +1691,13 @@ CRUD operations for PlatformApiSetting records. ```typescript // List all platformApiSetting records -const items = await db.platformApiSetting.findMany({ select: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); +const items = await db.platformApiSetting.findMany({ select: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.platformApiSetting.findOne({ id: '', select: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); +const item = await db.platformApiSetting.findOne({ id: '', select: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); // Create -const created = await db.platformApiSetting.create({ data: { apiId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute(); +const created = await db.platformApiSetting.create({ data: { apiId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformApiSetting.update({ where: { id: '' }, data: { apiId: '' }, select: { id: true } }).execute(); @@ -2010,9 +1999,6 @@ const items = await db.platformGetSitePreviewsRecord.findMany({ select: { commit // Get one by id const item = await db.platformGetSitePreviewsRecord.findOne({ id: '', select: { commitId: true, name: true } }).execute(); -// Create -const created = await db.platformGetSitePreviewsRecord.create({ data: { commitId: '', name: '' }, select: { id: true } }).execute(); - // Update const updated = await db.platformGetSitePreviewsRecord.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); @@ -2100,6 +2086,42 @@ const updated = await db.platformPage.update({ where: { id: '' }, data: { const deleted = await db.platformPage.delete({ where: { id: '' } }).execute(); ``` +### `db.platformReservedSubdomain` + +CRUD operations for PlatformReservedSubdomain records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | +| `id` | UUID | No | +| `label` | String | Yes | +| `match` | String | Yes | +| `reason` | String | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformReservedSubdomain records +const items = await db.platformReservedSubdomain.findMany({ select: { createdAt: true, createdByPrincipal: true, id: true, label: true, match: true, reason: true, updatedAt: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.platformReservedSubdomain.findOne({ id: '', select: { createdAt: true, createdByPrincipal: true, id: true, label: true, match: true, reason: true, updatedAt: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.platformReservedSubdomain.create({ data: { createdByPrincipal: '', label: '', match: '', reason: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformReservedSubdomain.update({ where: { id: '' }, data: { createdByPrincipal: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformReservedSubdomain.delete({ where: { id: '' } }).execute(); +``` + ### `db.platformSiteAppLink` CRUD operations for PlatformSiteAppLink records. @@ -2258,14 +2280,22 @@ CRUD operations for PlatformSiteMetadatum records. | Field | Type | Editable | |-------|------|----------| | `appleTouchIcon` | ConstructiveInternalTypeImage | Yes | +| `appleTouchIconUrl` | String | No | +| `appleTouchIconVersions` | FileVersion | No | | `canonicalUrl` | String | Yes | | `commitId` | UUID | Yes | | `createdAt` | Datetime | No | | `description` | String | Yes | | `favicon` | ConstructiveInternalTypeImage | Yes | +| `faviconUrl` | String | No | +| `faviconVersions` | FileVersion | No | | `id` | UUID | No | | `logo` | ConstructiveInternalTypeImage | Yes | +| `logoUrl` | String | No | +| `logoVersions` | FileVersion | No | | `ogImage` | ConstructiveInternalTypeImage | Yes | +| `ogImageUrl` | String | No | +| `ogImageVersions` | FileVersion | No | | `robots` | String | Yes | | `robotsSeededFrom` | JSON | Yes | | `siteId` | UUID | Yes | @@ -2926,15 +2956,23 @@ CRUD operations for SiteMetadatum records. | Field | Type | Editable | |-------|------|----------| | `appleTouchIcon` | ConstructiveInternalTypeImage | Yes | +| `appleTouchIconUrl` | String | No | +| `appleTouchIconVersions` | FileVersion | No | | `canonicalUrl` | String | Yes | | `commitId` | UUID | Yes | | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | | `description` | String | Yes | | `favicon` | ConstructiveInternalTypeImage | Yes | +| `faviconUrl` | String | No | +| `faviconVersions` | FileVersion | No | | `id` | UUID | No | | `logo` | ConstructiveInternalTypeImage | Yes | +| `logoUrl` | String | No | +| `logoVersions` | FileVersion | No | | `ogImage` | ConstructiveInternalTypeImage | Yes | +| `ogImageUrl` | String | No | +| `ogImageVersions` | FileVersion | No | | `robots` | String | Yes | | `robotsSeededFrom` | JSON | Yes | | `siteId` | UUID | Yes | @@ -3181,9 +3219,6 @@ const items = await db.sqlAction.findMany({ select: { actionId: true, actionName // Get one by id const item = await db.sqlAction.findOne({ id: '', select: { actionId: true, actionName: true, actorId: true, content: true, createdAt: true, databaseId: true, deploy: true, deps: true, id: true, name: true, payload: true, revert: true, verify: true } }).execute(); -// Create -const created = await db.sqlAction.create({ data: { actionId: '', actionName: '', actorId: '', content: '', databaseId: '', deploy: '', deps: '', name: '', payload: '', revert: '', verify: '' }, select: { id: true } }).execute(); - // Update const updated = await db.sqlAction.update({ where: { id: '' }, data: { actionId: '' }, select: { id: true } }).execute(); @@ -3706,21 +3741,6 @@ const deleted = await db.webauthnSetting.delete({ where: { id: '' } }).exe ## Custom Operations -### `db.query.apiSchemaNames` - -apiSchemaNames - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `targetApiId` | UUID | - -```typescript -const result = await db.query.apiSchemaNames({ targetApiId: '' }).execute(); -``` - ### `db.query.applyRegistryDefaults` applyRegistryDefaults @@ -3891,54 +3911,6 @@ platformVerifySitePreviewToken const result = await db.query.platformVerifySitePreviewToken({ siteId: '', token: '' }).execute(); ``` -### `db.query.resolveDeepLink` - -resolveDeepLink - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `linkSlug` | String | - | `targetSiteId` | UUID | - -```typescript -const result = await db.query.resolveDeepLink({ linkSlug: '', targetSiteId: '' }).execute(); -``` - -### `db.query.resolveRoute` - -resolveRoute - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `requestHost` | String | - | `requestMethod` | String | - | `requestPath` | String | - -```typescript -const result = await db.query.resolveRoute({ requestHost: '', requestMethod: '', requestPath: '' }).execute(); -``` - -### `db.query.resolveSiteAppLinks` - -resolveSiteAppLinks - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `targetSiteId` | UUID | - -```typescript -const result = await db.query.resolveSiteAppLinks({ targetSiteId: '' }).execute(); -``` - ### `db.query.sitesDeepLinkUrl` sitesDeepLinkUrl diff --git a/sdk/constructive-cli/src/api/orm/index.ts b/sdk/constructive-cli/src/api/orm/index.ts index 038b8785ac..eb190bc93d 100644 --- a/sdk/constructive-cli/src/api/orm/index.ts +++ b/sdk/constructive-cli/src/api/orm/index.ts @@ -54,6 +54,7 @@ import { PlatformEmailSiteIdentityModel } from './models/platformEmailSiteIdenti import { PlatformGetSitePreviewsRecordModel } from './models/platformGetSitePreviewsRecord'; import { PlatformManagedDomainModel } from './models/platformManagedDomain'; import { PlatformPageModel } from './models/platformPage'; +import { PlatformReservedSubdomainModel } from './models/platformReservedSubdomain'; import { PlatformSiteAppLinkModel } from './models/platformSiteAppLink'; import { PlatformSiteModel } from './models/platformSite'; import { PlatformSiteDeepLinkModel } from './models/platformSiteDeepLink'; @@ -179,6 +180,7 @@ export function createClient(config: OrmClientConfig) { platformGetSitePreviewsRecord: new PlatformGetSitePreviewsRecordModel(client), platformManagedDomain: new PlatformManagedDomainModel(client), platformPage: new PlatformPageModel(client), + platformReservedSubdomain: new PlatformReservedSubdomainModel(client), platformSiteAppLink: new PlatformSiteAppLinkModel(client), platformSite: new PlatformSiteModel(client), platformSiteDeepLink: new PlatformSiteDeepLinkModel(client), diff --git a/sdk/constructive-cli/src/api/orm/input-types.ts b/sdk/constructive-cli/src/api/orm/input-types.ts index f4e5da7908..3484199372 100644 --- a/sdk/constructive-cli/src/api/orm/input-types.ts +++ b/sdk/constructive-cli/src/api/orm/input-types.ts @@ -245,8 +245,6 @@ export interface Api { createdAt?: string | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; - /** Database this API surface serves */ - dbname?: string | null; id: string; /** Whether other scopes may see and route to this API surface */ isPublished?: boolean | null; @@ -254,6 +252,7 @@ export interface Api { name?: string | null; /** Authenticated role the API executes as */ roleName?: string | null; + serviceHostname?: string | null; updatedAt?: string | null; } /** Join table linking API surfaces to the metaschema schemas they expose */ @@ -281,8 +280,6 @@ export interface ApiSetting { enableBulk?: boolean | null; /** Override: enable connection filter (NULL = inherit from database_settings) */ enableConnectionFilter?: boolean | null; - /** Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) */ - enableDirectUploads?: boolean | null; /** Override: enable internationalization plugin (NULL = inherit from database_settings) */ enableI18N?: boolean | null; /** Override: enable GraphQL schema introspection queries (NULL = inherit from database_settings) */ @@ -412,8 +409,6 @@ export interface DatabaseSetting { enableBulk?: boolean | null; /** Enable connection filter (where argument) in the GraphQL API */ enableConnectionFilter?: boolean | null; - /** Enable direct (multipart) file upload mutations in the GraphQL API */ - enableDirectUploads?: boolean | null; /** Enable internationalization plugin (localeStrings field, translation table discovery) in the GraphQL API */ enableI18N?: boolean | null; /** Enable GraphQL schema introspection queries in the GraphQL API. A tenant may only ever lower a bound, so the stored default is the permissive end: turning introspection off is the opt-in. */ @@ -945,8 +940,6 @@ export interface PlatformApi { /** Module-specific configuration for this API surface */ config?: Record | null; createdAt?: string | null; - /** Database this API surface serves */ - dbname?: string | null; id: string; /** Whether other scopes may see and route to this API surface */ isPublished?: boolean | null; @@ -954,6 +947,7 @@ export interface PlatformApi { name?: string | null; /** Authenticated role the API executes as */ roleName?: string | null; + serviceHostname?: string | null; updatedAt?: string | null; } /** Join table linking API surfaces to the metaschema schemas they expose */ @@ -977,8 +971,6 @@ export interface PlatformApiSetting { enableBulk?: boolean | null; /** Override: enable connection filter (NULL = inherit from database_settings) */ enableConnectionFilter?: boolean | null; - /** Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) */ - enableDirectUploads?: boolean | null; /** Override: enable internationalization plugin (NULL = inherit from database_settings) */ enableI18N?: boolean | null; /** Override: enable GraphQL schema introspection queries (NULL = inherit from database_settings) */ @@ -1229,6 +1221,20 @@ export interface PlatformPage { /** Timestamp of last modification */ updatedAt?: string | null; } +/** Subdomain labels no tenant may claim under a platform apex */ +export interface PlatformReservedSubdomain { + createdAt?: string | null; + createdByPrincipal?: string | null; + id: string; + /** Lowercase subdomain label, or the label prefix/suffix the match names */ + label?: string | null; + /** How the label matches a claimed label: exact, prefix or suffix */ + match?: string | null; + /** Why the label is reserved (free text, e.g. platform, brand, lookalike) */ + reason?: string | null; + updatedAt?: string | null; + updatedByPrincipal?: string | null; +} /** Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) */ export interface PlatformSiteAppLink { /** App-owned store identity this association serves (app_store_identities row in this scope's app plane; the association carries no store facts of its own) */ @@ -1305,6 +1311,10 @@ export interface PlatformSiteErrorPage { export interface PlatformSiteMetadatum { /** Apple touch icon image (home-screen bookmark) */ appleTouchIcon?: ConstructiveInternalTypeImage | null; + /** URL to fetch `appleTouchIcon`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + appleTouchIconUrl?: string | null; + /** The versions rendered beside `appleTouchIcon`, narrowest first, each with a URL. Empty when there are none. */ + appleTouchIconVersions?: FileVersion[] | null; /** Canonical URL emitted in for this site */ canonicalUrl?: string | null; /** Infra store commit for the current content (stamped by the versioned trigger on every write) */ @@ -1314,11 +1324,23 @@ export interface PlatformSiteMetadatum { description?: string | null; /** Site favicon image */ favicon?: ConstructiveInternalTypeImage | null; + /** URL to fetch `favicon`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + faviconUrl?: string | null; + /** The versions rendered beside `favicon`, narrowest first, each with a URL. Empty when there are none. */ + faviconVersions?: FileVersion[] | null; id: string; /** Primary site logo image */ logo?: ConstructiveInternalTypeImage | null; + /** URL to fetch `logo`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + logoUrl?: string | null; + /** The versions rendered beside `logo`, narrowest first, each with a URL. Empty when there are none. */ + logoVersions?: FileVersion[] | null; /** Open Graph image used when sharing site links */ ogImage?: ConstructiveInternalTypeImage | null; + /** URL to fetch `ogImage`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + ogImageUrl?: string | null; + /** The versions rendered beside `ogImage`, narrowest first, each with a URL. Empty when there are none. */ + ogImageVersions?: FileVersion[] | null; /** robots meta directive (e.g. index,follow / noindex,nofollow) */ robots?: string | null; /** Provenance of the robots value: the content preset (kind, slug, catalog commit_id) an install applied, or NULL when it was authored directly */ @@ -1645,6 +1667,10 @@ export interface SiteErrorPage { export interface SiteMetadatum { /** Apple touch icon image (home-screen bookmark) */ appleTouchIcon?: ConstructiveInternalTypeImage | null; + /** URL to fetch `appleTouchIcon`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + appleTouchIconUrl?: string | null; + /** The versions rendered beside `appleTouchIcon`, narrowest first, each with a URL. Empty when there are none. */ + appleTouchIconVersions?: FileVersion[] | null; /** Canonical URL emitted in for this site */ canonicalUrl?: string | null; /** Infra store commit for the current content (stamped by the versioned trigger on every write) */ @@ -1656,11 +1682,23 @@ export interface SiteMetadatum { description?: string | null; /** Site favicon image */ favicon?: ConstructiveInternalTypeImage | null; + /** URL to fetch `favicon`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + faviconUrl?: string | null; + /** The versions rendered beside `favicon`, narrowest first, each with a URL. Empty when there are none. */ + faviconVersions?: FileVersion[] | null; id: string; /** Primary site logo image */ logo?: ConstructiveInternalTypeImage | null; + /** URL to fetch `logo`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + logoUrl?: string | null; + /** The versions rendered beside `logo`, narrowest first, each with a URL. Empty when there are none. */ + logoVersions?: FileVersion[] | null; /** Open Graph image used when sharing site links */ ogImage?: ConstructiveInternalTypeImage | null; + /** URL to fetch `ogImage`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + ogImageUrl?: string | null; + /** The versions rendered beside `ogImage`, narrowest first, each with a URL. Empty when there are none. */ + ogImageVersions?: FileVersion[] | null; /** robots meta directive (e.g. index,follow / noindex,nofollow) */ robots?: string | null; /** Provenance of the robots value: the content preset (kind, slug, catalog commit_id) an install applied, or NULL when it was authored directly */ @@ -2203,6 +2241,7 @@ export interface PlatformManagedDomainRelations { export interface PlatformPageRelations { site?: PlatformSite | null; } +export interface PlatformReservedSubdomainRelations {} export interface PlatformSiteAppLinkRelations { site?: PlatformSite | null; } @@ -2490,6 +2529,8 @@ export type PlatformGetSitePreviewsRecordWithRelations = PlatformGetSitePreviews export type PlatformManagedDomainWithRelations = PlatformManagedDomain & PlatformManagedDomainRelations; export type PlatformPageWithRelations = PlatformPage & PlatformPageRelations; +export type PlatformReservedSubdomainWithRelations = PlatformReservedSubdomain & + PlatformReservedSubdomainRelations; export type PlatformSiteAppLinkWithRelations = PlatformSiteAppLink & PlatformSiteAppLinkRelations; export type PlatformSiteWithRelations = PlatformSite & PlatformSiteRelations; export type PlatformSiteDeepLinkWithRelations = PlatformSiteDeepLink & @@ -2543,11 +2584,11 @@ export type ApiSelect = { config?: boolean; createdAt?: boolean; databaseId?: boolean; - dbname?: boolean; id?: boolean; isPublished?: boolean; name?: boolean; roleName?: boolean; + serviceHostname?: boolean; updatedAt?: boolean; apiSetting?: { select: ApiSettingSelect; @@ -2586,7 +2627,6 @@ export type ApiSettingSelect = { enableAggregates?: boolean; enableBulk?: boolean; enableConnectionFilter?: boolean; - enableDirectUploads?: boolean; enableI18N?: boolean; enableIntrospection?: boolean; enableLlm?: boolean; @@ -2905,7 +2945,6 @@ export type DatabaseSettingSelect = { enableBilling?: boolean; enableBulk?: boolean; enableConnectionFilter?: boolean; - enableDirectUploads?: boolean; enableI18N?: boolean; enableIntrospection?: boolean; enableLlm?: boolean; @@ -3547,11 +3586,11 @@ export type PlatformApiSelect = { anonRole?: boolean; config?: boolean; createdAt?: boolean; - dbname?: boolean; id?: boolean; isPublished?: boolean; name?: boolean; roleName?: boolean; + serviceHostname?: boolean; updatedAt?: boolean; platformApiSettingByApiId?: { select: PlatformApiSettingSelect; @@ -3585,7 +3624,6 @@ export type PlatformApiSettingSelect = { enableAggregates?: boolean; enableBulk?: boolean; enableConnectionFilter?: boolean; - enableDirectUploads?: boolean; enableI18N?: boolean; enableIntrospection?: boolean; enableLlm?: boolean; @@ -3802,6 +3840,16 @@ export type PlatformPageSelect = { select: PlatformSiteSelect; }; }; +export type PlatformReservedSubdomainSelect = { + createdAt?: boolean; + createdByPrincipal?: boolean; + id?: boolean; + label?: boolean; + match?: boolean; + reason?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; +}; export type PlatformSiteAppLinkSelect = { appStoreIdentityId?: boolean; createdAt?: boolean; @@ -3906,14 +3954,50 @@ export type PlatformSiteErrorPageSelect = { }; export type PlatformSiteMetadatumSelect = { appleTouchIcon?: boolean; + appleTouchIconUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + appleTouchIconVersions?: { + select: FileVersionSelect; + }; canonicalUrl?: boolean; commitId?: boolean; createdAt?: boolean; description?: boolean; favicon?: boolean; + faviconUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + faviconVersions?: { + select: FileVersionSelect; + }; id?: boolean; logo?: boolean; + logoUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + logoVersions?: { + select: FileVersionSelect; + }; ogImage?: boolean; + ogImageUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + ogImageVersions?: { + select: FileVersionSelect; + }; robots?: boolean; robotsSeededFrom?: boolean; siteId?: boolean; @@ -4357,15 +4441,51 @@ export type SiteErrorPageSelect = { }; export type SiteMetadatumSelect = { appleTouchIcon?: boolean; + appleTouchIconUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + appleTouchIconVersions?: { + select: FileVersionSelect; + }; canonicalUrl?: boolean; commitId?: boolean; createdAt?: boolean; databaseId?: boolean; description?: boolean; favicon?: boolean; + faviconUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + faviconVersions?: { + select: FileVersionSelect; + }; id?: boolean; logo?: boolean; + logoUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + logoVersions?: { + select: FileVersionSelect; + }; ogImage?: boolean; + ogImageUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + ogImageVersions?: { + select: FileVersionSelect; + }; robots?: boolean; robotsSeededFrom?: boolean; siteId?: boolean; @@ -4949,8 +5069,6 @@ export interface ApiFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `dbname` field. */ - dbname?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isPublished` field. */ @@ -5007,8 +5125,6 @@ export interface ApiSettingFilter { enableBulk?: BooleanFilter; /** Filter by the object’s `enableConnectionFilter` field. */ enableConnectionFilter?: BooleanFilter; - /** Filter by the object’s `enableDirectUploads` field. */ - enableDirectUploads?: BooleanFilter; /** Filter by the object’s `enableI18N` field. */ enableI18N?: BooleanFilter; /** Filter by the object’s `enableIntrospection` field. */ @@ -5373,8 +5489,6 @@ export interface DatabaseSettingFilter { enableBulk?: BooleanFilter; /** Filter by the object’s `enableConnectionFilter` field. */ enableConnectionFilter?: BooleanFilter; - /** Filter by the object’s `enableDirectUploads` field. */ - enableDirectUploads?: BooleanFilter; /** Filter by the object’s `enableI18N` field. */ enableI18N?: BooleanFilter; /** Filter by the object’s `enableIntrospection` field. */ @@ -6478,8 +6592,6 @@ export interface PlatformApiFilter { config?: JSONFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `dbname` field. */ - dbname?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isPublished` field. */ @@ -6544,8 +6656,6 @@ export interface PlatformApiSettingFilter { enableBulk?: BooleanFilter; /** Filter by the object’s `enableConnectionFilter` field. */ enableConnectionFilter?: BooleanFilter; - /** Filter by the object’s `enableDirectUploads` field. */ - enableDirectUploads?: BooleanFilter; /** Filter by the object’s `enableI18N` field. */ enableI18N?: BooleanFilter; /** Filter by the object’s `enableIntrospection` field. */ @@ -6936,6 +7046,30 @@ export interface PlatformPageFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } +export interface PlatformReservedSubdomainFilter { + /** Checks for all expressions in this list. */ + and?: PlatformReservedSubdomainFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Filter by the object’s `match` field. */ + match?: StringFilter; + /** Negates the expression. */ + not?: PlatformReservedSubdomainFilter; + /** Checks for any expressions in this list. */ + or?: PlatformReservedSubdomainFilter[]; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} export interface PlatformSiteAppLinkFilter { /** Checks for all expressions in this list. */ and?: PlatformSiteAppLinkFilter[]; @@ -8650,8 +8784,6 @@ export type ApiOrderBy = | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DBNAME_ASC' - | 'DBNAME_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_PUBLISHED_ASC' @@ -8694,8 +8826,6 @@ export type ApiSettingOrderBy = | 'ENABLE_BULK_DESC' | 'ENABLE_CONNECTION_FILTER_ASC' | 'ENABLE_CONNECTION_FILTER_DESC' - | 'ENABLE_DIRECT_UPLOADS_ASC' - | 'ENABLE_DIRECT_UPLOADS_DESC' | 'ENABLE_I18N_ASC' | 'ENABLE_I18N_DESC' | 'ENABLE_INTROSPECTION_ASC' @@ -8886,8 +9016,6 @@ export type DatabaseSettingOrderBy = | 'ENABLE_BULK_DESC' | 'ENABLE_CONNECTION_FILTER_ASC' | 'ENABLE_CONNECTION_FILTER_DESC' - | 'ENABLE_DIRECT_UPLOADS_ASC' - | 'ENABLE_DIRECT_UPLOADS_DESC' | 'ENABLE_I18N_ASC' | 'ENABLE_I18N_DESC' | 'ENABLE_INTROSPECTION_ASC' @@ -9726,8 +9854,6 @@ export type PlatformApiOrderBy = | 'CONFIG_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'DBNAME_ASC' - | 'DBNAME_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_PUBLISHED_ASC' @@ -9766,8 +9892,6 @@ export type PlatformApiSettingOrderBy = | 'ENABLE_BULK_DESC' | 'ENABLE_CONNECTION_FILTER_ASC' | 'ENABLE_CONNECTION_FILTER_DESC' - | 'ENABLE_DIRECT_UPLOADS_ASC' - | 'ENABLE_DIRECT_UPLOADS_DESC' | 'ENABLE_I18N_ASC' | 'ENABLE_I18N_DESC' | 'ENABLE_INTROSPECTION_ASC' @@ -10063,6 +10187,26 @@ export type PlatformPageOrderBy = | 'STORE_ID_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +export type PlatformReservedSubdomainOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'LABEL_ASC' + | 'LABEL_DESC' + | 'MATCH_ASC' + | 'MATCH_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REASON_ASC' + | 'REASON_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type PlatformSiteAppLinkOrderBy = | 'APP_STORE_IDENTITY_ID_ASC' | 'APP_STORE_IDENTITY_ID_DESC' @@ -11144,7 +11288,6 @@ export interface CreateApiInput { anonRole?: string; config?: Record; databaseId: string; - dbname?: string; isPublished?: boolean; name: string; roleName?: string; @@ -11154,7 +11297,6 @@ export interface ApiPatch { anonRole?: string | null; config?: Record | null; databaseId?: string | null; - dbname?: string | null; isPublished?: boolean | null; name?: string | null; roleName?: string | null; @@ -11198,7 +11340,6 @@ export interface CreateApiSettingInput { enableAggregates?: boolean; enableBulk?: boolean; enableConnectionFilter?: boolean; - enableDirectUploads?: boolean; enableI18N?: boolean; enableIntrospection?: boolean; enableLlm?: boolean; @@ -11228,7 +11369,6 @@ export interface ApiSettingPatch { enableAggregates?: boolean | null; enableBulk?: boolean | null; enableConnectionFilter?: boolean | null; - enableDirectUploads?: boolean | null; enableI18N?: boolean | null; enableIntrospection?: boolean | null; enableLlm?: boolean | null; @@ -11260,22 +11400,6 @@ export interface DeleteApiSettingInput { clientMutationId?: string; id: string; } -export interface CreateAstMigrationInput { - clientMutationId?: string; - astMigration: { - actionId: string; - actionName?: string; - actorId: string; - databaseId: string; - deploy?: Record; - deploys?: string; - name?: string; - payload?: Record; - requires?: string[]; - revert?: Record; - verify?: Record; - }; -} export interface AstMigrationPatch { actionId?: string | null; actionName?: string | null; @@ -11428,7 +11552,6 @@ export interface CreateDatabaseSettingInput { enableBilling?: boolean; enableBulk?: boolean; enableConnectionFilter?: boolean; - enableDirectUploads?: boolean; enableI18N?: boolean; enableIntrospection?: boolean; enableLlm?: boolean; @@ -11461,7 +11584,6 @@ export interface DatabaseSettingPatch { enableBilling?: boolean | null; enableBulk?: boolean | null; enableConnectionFilter?: boolean | null; - enableDirectUploads?: boolean | null; enableI18N?: boolean | null; enableIntrospection?: boolean | null; enableLlm?: boolean | null; @@ -12214,13 +12336,6 @@ export interface DeleteFunctionInput { clientMutationId?: string; id: string; } -export interface CreateGetSitePreviewsRecordInput { - clientMutationId?: string; - getSitePreviewsRecord: { - commitId: string; - name?: string; - }; -} export interface GetSitePreviewsRecordPatch { commitId?: string | null; name?: string | null; @@ -12312,15 +12427,6 @@ export interface DeleteIndexInput { clientMutationId?: string; id: string; } -export interface CreateListSuspendedDatabasesRecordInput { - clientMutationId?: string; - listSuspendedDatabasesRecord: { - name?: string; - ownerId: string; - suspendedAt?: string; - suspendedReason?: string; - }; -} export interface ListSuspendedDatabasesRecordPatch { name?: string | null; ownerId?: string | null; @@ -12479,7 +12585,6 @@ export interface CreatePlatformApiInput { platformApi: { anonRole?: string; config?: Record; - dbname?: string; isPublished?: boolean; name: string; roleName?: string; @@ -12488,7 +12593,6 @@ export interface CreatePlatformApiInput { export interface PlatformApiPatch { anonRole?: string | null; config?: Record | null; - dbname?: string | null; isPublished?: boolean | null; name?: string | null; roleName?: string | null; @@ -12529,7 +12633,6 @@ export interface CreatePlatformApiSettingInput { enableAggregates?: boolean; enableBulk?: boolean; enableConnectionFilter?: boolean; - enableDirectUploads?: boolean; enableI18N?: boolean; enableIntrospection?: boolean; enableLlm?: boolean; @@ -12558,7 +12661,6 @@ export interface PlatformApiSettingPatch { enableAggregates?: boolean | null; enableBulk?: boolean | null; enableConnectionFilter?: boolean | null; - enableDirectUploads?: boolean | null; enableI18N?: boolean | null; enableIntrospection?: boolean | null; enableLlm?: boolean | null; @@ -12814,13 +12916,6 @@ export interface DeletePlatformEmailSiteIdentityInput { clientMutationId?: string; id: string; } -export interface CreatePlatformGetSitePreviewsRecordInput { - clientMutationId?: string; - platformGetSitePreviewsRecord: { - commitId: string; - name?: string; - }; -} export interface PlatformGetSitePreviewsRecordPatch { commitId?: string | null; name?: string | null; @@ -12902,6 +12997,32 @@ export interface DeletePlatformPageInput { clientMutationId?: string; id: string; } +export interface CreatePlatformReservedSubdomainInput { + clientMutationId?: string; + platformReservedSubdomain: { + createdByPrincipal?: string; + label: string; + match?: string; + reason?: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformReservedSubdomainPatch { + createdByPrincipal?: string | null; + label?: string | null; + match?: string | null; + reason?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformReservedSubdomainInput { + clientMutationId?: string; + id: string; + platformReservedSubdomainPatch: PlatformReservedSubdomainPatch; +} +export interface DeletePlatformReservedSubdomainInput { + clientMutationId?: string; + id: string; +} export interface CreatePlatformSiteAppLinkInput { clientMutationId?: string; platformSiteAppLink: { @@ -13035,16 +13156,12 @@ export interface CreatePlatformSiteMetadatumInput { } export interface PlatformSiteMetadatumPatch { appleTouchIcon?: ConstructiveInternalTypeImage | null; - appleTouchIconUpload?: File | null; canonicalUrl?: string | null; commitId?: string | null; description?: string | null; favicon?: ConstructiveInternalTypeImage | null; - faviconUpload?: File | null; logo?: ConstructiveInternalTypeImage | null; - logoUpload?: File | null; ogImage?: ConstructiveInternalTypeImage | null; - ogImageUpload?: File | null; robots?: string | null; robotsSeededFrom?: Record | null; siteId?: string | null; @@ -13594,17 +13711,13 @@ export interface CreateSiteMetadatumInput { } export interface SiteMetadatumPatch { appleTouchIcon?: ConstructiveInternalTypeImage | null; - appleTouchIconUpload?: File | null; canonicalUrl?: string | null; commitId?: string | null; databaseId?: string | null; description?: string | null; favicon?: ConstructiveInternalTypeImage | null; - faviconUpload?: File | null; logo?: ConstructiveInternalTypeImage | null; - logoUpload?: File | null; ogImage?: ConstructiveInternalTypeImage | null; - ogImageUpload?: File | null; robots?: string | null; robotsSeededFrom?: Record | null; siteId?: string | null; @@ -13768,22 +13881,6 @@ export interface DeleteSpatialRelationInput { clientMutationId?: string; id: string; } -export interface CreateSqlActionInput { - clientMutationId?: string; - sqlAction: { - actionId: string; - actionName?: string; - actorId: string; - content?: string; - databaseId: string; - deploy?: string; - deps?: string[]; - name?: string; - payload?: Record; - revert?: string; - verify?: string; - }; -} export interface SqlActionPatch { actionId?: string | null; actionName?: string | null; @@ -15627,8 +15724,6 @@ export interface ApiInput { createdAt?: string; /** Database that owns this resource (database-scoped isolation) */ databaseId: string; - /** Database this API surface serves */ - dbname?: string; id?: string; /** Whether other scopes may see and route to this API surface */ isPublished?: boolean; @@ -15663,8 +15758,6 @@ export interface ApiSettingInput { enableBulk?: boolean; /** Override: enable connection filter (NULL = inherit from database_settings) */ enableConnectionFilter?: boolean; - /** Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) */ - enableDirectUploads?: boolean; /** Override: enable internationalization plugin (NULL = inherit from database_settings) */ enableI18N?: boolean; /** Override: enable GraphQL schema introspection queries (NULL = inherit from database_settings) */ @@ -15780,8 +15873,6 @@ export interface DatabaseSettingInput { enableBulk?: boolean; /** Enable connection filter (where argument) in the GraphQL API */ enableConnectionFilter?: boolean; - /** Enable direct (multipart) file upload mutations in the GraphQL API */ - enableDirectUploads?: boolean; /** Enable internationalization plugin (localeStrings field, translation table discovery) in the GraphQL API */ enableI18N?: boolean; /** Enable GraphQL schema introspection queries in the GraphQL API. A tenant may only ever lower a bound, so the stored default is the permissive end: turning introspection off is the opt-in. */ @@ -16319,8 +16410,6 @@ export interface PlatformApiInput { /** Module-specific configuration for this API surface */ config?: Record; createdAt?: string; - /** Database this API surface serves */ - dbname?: string; id?: string; /** Whether other scopes may see and route to this API surface */ isPublished?: boolean; @@ -16351,8 +16440,6 @@ export interface PlatformApiSettingInput { enableBulk?: boolean; /** Override: enable connection filter (NULL = inherit from database_settings) */ enableConnectionFilter?: boolean; - /** Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) */ - enableDirectUploads?: boolean; /** Override: enable internationalization plugin (NULL = inherit from database_settings) */ enableI18N?: boolean; /** Override: enable GraphQL schema introspection queries (NULL = inherit from database_settings) */ @@ -16599,6 +16686,20 @@ export interface PlatformPageInput { /** Timestamp of last modification */ updatedAt?: string; } +/** An input for mutations affecting `PlatformReservedSubdomain` */ +export interface PlatformReservedSubdomainInput { + createdAt?: string; + createdByPrincipal?: string; + id?: string; + /** Lowercase subdomain label, or the label prefix/suffix the match names */ + label: string; + /** How the label matches a claimed label: exact, prefix or suffix */ + match?: string; + /** Why the label is reserved (free text, e.g. platform, brand, lookalike) */ + reason?: string; + updatedAt?: string; + updatedByPrincipal?: string; +} /** An input for mutations affecting `PlatformSiteAppLink` */ export interface PlatformSiteAppLinkInput { /** App-owned store identity this association serves (app_store_identities row in this scope's app plane; the association carries no store facts of its own) */ @@ -19675,8 +19776,6 @@ export interface ApiFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `dbname` field. */ - dbname?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isPublished` field. */ @@ -20445,8 +20544,6 @@ export interface PlatformApiFilter { config?: JSONFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `dbname` field. */ - dbname?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isPublished` field. */ @@ -20706,8 +20803,6 @@ export interface ApiSettingFilter { enableBulk?: BooleanFilter; /** Filter by the object’s `enableConnectionFilter` field. */ enableConnectionFilter?: BooleanFilter; - /** Filter by the object’s `enableDirectUploads` field. */ - enableDirectUploads?: BooleanFilter; /** Filter by the object’s `enableI18N` field. */ enableI18N?: BooleanFilter; /** Filter by the object’s `enableIntrospection` field. */ @@ -20874,8 +20969,6 @@ export interface PlatformApiSettingFilter { enableBulk?: BooleanFilter; /** Filter by the object’s `enableConnectionFilter` field. */ enableConnectionFilter?: BooleanFilter; - /** Filter by the object’s `enableDirectUploads` field. */ - enableDirectUploads?: BooleanFilter; /** Filter by the object’s `enableI18N` field. */ enableI18N?: BooleanFilter; /** Filter by the object’s `enableIntrospection` field. */ @@ -21069,44 +21162,6 @@ export interface BigIntFilter { notIn?: string[]; } // ============ Payload/Return Types (for custom operations) ============ -export interface ResolveRouteRecord { - domainId?: string | null; - hostname?: string | null; - matchedPath?: string | null; - matchedWildcard?: boolean | null; - method?: string | null; - priority?: number | null; - resolvedConfig?: Record | null; - routeBindingId?: string | null; - servingLane?: string | null; - targetCatalogId?: string | null; - targetModule?: string | null; - targetOwnerKey?: string | null; - targetOwnerScope?: string | null; - targetSourceId?: string | null; - tlsSecretName?: string | null; - tlsStatus?: string | null; - verificationStatus?: string | null; -} -export type ResolveRouteRecordSelect = { - domainId?: boolean; - hostname?: boolean; - matchedPath?: boolean; - matchedWildcard?: boolean; - method?: boolean; - priority?: boolean; - resolvedConfig?: boolean; - routeBindingId?: boolean; - servingLane?: boolean; - targetCatalogId?: boolean; - targetModule?: boolean; - targetOwnerKey?: boolean; - targetOwnerScope?: boolean; - targetSourceId?: boolean; - tlsSecretName?: boolean; - tlsStatus?: boolean; - verificationStatus?: boolean; -}; export interface AcceptDatabaseTransferPayload { clientMutationId?: string | null; result?: boolean | null; @@ -23421,6 +23476,51 @@ export type DeletePlatformPagePayloadSelect = { select: PlatformPageEdgeSelect; }; }; +export interface CreatePlatformReservedSubdomainPayload { + clientMutationId?: string | null; + /** The `PlatformReservedSubdomain` that was created by this mutation. */ + platformReservedSubdomain?: PlatformReservedSubdomain | null; + platformReservedSubdomainEdge?: PlatformReservedSubdomainEdge | null; +} +export type CreatePlatformReservedSubdomainPayloadSelect = { + clientMutationId?: boolean; + platformReservedSubdomain?: { + select: PlatformReservedSubdomainSelect; + }; + platformReservedSubdomainEdge?: { + select: PlatformReservedSubdomainEdgeSelect; + }; +}; +export interface UpdatePlatformReservedSubdomainPayload { + clientMutationId?: string | null; + /** The `PlatformReservedSubdomain` that was updated by this mutation. */ + platformReservedSubdomain?: PlatformReservedSubdomain | null; + platformReservedSubdomainEdge?: PlatformReservedSubdomainEdge | null; +} +export type UpdatePlatformReservedSubdomainPayloadSelect = { + clientMutationId?: boolean; + platformReservedSubdomain?: { + select: PlatformReservedSubdomainSelect; + }; + platformReservedSubdomainEdge?: { + select: PlatformReservedSubdomainEdgeSelect; + }; +}; +export interface DeletePlatformReservedSubdomainPayload { + clientMutationId?: string | null; + /** The `PlatformReservedSubdomain` that was deleted by this mutation. */ + platformReservedSubdomain?: PlatformReservedSubdomain | null; + platformReservedSubdomainEdge?: PlatformReservedSubdomainEdge | null; +} +export type DeletePlatformReservedSubdomainPayloadSelect = { + clientMutationId?: boolean; + platformReservedSubdomain?: { + select: PlatformReservedSubdomainSelect; + }; + platformReservedSubdomainEdge?: { + select: PlatformReservedSubdomainEdgeSelect; + }; +}; export interface CreatePlatformSiteAppLinkPayload { clientMutationId?: string | null; /** The `PlatformSiteAppLink` that was created by this mutation. */ @@ -25221,6 +25321,25 @@ export type DeleteWebauthnSettingPayloadSelect = { select: WebauthnSettingEdgeSelect; }; }; +/** One version rendered beside a file, with a URL to fetch it. */ +export interface FileVersion { + format?: string | null; + height?: number | null; + key: string; + name?: string | null; + size?: number | null; + url: string; + width?: number | null; +} +export type FileVersionSelect = { + format?: boolean; + height?: boolean; + key?: boolean; + name?: boolean; + size?: boolean; + url?: boolean; + width?: boolean; +}; /** A `Function` edge in the connection. */ export interface FunctionEdge { cursor?: string | null; @@ -25929,6 +26048,18 @@ export type PlatformPageEdgeSelect = { select: PlatformPageSelect; }; }; +/** A `PlatformReservedSubdomain` edge in the connection. */ +export interface PlatformReservedSubdomainEdge { + cursor?: string | null; + /** The `PlatformReservedSubdomain` at the end of the edge. */ + node?: PlatformReservedSubdomain | null; +} +export type PlatformReservedSubdomainEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformReservedSubdomainSelect; + }; +}; /** A `PlatformSiteAppLink` edge in the connection. */ export interface PlatformSiteAppLinkEdge { cursor?: string | null; diff --git a/sdk/constructive-cli/src/api/orm/models/astMigration.ts b/sdk/constructive-cli/src/api/orm/models/astMigration.ts index bfcc5f455a..ca429d54b2 100644 --- a/sdk/constructive-cli/src/api/orm/models/astMigration.ts +++ b/sdk/constructive-cli/src/api/orm/models/astMigration.ts @@ -29,7 +29,6 @@ import type { AstMigrationSelect, AstMigrationFilter, AstMigrationOrderBy, - CreateAstMigrationInput, UpdateAstMigrationInput, AstMigrationPatch, } from '../input-types'; @@ -144,31 +143,4 @@ export class AstMigrationModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAstMigration: { - astMigration: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AstMigration', - 'createAstMigration', - 'astMigration', - args.select, - args.data, - 'CreateAstMigrationInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AstMigration', - fieldName: 'createAstMigration', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/api/orm/models/getSitePreviewsRecord.ts b/sdk/constructive-cli/src/api/orm/models/getSitePreviewsRecord.ts index dc2c778221..9c58fd8f10 100644 --- a/sdk/constructive-cli/src/api/orm/models/getSitePreviewsRecord.ts +++ b/sdk/constructive-cli/src/api/orm/models/getSitePreviewsRecord.ts @@ -29,7 +29,6 @@ import type { GetSitePreviewsRecordSelect, GetSitePreviewsRecordFilter, GetSitePreviewsRecordsOrderBy, - CreateGetSitePreviewsRecordInput, UpdateGetSitePreviewsRecordInput, GetSitePreviewsRecordPatch, } from '../input-types'; @@ -104,31 +103,4 @@ export class GetSitePreviewsRecordModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createGetSitePreviewsRecord: { - getSitePreviewsRecord: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'GetSitePreviewsRecord', - 'createGetSitePreviewsRecord', - 'getSitePreviewsRecord', - args.select, - args.data, - 'CreateGetSitePreviewsRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'GetSitePreviewsRecord', - fieldName: 'createGetSitePreviewsRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/api/orm/models/index.ts b/sdk/constructive-cli/src/api/orm/models/index.ts index 207f507c84..3cd2ba5b52 100644 --- a/sdk/constructive-cli/src/api/orm/models/index.ts +++ b/sdk/constructive-cli/src/api/orm/models/index.ts @@ -52,6 +52,7 @@ export { PlatformEmailSiteIdentityModel } from './platformEmailSiteIdentity'; export { PlatformGetSitePreviewsRecordModel } from './platformGetSitePreviewsRecord'; export { PlatformManagedDomainModel } from './platformManagedDomain'; export { PlatformPageModel } from './platformPage'; +export { PlatformReservedSubdomainModel } from './platformReservedSubdomain'; export { PlatformSiteAppLinkModel } from './platformSiteAppLink'; export { PlatformSiteModel } from './platformSite'; export { PlatformSiteDeepLinkModel } from './platformSiteDeepLink'; diff --git a/sdk/constructive-cli/src/api/orm/models/listSuspendedDatabasesRecord.ts b/sdk/constructive-cli/src/api/orm/models/listSuspendedDatabasesRecord.ts index d479aad622..49858b365a 100644 --- a/sdk/constructive-cli/src/api/orm/models/listSuspendedDatabasesRecord.ts +++ b/sdk/constructive-cli/src/api/orm/models/listSuspendedDatabasesRecord.ts @@ -29,7 +29,6 @@ import type { ListSuspendedDatabasesRecordSelect, ListSuspendedDatabasesRecordFilter, ListSuspendedDatabasesRecordsOrderBy, - CreateListSuspendedDatabasesRecordInput, UpdateListSuspendedDatabasesRecordInput, ListSuspendedDatabasesRecordPatch, } from '../input-types'; @@ -160,31 +159,4 @@ export class ListSuspendedDatabasesRecordModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createListSuspendedDatabasesRecord: { - listSuspendedDatabasesRecord: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'ListSuspendedDatabasesRecord', - 'createListSuspendedDatabasesRecord', - 'listSuspendedDatabasesRecord', - args.select, - args.data, - 'CreateListSuspendedDatabasesRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'ListSuspendedDatabasesRecord', - fieldName: 'createListSuspendedDatabasesRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/api/orm/models/platformGetSitePreviewsRecord.ts b/sdk/constructive-cli/src/api/orm/models/platformGetSitePreviewsRecord.ts index b2282eaa16..e037d0890f 100644 --- a/sdk/constructive-cli/src/api/orm/models/platformGetSitePreviewsRecord.ts +++ b/sdk/constructive-cli/src/api/orm/models/platformGetSitePreviewsRecord.ts @@ -29,7 +29,6 @@ import type { PlatformGetSitePreviewsRecordSelect, PlatformGetSitePreviewsRecordFilter, PlatformGetSitePreviewsRecordsOrderBy, - CreatePlatformGetSitePreviewsRecordInput, UpdatePlatformGetSitePreviewsRecordInput, PlatformGetSitePreviewsRecordPatch, } from '../input-types'; @@ -117,37 +116,4 @@ export class PlatformGetSitePreviewsRecordModel { }), }); } - create( - args: CreateArgs< - S, - CreatePlatformGetSitePreviewsRecordInput['platformGetSitePreviewsRecord'] - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformGetSitePreviewsRecord: { - platformGetSitePreviewsRecord: InferSelectResult< - PlatformGetSitePreviewsRecordWithRelations, - S - >; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformGetSitePreviewsRecord', - 'createPlatformGetSitePreviewsRecord', - 'platformGetSitePreviewsRecord', - args.select, - args.data, - 'CreatePlatformGetSitePreviewsRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformGetSitePreviewsRecord', - fieldName: 'createPlatformGetSitePreviewsRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/api/orm/models/platformReservedSubdomain.ts b/sdk/constructive-cli/src/api/orm/models/platformReservedSubdomain.ts new file mode 100644 index 0000000000..ab3f3b97e5 --- /dev/null +++ b/sdk/constructive-cli/src/api/orm/models/platformReservedSubdomain.ts @@ -0,0 +1,247 @@ +/** + * PlatformReservedSubdomain model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + PlatformReservedSubdomain, + PlatformReservedSubdomainWithRelations, + PlatformReservedSubdomainSelect, + PlatformReservedSubdomainFilter, + PlatformReservedSubdomainOrderBy, + CreatePlatformReservedSubdomainInput, + UpdatePlatformReservedSubdomainInput, + PlatformReservedSubdomainPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformReservedSubdomainModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformReservedSubdomains: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformReservedSubdomain', + 'platformReservedSubdomains', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'PlatformReservedSubdomainFilter', + 'PlatformReservedSubdomainOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformReservedSubdomain', + fieldName: 'platformReservedSubdomains', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformReservedSubdomain: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformReservedSubdomain', + 'platformReservedSubdomains', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformReservedSubdomainFilter', + 'PlatformReservedSubdomainOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformReservedSubdomain', + fieldName: 'platformReservedSubdomain', + document, + variables, + transform: (data: { + platformReservedSubdomains?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformReservedSubdomain: data.platformReservedSubdomains?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformReservedSubdomain: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformReservedSubdomain', + 'platformReservedSubdomains', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformReservedSubdomainFilter', + 'PlatformReservedSubdomainOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformReservedSubdomain', + fieldName: 'platformReservedSubdomain', + document, + variables, + transform: (data: { + platformReservedSubdomains?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformReservedSubdomain: data.platformReservedSubdomains?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformReservedSubdomain: { + platformReservedSubdomain: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformReservedSubdomain', + 'createPlatformReservedSubdomain', + 'platformReservedSubdomain', + args.select, + args.data, + 'CreatePlatformReservedSubdomainInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformReservedSubdomain', + fieldName: 'createPlatformReservedSubdomain', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformReservedSubdomainPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformReservedSubdomain: { + platformReservedSubdomain: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformReservedSubdomain', + 'updatePlatformReservedSubdomain', + 'platformReservedSubdomain', + args.select, + args.where.id, + args.data, + 'UpdatePlatformReservedSubdomainInput', + 'id', + 'platformReservedSubdomainPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformReservedSubdomain', + fieldName: 'updatePlatformReservedSubdomain', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformReservedSubdomain: { + platformReservedSubdomain: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformReservedSubdomain', + 'deletePlatformReservedSubdomain', + 'platformReservedSubdomain', + { + id: args.where.id, + }, + 'DeletePlatformReservedSubdomainInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformReservedSubdomain', + fieldName: 'deletePlatformReservedSubdomain', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/api/orm/models/sqlAction.ts b/sdk/constructive-cli/src/api/orm/models/sqlAction.ts index 74b4418688..d9b77d8c06 100644 --- a/sdk/constructive-cli/src/api/orm/models/sqlAction.ts +++ b/sdk/constructive-cli/src/api/orm/models/sqlAction.ts @@ -29,7 +29,6 @@ import type { SqlActionSelect, SqlActionFilter, SqlActionOrderBy, - CreateSqlActionInput, UpdateSqlActionInput, SqlActionPatch, } from '../input-types'; @@ -144,31 +143,4 @@ export class SqlActionModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createSqlAction: { - sqlAction: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'SqlAction', - 'createSqlAction', - 'sqlAction', - args.select, - args.data, - 'CreateSqlActionInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'SqlAction', - fieldName: 'createSqlAction', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/api/orm/query-builder.ts b/sdk/constructive-cli/src/api/orm/query-builder.ts index fd785bbae6..d6c981907f 100644 --- a/sdk/constructive-cli/src/api/orm/query-builder.ts +++ b/sdk/constructive-cli/src/api/orm/query-builder.ts @@ -140,9 +140,7 @@ export function buildSelections( ); const nestedSelect = nested.select; if (nestedSelect && typeof nestedSelect === 'object') { - const subSelections = Object.entries(nestedSelect) - .filter(([, v]) => v) - .map(([name]) => t.field({ name })); + const subSelections = buildSelections(nestedSelect, connectionFieldsMap); fields.push( t.field({ name: key, diff --git a/sdk/constructive-cli/src/api/orm/query/index.ts b/sdk/constructive-cli/src/api/orm/query/index.ts index 12ea7b4e72..cfae605185 100644 --- a/sdk/constructive-cli/src/api/orm/query/index.ts +++ b/sdk/constructive-cli/src/api/orm/query/index.ts @@ -6,11 +6,7 @@ import { OrmClient } from '../client'; import { QueryBuilder, buildCustomDocument } from '../query-builder'; import type { InferSelectResult, StrictSelect } from '../select-types'; -import type { ResolveRouteRecord, ResolveRouteRecordSelect } from '../input-types'; import { connectionFieldsMap } from '../input-types'; -export interface ApiSchemaNamesVariables { - targetApiId?: string; -} export interface ApplyRegistryDefaultsVariables { data?: unknown; nodeType?: string; @@ -50,18 +46,6 @@ export interface PlatformVerifySitePreviewTokenVariables { siteId?: string; token?: string; } -export interface ResolveDeepLinkVariables { - linkSlug?: string; - targetSiteId?: string; -} -export interface ResolveRouteVariables { - requestHost?: string; - requestMethod?: string; - requestPath?: string; -} -export interface ResolveSiteAppLinksVariables { - targetSiteId?: string; -} export interface SitesDeepLinkUrlVariables { linkSlug?: string; targetSiteId?: string; @@ -75,35 +59,6 @@ export interface VerifySitePreviewTokenVariables { } export function createQueryOperations(client: OrmClient) { return { - apiSchemaNames: ( - args: ApiSchemaNamesVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - apiSchemaNames: unknown | null; - }>({ - client, - operation: 'query', - operationName: 'ApiSchemaNames', - fieldName: 'apiSchemaNames', - ...buildCustomDocument( - 'query', - 'ApiSchemaNames', - 'apiSchemaNames', - options?.select, - args, - [ - { - name: 'targetApiId', - type: 'UUID', - }, - ], - connectionFieldsMap, - undefined - ), - }), applyRegistryDefaults: ( args: ApplyRegistryDefaultsVariables, options?: { @@ -449,105 +404,6 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), - resolveDeepLink: ( - args: ResolveDeepLinkVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - resolveDeepLink: unknown | null; - }>({ - client, - operation: 'query', - operationName: 'ResolveDeepLink', - fieldName: 'resolveDeepLink', - ...buildCustomDocument( - 'query', - 'ResolveDeepLink', - 'resolveDeepLink', - options?.select, - args, - [ - { - name: 'linkSlug', - type: 'String', - }, - { - name: 'targetSiteId', - type: 'UUID', - }, - ], - connectionFieldsMap, - undefined - ), - }), - resolveRoute: ( - args: ResolveRouteVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - resolveRoute: InferSelectResult | null; - }>({ - client, - operation: 'query', - operationName: 'ResolveRoute', - fieldName: 'resolveRoute', - ...buildCustomDocument( - 'query', - 'ResolveRoute', - 'resolveRoute', - options.select, - args, - [ - { - name: 'requestHost', - type: 'String', - }, - { - name: 'requestMethod', - type: 'String', - }, - { - name: 'requestPath', - type: 'String', - }, - ], - connectionFieldsMap, - 'ResolveRouteRecord' - ), - }), - resolveSiteAppLinks: ( - args: ResolveSiteAppLinksVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - resolveSiteAppLinks: unknown | null; - }>({ - client, - operation: 'query', - operationName: 'ResolveSiteAppLinks', - fieldName: 'resolveSiteAppLinks', - ...buildCustomDocument( - 'query', - 'ResolveSiteAppLinks', - 'resolveSiteAppLinks', - options?.select, - args, - [ - { - name: 'targetSiteId', - type: 'UUID', - }, - ], - connectionFieldsMap, - undefined - ), - }), sitesDeepLinkUrl: ( args: SitesDeepLinkUrlVariables, options?: { diff --git a/sdk/constructive-cli/src/api/orm/select-types.ts b/sdk/constructive-cli/src/api/orm/select-types.ts index 4b39d7e820..783c4603df 100644 --- a/sdk/constructive-cli/src/api/orm/select-types.ts +++ b/sdk/constructive-cli/src/api/orm/select-types.ts @@ -159,9 +159,13 @@ export type InferSelectResult = TSelect extends undefined ? K extends keyof TEntity ? NonNullable extends ConnectionResult ? ConnectionResult> - : - | InferSelectResult, NestedSelect> - | (null extends TEntity[K] ? null : never) + : NonNullable extends readonly (infer Item)[] + ? + | InferSelectResult, NestedSelect>[] + | (null extends TEntity[K] ? null : never) + : + | InferSelectResult, NestedSelect> + | (null extends TEntity[K] ? null : never) : never : K extends keyof TEntity ? TEntity[K] diff --git a/sdk/constructive-cli/src/auth/README.md b/sdk/constructive-cli/src/auth/README.md index 111ed4bd64..a93e03cf0c 100644 --- a/sdk/constructive-cli/src/auth/README.md +++ b/sdk/constructive-cli/src/auth/README.md @@ -9,8 +9,8 @@ ## Overview - **Tables:** 15 -- **Custom queries:** 6 -- **Custom mutations:** 55 +- **Custom queries:** 7 +- **Custom mutations:** 59 **Generators:** ORM, CLI diff --git a/sdk/constructive-cli/src/auth/cli/README.md b/sdk/constructive-cli/src/auth/cli/README.md index 0faf72f418..d1f67dd631 100644 --- a/sdk/constructive-cli/src/auth/cli/README.md +++ b/sdk/constructive-cli/src/auth/cli/README.md @@ -47,15 +47,17 @@ csdk auth set-token | `current-user-id` | currentUserId | | `get-mfa-status` | getMfaStatus | | `require-step-up` | requireStepUp | +| `sign-in-options` | signInOptions | | `approve-device` | approveDevice | | `check-password` | checkPassword | | `complete-mfa-challenge` | completeMfaChallenge | | `confirm-delete-account` | confirmDeleteAccount | | `confirm-totp-setup` | confirmTotpSetup | -| `create-api-key` | createApiKey | +| `create-api-key` | Mint an API key for the current user; the plaintext key is returned once. access_level: full_access (default) or read_only. mfa_level: none (default) or verified; verified needs a fresh MFA proof on the calling session. A key minted while authenticated by another API key never outlives that key. | | `create-child-principal` | createChildPrincipal | | `create-org-api-key` | createOrgApiKey | | `create-org-principal` | createOrgPrincipal | +| `create-principal` | createPrincipal | | `create-principal-from-preset` | createPrincipalFromPreset | | `delete-org-principal` | deleteOrgPrincipal | | `delete-principal` | deletePrincipal | @@ -66,6 +68,8 @@ csdk auth set-token | `enable-email-mfa` | enableEmailMfa | | `enable-sms-mfa` | enableSmsMfa | | `enable-totp` | enableTotp | +| `ensure-auth-csrf` | ensureAuthCsrf | +| `exchange-native-handoff` | exchangeNativeHandoff | | `extend-token-expires` | extendTokenExpires | | `forgot-password` | forgotPassword | | `generate-backup-codes` | generateBackupCodes | @@ -79,6 +83,7 @@ idempotent for an already-reconciled bucket; failures become GraphQL errors. | | `refresh-access-token` | refreshAccessToken | | `request-cross-origin-token` | requestCrossOriginToken | +| `request-device-approval` | requestDeviceApproval | | `request-magic-link` | requestMagicLink | | `reset-password` | resetPassword | | `revoke-api-key` | revokeApiKey | @@ -246,7 +251,6 @@ CRUD operations for IdentityProvider records. | `list` | List all identityProvider records | | `find-first` | Find first matching identityProvider record | | `get` | Get a identityProvider by id | -| `create` | Create a new identityProvider | | `update` | Update an existing identityProvider | | `delete` | Delete a identityProvider | @@ -270,7 +274,6 @@ CRUD operations for OrgApiKeyList records. | `list` | List all orgApiKeyList records | | `find-first` | Find first matching orgApiKeyList record | | `get` | Get a orgApiKeyList by id | -| `create` | Create a new orgApiKeyList | | `update` | Update an existing orgApiKeyList | | `delete` | Delete a orgApiKeyList | @@ -332,7 +335,6 @@ CRUD operations for Principal records. | `list` | List all principal records | | `find-first` | Find first matching principal record | | `get` | Get a principal by principalId | -| `create` | Create a new principal | | `update` | Update an existing principal | | `delete` | Delete a principal | @@ -366,7 +368,6 @@ CRUD operations for PrincipalEntity records. | `list` | List all principalEntity records | | `find-first` | Find first matching principalEntity record | | `get` | Get a principalEntity by id | -| `create` | Create a new principalEntity | | `update` | Update an existing principalEntity | | `delete` | Delete a principalEntity | @@ -392,7 +393,6 @@ CRUD operations for PrincipalScopeOverride records. | `list` | List all principalScopeOverride records | | `find-first` | Find first matching principalScopeOverride record | | `get` | Get a principalScopeOverride by id | -| `create` | Create a new principalScopeOverride | | `update` | Update an existing principalScopeOverride | | `delete` | Delete a principalScopeOverride | @@ -443,7 +443,6 @@ CRUD operations for UserConnectedAccount records. | `list` | List all userConnectedAccount records | | `find-first` | Find first matching userConnectedAccount record | | `get` | Get a userConnectedAccount by id | -| `create` | Create a new userConnectedAccount | | `update` | Update an existing userConnectedAccount | | `delete` | Delete a userConnectedAccount | @@ -485,6 +484,8 @@ CRUD operations for User records. | `displayNameTrgmSimilarity` | Float | | `id` | UUID | | `profilePicture` | Image | +| `profilePictureUrl` | String | +| `profilePictureVersions` | FileVersion | | `searchScore` | Float | | `searchTsv` | FullText | | `searchTsvRank` | Float | @@ -493,30 +494,30 @@ CRUD operations for User records. | `username` | String | **Optional create fields (backend defaults):** `displayName`, `profilePicture`, `type`, `username` -> **Unified Search API fields:** `displayNameTrgmSimilarity`, `searchScore`, `searchTsv` +> **Unified Search API fields:** `displayNameTrgmSimilarity`, `searchScore`, `searchTsv`, `searchTsvRank` > Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. **Search Examples:** *Fuzzy search via trigram similarity (`trgmDisplayName`):* ```bash -csdk user list --where.trgmDisplayName.value "approximate query" --where.trgmDisplayName.threshold 0.3 --select title,displayNameTrgmSimilarity +csdk user list --where.trgmDisplayName.value "approximate query" --where.trgmDisplayName.threshold 0.3 --select displayName,displayNameTrgmSimilarity ``` *Full-text search via tsvector (`searchTsv`):* ```bash -csdk user list --where.searchTsv "search query" --select title,tsvRank +csdk user list --where.searchTsv "search query" --select displayName,searchTsvRank ``` *Composite search (unifiedSearch dispatches to all text adapters):* ```bash -csdk user list --where.unifiedSearch "search query" --select title,displayNameTrgmSimilarity,searchScore,tsvRank +csdk user list --where.unifiedSearch "search query" --select displayName,displayNameTrgmSimilarity,searchScore,searchTsvRank ``` *Search with pagination and field projection:* ```bash -csdk user list --where.unifiedSearch "query" --limit 10 --select id,title,searchScore -csdk user search "query" --limit 10 --select id,title,searchScore +csdk user list --where.unifiedSearch "query" --limit 10 --select id,displayName,searchScore +csdk user search "query" --limit 10 --select id,displayName,searchScore ``` @@ -657,6 +658,13 @@ requireStepUp |----------|------| | `--stepUpType` | String | +### `sign-in-options` + +signInOptions + +- **Type:** query +- **Arguments:** none + ### `approve-device` approveDevice @@ -727,7 +735,7 @@ confirmTotpSetup ### `create-api-key` -createApiKey +Mint an API key for the current user; the plaintext key is returned once. access_level: full_access (default) or read_only. mfa_level: none (default) or verified; verified needs a fresh MFA proof on the calling session. A key minted while authenticated by another API key never outlives that key. - **Type:** mutation - **Arguments:** @@ -792,6 +800,22 @@ createOrgPrincipal | `--input.orgId` | UUID | | `--input.useAdminOwner` | Boolean | +### `create-principal` + +createPrincipal + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.bypassStepUp` | Boolean | + | `--input.clientMutationId` | String | + | `--input.entityIds` | UUID | + | `--input.isReadOnly` | Boolean | + | `--input.name` | String | + | `--input.useAdminOwner` | Boolean | + ### `create-principal-from-preset` createPrincipalFromPreset @@ -910,6 +934,32 @@ enableTotp |----------|------| | `--input.clientMutationId` | String | +### `ensure-auth-csrf` + +ensureAuthCsrf + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.existingToken` | String | + +### `exchange-native-handoff` + +exchangeNativeHandoff + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.code` | String | + | `--input.codeVerifier` | String | + | `--input.credentialKind` | String | + ### `extend-token-expires` extendTokenExpires @@ -955,7 +1005,7 @@ linkIdentity | Argument | Type | |----------|------| | `--input.clientMutationId` | String | - | `--input.ticket` | String (required) | + | `--input.ticket` | String | ### `mint-access-token` @@ -1015,6 +1065,20 @@ requestCrossOriginToken | `--input.password` | String | | `--input.rememberMe` | Boolean | +### `request-device-approval` + +requestDeviceApproval + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.deviceToken` | String | + | `--input.next` | String | + | `--input.userId` | UUID | + ### `request-magic-link` requestMagicLink @@ -1025,7 +1089,9 @@ requestMagicLink | Argument | Type | |----------|------| | `--input.clientMutationId` | String | + | `--input.codeChallenge` | String | | `--input.email` | String | + | `--input.nativeRedirectUri` | String | | `--input.next` | String | ### `reset-password` @@ -1164,6 +1230,7 @@ setPassword | `--input.clientMutationId` | String | | `--input.currentPassword` | String | | `--input.newPassword` | String | + | `--input.signOutOtherSessions` | Boolean | ### `set-principal-entities` @@ -1343,6 +1410,7 @@ verifyEmail |----------|------| | `--input.clientMutationId` | String | | `--input.emailId` | UUID | + | `--input.password` | String | | `--input.token` | String | ### `verify-password` diff --git a/sdk/constructive-cli/src/auth/cli/commands.ts b/sdk/constructive-cli/src/auth/cli/commands.ts index 15a3a321e7..dd5b6c3886 100644 --- a/sdk/constructive-cli/src/auth/cli/commands.ts +++ b/sdk/constructive-cli/src/auth/cli/commands.ts @@ -27,6 +27,7 @@ import currentUserAgentCmd from './commands/current-user-agent'; import currentUserIdCmd from './commands/current-user-id'; import getMfaStatusCmd from './commands/get-mfa-status'; import requireStepUpCmd from './commands/require-step-up'; +import signInOptionsCmd from './commands/sign-in-options'; import approveDeviceCmd from './commands/approve-device'; import checkPasswordCmd from './commands/check-password'; import completeMfaChallengeCmd from './commands/complete-mfa-challenge'; @@ -36,6 +37,7 @@ import createApiKeyCmd from './commands/create-api-key'; import createChildPrincipalCmd from './commands/create-child-principal'; import createOrgApiKeyCmd from './commands/create-org-api-key'; import createOrgPrincipalCmd from './commands/create-org-principal'; +import createPrincipalCmd from './commands/create-principal'; import createPrincipalFromPresetCmd from './commands/create-principal-from-preset'; import deleteOrgPrincipalCmd from './commands/delete-org-principal'; import deletePrincipalCmd from './commands/delete-principal'; @@ -46,6 +48,8 @@ import disconnectAccountCmd from './commands/disconnect-account'; import enableEmailMfaCmd from './commands/enable-email-mfa'; import enableSmsMfaCmd from './commands/enable-sms-mfa'; import enableTotpCmd from './commands/enable-totp'; +import ensureAuthCsrfCmd from './commands/ensure-auth-csrf'; +import exchangeNativeHandoffCmd from './commands/exchange-native-handoff'; import extendTokenExpiresCmd from './commands/extend-token-expires'; import forgotPasswordCmd from './commands/forgot-password'; import generateBackupCodesCmd from './commands/generate-backup-codes'; @@ -54,6 +58,7 @@ import mintAccessTokenCmd from './commands/mint-access-token'; import provisionBucketCmd from './commands/provision-bucket'; import refreshAccessTokenCmd from './commands/refresh-access-token'; import requestCrossOriginTokenCmd from './commands/request-cross-origin-token'; +import requestDeviceApprovalCmd from './commands/request-device-approval'; import requestMagicLinkCmd from './commands/request-magic-link'; import resetPasswordCmd from './commands/reset-password'; import revokeApiKeyCmd from './commands/revoke-api-key'; @@ -113,6 +118,7 @@ const createCommandMap: () => Record< 'current-user-id': currentUserIdCmd, 'get-mfa-status': getMfaStatusCmd, 'require-step-up': requireStepUpCmd, + 'sign-in-options': signInOptionsCmd, 'approve-device': approveDeviceCmd, 'check-password': checkPasswordCmd, 'complete-mfa-challenge': completeMfaChallengeCmd, @@ -122,6 +128,7 @@ const createCommandMap: () => Record< 'create-child-principal': createChildPrincipalCmd, 'create-org-api-key': createOrgApiKeyCmd, 'create-org-principal': createOrgPrincipalCmd, + 'create-principal': createPrincipalCmd, 'create-principal-from-preset': createPrincipalFromPresetCmd, 'delete-org-principal': deleteOrgPrincipalCmd, 'delete-principal': deletePrincipalCmd, @@ -132,6 +139,8 @@ const createCommandMap: () => Record< 'enable-email-mfa': enableEmailMfaCmd, 'enable-sms-mfa': enableSmsMfaCmd, 'enable-totp': enableTotpCmd, + 'ensure-auth-csrf': ensureAuthCsrfCmd, + 'exchange-native-handoff': exchangeNativeHandoffCmd, 'extend-token-expires': extendTokenExpiresCmd, 'forgot-password': forgotPasswordCmd, 'generate-backup-codes': generateBackupCodesCmd, @@ -140,6 +149,7 @@ const createCommandMap: () => Record< 'provision-bucket': provisionBucketCmd, 'refresh-access-token': refreshAccessTokenCmd, 'request-cross-origin-token': requestCrossOriginTokenCmd, + 'request-device-approval': requestDeviceApprovalCmd, 'request-magic-link': requestMagicLinkCmd, 'reset-password': resetPasswordCmd, 'revoke-api-key': revokeApiKeyCmd, @@ -170,7 +180,7 @@ const createCommandMap: () => Record< 'verify-totp': verifyTotpCmd, }); const usage = - "\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n audit-log-auth auditLogAuth CRUD operations\n crypto-address cryptoAddress CRUD operations\n email email CRUD operations\n identity-provider identityProvider CRUD operations\n org-api-key-list orgApiKeyList CRUD operations\n phone-number phoneNumber CRUD operations\n principal principal CRUD operations\n principal-entity principalEntity CRUD operations\n principal-scope-override principalScopeOverride CRUD operations\n role-type roleType CRUD operations\n user-connected-account userConnectedAccount CRUD operations\n user user CRUD operations\n user-setting userSetting CRUD operations\n user-settings-security userSettingsSecurity CRUD operations\n webauthn-credential webauthnCredential CRUD operations\n current-ip-address currentIpAddress\n current-user currentUser\n current-user-agent currentUserAgent\n current-user-id currentUserId\n get-mfa-status getMfaStatus\n require-step-up requireStepUp\n approve-device approveDevice\n check-password checkPassword\n complete-mfa-challenge completeMfaChallenge\n confirm-delete-account confirmDeleteAccount\n confirm-totp-setup confirmTotpSetup\n create-api-key createApiKey\n create-child-principal createChildPrincipal\n create-org-api-key createOrgApiKey\n create-org-principal createOrgPrincipal\n create-principal-from-preset createPrincipalFromPreset\n delete-org-principal deleteOrgPrincipal\n delete-principal deletePrincipal\n disable-email-mfa disableEmailMfa\n disable-sms-mfa disableSmsMfa\n disable-totp disableTotp\n disconnect-account disconnectAccount\n enable-email-mfa enableEmailMfa\n enable-sms-mfa enableSmsMfa\n enable-totp enableTotp\n extend-token-expires extendTokenExpires\n forgot-password forgotPassword\n generate-backup-codes generateBackupCodes\n link-identity linkIdentity\n mint-access-token mintAccessToken\n provision-bucket Reconcile an S3 bucket for a logical bucket in the database.\nRecords the request on the bucket row via RLS; the bucket's job\ntrigger then enqueues the same storage:provision_bucket job used on\nINSERT, and repeated requests collapse into one pending job. This is\nidempotent for an already-reconciled bucket; failures become GraphQL\nerrors.\n refresh-access-token refreshAccessToken\n request-cross-origin-token requestCrossOriginToken\n request-magic-link requestMagicLink\n reset-password resetPassword\n revoke-api-key revokeApiKey\n revoke-org-api-key revokeOrgApiKey\n revoke-session revokeSession\n send-account-deletion-email sendAccountDeletionEmail\n send-mfa-challenge-code sendMfaChallengeCode\n send-phone-verification-code sendPhoneVerificationCode\n send-sms-otp sendSmsOtp\n send-step-up-code sendStepUpCode\n send-verification-email sendVerificationEmail\n set-password setPassword\n set-principal-entities setPrincipalEntities\n set-principal-scope setPrincipalScope\n sign-in signIn\n sign-in-cross-origin signInCrossOrigin\n sign-in-magic-link signInMagicLink\n sign-in-sms-otp signInSmsOtp\n sign-out signOut\n sign-up signUp\n sign-up-magic-link signUpMagicLink\n sign-up-sms signUpSms\n update-principal updatePrincipal\n verify-email verifyEmail\n verify-password verifyPassword\n verify-phone verifyPhone\n verify-step-up-code verifyStepUpCode\n verify-totp verifyTotp\n\n --help, -h Show this help message\n --version, -v Show version\n"; + "\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n audit-log-auth auditLogAuth CRUD operations\n crypto-address cryptoAddress CRUD operations\n email email CRUD operations\n identity-provider identityProvider CRUD operations\n org-api-key-list orgApiKeyList CRUD operations\n phone-number phoneNumber CRUD operations\n principal principal CRUD operations\n principal-entity principalEntity CRUD operations\n principal-scope-override principalScopeOverride CRUD operations\n role-type roleType CRUD operations\n user-connected-account userConnectedAccount CRUD operations\n user user CRUD operations\n user-setting userSetting CRUD operations\n user-settings-security userSettingsSecurity CRUD operations\n webauthn-credential webauthnCredential CRUD operations\n current-ip-address currentIpAddress\n current-user currentUser\n current-user-agent currentUserAgent\n current-user-id currentUserId\n get-mfa-status getMfaStatus\n require-step-up requireStepUp\n sign-in-options signInOptions\n approve-device approveDevice\n check-password checkPassword\n complete-mfa-challenge completeMfaChallenge\n confirm-delete-account confirmDeleteAccount\n confirm-totp-setup confirmTotpSetup\n create-api-key Mint an API key for the current user; the plaintext key is returned once. access_level: full_access (default) or read_only. mfa_level: none (default) or verified; verified needs a fresh MFA proof on the calling session. A key minted while authenticated by another API key never outlives that key.\n create-child-principal createChildPrincipal\n create-org-api-key createOrgApiKey\n create-org-principal createOrgPrincipal\n create-principal createPrincipal\n create-principal-from-preset createPrincipalFromPreset\n delete-org-principal deleteOrgPrincipal\n delete-principal deletePrincipal\n disable-email-mfa disableEmailMfa\n disable-sms-mfa disableSmsMfa\n disable-totp disableTotp\n disconnect-account disconnectAccount\n enable-email-mfa enableEmailMfa\n enable-sms-mfa enableSmsMfa\n enable-totp enableTotp\n ensure-auth-csrf ensureAuthCsrf\n exchange-native-handoff exchangeNativeHandoff\n extend-token-expires extendTokenExpires\n forgot-password forgotPassword\n generate-backup-codes generateBackupCodes\n link-identity linkIdentity\n mint-access-token mintAccessToken\n provision-bucket Reconcile an S3 bucket for a logical bucket in the database.\nRecords the request on the bucket row via RLS; the bucket's job\ntrigger then enqueues the same storage:provision_bucket job used on\nINSERT, and repeated requests collapse into one pending job. This is\nidempotent for an already-reconciled bucket; failures become GraphQL\nerrors.\n refresh-access-token refreshAccessToken\n request-cross-origin-token requestCrossOriginToken\n request-device-approval requestDeviceApproval\n request-magic-link requestMagicLink\n reset-password resetPassword\n revoke-api-key revokeApiKey\n revoke-org-api-key revokeOrgApiKey\n revoke-session revokeSession\n send-account-deletion-email sendAccountDeletionEmail\n send-mfa-challenge-code sendMfaChallengeCode\n send-phone-verification-code sendPhoneVerificationCode\n send-sms-otp sendSmsOtp\n send-step-up-code sendStepUpCode\n send-verification-email sendVerificationEmail\n set-password setPassword\n set-principal-entities setPrincipalEntities\n set-principal-scope setPrincipalScope\n sign-in signIn\n sign-in-cross-origin signInCrossOrigin\n sign-in-magic-link signInMagicLink\n sign-in-sms-otp signInSmsOtp\n sign-out signOut\n sign-up signUp\n sign-up-magic-link signUpMagicLink\n sign-up-sms signUpSms\n update-principal updatePrincipal\n verify-email verifyEmail\n verify-password verifyPassword\n verify-phone verifyPhone\n verify-step-up-code verifyStepUpCode\n verify-totp verifyTotp\n\n --help, -h Show this help message\n --version, -v Show version\n"; export const commands = async ( argv: Partial>, prompter: Inquirerer, diff --git a/sdk/constructive-cli/src/auth/cli/commands/create-api-key.ts b/sdk/constructive-cli/src/auth/cli/commands/create-api-key.ts index 672db1229b..f16a3f4d4d 100644 --- a/sdk/constructive-cli/src/auth/cli/commands/create-api-key.ts +++ b/sdk/constructive-cli/src/auth/cli/commands/create-api-key.ts @@ -15,7 +15,9 @@ export default async ( ) => { try { if (argv.help || argv.h) { - console.log('create-api-key - createApiKey\n\nUsage: create-api-key [OPTIONS]\n'); + console.log( + 'create-api-key - Mint an API key for the current user; the plaintext key is returned once. access_level: full_access (default) or read_only. mfa_level: none (default) or verified; verified needs a fresh MFA proof on the calling session. A key minted while authenticated by another API key never outlives that key.\n\nUsage: create-api-key [OPTIONS]\n' + ); process.exit(0); } const answers = await prompter.prompt(argv, [ diff --git a/sdk/constructive-cli/src/auth/cli/commands/create-principal.ts b/sdk/constructive-cli/src/auth/cli/commands/create-principal.ts new file mode 100644 index 0000000000..02e185a1e8 --- /dev/null +++ b/sdk/constructive-cli/src/auth/cli/commands/create-principal.ts @@ -0,0 +1,51 @@ +/** + * CLI command for mutation createPrincipal + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer } from 'inquirerer'; +import { getClient } from '../executor'; +import { unflattenDotNotation, buildSelectFromPaths } from '../utils'; +import type { CreatePrincipalVariables } from '../../orm/mutation'; +import type { CreatePrincipalPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log('create-principal - createPrincipal\n\nUsage: create-principal [OPTIONS]\n'); + process.exit(0); + } + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'input', + message: + 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.', + required: true, + }, + ]); + const client = getClient(); + const parsedAnswers = unflattenDotNotation(answers); + const selectFields = buildSelectFromPaths((argv.select as string) ?? 'clientMutationId'); + const result = await client.mutation + .createPrincipal( + parsedAnswers as unknown as CreatePrincipalVariables, + { + select: selectFields, + } as unknown as { + select: CreatePrincipalPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: createPrincipal'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/auth/cli/commands/ensure-auth-csrf.ts b/sdk/constructive-cli/src/auth/cli/commands/ensure-auth-csrf.ts new file mode 100644 index 0000000000..3067ccb4ee --- /dev/null +++ b/sdk/constructive-cli/src/auth/cli/commands/ensure-auth-csrf.ts @@ -0,0 +1,51 @@ +/** + * CLI command for mutation ensureAuthCsrf + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer } from 'inquirerer'; +import { getClient } from '../executor'; +import { unflattenDotNotation, buildSelectFromPaths } from '../utils'; +import type { EnsureAuthCsrfVariables } from '../../orm/mutation'; +import type { EnsureAuthCsrfPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log('ensure-auth-csrf - ensureAuthCsrf\n\nUsage: ensure-auth-csrf [OPTIONS]\n'); + process.exit(0); + } + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'input', + message: + 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.', + required: true, + }, + ]); + const client = getClient(); + const parsedAnswers = unflattenDotNotation(answers); + const selectFields = buildSelectFromPaths((argv.select as string) ?? 'clientMutationId'); + const result = await client.mutation + .ensureAuthCsrf( + parsedAnswers as unknown as EnsureAuthCsrfVariables, + { + select: selectFields, + } as unknown as { + select: EnsureAuthCsrfPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: ensureAuthCsrf'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/auth/cli/commands/exchange-native-handoff.ts b/sdk/constructive-cli/src/auth/cli/commands/exchange-native-handoff.ts new file mode 100644 index 0000000000..7b27cd8990 --- /dev/null +++ b/sdk/constructive-cli/src/auth/cli/commands/exchange-native-handoff.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation exchangeNativeHandoff + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer } from 'inquirerer'; +import { getClient } from '../executor'; +import { unflattenDotNotation, buildSelectFromPaths } from '../utils'; +import type { ExchangeNativeHandoffVariables } from '../../orm/mutation'; +import type { ExchangeNativeHandoffPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'exchange-native-handoff - exchangeNativeHandoff\n\nUsage: exchange-native-handoff [OPTIONS]\n' + ); + process.exit(0); + } + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'input', + message: + 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.', + required: true, + }, + ]); + const client = getClient(); + const parsedAnswers = unflattenDotNotation(answers); + const selectFields = buildSelectFromPaths((argv.select as string) ?? 'clientMutationId'); + const result = await client.mutation + .exchangeNativeHandoff( + parsedAnswers as unknown as ExchangeNativeHandoffVariables, + { + select: selectFields, + } as unknown as { + select: ExchangeNativeHandoffPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: exchangeNativeHandoff'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/auth/cli/commands/identity-provider.ts b/sdk/constructive-cli/src/auth/cli/commands/identity-provider.ts index 27af14d3ed..b6f0e741d7 100644 --- a/sdk/constructive-cli/src/auth/cli/commands/identity-provider.ts +++ b/sdk/constructive-cli/src/auth/cli/commands/identity-provider.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateIdentityProviderInput, IdentityProviderPatch, IdentityProviderSelect, IdentityProviderFilter, @@ -39,7 +38,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -56,8 +55,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -111,62 +108,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'displayName', - message: 'displayName', - required: true, - }, - { - type: 'boolean', - name: 'enabled', - message: 'enabled', - required: true, - }, - { - type: 'text', - name: 'kind', - message: 'kind', - required: true, - }, - { - type: 'text', - name: 'slug', - message: 'slug', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateIdentityProviderInput['identityProvider']; - const client = getClient(); - const result = await client.identityProvider - .create({ - data: { - displayName: cleanedData.displayName, - enabled: cleanedData.enabled, - kind: cleanedData.kind, - slug: cleanedData.slug, - }, - select: { - displayName: true, - enabled: true, - kind: true, - slug: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/auth/cli/commands/org-api-key-list.ts b/sdk/constructive-cli/src/auth/cli/commands/org-api-key-list.ts index dd56fa3f2c..d97afec410 100644 --- a/sdk/constructive-cli/src/auth/cli/commands/org-api-key-list.ts +++ b/sdk/constructive-cli/src/auth/cli/commands/org-api-key-list.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateOrgApiKeyListInput, OrgApiKeyListPatch, OrgApiKeyListSelect, OrgApiKeyListFilter, @@ -47,7 +46,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -64,8 +63,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -135,105 +132,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'accessLevel', - message: 'accessLevel', - required: true, - }, - { - type: 'text', - name: 'expiresAt', - message: 'expiresAt', - required: true, - }, - { - type: 'text', - name: 'keyId', - message: 'keyId', - required: true, - }, - { - type: 'text', - name: 'lastUsedAt', - message: 'lastUsedAt', - required: true, - }, - { - type: 'text', - name: 'mfaLevel', - message: 'mfaLevel', - required: true, - }, - { - type: 'text', - name: 'name', - message: 'name', - required: true, - }, - { - type: 'text', - name: 'orgId', - message: 'orgId', - required: true, - }, - { - type: 'text', - name: 'principalId', - message: 'principalId', - required: true, - }, - { - type: 'text', - name: 'revokedAt', - message: 'revokedAt', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateOrgApiKeyListInput['orgApiKeyList']; - const client = getClient(); - const result = await client.orgApiKeyList - .create({ - data: { - accessLevel: cleanedData.accessLevel, - expiresAt: cleanedData.expiresAt, - keyId: cleanedData.keyId, - lastUsedAt: cleanedData.lastUsedAt, - mfaLevel: cleanedData.mfaLevel, - name: cleanedData.name, - orgId: cleanedData.orgId, - principalId: cleanedData.principalId, - revokedAt: cleanedData.revokedAt, - }, - select: { - accessLevel: true, - createdAt: true, - expiresAt: true, - id: true, - keyId: true, - lastUsedAt: true, - mfaLevel: true, - name: true, - orgId: true, - principalId: true, - revokedAt: true, - updatedAt: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/auth/cli/commands/principal-entity.ts b/sdk/constructive-cli/src/auth/cli/commands/principal-entity.ts index 4a8ac9da18..1b5170c3c8 100644 --- a/sdk/constructive-cli/src/auth/cli/commands/principal-entity.ts +++ b/sdk/constructive-cli/src/auth/cli/commands/principal-entity.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreatePrincipalEntityInput, PrincipalEntityPatch, PrincipalEntitySelect, PrincipalEntityFilter, @@ -41,7 +40,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -58,8 +57,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -117,57 +114,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'entityId', - message: 'entityId', - required: true, - }, - { - type: 'text', - name: 'ownerId', - message: 'ownerId', - required: true, - }, - { - type: 'text', - name: 'principalId', - message: 'principalId', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreatePrincipalEntityInput['principalEntity']; - const client = getClient(); - const result = await client.principalEntity - .create({ - data: { - entityId: cleanedData.entityId, - ownerId: cleanedData.ownerId, - principalId: cleanedData.principalId, - }, - select: { - createdAt: true, - entityId: true, - id: true, - ownerId: true, - principalId: true, - updatedAt: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/auth/cli/commands/principal-scope-override.ts b/sdk/constructive-cli/src/auth/cli/commands/principal-scope-override.ts index 8a73f19ceb..7bf9c7fa55 100644 --- a/sdk/constructive-cli/src/auth/cli/commands/principal-scope-override.ts +++ b/sdk/constructive-cli/src/auth/cli/commands/principal-scope-override.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreatePrincipalScopeOverrideInput, PrincipalScopeOverridePatch, PrincipalScopeOverrideSelect, PrincipalScopeOverrideFilter, @@ -44,7 +43,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -61,8 +60,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -134,81 +131,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'allowedMask', - message: 'allowedMask', - required: true, - }, - { - type: 'boolean', - name: 'isActive', - message: 'isActive', - required: true, - }, - { - type: 'boolean', - name: 'isReadOnly', - message: 'isReadOnly', - required: true, - }, - { - type: 'text', - name: 'membershipType', - message: 'membershipType', - required: true, - }, - { - type: 'text', - name: 'principalId', - message: 'principalId', - required: true, - }, - { - type: 'boolean', - name: 'useAdminOwner', - message: 'useAdminOwner', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreatePrincipalScopeOverrideInput['principalScopeOverride']; - const client = getClient(); - const result = await client.principalScopeOverride - .create({ - data: { - allowedMask: cleanedData.allowedMask, - isActive: cleanedData.isActive, - isReadOnly: cleanedData.isReadOnly, - membershipType: cleanedData.membershipType, - principalId: cleanedData.principalId, - useAdminOwner: cleanedData.useAdminOwner, - }, - select: { - allowedMask: true, - createdAt: true, - id: true, - isActive: true, - isReadOnly: true, - membershipType: true, - principalId: true, - updatedAt: true, - useAdminOwner: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/auth/cli/commands/principal.ts b/sdk/constructive-cli/src/auth/cli/commands/principal.ts index 18ddd25a25..d8b28e3c12 100644 --- a/sdk/constructive-cli/src/auth/cli/commands/principal.ts +++ b/sdk/constructive-cli/src/auth/cli/commands/principal.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreatePrincipalInput, PrincipalPatch, PrincipalSelect, PrincipalFilter, @@ -49,7 +48,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -66,8 +65,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -141,118 +138,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'apiKeyMaxDuration', - message: 'apiKeyMaxDuration', - required: true, - }, - { - type: 'boolean', - name: 'bypassStepUp', - message: 'bypassStepUp', - required: true, - }, - { - type: 'text', - name: 'createdBySessionId', - message: 'createdBySessionId', - required: true, - }, - { - type: 'text', - name: 'depth', - message: 'depth', - required: true, - }, - { - type: 'text', - name: 'expiresAt', - message: 'expiresAt', - required: true, - }, - { - type: 'boolean', - name: 'isReadOnly', - message: 'isReadOnly', - required: true, - }, - { - type: 'text', - name: 'name', - message: 'name', - required: true, - }, - { - type: 'text', - name: 'ownerId', - message: 'ownerId', - required: true, - }, - { - type: 'text', - name: 'parentPrincipalId', - message: 'parentPrincipalId', - required: true, - }, - { - type: 'boolean', - name: 'useAdminOwner', - message: 'useAdminOwner', - required: true, - }, - { - type: 'text', - name: 'userId', - message: 'userId', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as CreatePrincipalInput['principal']; - const client = getClient(); - const result = await client.principal - .create({ - data: { - apiKeyMaxDuration: cleanedData.apiKeyMaxDuration, - bypassStepUp: cleanedData.bypassStepUp, - createdBySessionId: cleanedData.createdBySessionId, - depth: cleanedData.depth, - expiresAt: cleanedData.expiresAt, - isReadOnly: cleanedData.isReadOnly, - name: cleanedData.name, - ownerId: cleanedData.ownerId, - parentPrincipalId: cleanedData.parentPrincipalId, - useAdminOwner: cleanedData.useAdminOwner, - userId: cleanedData.userId, - }, - select: { - apiKeyMaxDuration: true, - bypassStepUp: true, - createdAt: true, - createdBySessionId: true, - depth: true, - expiresAt: true, - id: true, - isReadOnly: true, - name: true, - ownerId: true, - parentPrincipalId: true, - updatedAt: true, - useAdminOwner: true, - userId: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/auth/cli/commands/request-device-approval.ts b/sdk/constructive-cli/src/auth/cli/commands/request-device-approval.ts new file mode 100644 index 0000000000..42bcfbcebc --- /dev/null +++ b/sdk/constructive-cli/src/auth/cli/commands/request-device-approval.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation requestDeviceApproval + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer } from 'inquirerer'; +import { getClient } from '../executor'; +import { unflattenDotNotation, buildSelectFromPaths } from '../utils'; +import type { RequestDeviceApprovalVariables } from '../../orm/mutation'; +import type { RequestDeviceApprovalPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'request-device-approval - requestDeviceApproval\n\nUsage: request-device-approval [OPTIONS]\n' + ); + process.exit(0); + } + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'input', + message: + 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.', + required: true, + }, + ]); + const client = getClient(); + const parsedAnswers = unflattenDotNotation(answers); + const selectFields = buildSelectFromPaths((argv.select as string) ?? 'clientMutationId'); + const result = await client.mutation + .requestDeviceApproval( + parsedAnswers as unknown as RequestDeviceApprovalVariables, + { + select: selectFields, + } as unknown as { + select: RequestDeviceApprovalPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: requestDeviceApproval'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/api/cli/commands/api-schema-names.ts b/sdk/constructive-cli/src/auth/cli/commands/sign-in-options.ts similarity index 56% rename from sdk/constructive-cli/src/api/cli/commands/api-schema-names.ts rename to sdk/constructive-cli/src/auth/cli/commands/sign-in-options.ts index 5ab8637bb6..f2bd79f6d8 100644 --- a/sdk/constructive-cli/src/api/cli/commands/api-schema-names.ts +++ b/sdk/constructive-cli/src/auth/cli/commands/sign-in-options.ts @@ -1,11 +1,12 @@ /** - * CLI command for query apiSchemaNames + * CLI command for query signInOptions * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ import { CLIOptions, Inquirerer } from 'inquirerer'; import { getClient } from '../executor'; -import type { ApiSchemaNamesVariables } from '../../orm/query'; +import { buildSelectFromPaths } from '../utils'; +import type { SignInOptionsRecordSelect } from '../../orm/input-types'; export default async ( argv: Partial>, prompter: Inquirerer, @@ -13,23 +14,21 @@ export default async ( ) => { try { if (argv.help || argv.h) { - console.log('api-schema-names - apiSchemaNames\n\nUsage: api-schema-names [OPTIONS]\n'); + console.log('sign-in-options - signInOptions\n\nUsage: sign-in-options [OPTIONS]\n'); process.exit(0); } - const answers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'targetApiId', - message: 'targetApiId', - }, - ]); const client = getClient(); + const selectFields = buildSelectFromPaths((argv.select as string) ?? ''); const result = await client.query - .apiSchemaNames(answers as unknown as ApiSchemaNamesVariables) + .signInOptions({ + select: selectFields, + } as unknown as { + select: SignInOptionsRecordSelect; + }) .execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { - console.error('Failed: apiSchemaNames'); + console.error('Failed: signInOptions'); if (error instanceof Error) { console.error(error.message); } diff --git a/sdk/constructive-cli/src/auth/cli/commands/user-connected-account.ts b/sdk/constructive-cli/src/auth/cli/commands/user-connected-account.ts index 1aca163fb5..3652750f9e 100644 --- a/sdk/constructive-cli/src/auth/cli/commands/user-connected-account.ts +++ b/sdk/constructive-cli/src/auth/cli/commands/user-connected-account.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateUserConnectedAccountInput, UserConnectedAccountPatch, UserConnectedAccountSelect, UserConnectedAccountFilter, @@ -43,7 +42,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -60,8 +59,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -131,73 +128,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'json', - name: 'details', - message: 'details', - required: true, - }, - { - type: 'text', - name: 'identifier', - message: 'identifier', - required: true, - }, - { - type: 'boolean', - name: 'isVerified', - message: 'isVerified', - required: true, - }, - { - type: 'text', - name: 'ownerId', - message: 'ownerId', - required: true, - }, - { - type: 'text', - name: 'service', - message: 'service', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateUserConnectedAccountInput['userConnectedAccount']; - const client = getClient(); - const result = await client.userConnectedAccount - .create({ - data: { - details: cleanedData.details, - identifier: cleanedData.identifier, - isVerified: cleanedData.isVerified, - ownerId: cleanedData.ownerId, - service: cleanedData.service, - }, - select: { - createdAt: true, - details: true, - id: true, - identifier: true, - isVerified: true, - ownerId: true, - service: true, - updatedAt: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/auth/cli/commands/user.ts b/sdk/constructive-cli/src/auth/cli/commands/user.ts index 17123dc0e9..1e8a574e6d 100644 --- a/sdk/constructive-cli/src/auth/cli/commands/user.ts +++ b/sdk/constructive-cli/src/auth/cli/commands/user.ts @@ -21,6 +21,8 @@ const fieldSchema: FieldSchema = { displayNameTrgmSimilarity: 'float', id: 'uuid', profilePicture: 'string', + profilePictureUrl: 'string', + profilePictureVersions: 'string', searchScore: 'float', searchTsv: 'string', searchTsvRank: 'float', diff --git a/sdk/constructive-cli/src/auth/orm/README.md b/sdk/constructive-cli/src/auth/orm/README.md index 954a86ca4c..198bcd777e 100644 --- a/sdk/constructive-cli/src/auth/orm/README.md +++ b/sdk/constructive-cli/src/auth/orm/README.md @@ -24,14 +24,14 @@ const db = createClient({ | `auditLogAuth` | findMany, findOne, create, update, delete | | `cryptoAddress` | findMany, findOne, create, update, delete | | `email` | findMany, findOne, create, update, delete | -| `identityProvider` | findMany, findOne, create, update, delete | -| `orgApiKeyList` | findMany, findOne, create, update, delete | +| `identityProvider` | findMany, findOne, update, delete | +| `orgApiKeyList` | findMany, findOne, update, delete | | `phoneNumber` | findMany, findOne, create, update, delete | -| `principal` | findMany, findOne, create, update, delete | -| `principalEntity` | findMany, findOne, create, update, delete | -| `principalScopeOverride` | findMany, findOne, create, update, delete | +| `principal` | findMany, findOne, update, delete | +| `principalEntity` | findMany, findOne, update, delete | +| `principalScopeOverride` | findMany, findOne, update, delete | | `roleType` | findMany, findOne, create, update, delete | -| `userConnectedAccount` | findMany, findOne, create, update, delete | +| `userConnectedAccount` | findMany, findOne, update, delete | | `user` | findMany, findOne, create, update, delete | | `userSetting` | findMany, findOne, create, update, delete | | `userSettingsSecurity` | findMany, findOne, create, update, delete | @@ -170,9 +170,6 @@ const items = await db.identityProvider.findMany({ select: { displayName: true, // Get one by id const item = await db.identityProvider.findOne({ id: '', select: { displayName: true, enabled: true, kind: true, slug: true } }).execute(); -// Create -const created = await db.identityProvider.create({ data: { displayName: '', enabled: '', kind: '', slug: '' }, select: { id: true } }).execute(); - // Update const updated = await db.identityProvider.update({ where: { id: '' }, data: { displayName: '' }, select: { id: true } }).execute(); @@ -210,9 +207,6 @@ const items = await db.orgApiKeyList.findMany({ select: { accessLevel: true, cre // Get one by id const item = await db.orgApiKeyList.findOne({ id: '', select: { accessLevel: true, createdAt: true, expiresAt: true, id: true, keyId: true, lastUsedAt: true, mfaLevel: true, name: true, orgId: true, principalId: true, revokedAt: true, updatedAt: true } }).execute(); -// Create -const created = await db.orgApiKeyList.create({ data: { accessLevel: '', expiresAt: '', keyId: '', lastUsedAt: '', mfaLevel: '', name: '', orgId: '', principalId: '', revokedAt: '' }, select: { id: true } }).execute(); - // Update const updated = await db.orgApiKeyList.update({ where: { id: '' }, data: { accessLevel: '' }, select: { id: true } }).execute(); @@ -289,9 +283,6 @@ const items = await db.principal.findMany({ select: { apiKeyMaxDuration: true, b // Get one by principalId const item = await db.principal.findOne({ principalId: '', select: { apiKeyMaxDuration: true, bypassStepUp: true, createdAt: true, createdBySessionId: true, depth: true, expiresAt: true, id: true, isReadOnly: true, name: true, ownerId: true, parentPrincipalId: true, updatedAt: true, useAdminOwner: true, userId: true } }).execute(); -// Create -const created = await db.principal.create({ data: { apiKeyMaxDuration: '', bypassStepUp: '', createdBySessionId: '', depth: '', expiresAt: '', id: '', isReadOnly: '', name: '', ownerId: '', parentPrincipalId: '', useAdminOwner: '', userId: '' }, select: { principalId: true } }).execute(); - // Update const updated = await db.principal.update({ where: { principalId: '' }, data: { apiKeyMaxDuration: '' }, select: { principalId: true } }).execute(); @@ -323,9 +314,6 @@ const items = await db.principalEntity.findMany({ select: { createdAt: true, ent // Get one by id const item = await db.principalEntity.findOne({ id: '', select: { createdAt: true, entityId: true, id: true, ownerId: true, principalId: true, updatedAt: true } }).execute(); -// Create -const created = await db.principalEntity.create({ data: { entityId: '', ownerId: '', principalId: '' }, select: { id: true } }).execute(); - // Update const updated = await db.principalEntity.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); @@ -360,9 +348,6 @@ const items = await db.principalScopeOverride.findMany({ select: { allowedMask: // Get one by id const item = await db.principalScopeOverride.findOne({ id: '', select: { allowedMask: true, createdAt: true, id: true, isActive: true, isReadOnly: true, membershipType: true, principalId: true, updatedAt: true, useAdminOwner: true } }).execute(); -// Create -const created = await db.principalScopeOverride.create({ data: { allowedMask: '', isActive: '', isReadOnly: '', membershipType: '', principalId: '', useAdminOwner: '' }, select: { id: true } }).execute(); - // Update const updated = await db.principalScopeOverride.update({ where: { id: '' }, data: { allowedMask: '' }, select: { id: true } }).execute(); @@ -426,9 +411,6 @@ const items = await db.userConnectedAccount.findMany({ select: { createdAt: true // Get one by id const item = await db.userConnectedAccount.findOne({ id: '', select: { createdAt: true, details: true, id: true, identifier: true, isVerified: true, ownerId: true, service: true, updatedAt: true } }).execute(); -// Create -const created = await db.userConnectedAccount.create({ data: { details: '', identifier: '', isVerified: '', ownerId: '', service: '' }, select: { id: true } }).execute(); - // Update const updated = await db.userConnectedAccount.update({ where: { id: '' }, data: { details: '' }, select: { id: true } }).execute(); @@ -446,12 +428,14 @@ CRUD operations for User records. |-------|------|----------| | `createdAt` | Datetime | No | | `displayName` | String | Yes | -| `displayNameTrgmSimilarity` | Float | Yes | +| `displayNameTrgmSimilarity` | Float | No | | `id` | UUID | No | | `profilePicture` | ConstructiveInternalTypeImage | Yes | -| `searchScore` | Float | Yes | -| `searchTsv` | FullText | Yes | -| `searchTsvRank` | Float | Yes | +| `profilePictureUrl` | String | No | +| `profilePictureVersions` | FileVersion | No | +| `searchScore` | Float | No | +| `searchTsv` | FullText | No | +| `searchTsvRank` | Float | No | | `type` | Int | Yes | | `updatedAt` | Datetime | No | | `username` | String | Yes | @@ -466,7 +450,7 @@ const items = await db.user.findMany({ select: { createdAt: true, displayName: t const item = await db.user.findOne({ id: '', select: { createdAt: true, displayName: true, displayNameTrgmSimilarity: true, id: true, profilePicture: true, searchScore: true, searchTsv: true, searchTsvRank: true, type: true, updatedAt: true, username: true } }).execute(); // Create -const created = await db.user.create({ data: { displayName: '', displayNameTrgmSimilarity: '', profilePicture: '', searchScore: '', searchTsv: '', searchTsvRank: '', type: '', username: '' }, select: { id: true } }).execute(); +const created = await db.user.create({ data: { displayName: '', profilePicture: '', type: '', username: '' }, select: { id: true } }).execute(); // Update const updated = await db.user.update({ where: { id: '' }, data: { displayName: '' }, select: { id: true } }).execute(); @@ -662,6 +646,17 @@ requireStepUp const result = await db.query.requireStepUp({ stepUpType: '' }).execute(); ``` +### `db.query.signInOptions` + +signInOptions + +- **Type:** query +- **Arguments:** none + +```typescript +const result = await db.query.signInOptions().execute(); +``` + ### `db.mutation.approveDevice` approveDevice @@ -739,7 +734,7 @@ const result = await db.mutation.confirmTotpSetup({ input: { totpValue: '', isReadOnly: '', name: '', orgId: '', useAdminOwner: '' } }).execute(); ``` +### `db.mutation.createPrincipal` + +createPrincipal + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | CreatePrincipalInput (required) | + +```typescript +const result = await db.mutation.createPrincipal({ input: { bypassStepUp: '', entityIds: '', isReadOnly: '', name: '', useAdminOwner: '' } }).execute(); +``` + ### `db.mutation.createPrincipalFromPreset` createPrincipalFromPreset @@ -947,6 +957,36 @@ enableTotp const result = await db.mutation.enableTotp({ input: '' }).execute(); ``` +### `db.mutation.ensureAuthCsrf` + +ensureAuthCsrf + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | EnsureAuthCsrfInput (required) | + +```typescript +const result = await db.mutation.ensureAuthCsrf({ input: { existingToken: '' } }).execute(); +``` + +### `db.mutation.exchangeNativeHandoff` + +exchangeNativeHandoff + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ExchangeNativeHandoffInput (required) | + +```typescript +const result = await db.mutation.exchangeNativeHandoff({ input: { code: '', codeVerifier: '', credentialKind: '' } }).execute(); +``` + ### `db.mutation.extendTokenExpires` extendTokenExpires @@ -1072,6 +1112,21 @@ requestCrossOriginToken const result = await db.mutation.requestCrossOriginToken({ input: { email: '', origin: '', password: '', rememberMe: '' } }).execute(); ``` +### `db.mutation.requestDeviceApproval` + +requestDeviceApproval + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | RequestDeviceApprovalInput (required) | + +```typescript +const result = await db.mutation.requestDeviceApproval({ input: { deviceToken: '', next: '', userId: '' } }).execute(); +``` + ### `db.mutation.requestMagicLink` requestMagicLink @@ -1084,7 +1139,7 @@ requestMagicLink | `input` | RequestMagicLinkInput (required) | ```typescript -const result = await db.mutation.requestMagicLink({ input: { email: '', next: '' } }).execute(); +const result = await db.mutation.requestMagicLink({ input: { codeChallenge: '', email: '', nativeRedirectUri: '', next: '' } }).execute(); ``` ### `db.mutation.resetPassword` @@ -1249,7 +1304,7 @@ setPassword | `input` | SetPasswordInput (required) | ```typescript -const result = await db.mutation.setPassword({ input: { currentPassword: '', newPassword: '' } }).execute(); +const result = await db.mutation.setPassword({ input: { currentPassword: '', newPassword: '', signOutOtherSessions: '' } }).execute(); ``` ### `db.mutation.setPrincipalEntities` @@ -1429,7 +1484,7 @@ verifyEmail | `input` | VerifyEmailInput (required) | ```typescript -const result = await db.mutation.verifyEmail({ input: { emailId: '', token: '' } }).execute(); +const result = await db.mutation.verifyEmail({ input: { emailId: '', password: '', token: '' } }).execute(); ``` ### `db.mutation.verifyPassword` diff --git a/sdk/constructive-cli/src/auth/orm/input-types.ts b/sdk/constructive-cli/src/auth/orm/input-types.ts index f1489beef6..0414925191 100644 --- a/sdk/constructive-cli/src/auth/orm/input-types.ts +++ b/sdk/constructive-cli/src/auth/orm/input-types.ts @@ -402,6 +402,10 @@ export interface User { displayNameTrgmSimilarity?: number | null; id: string; profilePicture?: ConstructiveInternalTypeImage | null; + /** URL to fetch `profilePicture`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + profilePictureUrl?: string | null; + /** The versions rendered beside `profilePicture`, narrowest first, each with a URL. Empty when there are none. */ + profilePictureVersions?: FileVersion[] | null; /** Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ searchScore?: number | null; searchTsv?: string | null; @@ -718,6 +722,15 @@ export type UserSelect = { displayNameTrgmSimilarity?: boolean; id?: boolean; profilePicture?: boolean; + profilePictureUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + profilePictureVersions?: { + select: FileVersionSelect; + }; searchScore?: boolean; searchTsv?: boolean; searchTsvRank?: boolean; @@ -1678,15 +1691,6 @@ export interface DeleteEmailInput { clientMutationId?: string; id: string; } -export interface CreateIdentityProviderInput { - clientMutationId?: string; - identityProvider: { - displayName?: string; - enabled?: boolean; - kind?: string; - slug?: string; - }; -} export interface IdentityProviderPatch { displayName?: string | null; enabled?: boolean | null; @@ -1702,20 +1706,6 @@ export interface DeleteIdentityProviderInput { clientMutationId?: string; id: string; } -export interface CreateOrgApiKeyListInput { - clientMutationId?: string; - orgApiKeyList: { - accessLevel?: string; - expiresAt?: string; - keyId: string; - lastUsedAt?: string; - mfaLevel?: string; - name?: string; - orgId: string; - principalId: string; - revokedAt?: string; - }; -} export interface OrgApiKeyListPatch { accessLevel?: string | null; expiresAt?: string | null; @@ -1764,22 +1754,6 @@ export interface DeletePhoneNumberInput { clientMutationId?: string; id: string; } -export interface CreatePrincipalInput { - clientMutationId?: string; - principal: { - apiKeyMaxDuration?: string; - bypassStepUp?: boolean; - createdBySessionId: string; - depth?: number; - expiresAt?: string; - isReadOnly?: boolean; - name?: string; - ownerId: string; - parentPrincipalId: string; - useAdminOwner?: boolean; - userId: string; - }; -} export interface PrincipalPatch { apiKeyMaxDuration?: string | null; bypassStepUp?: boolean | null; @@ -1802,14 +1776,6 @@ export interface DeletePrincipalInput { clientMutationId?: string; principalId: string; } -export interface CreatePrincipalEntityInput { - clientMutationId?: string; - principalEntity: { - entityId: string; - ownerId: string; - principalId: string; - }; -} export interface PrincipalEntityPatch { entityId?: string | null; ownerId?: string | null; @@ -1824,17 +1790,6 @@ export interface DeletePrincipalEntityInput { clientMutationId?: string; id: string; } -export interface CreatePrincipalScopeOverrideInput { - clientMutationId?: string; - principalScopeOverride: { - allowedMask?: string; - isActive?: boolean; - isReadOnly?: boolean; - membershipType?: number; - principalId: string; - useAdminOwner?: boolean; - }; -} export interface PrincipalScopeOverridePatch { allowedMask?: string | null; isActive?: boolean | null; @@ -1870,16 +1825,6 @@ export interface DeleteRoleTypeInput { clientMutationId?: string; id: number; } -export interface CreateUserConnectedAccountInput { - clientMutationId?: string; - userConnectedAccount: { - details?: Record; - identifier?: string; - isVerified?: boolean; - ownerId: string; - service?: string; - }; -} export interface UserConnectedAccountPatch { details?: Record | null; identifier?: string | null; @@ -1908,7 +1853,6 @@ export interface CreateUserInput { export interface UserPatch { displayName?: string | null; profilePicture?: ConstructiveInternalTypeImage | null; - profilePictureUpload?: File | null; type?: number | null; username?: string | null; } @@ -2088,6 +2032,14 @@ export interface CreateOrgPrincipalInput { orgId?: string; useAdminOwner?: boolean; } +export interface CreatePrincipalInput { + bypassStepUp?: boolean; + clientMutationId?: string; + entityIds?: string[]; + isReadOnly?: boolean; + name?: string; + useAdminOwner?: boolean; +} export interface CreatePrincipalFromPresetInput { clientMutationId?: string; entityIds?: string[]; @@ -2122,6 +2074,16 @@ export interface EnableSmsMfaInput { export interface EnableTotpInput { clientMutationId?: string; } +export interface EnsureAuthCsrfInput { + clientMutationId?: string; + existingToken?: string; +} +export interface ExchangeNativeHandoffInput { + clientMutationId?: string; + code?: string; + codeVerifier?: string; + credentialKind?: string; +} export interface ExtendTokenExpiresInput { amount?: IntervalInput; clientMutationId?: string; @@ -2135,7 +2097,7 @@ export interface GenerateBackupCodesInput { } export interface LinkIdentityInput { clientMutationId?: string; - ticket: string; + ticket?: string; } export interface MintAccessTokenInput { accessTtl?: IntervalInput; @@ -2163,9 +2125,17 @@ export interface RequestCrossOriginTokenInput { password?: string; rememberMe?: boolean; } +export interface RequestDeviceApprovalInput { + clientMutationId?: string; + deviceToken?: string; + next?: string; + userId?: string; +} export interface RequestMagicLinkInput { clientMutationId?: string; + codeChallenge?: string; email?: string; + nativeRedirectUri?: string; next?: string; } export interface ResetPasswordInput { @@ -2216,6 +2186,7 @@ export interface SetPasswordInput { clientMutationId?: string; currentPassword?: string; newPassword?: string; + signOutOtherSessions?: boolean; } export interface SetPrincipalEntitiesInput { clientMutationId?: string; @@ -2290,6 +2261,7 @@ export interface SignUpSmsInput { export interface VerifyEmailInput { clientMutationId?: string; emailId?: string; + password?: string; token?: string; } export interface VerifyPasswordInput { @@ -3644,6 +3616,46 @@ export type GetMfaStatusRecordSelect = { smsMfaEnabled?: boolean; totpEnabled?: boolean; }; +export interface SignInOptionsRecord { + allowAnonymousSessions?: boolean | null; + allowEmailOtpSignIn?: boolean | null; + allowIdentitySignIn?: boolean | null; + allowIdentitySignUp?: boolean | null; + allowMagicLinkSignIn?: boolean | null; + allowMagicLinkSignUp?: boolean | null; + allowPasswordSignIn?: boolean | null; + allowPasswordSignUp?: boolean | null; + allowSignUp?: boolean | null; + allowSmsSignIn?: boolean | null; + allowSmsSignUp?: boolean | null; + allowWebauthnSignIn?: boolean | null; + allowWebauthnSignUp?: boolean | null; + allowWebauthnUsernameless?: boolean | null; + enableCaptcha?: boolean | null; + identityProviders?: Record | null; + requireMfa?: boolean | null; + signUpRequiresInvite?: boolean | null; +} +export type SignInOptionsRecordSelect = { + allowAnonymousSessions?: boolean; + allowEmailOtpSignIn?: boolean; + allowIdentitySignIn?: boolean; + allowIdentitySignUp?: boolean; + allowMagicLinkSignIn?: boolean; + allowMagicLinkSignUp?: boolean; + allowPasswordSignIn?: boolean; + allowPasswordSignUp?: boolean; + allowSignUp?: boolean; + allowSmsSignIn?: boolean; + allowSmsSignUp?: boolean; + allowWebauthnSignIn?: boolean; + allowWebauthnSignUp?: boolean; + allowWebauthnUsernameless?: boolean; + enableCaptcha?: boolean; + identityProviders?: boolean; + requireMfa?: boolean; + signUpRequiresInvite?: boolean; +}; export interface ApproveDevicePayload { clientMutationId?: string | null; result?: boolean | null; @@ -3720,6 +3732,14 @@ export type CreateOrgPrincipalPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface CreatePrincipalPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type CreatePrincipalPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface CreatePrincipalFromPresetPayload { clientMutationId?: string | null; result?: string | null; @@ -3800,6 +3820,24 @@ export type EnableTotpPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface EnsureAuthCsrfPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type EnsureAuthCsrfPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface ExchangeNativeHandoffPayload { + clientMutationId?: string | null; + result?: ExchangeNativeHandoffRecord | null; +} +export type ExchangeNativeHandoffPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: ExchangeNativeHandoffRecordSelect; + }; +}; export interface ExtendTokenExpiresPayload { clientMutationId?: string | null; result?: ExtendTokenExpiresRecord[] | null; @@ -3875,6 +3913,14 @@ export type RequestCrossOriginTokenPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface RequestDeviceApprovalPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type RequestDeviceApprovalPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface RequestMagicLinkPayload { clientMutationId?: string | null; } @@ -4285,14 +4331,6 @@ export type DeletePhoneNumberPayloadSelect = { select: PhoneNumberEdgeSelect; }; }; -export interface CreatePrincipalPayload { - clientMutationId?: string | null; - result?: string | null; -} -export type CreatePrincipalPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; export interface CreateRoleTypePayload { clientMutationId?: string | null; /** The `RoleType` that was created by this mutation. */ @@ -4518,6 +4556,25 @@ export type DeleteWebauthnCredentialPayloadSelect = { select: WebauthnCredentialEdgeSelect; }; }; +/** One version rendered beside a file, with a URL to fetch it. */ +export interface FileVersion { + format?: string | null; + height?: number | null; + key: string; + name?: string | null; + size?: number | null; + url: string; + width?: number | null; +} +export type FileVersionSelect = { + format?: boolean; + height?: boolean; + key?: boolean; + name?: boolean; + size?: boolean; + url?: boolean; + width?: boolean; +}; export interface CompleteMfaChallengeRecord { accessToken?: string | null; accessTokenExpiresAt?: string | null; @@ -4556,6 +4613,22 @@ export type CreateOrgApiKeyRecordSelect = { expiresAt?: boolean; keyId?: boolean; }; +export interface ExchangeNativeHandoffRecord { + accessToken?: string | null; + accessTokenExpiresAt?: string | null; + id?: string | null; + isVerified?: boolean | null; + totpEnabled?: boolean | null; + userId?: string | null; +} +export type ExchangeNativeHandoffRecordSelect = { + accessToken?: boolean; + accessTokenExpiresAt?: boolean; + id?: boolean; + isVerified?: boolean; + totpEnabled?: boolean; + userId?: boolean; +}; export interface ExtendTokenExpiresRecord { expiresAt?: string | null; id?: string | null; @@ -4643,18 +4716,22 @@ export type SignInCrossOriginRecordSelect = { export interface SignInMagicLinkRecord { accessToken?: string | null; accessTokenExpiresAt?: string | null; + codeChallenge?: string | null; deviceApprovalRequired?: boolean | null; mfaChallengeToken?: string | null; mfaRequired?: boolean | null; + nativeRedirectUri?: string | null; outDeviceToken?: string | null; userId?: string | null; } export type SignInMagicLinkRecordSelect = { accessToken?: boolean; accessTokenExpiresAt?: boolean; + codeChallenge?: boolean; deviceApprovalRequired?: boolean; mfaChallengeToken?: boolean; mfaRequired?: boolean; + nativeRedirectUri?: boolean; outDeviceToken?: boolean; userId?: boolean; }; @@ -4679,12 +4756,16 @@ export type SignInSmsOtpRecordSelect = { export interface SignUpMagicLinkRecord { accessToken?: string | null; accessTokenExpiresAt?: string | null; + codeChallenge?: string | null; + nativeRedirectUri?: string | null; outDeviceToken?: string | null; userId?: string | null; } export type SignUpMagicLinkRecordSelect = { accessToken?: boolean; accessTokenExpiresAt?: boolean; + codeChallenge?: boolean; + nativeRedirectUri?: boolean; outDeviceToken?: boolean; userId?: boolean; }; diff --git a/sdk/constructive-cli/src/auth/orm/models/identityProvider.ts b/sdk/constructive-cli/src/auth/orm/models/identityProvider.ts index cdc672145c..fde90fea4b 100644 --- a/sdk/constructive-cli/src/auth/orm/models/identityProvider.ts +++ b/sdk/constructive-cli/src/auth/orm/models/identityProvider.ts @@ -29,7 +29,6 @@ import type { IdentityProviderSelect, IdentityProviderFilter, IdentityProviderOrderBy, - CreateIdentityProviderInput, UpdateIdentityProviderInput, IdentityProviderPatch, } from '../input-types'; @@ -104,31 +103,4 @@ export class IdentityProviderModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createIdentityProvider: { - identityProvider: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'IdentityProvider', - 'createIdentityProvider', - 'identityProvider', - args.select, - args.data, - 'CreateIdentityProviderInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'IdentityProvider', - fieldName: 'createIdentityProvider', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/auth/orm/models/orgApiKeyList.ts b/sdk/constructive-cli/src/auth/orm/models/orgApiKeyList.ts index fe7120ee8a..4c7c4cee0a 100644 --- a/sdk/constructive-cli/src/auth/orm/models/orgApiKeyList.ts +++ b/sdk/constructive-cli/src/auth/orm/models/orgApiKeyList.ts @@ -29,7 +29,6 @@ import type { OrgApiKeyListSelect, OrgApiKeyListFilter, OrgApiKeyListOrderBy, - CreateOrgApiKeyListInput, UpdateOrgApiKeyListInput, OrgApiKeyListPatch, } from '../input-types'; @@ -144,31 +143,4 @@ export class OrgApiKeyListModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgApiKeyList: { - orgApiKeyList: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgApiKeyList', - 'createOrgApiKeyList', - 'orgApiKeyList', - args.select, - args.data, - 'CreateOrgApiKeyListInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgApiKeyList', - fieldName: 'createOrgApiKeyList', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/auth/orm/models/principal.ts b/sdk/constructive-cli/src/auth/orm/models/principal.ts index 05e5aa400c..ff1e4994ed 100644 --- a/sdk/constructive-cli/src/auth/orm/models/principal.ts +++ b/sdk/constructive-cli/src/auth/orm/models/principal.ts @@ -29,7 +29,6 @@ import type { PrincipalSelect, PrincipalFilter, PrincipalOrderBy, - CreatePrincipalInput, UpdatePrincipalInput, PrincipalPatch, } from '../input-types'; @@ -144,31 +143,4 @@ export class PrincipalModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPrincipal: { - principal: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'Principal', - 'createPrincipal', - 'principal', - args.select, - args.data, - 'CreatePrincipalInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'Principal', - fieldName: 'createPrincipal', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/auth/orm/models/principalEntity.ts b/sdk/constructive-cli/src/auth/orm/models/principalEntity.ts index 516e110743..580fbe4f6f 100644 --- a/sdk/constructive-cli/src/auth/orm/models/principalEntity.ts +++ b/sdk/constructive-cli/src/auth/orm/models/principalEntity.ts @@ -29,7 +29,6 @@ import type { PrincipalEntitySelect, PrincipalEntityFilter, PrincipalEntityOrderBy, - CreatePrincipalEntityInput, UpdatePrincipalEntityInput, PrincipalEntityPatch, } from '../input-types'; @@ -144,31 +143,4 @@ export class PrincipalEntityModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPrincipalEntity: { - principalEntity: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PrincipalEntity', - 'createPrincipalEntity', - 'principalEntity', - args.select, - args.data, - 'CreatePrincipalEntityInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PrincipalEntity', - fieldName: 'createPrincipalEntity', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/auth/orm/models/principalScopeOverride.ts b/sdk/constructive-cli/src/auth/orm/models/principalScopeOverride.ts index 3d3e7bedd3..fb315ec75c 100644 --- a/sdk/constructive-cli/src/auth/orm/models/principalScopeOverride.ts +++ b/sdk/constructive-cli/src/auth/orm/models/principalScopeOverride.ts @@ -29,7 +29,6 @@ import type { PrincipalScopeOverrideSelect, PrincipalScopeOverrideFilter, PrincipalScopeOverrideOrderBy, - CreatePrincipalScopeOverrideInput, UpdatePrincipalScopeOverrideInput, PrincipalScopeOverridePatch, } from '../input-types'; @@ -146,31 +145,4 @@ export class PrincipalScopeOverrideModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPrincipalScopeOverride: { - principalScopeOverride: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PrincipalScopeOverride', - 'createPrincipalScopeOverride', - 'principalScopeOverride', - args.select, - args.data, - 'CreatePrincipalScopeOverrideInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PrincipalScopeOverride', - fieldName: 'createPrincipalScopeOverride', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/auth/orm/models/userConnectedAccount.ts b/sdk/constructive-cli/src/auth/orm/models/userConnectedAccount.ts index a2344afdf4..8edfaf1d67 100644 --- a/sdk/constructive-cli/src/auth/orm/models/userConnectedAccount.ts +++ b/sdk/constructive-cli/src/auth/orm/models/userConnectedAccount.ts @@ -29,7 +29,6 @@ import type { UserConnectedAccountSelect, UserConnectedAccountFilter, UserConnectedAccountOrderBy, - CreateUserConnectedAccountInput, UpdateUserConnectedAccountInput, UserConnectedAccountPatch, } from '../input-types'; @@ -146,31 +145,4 @@ export class UserConnectedAccountModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createUserConnectedAccount: { - userConnectedAccount: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'UserConnectedAccount', - 'createUserConnectedAccount', - 'userConnectedAccount', - args.select, - args.data, - 'CreateUserConnectedAccountInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'UserConnectedAccount', - fieldName: 'createUserConnectedAccount', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/auth/orm/mutation/index.ts b/sdk/constructive-cli/src/auth/orm/mutation/index.ts index 39394d78e4..eebc1bc3d7 100644 --- a/sdk/constructive-cli/src/auth/orm/mutation/index.ts +++ b/sdk/constructive-cli/src/auth/orm/mutation/index.ts @@ -16,6 +16,7 @@ import type { CreateChildPrincipalInput, CreateOrgApiKeyInput, CreateOrgPrincipalInput, + CreatePrincipalInput, CreatePrincipalFromPresetInput, DeleteOrgPrincipalInput, DeletePrincipalInput, @@ -26,6 +27,8 @@ import type { EnableEmailMfaInput, EnableSmsMfaInput, EnableTotpInput, + EnsureAuthCsrfInput, + ExchangeNativeHandoffInput, ExtendTokenExpiresInput, ForgotPasswordInput, GenerateBackupCodesInput, @@ -34,6 +37,7 @@ import type { ProvisionBucketInput, RefreshAccessTokenInput, RequestCrossOriginTokenInput, + RequestDeviceApprovalInput, RequestMagicLinkInput, ResetPasswordInput, RevokeApiKeyInput, @@ -71,6 +75,7 @@ import type { CreateChildPrincipalPayload, CreateOrgApiKeyPayload, CreateOrgPrincipalPayload, + CreatePrincipalPayload, CreatePrincipalFromPresetPayload, DeleteOrgPrincipalPayload, DeletePrincipalPayload, @@ -81,6 +86,8 @@ import type { EnableEmailMfaPayload, EnableSmsMfaPayload, EnableTotpPayload, + EnsureAuthCsrfPayload, + ExchangeNativeHandoffPayload, ExtendTokenExpiresPayload, ForgotPasswordPayload, GenerateBackupCodesPayload, @@ -89,6 +96,7 @@ import type { ProvisionBucketPayload, RefreshAccessTokenPayload, RequestCrossOriginTokenPayload, + RequestDeviceApprovalPayload, RequestMagicLinkPayload, ResetPasswordPayload, RevokeApiKeyPayload, @@ -126,6 +134,7 @@ import type { CreateChildPrincipalPayloadSelect, CreateOrgApiKeyPayloadSelect, CreateOrgPrincipalPayloadSelect, + CreatePrincipalPayloadSelect, CreatePrincipalFromPresetPayloadSelect, DeleteOrgPrincipalPayloadSelect, DeletePrincipalPayloadSelect, @@ -136,6 +145,8 @@ import type { EnableEmailMfaPayloadSelect, EnableSmsMfaPayloadSelect, EnableTotpPayloadSelect, + EnsureAuthCsrfPayloadSelect, + ExchangeNativeHandoffPayloadSelect, ExtendTokenExpiresPayloadSelect, ForgotPasswordPayloadSelect, GenerateBackupCodesPayloadSelect, @@ -144,6 +155,7 @@ import type { ProvisionBucketPayloadSelect, RefreshAccessTokenPayloadSelect, RequestCrossOriginTokenPayloadSelect, + RequestDeviceApprovalPayloadSelect, RequestMagicLinkPayloadSelect, ResetPasswordPayloadSelect, RevokeApiKeyPayloadSelect, @@ -189,6 +201,10 @@ export interface ConfirmDeleteAccountVariables { export interface ConfirmTotpSetupVariables { input: ConfirmTotpSetupInput; } +/** + * Variables for createApiKey + * Mint an API key for the current user; the plaintext key is returned once. access_level: full_access (default) or read_only. mfa_level: none (default) or verified; verified needs a fresh MFA proof on the calling session. A key minted while authenticated by another API key never outlives that key. + */ export interface CreateApiKeyVariables { input: CreateApiKeyInput; } @@ -201,6 +217,9 @@ export interface CreateOrgApiKeyVariables { export interface CreateOrgPrincipalVariables { input: CreateOrgPrincipalInput; } +export interface CreatePrincipalVariables { + input: CreatePrincipalInput; +} export interface CreatePrincipalFromPresetVariables { input: CreatePrincipalFromPresetInput; } @@ -231,6 +250,12 @@ export interface EnableSmsMfaVariables { export interface EnableTotpVariables { input: EnableTotpInput; } +export interface EnsureAuthCsrfVariables { + input: EnsureAuthCsrfInput; +} +export interface ExchangeNativeHandoffVariables { + input: ExchangeNativeHandoffInput; +} export interface ExtendTokenExpiresVariables { input: ExtendTokenExpiresInput; } @@ -264,6 +289,9 @@ export interface RefreshAccessTokenVariables { export interface RequestCrossOriginTokenVariables { input: RequestCrossOriginTokenInput; } +export interface RequestDeviceApprovalVariables { + input: RequestDeviceApprovalInput; +} export interface RequestMagicLinkVariables { input: RequestMagicLinkInput; } @@ -611,6 +639,35 @@ export function createMutationOperations(client: OrmClient) { 'CreateOrgPrincipalPayload' ), }), + createPrincipal: ( + args: CreatePrincipalVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + createPrincipal: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'CreatePrincipal', + fieldName: 'createPrincipal', + ...buildCustomDocument( + 'mutation', + 'CreatePrincipal', + 'createPrincipal', + options.select, + args, + [ + { + name: 'input', + type: 'CreatePrincipalInput!', + }, + ], + connectionFieldsMap, + 'CreatePrincipalPayload' + ), + }), createPrincipalFromPreset: ( args: CreatePrincipalFromPresetVariables, options: { @@ -901,6 +958,64 @@ export function createMutationOperations(client: OrmClient) { 'EnableTotpPayload' ), }), + ensureAuthCsrf: ( + args: EnsureAuthCsrfVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + ensureAuthCsrf: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'EnsureAuthCsrf', + fieldName: 'ensureAuthCsrf', + ...buildCustomDocument( + 'mutation', + 'EnsureAuthCsrf', + 'ensureAuthCsrf', + options.select, + args, + [ + { + name: 'input', + type: 'EnsureAuthCsrfInput!', + }, + ], + connectionFieldsMap, + 'EnsureAuthCsrfPayload' + ), + }), + exchangeNativeHandoff: ( + args: ExchangeNativeHandoffVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + exchangeNativeHandoff: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ExchangeNativeHandoff', + fieldName: 'exchangeNativeHandoff', + ...buildCustomDocument( + 'mutation', + 'ExchangeNativeHandoff', + 'exchangeNativeHandoff', + options.select, + args, + [ + { + name: 'input', + type: 'ExchangeNativeHandoffInput!', + }, + ], + connectionFieldsMap, + 'ExchangeNativeHandoffPayload' + ), + }), extendTokenExpires: ( args: ExtendTokenExpiresVariables, options: { @@ -1133,6 +1248,35 @@ export function createMutationOperations(client: OrmClient) { 'RequestCrossOriginTokenPayload' ), }), + requestDeviceApproval: ( + args: RequestDeviceApprovalVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + requestDeviceApproval: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'RequestDeviceApproval', + fieldName: 'requestDeviceApproval', + ...buildCustomDocument( + 'mutation', + 'RequestDeviceApproval', + 'requestDeviceApproval', + options.select, + args, + [ + { + name: 'input', + type: 'RequestDeviceApprovalInput!', + }, + ], + connectionFieldsMap, + 'RequestDeviceApprovalPayload' + ), + }), requestMagicLink: ( args: RequestMagicLinkVariables, options: { diff --git a/sdk/constructive-cli/src/auth/orm/query-builder.ts b/sdk/constructive-cli/src/auth/orm/query-builder.ts index fd785bbae6..d6c981907f 100644 --- a/sdk/constructive-cli/src/auth/orm/query-builder.ts +++ b/sdk/constructive-cli/src/auth/orm/query-builder.ts @@ -140,9 +140,7 @@ export function buildSelections( ); const nestedSelect = nested.select; if (nestedSelect && typeof nestedSelect === 'object') { - const subSelections = Object.entries(nestedSelect) - .filter(([, v]) => v) - .map(([name]) => t.field({ name })); + const subSelections = buildSelections(nestedSelect, connectionFieldsMap); fields.push( t.field({ name: key, diff --git a/sdk/constructive-cli/src/auth/orm/query/index.ts b/sdk/constructive-cli/src/auth/orm/query/index.ts index 671fb80d21..aa77870a50 100644 --- a/sdk/constructive-cli/src/auth/orm/query/index.ts +++ b/sdk/constructive-cli/src/auth/orm/query/index.ts @@ -9,8 +9,10 @@ import type { InferSelectResult, StrictSelect } from '../select-types'; import type { User, GetMfaStatusRecord, + SignInOptionsRecord, UserSelect, GetMfaStatusRecordSelect, + SignInOptionsRecordSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; export interface RequireStepUpVariables { @@ -150,5 +152,28 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), + signInOptions: ( + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + signInOptions: InferSelectResult | null; + }>({ + client, + operation: 'query', + operationName: 'SignInOptions', + fieldName: 'signInOptions', + ...buildCustomDocument( + 'query', + 'SignInOptions', + 'signInOptions', + options.select, + undefined, + [], + connectionFieldsMap, + 'SignInOptionsRecord' + ), + }), }; } diff --git a/sdk/constructive-cli/src/auth/orm/select-types.ts b/sdk/constructive-cli/src/auth/orm/select-types.ts index 4b39d7e820..783c4603df 100644 --- a/sdk/constructive-cli/src/auth/orm/select-types.ts +++ b/sdk/constructive-cli/src/auth/orm/select-types.ts @@ -159,9 +159,13 @@ export type InferSelectResult = TSelect extends undefined ? K extends keyof TEntity ? NonNullable extends ConnectionResult ? ConnectionResult> - : - | InferSelectResult, NestedSelect> - | (null extends TEntity[K] ? null : never) + : NonNullable extends readonly (infer Item)[] + ? + | InferSelectResult, NestedSelect>[] + | (null extends TEntity[K] ? null : never) + : + | InferSelectResult, NestedSelect> + | (null extends TEntity[K] ? null : never) : never : K extends keyof TEntity ? TEntity[K] diff --git a/sdk/constructive-cli/src/compute/README.md b/sdk/constructive-cli/src/compute/README.md index 30ad39c3a3..1d27495a31 100644 --- a/sdk/constructive-cli/src/compute/README.md +++ b/sdk/constructive-cli/src/compute/README.md @@ -10,7 +10,7 @@ - **Tables:** 123 - **Custom queries:** 2 -- **Custom mutations:** 62 +- **Custom mutations:** 63 **Generators:** ORM, CLI diff --git a/sdk/constructive-cli/src/compute/cli/README.md b/sdk/constructive-cli/src/compute/cli/README.md index bd769d9599..82c33fe390 100644 --- a/sdk/constructive-cli/src/compute/cli/README.md +++ b/sdk/constructive-cli/src/compute/cli/README.md @@ -28,7 +28,6 @@ csdk auth set-token | `config` | Manage config key-value store (per-context) | | `build` | build CRUD operations | | `build-step` | buildStep CRUD operations | -| `builder-binding` | builderBinding CRUD operations | | `content-preset` | contentPreset CRUD operations | | `database-function-graph` | databaseFunctionGraph CRUD operations | | `database-function-graph-execution-cancel-request` | databaseFunctionGraphExecutionCancelRequest CRUD operations | @@ -72,7 +71,6 @@ csdk auth set-token | `namespace-event` | namespaceEvent CRUD operations | | `platform-build` | platformBuild CRUD operations | | `platform-build-step` | platformBuildStep CRUD operations | -| `platform-builder-binding` | platformBuilderBinding CRUD operations | | `platform-function-api-binding` | platformFunctionApiBinding CRUD operations | | `platform-function-capability-binding` | platformFunctionCapabilityBinding CRUD operations | | `platform-function-definition` | platformFunctionDefinition CRUD operations | @@ -119,6 +117,7 @@ csdk auth set-token | `platform-resources-health` | platformResourcesHealth CRUD operations | | `platform-resources-requirements-state` | platformResourcesRequirementsState CRUD operations | | `platform-resources-resolved-requirement` | platformResourcesResolvedRequirement CRUD operations | +| `platform-service-binding` | platformServiceBinding CRUD operations | | `platform-webhook-endpoint` | platformWebhookEndpoint CRUD operations | | `platform-webhook-event` | platformWebhookEvent CRUD operations | | `proposal-comment` | proposalComment CRUD operations | @@ -147,6 +146,7 @@ csdk auth set-token | `resources-health` | resourcesHealth CRUD operations | | `resources-requirements-state` | resourcesRequirementsState CRUD operations | | `resources-resolved-requirement` | resourcesResolvedRequirement CRUD operations | +| `service-binding` | serviceBinding CRUD operations | | `webhook-endpoint` | webhookEndpoint CRUD operations | | `webhook-event` | webhookEvent CRUD operations | | `database-read-function-graph` | databaseReadFunctionGraph | @@ -157,6 +157,7 @@ csdk auth set-token | `add-node-and-save` | addNodeAndSave | | `approve-node` | approveNode | | `copy-graph` | copyGraph | +| `create-function-graph` | createFunctionGraph | | `database-add-edge` | databaseAddEdge | | `database-add-edge-and-save` | databaseAddEdgeAndSave | | `database-add-node` | databaseAddNode | @@ -290,6 +291,8 @@ CRUD operations for Build records. | `imageRef` | String | | `jobId` | BigInt | | `logs` | Upload | +| `logsUrl` | String | +| `logsVersions` | FileVersion | | `matrixKey` | String | | `metadata` | JSON | | `proposalId` | UUID | @@ -301,7 +304,7 @@ CRUD operations for Build records. | `updatedByPrincipal` | UUID | | `workflowId` | UUID | -**Required create fields:** `repositoryId` +**Required create fields:** `databaseId`, `repositoryId` **Optional create fields (backend defaults):** `actorId`, `attempt`, `commitSha`, `conclusion`, `createdByPrincipal`, `eventId`, `finishedAt`, `imageRef`, `jobId`, `logs`, `matrixKey`, `metadata`, `proposalId`, `ref`, `startedAt`, `status`, `updatedByPrincipal`, `workflowId` ### `build-step` @@ -338,45 +341,9 @@ CRUD operations for BuildStep records. | `status` | String | | `summary` | JSON | -**Required create fields:** `buildId`, `name`, `seq` +**Required create fields:** `buildId`, `databaseId`, `name`, `seq` **Optional create fields (backend defaults):** `createdByPrincipal`, `exitCode`, `finishedAt`, `kind`, `logBytes`, `logOffset`, `parentSeq`, `recordedAt`, `startedAt`, `status`, `summary` -### `builder-binding` - -CRUD operations for BuilderBinding records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all builderBinding records | -| `find-first` | Find first matching builderBinding record | -| `get` | Get a builderBinding by id | -| `create` | Create a new builderBinding | -| `update` | Update an existing builderBinding | -| `delete` | Delete a builderBinding | - -**Fields:** - -| Field | Type | -|-------|------| -| `createdAt` | Datetime | -| `createdBy` | UUID | -| `createdByPrincipal` | UUID | -| `databaseId` | UUID | -| `id` | UUID | -| `installationId` | UUID | -| `lastError` | String | -| `metadata` | JSON | -| `namespaceId` | UUID | -| `observedHost` | String | -| `realm` | String | -| `status` | String | -| `updatedAt` | Datetime | -| `updatedBy` | UUID | -| `updatedByPrincipal` | UUID | - -**Required create fields:** `databaseId`, `installationId`, `namespaceId` -**Optional create fields (backend defaults):** `createdBy`, `createdByPrincipal`, `lastError`, `metadata`, `observedHost`, `realm`, `status`, `updatedBy`, `updatedByPrincipal` - ### `content-preset` CRUD operations for ContentPreset records. @@ -418,7 +385,6 @@ CRUD operations for DatabaseFunctionGraph records. | `list` | List all databaseFunctionGraph records | | `find-first` | Find first matching databaseFunctionGraph record | | `get` | Get a databaseFunctionGraph by id | -| `create` | Create a new databaseFunctionGraph | | `update` | Update an existing databaseFunctionGraph | | `delete` | Delete a databaseFunctionGraph | @@ -625,7 +591,6 @@ CRUD operations for DatabaseGraphGetAllTreeNodesRecord records. | `list` | List all databaseGraphGetAllTreeNodesRecord records | | `find-first` | Find first matching databaseGraphGetAllTreeNodesRecord record | | `get` | Get a databaseGraphGetAllTreeNodesRecord by id | -| `create` | Create a new databaseGraphGetAllTreeNodesRecord | | `update` | Update an existing databaseGraphGetAllTreeNodesRecord | | `delete` | Delete a databaseGraphGetAllTreeNodesRecord | @@ -1021,7 +986,6 @@ CRUD operations for FunctionGraph records. | `list` | List all functionGraph records | | `find-first` | Find first matching functionGraph record | | `get` | Get a functionGraph by id | -| `create` | Create a new functionGraph | | `update` | Update an existing functionGraph | | `delete` | Delete a functionGraph | @@ -1393,7 +1357,6 @@ CRUD operations for GetAllTreeNodesRecord records. | `list` | List all getAllTreeNodesRecord records | | `find-first` | Find first matching getAllTreeNodesRecord record | | `get` | Get a getAllTreeNodesRecord by id | -| `create` | Create a new getAllTreeNodesRecord | | `update` | Update an existing getAllTreeNodesRecord | | `delete` | Delete a getAllTreeNodesRecord | @@ -1518,7 +1481,6 @@ CRUD operations for InfraGetAllTreeNodesRecord records. | `list` | List all infraGetAllTreeNodesRecord records | | `find-first` | Find first matching infraGetAllTreeNodesRecord record | | `get` | Get a infraGetAllTreeNodesRecord by id | -| `create` | Create a new infraGetAllTreeNodesRecord | | `update` | Update an existing infraGetAllTreeNodesRecord | | `delete` | Delete a infraGetAllTreeNodesRecord | @@ -1634,6 +1596,8 @@ CRUD operations for IntegrationProvider records. | `icon` | String | | `id` | UUID | | `logo` | Image | +| `logoUrl` | String | +| `logoVersions` | FileVersion | | `name` | String | | `requiredConfigs` | ResourceRequirement | | `requiredSecrets` | ResourceRequirement | @@ -1736,6 +1700,8 @@ CRUD operations for PlatformBuild records. | `imageRef` | String | | `jobId` | BigInt | | `logs` | Upload | +| `logsUrl` | String | +| `logsVersions` | FileVersion | | `matrixKey` | String | | `metadata` | JSON | | `proposalId` | UUID | @@ -1786,41 +1752,6 @@ CRUD operations for PlatformBuildStep records. **Required create fields:** `buildId`, `name`, `seq` **Optional create fields (backend defaults):** `createdByPrincipal`, `exitCode`, `finishedAt`, `kind`, `logBytes`, `logOffset`, `parentSeq`, `recordedAt`, `startedAt`, `status`, `summary` -### `platform-builder-binding` - -CRUD operations for PlatformBuilderBinding records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all platformBuilderBinding records | -| `find-first` | Find first matching platformBuilderBinding record | -| `get` | Get a platformBuilderBinding by id | -| `create` | Create a new platformBuilderBinding | -| `update` | Update an existing platformBuilderBinding | -| `delete` | Delete a platformBuilderBinding | - -**Fields:** - -| Field | Type | -|-------|------| -| `createdAt` | Datetime | -| `createdBy` | UUID | -| `createdByPrincipal` | UUID | -| `id` | UUID | -| `installationId` | UUID | -| `lastError` | String | -| `metadata` | JSON | -| `namespaceId` | UUID | -| `observedHost` | String | -| `realm` | String | -| `status` | String | -| `updatedAt` | Datetime | -| `updatedBy` | UUID | -| `updatedByPrincipal` | UUID | - -**Required create fields:** `installationId`, `namespaceId` -**Optional create fields (backend defaults):** `createdBy`, `createdByPrincipal`, `lastError`, `metadata`, `observedHost`, `realm`, `status`, `updatedBy`, `updatedByPrincipal` - ### `platform-function-api-binding` CRUD operations for PlatformFunctionApiBinding records. @@ -2275,7 +2206,6 @@ CRUD operations for PlatformInfraGetAllTreeNodesRecord records. | `list` | List all platformInfraGetAllTreeNodesRecord records | | `find-first` | Find first matching platformInfraGetAllTreeNodesRecord record | | `get` | Get a platformInfraGetAllTreeNodesRecord by id | -| `create` | Create a new platformInfraGetAllTreeNodesRecord | | `update` | Update an existing platformInfraGetAllTreeNodesRecord | | `delete` | Delete a platformInfraGetAllTreeNodesRecord | @@ -2511,12 +2441,16 @@ CRUD operations for PlatformProposalComment records. |-------|------| | `actorId` | UUID | | `attachments` | Upload | +| `attachmentsUrl` | String | +| `attachmentsVersions` | FileVersion | | `body` | String | | `bodyTrgmSimilarity` | Float | | `createdAt` | Datetime | | `createdBy` | UUID | | `createdByPrincipal` | UUID | | `embedding` | Vector | +| `embeddingModel` | String | +| `embeddingModelTrgmSimilarity` | Float | | `embeddingUpdatedAt` | Datetime | | `embeddingVectorDistance` | Float | | `id` | UUID | @@ -2538,7 +2472,7 @@ CRUD operations for PlatformProposalComment records. > **pgvector embedding fields:** `embedding` > High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. Supports chunk-aware search: set `includeChunks: true` in VectorNearbyInput to transparently query across parent and chunk embeddings, returning the minimum distance. -> **Unified Search API fields:** `bodyTrgmSimilarity`, `pathTrgmSimilarity`, `search`, `searchScore` +> **Unified Search API fields:** `bodyTrgmSimilarity`, `embeddingModelTrgmSimilarity`, `pathTrgmSimilarity`, `search`, `searchScore`, `searchTsvRank` > Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. **Search Examples:** @@ -2546,14 +2480,14 @@ CRUD operations for PlatformProposalComment records. *Vector similarity search via `embedding` (manual vector):* ```bash # Pass a pre-computed vector array via dot-notation -csdk platform-proposal-comment list --where.embedding.vector '[0.1,0.2,0.3]' --where.embedding.distance 1.0 --select title,embeddingVectorDistance +csdk platform-proposal-comment list --where.embedding.vector '[0.1,0.2,0.3]' --where.embedding.distance 1.0 --select body,embeddingVectorDistance ``` *Vector semantic search via `embedding` with --auto-embed:* ```bash # --auto-embed converts text to vectors using the configured embedder (e.g. Ollama nomic-embed-text) -EMBEDDER_PROVIDER=ollama csdk platform-proposal-comment search "semantic query" --auto-embed --select title,embeddingVectorDistance -EMBEDDER_PROVIDER=ollama csdk platform-proposal-comment list --where.embedding.vector "semantic query" --auto-embed --select title,embeddingVectorDistance +EMBEDDER_PROVIDER=ollama csdk platform-proposal-comment search "semantic query" --auto-embed --select body,embeddingVectorDistance +EMBEDDER_PROVIDER=ollama csdk platform-proposal-comment list --where.embedding.vector "semantic query" --auto-embed --select body,embeddingVectorDistance ``` *Create/update with auto-embedded `embedding` via --auto-embed:* @@ -2565,28 +2499,33 @@ EMBEDDER_PROVIDER=ollama csdk platform-proposal-comment update --embedding "new *Fuzzy search via trigram similarity (`trgmBody`):* ```bash -csdk platform-proposal-comment list --where.trgmBody.value "approximate query" --where.trgmBody.threshold 0.3 --select title,bodyTrgmSimilarity +csdk platform-proposal-comment list --where.trgmBody.value "approximate query" --where.trgmBody.threshold 0.3 --select body,bodyTrgmSimilarity +``` + +*Fuzzy search via trigram similarity (`trgmEmbeddingModel`):* +```bash +csdk platform-proposal-comment list --where.trgmEmbeddingModel.value "approximate query" --where.trgmEmbeddingModel.threshold 0.3 --select body,embeddingModelTrgmSimilarity ``` *Fuzzy search via trigram similarity (`trgmPath`):* ```bash -csdk platform-proposal-comment list --where.trgmPath.value "approximate query" --where.trgmPath.threshold 0.3 --select title,pathTrgmSimilarity +csdk platform-proposal-comment list --where.trgmPath.value "approximate query" --where.trgmPath.threshold 0.3 --select body,pathTrgmSimilarity ``` *Full-text search via tsvector (`search`):* ```bash -csdk platform-proposal-comment list --where.search "search query" --select title,tsvRank +csdk platform-proposal-comment list --where.search "search query" --select body,searchTsvRank ``` *Composite search (unifiedSearch dispatches to all text adapters):* ```bash -csdk platform-proposal-comment list --where.unifiedSearch "search query" --select title,bodyTrgmSimilarity,pathTrgmSimilarity,tsvRank,searchScore +csdk platform-proposal-comment list --where.unifiedSearch "search query" --select body,bodyTrgmSimilarity,embeddingModelTrgmSimilarity,pathTrgmSimilarity,searchTsvRank,searchScore ``` *Search with pagination and field projection:* ```bash -csdk platform-proposal-comment list --where.unifiedSearch "query" --limit 10 --select id,title,searchScore -csdk platform-proposal-comment search "query" --limit 10 --select id,title,searchScore +csdk platform-proposal-comment list --where.unifiedSearch "query" --limit 10 --select id,body,searchScore +csdk platform-proposal-comment search "query" --limit 10 --select id,body,searchScore ``` @@ -2619,6 +2558,8 @@ CRUD operations for PlatformProposal records. | `decidedAt` | Datetime | | `dueAt` | Datetime | | `embedding` | Vector | +| `embeddingModel` | String | +| `embeddingModelTrgmSimilarity` | Float | | `embeddingUpdatedAt` | Datetime | | `embeddingVectorDistance` | Float | | `id` | UUID | @@ -2657,7 +2598,7 @@ CRUD operations for PlatformProposal records. > **pgvector embedding fields:** `embedding` > High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. Supports chunk-aware search: set `includeChunks: true` in VectorNearbyInput to transparently query across parent and chunk embeddings, returning the minimum distance. -> **Unified Search API fields:** `bodyTrgmSimilarity`, `closedReasonTrgmSimilarity`, `kindTrgmSimilarity`, `mergeCommitTrgmSimilarity`, `mergeMethodTrgmSimilarity`, `resolutionTrgmSimilarity`, `search`, `searchScore`, `sourceRefTrgmSimilarity`, `statusTrgmSimilarity`, `targetRefTrgmSimilarity`, `titleTrgmSimilarity` +> **Unified Search API fields:** `bodyTrgmSimilarity`, `closedReasonTrgmSimilarity`, `embeddingModelTrgmSimilarity`, `kindTrgmSimilarity`, `mergeCommitTrgmSimilarity`, `mergeMethodTrgmSimilarity`, `resolutionTrgmSimilarity`, `search`, `searchScore`, `searchTsvRank`, `sourceRefTrgmSimilarity`, `statusTrgmSimilarity`, `targetRefTrgmSimilarity`, `titleTrgmSimilarity` > Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. **Search Examples:** @@ -2692,6 +2633,11 @@ csdk platform-proposal list --where.trgmBody.value "approximate query" --where.t csdk platform-proposal list --where.trgmClosedReason.value "approximate query" --where.trgmClosedReason.threshold 0.3 --select title,closedReasonTrgmSimilarity ``` +*Fuzzy search via trigram similarity (`trgmEmbeddingModel`):* +```bash +csdk platform-proposal list --where.trgmEmbeddingModel.value "approximate query" --where.trgmEmbeddingModel.threshold 0.3 --select title,embeddingModelTrgmSimilarity +``` + *Fuzzy search via trigram similarity (`trgmKind`):* ```bash csdk platform-proposal list --where.trgmKind.value "approximate query" --where.trgmKind.threshold 0.3 --select title,kindTrgmSimilarity @@ -2714,7 +2660,7 @@ csdk platform-proposal list --where.trgmResolution.value "approximate query" --w *Full-text search via tsvector (`search`):* ```bash -csdk platform-proposal list --where.search "search query" --select title,tsvRank +csdk platform-proposal list --where.search "search query" --select title,searchTsvRank ``` *Fuzzy search via trigram similarity (`trgmSourceRef`):* @@ -2739,7 +2685,7 @@ csdk platform-proposal list --where.trgmTitle.value "approximate query" --where. *Composite search (unifiedSearch dispatches to all text adapters):* ```bash -csdk platform-proposal list --where.unifiedSearch "search query" --select title,bodyTrgmSimilarity,closedReasonTrgmSimilarity,kindTrgmSimilarity,mergeCommitTrgmSimilarity,mergeMethodTrgmSimilarity,resolutionTrgmSimilarity,tsvRank,searchScore,sourceRefTrgmSimilarity,statusTrgmSimilarity,targetRefTrgmSimilarity,titleTrgmSimilarity +csdk platform-proposal list --where.unifiedSearch "search query" --select title,bodyTrgmSimilarity,closedReasonTrgmSimilarity,embeddingModelTrgmSimilarity,kindTrgmSimilarity,mergeCommitTrgmSimilarity,mergeMethodTrgmSimilarity,resolutionTrgmSimilarity,searchTsvRank,searchScore,sourceRefTrgmSimilarity,statusTrgmSimilarity,targetRefTrgmSimilarity,titleTrgmSimilarity ``` *Search with pagination and field projection:* @@ -2848,40 +2794,40 @@ CRUD operations for PlatformProposalReview records. **Required create fields:** `commitSha`, `proposalId`, `reviewerId`, `verdict` **Optional create fields (backend defaults):** `body`, `createdByPrincipal`, `submittedAt`, `updatedByPrincipal` -> **Unified Search API fields:** `bodyTrgmSimilarity`, `commitShaTrgmSimilarity`, `search`, `searchScore`, `verdictTrgmSimilarity` +> **Unified Search API fields:** `bodyTrgmSimilarity`, `commitShaTrgmSimilarity`, `search`, `searchScore`, `searchTsvRank`, `verdictTrgmSimilarity` > Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. **Search Examples:** *Fuzzy search via trigram similarity (`trgmBody`):* ```bash -csdk platform-proposal-review list --where.trgmBody.value "approximate query" --where.trgmBody.threshold 0.3 --select title,bodyTrgmSimilarity +csdk platform-proposal-review list --where.trgmBody.value "approximate query" --where.trgmBody.threshold 0.3 --select body,bodyTrgmSimilarity ``` *Fuzzy search via trigram similarity (`trgmCommitSha`):* ```bash -csdk platform-proposal-review list --where.trgmCommitSha.value "approximate query" --where.trgmCommitSha.threshold 0.3 --select title,commitShaTrgmSimilarity +csdk platform-proposal-review list --where.trgmCommitSha.value "approximate query" --where.trgmCommitSha.threshold 0.3 --select body,commitShaTrgmSimilarity ``` *Full-text search via tsvector (`search`):* ```bash -csdk platform-proposal-review list --where.search "search query" --select title,tsvRank +csdk platform-proposal-review list --where.search "search query" --select body,searchTsvRank ``` *Fuzzy search via trigram similarity (`trgmVerdict`):* ```bash -csdk platform-proposal-review list --where.trgmVerdict.value "approximate query" --where.trgmVerdict.threshold 0.3 --select title,verdictTrgmSimilarity +csdk platform-proposal-review list --where.trgmVerdict.value "approximate query" --where.trgmVerdict.threshold 0.3 --select body,verdictTrgmSimilarity ``` *Composite search (unifiedSearch dispatches to all text adapters):* ```bash -csdk platform-proposal-review list --where.unifiedSearch "search query" --select title,bodyTrgmSimilarity,commitShaTrgmSimilarity,tsvRank,searchScore,verdictTrgmSimilarity +csdk platform-proposal-review list --where.unifiedSearch "search query" --select body,bodyTrgmSimilarity,commitShaTrgmSimilarity,searchTsvRank,searchScore,verdictTrgmSimilarity ``` *Search with pagination and field projection:* ```bash -csdk platform-proposal-review list --where.unifiedSearch "query" --limit 10 --select id,title,searchScore -csdk platform-proposal-review search "query" --limit 10 --select id,title,searchScore +csdk platform-proposal-review list --where.unifiedSearch "query" --limit 10 --select id,body,searchScore +csdk platform-proposal-review search "query" --limit 10 --select id,body,searchScore ``` @@ -2928,14 +2874,14 @@ CRUD operations for PlatformProposalsChunk records. *Vector similarity search via `embedding` (manual vector):* ```bash # Pass a pre-computed vector array via dot-notation -csdk platform-proposals-chunk list --where.embedding.vector '[0.1,0.2,0.3]' --where.embedding.distance 1.0 --select title,embeddingVectorDistance +csdk platform-proposals-chunk list --where.embedding.vector '[0.1,0.2,0.3]' --where.embedding.distance 1.0 --select body,embeddingVectorDistance ``` *Vector semantic search via `embedding` with --auto-embed:* ```bash # --auto-embed converts text to vectors using the configured embedder (e.g. Ollama nomic-embed-text) -EMBEDDER_PROVIDER=ollama csdk platform-proposals-chunk search "semantic query" --auto-embed --select title,embeddingVectorDistance -EMBEDDER_PROVIDER=ollama csdk platform-proposals-chunk list --where.embedding.vector "semantic query" --auto-embed --select title,embeddingVectorDistance +EMBEDDER_PROVIDER=ollama csdk platform-proposals-chunk search "semantic query" --auto-embed --select body,embeddingVectorDistance +EMBEDDER_PROVIDER=ollama csdk platform-proposals-chunk list --where.embedding.vector "semantic query" --auto-embed --select body,embeddingVectorDistance ``` *Create/update with auto-embedded `embedding` via --auto-embed:* @@ -2947,8 +2893,8 @@ EMBEDDER_PROVIDER=ollama csdk platform-proposals-chunk update --embedding "new t *Search with pagination and field projection:* ```bash -csdk platform-proposals-chunk list --where.unifiedSearch "query" --limit 10 --select id,title,searchScore -csdk platform-proposals-chunk search "query" --limit 10 --select id,title,searchScore +csdk platform-proposals-chunk list --where.unifiedSearch "query" --limit 10 --select id,body,searchScore +csdk platform-proposals-chunk search "query" --limit 10 --select id,body,searchScore ``` @@ -3088,6 +3034,8 @@ CRUD operations for PlatformRepository records. | `description` | String | | `descriptionTrgmSimilarity` | Float | | `embedding` | Vector | +| `embeddingModel` | String | +| `embeddingModelTrgmSimilarity` | Float | | `embeddingUpdatedAt` | Datetime | | `embeddingVectorDistance` | Float | | `externalId` | String | @@ -3116,7 +3064,7 @@ CRUD operations for PlatformRepository records. > **pgvector embedding fields:** `embedding` > High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. Supports chunk-aware search: set `includeChunks: true` in VectorNearbyInput to transparently query across parent and chunk embeddings, returning the minimum distance. -> **Unified Search API fields:** `cloneUrlTrgmSimilarity`, `defaultBranchTrgmSimilarity`, `descriptionTrgmSimilarity`, `externalIdTrgmSimilarity`, `nameTrgmSimilarity`, `providerTrgmSimilarity`, `search`, `searchScore`, `slugTrgmSimilarity`, `visibilityTrgmSimilarity` +> **Unified Search API fields:** `cloneUrlTrgmSimilarity`, `defaultBranchTrgmSimilarity`, `descriptionTrgmSimilarity`, `embeddingModelTrgmSimilarity`, `externalIdTrgmSimilarity`, `nameTrgmSimilarity`, `providerTrgmSimilarity`, `search`, `searchScore`, `searchTsvRank`, `slugTrgmSimilarity`, `visibilityTrgmSimilarity` > Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. **Search Examples:** @@ -3124,14 +3072,14 @@ CRUD operations for PlatformRepository records. *Vector similarity search via `embedding` (manual vector):* ```bash # Pass a pre-computed vector array via dot-notation -csdk platform-repository list --where.embedding.vector '[0.1,0.2,0.3]' --where.embedding.distance 1.0 --select title,embeddingVectorDistance +csdk platform-repository list --where.embedding.vector '[0.1,0.2,0.3]' --where.embedding.distance 1.0 --select name,embeddingVectorDistance ``` *Vector semantic search via `embedding` with --auto-embed:* ```bash # --auto-embed converts text to vectors using the configured embedder (e.g. Ollama nomic-embed-text) -EMBEDDER_PROVIDER=ollama csdk platform-repository search "semantic query" --auto-embed --select title,embeddingVectorDistance -EMBEDDER_PROVIDER=ollama csdk platform-repository list --where.embedding.vector "semantic query" --auto-embed --select title,embeddingVectorDistance +EMBEDDER_PROVIDER=ollama csdk platform-repository search "semantic query" --auto-embed --select name,embeddingVectorDistance +EMBEDDER_PROVIDER=ollama csdk platform-repository list --where.embedding.vector "semantic query" --auto-embed --select name,embeddingVectorDistance ``` *Create/update with auto-embedded `embedding` via --auto-embed:* @@ -3143,58 +3091,63 @@ EMBEDDER_PROVIDER=ollama csdk platform-repository update --embedding "new text t *Fuzzy search via trigram similarity (`trgmCloneUrl`):* ```bash -csdk platform-repository list --where.trgmCloneUrl.value "approximate query" --where.trgmCloneUrl.threshold 0.3 --select title,cloneUrlTrgmSimilarity +csdk platform-repository list --where.trgmCloneUrl.value "approximate query" --where.trgmCloneUrl.threshold 0.3 --select name,cloneUrlTrgmSimilarity ``` *Fuzzy search via trigram similarity (`trgmDefaultBranch`):* ```bash -csdk platform-repository list --where.trgmDefaultBranch.value "approximate query" --where.trgmDefaultBranch.threshold 0.3 --select title,defaultBranchTrgmSimilarity +csdk platform-repository list --where.trgmDefaultBranch.value "approximate query" --where.trgmDefaultBranch.threshold 0.3 --select name,defaultBranchTrgmSimilarity ``` *Fuzzy search via trigram similarity (`trgmDescription`):* ```bash -csdk platform-repository list --where.trgmDescription.value "approximate query" --where.trgmDescription.threshold 0.3 --select title,descriptionTrgmSimilarity +csdk platform-repository list --where.trgmDescription.value "approximate query" --where.trgmDescription.threshold 0.3 --select name,descriptionTrgmSimilarity +``` + +*Fuzzy search via trigram similarity (`trgmEmbeddingModel`):* +```bash +csdk platform-repository list --where.trgmEmbeddingModel.value "approximate query" --where.trgmEmbeddingModel.threshold 0.3 --select name,embeddingModelTrgmSimilarity ``` *Fuzzy search via trigram similarity (`trgmExternalId`):* ```bash -csdk platform-repository list --where.trgmExternalId.value "approximate query" --where.trgmExternalId.threshold 0.3 --select title,externalIdTrgmSimilarity +csdk platform-repository list --where.trgmExternalId.value "approximate query" --where.trgmExternalId.threshold 0.3 --select name,externalIdTrgmSimilarity ``` *Fuzzy search via trigram similarity (`trgmName`):* ```bash -csdk platform-repository list --where.trgmName.value "approximate query" --where.trgmName.threshold 0.3 --select title,nameTrgmSimilarity +csdk platform-repository list --where.trgmName.value "approximate query" --where.trgmName.threshold 0.3 --select name,nameTrgmSimilarity ``` *Fuzzy search via trigram similarity (`trgmProvider`):* ```bash -csdk platform-repository list --where.trgmProvider.value "approximate query" --where.trgmProvider.threshold 0.3 --select title,providerTrgmSimilarity +csdk platform-repository list --where.trgmProvider.value "approximate query" --where.trgmProvider.threshold 0.3 --select name,providerTrgmSimilarity ``` *Full-text search via tsvector (`search`):* ```bash -csdk platform-repository list --where.search "search query" --select title,tsvRank +csdk platform-repository list --where.search "search query" --select name,searchTsvRank ``` *Fuzzy search via trigram similarity (`trgmSlug`):* ```bash -csdk platform-repository list --where.trgmSlug.value "approximate query" --where.trgmSlug.threshold 0.3 --select title,slugTrgmSimilarity +csdk platform-repository list --where.trgmSlug.value "approximate query" --where.trgmSlug.threshold 0.3 --select name,slugTrgmSimilarity ``` *Fuzzy search via trigram similarity (`trgmVisibility`):* ```bash -csdk platform-repository list --where.trgmVisibility.value "approximate query" --where.trgmVisibility.threshold 0.3 --select title,visibilityTrgmSimilarity +csdk platform-repository list --where.trgmVisibility.value "approximate query" --where.trgmVisibility.threshold 0.3 --select name,visibilityTrgmSimilarity ``` *Composite search (unifiedSearch dispatches to all text adapters):* ```bash -csdk platform-repository list --where.unifiedSearch "search query" --select title,cloneUrlTrgmSimilarity,defaultBranchTrgmSimilarity,descriptionTrgmSimilarity,externalIdTrgmSimilarity,nameTrgmSimilarity,providerTrgmSimilarity,tsvRank,searchScore,slugTrgmSimilarity,visibilityTrgmSimilarity +csdk platform-repository list --where.unifiedSearch "search query" --select name,cloneUrlTrgmSimilarity,defaultBranchTrgmSimilarity,descriptionTrgmSimilarity,embeddingModelTrgmSimilarity,externalIdTrgmSimilarity,nameTrgmSimilarity,providerTrgmSimilarity,searchTsvRank,searchScore,slugTrgmSimilarity,visibilityTrgmSimilarity ``` *Search with pagination and field projection:* ```bash -csdk platform-repository list --where.unifiedSearch "query" --limit 10 --select id,title,searchScore -csdk platform-repository search "query" --limit 10 --select id,title,searchScore +csdk platform-repository list --where.unifiedSearch "query" --limit 10 --select id,name,searchScore +csdk platform-repository search "query" --limit 10 --select id,name,searchScore ``` @@ -3360,7 +3313,6 @@ CRUD operations for PlatformResourceDeclaredCapacity records. | `list` | List all platformResourceDeclaredCapacity records | | `find-first` | Find first matching platformResourceDeclaredCapacity record | | `get` | Get a platformResourceDeclaredCapacity by id | -| `create` | Create a new platformResourceDeclaredCapacity | | `update` | Update an existing platformResourceDeclaredCapacity | | `delete` | Delete a platformResourceDeclaredCapacity | @@ -3499,7 +3451,6 @@ CRUD operations for PlatformResourceObservedStorage records. | `list` | List all platformResourceObservedStorage records | | `find-first` | Find first matching platformResourceObservedStorage record | | `get` | Get a platformResourceObservedStorage by id | -| `create` | Create a new platformResourceObservedStorage | | `update` | Update an existing platformResourceObservedStorage | | `delete` | Delete a platformResourceObservedStorage | @@ -3625,7 +3576,6 @@ CRUD operations for PlatformResourceUtilization records. | `list` | List all platformResourceUtilization records | | `find-first` | Find first matching platformResourceUtilization record | | `get` | Get a platformResourceUtilization by id | -| `create` | Create a new platformResourceUtilization | | `update` | Update an existing platformResourceUtilization | | `delete` | Delete a platformResourceUtilization | @@ -3664,7 +3614,6 @@ CRUD operations for PlatformResourcesHealth records. | `list` | List all platformResourcesHealth records | | `find-first` | Find first matching platformResourcesHealth record | | `get` | Get a platformResourcesHealth by id | -| `create` | Create a new platformResourcesHealth | | `update` | Update an existing platformResourcesHealth | | `delete` | Delete a platformResourcesHealth | @@ -3719,7 +3668,6 @@ CRUD operations for PlatformResourcesRequirementsState records. | `list` | List all platformResourcesRequirementsState records | | `find-first` | Find first matching platformResourcesRequirementsState record | | `get` | Get a platformResourcesRequirementsState by id | -| `create` | Create a new platformResourcesRequirementsState | | `update` | Update an existing platformResourcesRequirementsState | | `delete` | Delete a platformResourcesRequirementsState | @@ -3746,7 +3694,6 @@ CRUD operations for PlatformResourcesResolvedRequirement records. | `list` | List all platformResourcesResolvedRequirement records | | `find-first` | Find first matching platformResourcesResolvedRequirement record | | `get` | Get a platformResourcesResolvedRequirement by id | -| `create` | Create a new platformResourcesResolvedRequirement | | `update` | Update an existing platformResourcesResolvedRequirement | | `delete` | Delete a platformResourcesResolvedRequirement | @@ -3768,6 +3715,43 @@ CRUD operations for PlatformResourcesResolvedRequirement records. **Required create fields:** `atomId`, `configObjectName`, `name`, `namespaceId`, `present`, `realm`, `required`, `requirementKind`, `resourceId`, `secretsObjectName`, `slug` +### `platform-service-binding` + +CRUD operations for PlatformServiceBinding records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all platformServiceBinding records | +| `find-first` | Find first matching platformServiceBinding record | +| `get` | Get a platformServiceBinding by id | +| `create` | Create a new platformServiceBinding | +| `update` | Update an existing platformServiceBinding | +| `delete` | Delete a platformServiceBinding | + +**Fields:** + +| Field | Type | +|-------|------| +| `createdAt` | Datetime | +| `createdBy` | UUID | +| `createdByPrincipal` | UUID | +| `id` | UUID | +| `installationId` | UUID | +| `installationScope` | String | +| `kind` | String | +| `lastError` | String | +| `metadata` | JSON | +| `namespaceId` | UUID | +| `observedHost` | String | +| `realm` | String | +| `status` | String | +| `updatedAt` | Datetime | +| `updatedBy` | UUID | +| `updatedByPrincipal` | UUID | + +**Required create fields:** `installationId`, `installationScope`, `kind`, `namespaceId` +**Optional create fields (backend defaults):** `createdBy`, `createdByPrincipal`, `lastError`, `metadata`, `observedHost`, `realm`, `status`, `updatedBy`, `updatedByPrincipal` + ### `platform-webhook-endpoint` CRUD operations for PlatformWebhookEndpoint records. @@ -3857,6 +3841,8 @@ CRUD operations for ProposalComment records. |-------|------| | `actorId` | UUID | | `attachments` | Upload | +| `attachmentsUrl` | String | +| `attachmentsVersions` | FileVersion | | `body` | String | | `bodyTrgmSimilarity` | Float | | `createdAt` | Datetime | @@ -3864,6 +3850,8 @@ CRUD operations for ProposalComment records. | `createdByPrincipal` | UUID | | `databaseId` | UUID | | `embedding` | Vector | +| `embeddingModel` | String | +| `embeddingModelTrgmSimilarity` | Float | | `embeddingUpdatedAt` | Datetime | | `embeddingVectorDistance` | Float | | `id` | UUID | @@ -3880,12 +3868,12 @@ CRUD operations for ProposalComment records. | `updatedBy` | UUID | | `updatedByPrincipal` | UUID | -**Required create fields:** `body`, `proposalId` +**Required create fields:** `body`, `databaseId`, `proposalId` **Optional create fields (backend defaults):** `actorId`, `attachments`, `createdBy`, `createdByPrincipal`, `embedding`, `line`, `outdatedAt`, `path`, `resolvedAt`, `updatedBy`, `updatedByPrincipal` > **pgvector embedding fields:** `embedding` > High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. Supports chunk-aware search: set `includeChunks: true` in VectorNearbyInput to transparently query across parent and chunk embeddings, returning the minimum distance. -> **Unified Search API fields:** `bodyTrgmSimilarity`, `pathTrgmSimilarity`, `search`, `searchScore` +> **Unified Search API fields:** `bodyTrgmSimilarity`, `embeddingModelTrgmSimilarity`, `pathTrgmSimilarity`, `search`, `searchScore`, `searchTsvRank` > Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. **Search Examples:** @@ -3893,14 +3881,14 @@ CRUD operations for ProposalComment records. *Vector similarity search via `embedding` (manual vector):* ```bash # Pass a pre-computed vector array via dot-notation -csdk proposal-comment list --where.embedding.vector '[0.1,0.2,0.3]' --where.embedding.distance 1.0 --select title,embeddingVectorDistance +csdk proposal-comment list --where.embedding.vector '[0.1,0.2,0.3]' --where.embedding.distance 1.0 --select body,embeddingVectorDistance ``` *Vector semantic search via `embedding` with --auto-embed:* ```bash # --auto-embed converts text to vectors using the configured embedder (e.g. Ollama nomic-embed-text) -EMBEDDER_PROVIDER=ollama csdk proposal-comment search "semantic query" --auto-embed --select title,embeddingVectorDistance -EMBEDDER_PROVIDER=ollama csdk proposal-comment list --where.embedding.vector "semantic query" --auto-embed --select title,embeddingVectorDistance +EMBEDDER_PROVIDER=ollama csdk proposal-comment search "semantic query" --auto-embed --select body,embeddingVectorDistance +EMBEDDER_PROVIDER=ollama csdk proposal-comment list --where.embedding.vector "semantic query" --auto-embed --select body,embeddingVectorDistance ``` *Create/update with auto-embedded `embedding` via --auto-embed:* @@ -3912,28 +3900,33 @@ EMBEDDER_PROVIDER=ollama csdk proposal-comment update --embedding "new text to e *Fuzzy search via trigram similarity (`trgmBody`):* ```bash -csdk proposal-comment list --where.trgmBody.value "approximate query" --where.trgmBody.threshold 0.3 --select title,bodyTrgmSimilarity +csdk proposal-comment list --where.trgmBody.value "approximate query" --where.trgmBody.threshold 0.3 --select body,bodyTrgmSimilarity +``` + +*Fuzzy search via trigram similarity (`trgmEmbeddingModel`):* +```bash +csdk proposal-comment list --where.trgmEmbeddingModel.value "approximate query" --where.trgmEmbeddingModel.threshold 0.3 --select body,embeddingModelTrgmSimilarity ``` *Fuzzy search via trigram similarity (`trgmPath`):* ```bash -csdk proposal-comment list --where.trgmPath.value "approximate query" --where.trgmPath.threshold 0.3 --select title,pathTrgmSimilarity +csdk proposal-comment list --where.trgmPath.value "approximate query" --where.trgmPath.threshold 0.3 --select body,pathTrgmSimilarity ``` *Full-text search via tsvector (`search`):* ```bash -csdk proposal-comment list --where.search "search query" --select title,tsvRank +csdk proposal-comment list --where.search "search query" --select body,searchTsvRank ``` *Composite search (unifiedSearch dispatches to all text adapters):* ```bash -csdk proposal-comment list --where.unifiedSearch "search query" --select title,bodyTrgmSimilarity,pathTrgmSimilarity,tsvRank,searchScore +csdk proposal-comment list --where.unifiedSearch "search query" --select body,bodyTrgmSimilarity,embeddingModelTrgmSimilarity,pathTrgmSimilarity,searchTsvRank,searchScore ``` *Search with pagination and field projection:* ```bash -csdk proposal-comment list --where.unifiedSearch "query" --limit 10 --select id,title,searchScore -csdk proposal-comment search "query" --limit 10 --select id,title,searchScore +csdk proposal-comment list --where.unifiedSearch "query" --limit 10 --select id,body,searchScore +csdk proposal-comment search "query" --limit 10 --select id,body,searchScore ``` @@ -3967,6 +3960,8 @@ CRUD operations for Proposal records. | `decidedAt` | Datetime | | `dueAt` | Datetime | | `embedding` | Vector | +| `embeddingModel` | String | +| `embeddingModelTrgmSimilarity` | Float | | `embeddingUpdatedAt` | Datetime | | `embeddingVectorDistance` | Float | | `id` | UUID | @@ -4000,12 +3995,12 @@ CRUD operations for Proposal records. | `updatedBy` | UUID | | `updatedByPrincipal` | UUID | -**Required create fields:** `repositoryId`, `title` +**Required create fields:** `databaseId`, `repositoryId`, `title` **Optional create fields (backend defaults):** `actorId`, `body`, `closedReason`, `createdBy`, `createdByPrincipal`, `decidedAt`, `dueAt`, `embedding`, `kind`, `labels`, `mergeCommit`, `mergeMethod`, `mergeRequestedAt`, `mergedAt`, `metadata`, `parentId`, `priority`, `resolution`, `sourceRef`, `status`, `targetRef`, `updatedBy`, `updatedByPrincipal` > **pgvector embedding fields:** `embedding` > High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. Supports chunk-aware search: set `includeChunks: true` in VectorNearbyInput to transparently query across parent and chunk embeddings, returning the minimum distance. -> **Unified Search API fields:** `bodyTrgmSimilarity`, `closedReasonTrgmSimilarity`, `kindTrgmSimilarity`, `mergeCommitTrgmSimilarity`, `mergeMethodTrgmSimilarity`, `resolutionTrgmSimilarity`, `search`, `searchScore`, `sourceRefTrgmSimilarity`, `statusTrgmSimilarity`, `targetRefTrgmSimilarity`, `titleTrgmSimilarity` +> **Unified Search API fields:** `bodyTrgmSimilarity`, `closedReasonTrgmSimilarity`, `embeddingModelTrgmSimilarity`, `kindTrgmSimilarity`, `mergeCommitTrgmSimilarity`, `mergeMethodTrgmSimilarity`, `resolutionTrgmSimilarity`, `search`, `searchScore`, `searchTsvRank`, `sourceRefTrgmSimilarity`, `statusTrgmSimilarity`, `targetRefTrgmSimilarity`, `titleTrgmSimilarity` > Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. **Search Examples:** @@ -4040,6 +4035,11 @@ csdk proposal list --where.trgmBody.value "approximate query" --where.trgmBody.t csdk proposal list --where.trgmClosedReason.value "approximate query" --where.trgmClosedReason.threshold 0.3 --select title,closedReasonTrgmSimilarity ``` +*Fuzzy search via trigram similarity (`trgmEmbeddingModel`):* +```bash +csdk proposal list --where.trgmEmbeddingModel.value "approximate query" --where.trgmEmbeddingModel.threshold 0.3 --select title,embeddingModelTrgmSimilarity +``` + *Fuzzy search via trigram similarity (`trgmKind`):* ```bash csdk proposal list --where.trgmKind.value "approximate query" --where.trgmKind.threshold 0.3 --select title,kindTrgmSimilarity @@ -4062,7 +4062,7 @@ csdk proposal list --where.trgmResolution.value "approximate query" --where.trgm *Full-text search via tsvector (`search`):* ```bash -csdk proposal list --where.search "search query" --select title,tsvRank +csdk proposal list --where.search "search query" --select title,searchTsvRank ``` *Fuzzy search via trigram similarity (`trgmSourceRef`):* @@ -4087,7 +4087,7 @@ csdk proposal list --where.trgmTitle.value "approximate query" --where.trgmTitle *Composite search (unifiedSearch dispatches to all text adapters):* ```bash -csdk proposal list --where.unifiedSearch "search query" --select title,bodyTrgmSimilarity,closedReasonTrgmSimilarity,kindTrgmSimilarity,mergeCommitTrgmSimilarity,mergeMethodTrgmSimilarity,resolutionTrgmSimilarity,tsvRank,searchScore,sourceRefTrgmSimilarity,statusTrgmSimilarity,targetRefTrgmSimilarity,titleTrgmSimilarity +csdk proposal list --where.unifiedSearch "search query" --select title,bodyTrgmSimilarity,closedReasonTrgmSimilarity,embeddingModelTrgmSimilarity,kindTrgmSimilarity,mergeCommitTrgmSimilarity,mergeMethodTrgmSimilarity,resolutionTrgmSimilarity,searchTsvRank,searchScore,sourceRefTrgmSimilarity,statusTrgmSimilarity,targetRefTrgmSimilarity,titleTrgmSimilarity ``` *Search with pagination and field projection:* @@ -4126,7 +4126,7 @@ CRUD operations for ProposalFileView records. | `updatedByPrincipal` | UUID | | `viewedAt` | Datetime | -**Required create fields:** `blobSha`, `path`, `proposalId`, `reviewerId` +**Required create fields:** `blobSha`, `databaseId`, `path`, `proposalId`, `reviewerId` **Optional create fields (backend defaults):** `createdByPrincipal`, `updatedByPrincipal`, `viewedAt` ### `proposal-reaction` @@ -4157,7 +4157,7 @@ CRUD operations for ProposalReaction records. | `updatedAt` | Datetime | | `updatedByPrincipal` | UUID | -**Required create fields:** `actorId`, `emoji`, `proposalId` +**Required create fields:** `actorId`, `databaseId`, `emoji`, `proposalId` **Optional create fields (backend defaults):** `commentId`, `createdByPrincipal`, `updatedByPrincipal` ### `proposal-review` @@ -4197,42 +4197,42 @@ CRUD operations for ProposalReview records. | `verdict` | String | | `verdictTrgmSimilarity` | Float | -**Required create fields:** `commitSha`, `proposalId`, `reviewerId`, `verdict` +**Required create fields:** `commitSha`, `databaseId`, `proposalId`, `reviewerId`, `verdict` **Optional create fields (backend defaults):** `body`, `createdByPrincipal`, `submittedAt`, `updatedByPrincipal` -> **Unified Search API fields:** `bodyTrgmSimilarity`, `commitShaTrgmSimilarity`, `search`, `searchScore`, `verdictTrgmSimilarity` +> **Unified Search API fields:** `bodyTrgmSimilarity`, `commitShaTrgmSimilarity`, `search`, `searchScore`, `searchTsvRank`, `verdictTrgmSimilarity` > Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. **Search Examples:** *Fuzzy search via trigram similarity (`trgmBody`):* ```bash -csdk proposal-review list --where.trgmBody.value "approximate query" --where.trgmBody.threshold 0.3 --select title,bodyTrgmSimilarity +csdk proposal-review list --where.trgmBody.value "approximate query" --where.trgmBody.threshold 0.3 --select body,bodyTrgmSimilarity ``` *Fuzzy search via trigram similarity (`trgmCommitSha`):* ```bash -csdk proposal-review list --where.trgmCommitSha.value "approximate query" --where.trgmCommitSha.threshold 0.3 --select title,commitShaTrgmSimilarity +csdk proposal-review list --where.trgmCommitSha.value "approximate query" --where.trgmCommitSha.threshold 0.3 --select body,commitShaTrgmSimilarity ``` *Full-text search via tsvector (`search`):* ```bash -csdk proposal-review list --where.search "search query" --select title,tsvRank +csdk proposal-review list --where.search "search query" --select body,searchTsvRank ``` *Fuzzy search via trigram similarity (`trgmVerdict`):* ```bash -csdk proposal-review list --where.trgmVerdict.value "approximate query" --where.trgmVerdict.threshold 0.3 --select title,verdictTrgmSimilarity +csdk proposal-review list --where.trgmVerdict.value "approximate query" --where.trgmVerdict.threshold 0.3 --select body,verdictTrgmSimilarity ``` *Composite search (unifiedSearch dispatches to all text adapters):* ```bash -csdk proposal-review list --where.unifiedSearch "search query" --select title,bodyTrgmSimilarity,commitShaTrgmSimilarity,tsvRank,searchScore,verdictTrgmSimilarity +csdk proposal-review list --where.unifiedSearch "search query" --select body,bodyTrgmSimilarity,commitShaTrgmSimilarity,searchTsvRank,searchScore,verdictTrgmSimilarity ``` *Search with pagination and field projection:* ```bash -csdk proposal-review list --where.unifiedSearch "query" --limit 10 --select id,title,searchScore -csdk proposal-review search "query" --limit 10 --select id,title,searchScore +csdk proposal-review list --where.unifiedSearch "query" --limit 10 --select id,body,searchScore +csdk proposal-review search "query" --limit 10 --select id,body,searchScore ``` @@ -4280,14 +4280,14 @@ CRUD operations for ProposalsChunk records. *Vector similarity search via `embedding` (manual vector):* ```bash # Pass a pre-computed vector array via dot-notation -csdk proposals-chunk list --where.embedding.vector '[0.1,0.2,0.3]' --where.embedding.distance 1.0 --select title,embeddingVectorDistance +csdk proposals-chunk list --where.embedding.vector '[0.1,0.2,0.3]' --where.embedding.distance 1.0 --select body,embeddingVectorDistance ``` *Vector semantic search via `embedding` with --auto-embed:* ```bash # --auto-embed converts text to vectors using the configured embedder (e.g. Ollama nomic-embed-text) -EMBEDDER_PROVIDER=ollama csdk proposals-chunk search "semantic query" --auto-embed --select title,embeddingVectorDistance -EMBEDDER_PROVIDER=ollama csdk proposals-chunk list --where.embedding.vector "semantic query" --auto-embed --select title,embeddingVectorDistance +EMBEDDER_PROVIDER=ollama csdk proposals-chunk search "semantic query" --auto-embed --select body,embeddingVectorDistance +EMBEDDER_PROVIDER=ollama csdk proposals-chunk list --where.embedding.vector "semantic query" --auto-embed --select body,embeddingVectorDistance ``` *Create/update with auto-embedded `embedding` via --auto-embed:* @@ -4299,8 +4299,8 @@ EMBEDDER_PROVIDER=ollama csdk proposals-chunk update --embedding "new text to em *Search with pagination and field projection:* ```bash -csdk proposals-chunk list --where.unifiedSearch "query" --limit 10 --select id,title,searchScore -csdk proposals-chunk search "query" --limit 10 --select id,title,searchScore +csdk proposals-chunk list --where.unifiedSearch "query" --limit 10 --select id,body,searchScore +csdk proposals-chunk search "query" --limit 10 --select id,body,searchScore ``` @@ -4444,6 +4444,8 @@ CRUD operations for Repository records. | `description` | String | | `descriptionTrgmSimilarity` | Float | | `embedding` | Vector | +| `embeddingModel` | String | +| `embeddingModelTrgmSimilarity` | Float | | `embeddingUpdatedAt` | Datetime | | `embeddingVectorDistance` | Float | | `externalId` | String | @@ -4472,7 +4474,7 @@ CRUD operations for Repository records. > **pgvector embedding fields:** `embedding` > High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. Supports chunk-aware search: set `includeChunks: true` in VectorNearbyInput to transparently query across parent and chunk embeddings, returning the minimum distance. -> **Unified Search API fields:** `cloneUrlTrgmSimilarity`, `defaultBranchTrgmSimilarity`, `descriptionTrgmSimilarity`, `externalIdTrgmSimilarity`, `nameTrgmSimilarity`, `providerTrgmSimilarity`, `search`, `searchScore`, `slugTrgmSimilarity`, `visibilityTrgmSimilarity` +> **Unified Search API fields:** `cloneUrlTrgmSimilarity`, `defaultBranchTrgmSimilarity`, `descriptionTrgmSimilarity`, `embeddingModelTrgmSimilarity`, `externalIdTrgmSimilarity`, `nameTrgmSimilarity`, `providerTrgmSimilarity`, `search`, `searchScore`, `searchTsvRank`, `slugTrgmSimilarity`, `visibilityTrgmSimilarity` > Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. **Search Examples:** @@ -4480,14 +4482,14 @@ CRUD operations for Repository records. *Vector similarity search via `embedding` (manual vector):* ```bash # Pass a pre-computed vector array via dot-notation -csdk repository list --where.embedding.vector '[0.1,0.2,0.3]' --where.embedding.distance 1.0 --select title,embeddingVectorDistance +csdk repository list --where.embedding.vector '[0.1,0.2,0.3]' --where.embedding.distance 1.0 --select name,embeddingVectorDistance ``` *Vector semantic search via `embedding` with --auto-embed:* ```bash # --auto-embed converts text to vectors using the configured embedder (e.g. Ollama nomic-embed-text) -EMBEDDER_PROVIDER=ollama csdk repository search "semantic query" --auto-embed --select title,embeddingVectorDistance -EMBEDDER_PROVIDER=ollama csdk repository list --where.embedding.vector "semantic query" --auto-embed --select title,embeddingVectorDistance +EMBEDDER_PROVIDER=ollama csdk repository search "semantic query" --auto-embed --select name,embeddingVectorDistance +EMBEDDER_PROVIDER=ollama csdk repository list --where.embedding.vector "semantic query" --auto-embed --select name,embeddingVectorDistance ``` *Create/update with auto-embedded `embedding` via --auto-embed:* @@ -4499,58 +4501,63 @@ EMBEDDER_PROVIDER=ollama csdk repository update --embedding "new text to embed" *Fuzzy search via trigram similarity (`trgmCloneUrl`):* ```bash -csdk repository list --where.trgmCloneUrl.value "approximate query" --where.trgmCloneUrl.threshold 0.3 --select title,cloneUrlTrgmSimilarity +csdk repository list --where.trgmCloneUrl.value "approximate query" --where.trgmCloneUrl.threshold 0.3 --select name,cloneUrlTrgmSimilarity ``` *Fuzzy search via trigram similarity (`trgmDefaultBranch`):* ```bash -csdk repository list --where.trgmDefaultBranch.value "approximate query" --where.trgmDefaultBranch.threshold 0.3 --select title,defaultBranchTrgmSimilarity +csdk repository list --where.trgmDefaultBranch.value "approximate query" --where.trgmDefaultBranch.threshold 0.3 --select name,defaultBranchTrgmSimilarity ``` *Fuzzy search via trigram similarity (`trgmDescription`):* ```bash -csdk repository list --where.trgmDescription.value "approximate query" --where.trgmDescription.threshold 0.3 --select title,descriptionTrgmSimilarity +csdk repository list --where.trgmDescription.value "approximate query" --where.trgmDescription.threshold 0.3 --select name,descriptionTrgmSimilarity +``` + +*Fuzzy search via trigram similarity (`trgmEmbeddingModel`):* +```bash +csdk repository list --where.trgmEmbeddingModel.value "approximate query" --where.trgmEmbeddingModel.threshold 0.3 --select name,embeddingModelTrgmSimilarity ``` *Fuzzy search via trigram similarity (`trgmExternalId`):* ```bash -csdk repository list --where.trgmExternalId.value "approximate query" --where.trgmExternalId.threshold 0.3 --select title,externalIdTrgmSimilarity +csdk repository list --where.trgmExternalId.value "approximate query" --where.trgmExternalId.threshold 0.3 --select name,externalIdTrgmSimilarity ``` *Fuzzy search via trigram similarity (`trgmName`):* ```bash -csdk repository list --where.trgmName.value "approximate query" --where.trgmName.threshold 0.3 --select title,nameTrgmSimilarity +csdk repository list --where.trgmName.value "approximate query" --where.trgmName.threshold 0.3 --select name,nameTrgmSimilarity ``` *Fuzzy search via trigram similarity (`trgmProvider`):* ```bash -csdk repository list --where.trgmProvider.value "approximate query" --where.trgmProvider.threshold 0.3 --select title,providerTrgmSimilarity +csdk repository list --where.trgmProvider.value "approximate query" --where.trgmProvider.threshold 0.3 --select name,providerTrgmSimilarity ``` *Full-text search via tsvector (`search`):* ```bash -csdk repository list --where.search "search query" --select title,tsvRank +csdk repository list --where.search "search query" --select name,searchTsvRank ``` *Fuzzy search via trigram similarity (`trgmSlug`):* ```bash -csdk repository list --where.trgmSlug.value "approximate query" --where.trgmSlug.threshold 0.3 --select title,slugTrgmSimilarity +csdk repository list --where.trgmSlug.value "approximate query" --where.trgmSlug.threshold 0.3 --select name,slugTrgmSimilarity ``` *Fuzzy search via trigram similarity (`trgmVisibility`):* ```bash -csdk repository list --where.trgmVisibility.value "approximate query" --where.trgmVisibility.threshold 0.3 --select title,visibilityTrgmSimilarity +csdk repository list --where.trgmVisibility.value "approximate query" --where.trgmVisibility.threshold 0.3 --select name,visibilityTrgmSimilarity ``` *Composite search (unifiedSearch dispatches to all text adapters):* ```bash -csdk repository list --where.unifiedSearch "search query" --select title,cloneUrlTrgmSimilarity,defaultBranchTrgmSimilarity,descriptionTrgmSimilarity,externalIdTrgmSimilarity,nameTrgmSimilarity,providerTrgmSimilarity,tsvRank,searchScore,slugTrgmSimilarity,visibilityTrgmSimilarity +csdk repository list --where.unifiedSearch "search query" --select name,cloneUrlTrgmSimilarity,defaultBranchTrgmSimilarity,descriptionTrgmSimilarity,embeddingModelTrgmSimilarity,externalIdTrgmSimilarity,nameTrgmSimilarity,providerTrgmSimilarity,searchTsvRank,searchScore,slugTrgmSimilarity,visibilityTrgmSimilarity ``` *Search with pagination and field projection:* ```bash -csdk repository list --where.unifiedSearch "query" --limit 10 --select id,title,searchScore -csdk repository search "query" --limit 10 --select id,title,searchScore +csdk repository list --where.unifiedSearch "query" --limit 10 --select id,name,searchScore +csdk repository search "query" --limit 10 --select id,name,searchScore ``` @@ -4586,7 +4593,7 @@ CRUD operations for RepositoryEvent records. | `updatedAt` | Datetime | | `updatedByPrincipal` | UUID | -**Required create fields:** `eventType`, `repositoryId` +**Required create fields:** `databaseId`, `eventType`, `repositoryId` **Optional create fields (backend defaults):** `actorId`, `commitSha`, `createdByPrincipal`, `deliveryId`, `metadata`, `payload`, `ref`, `updatedByPrincipal` ### `repository-required-check` @@ -4652,7 +4659,7 @@ CRUD operations for RepositoryWorkflow records. | `updatedBy` | UUID | | `updatedByPrincipal` | UUID | -**Required create fields:** `eventType`, `name`, `repositoryId`, `slug` +**Required create fields:** `databaseId`, `eventType`, `name`, `repositoryId`, `slug` **Optional create fields (backend defaults):** `cancelInProgress`, `concurrencyKey`, `createdBy`, `createdByPrincipal`, `graphId`, `inputs`, `isEnabled`, `refPattern`, `requiredSecrets`, `updatedBy`, `updatedByPrincipal` ### `resource` @@ -4720,7 +4727,6 @@ CRUD operations for ResourceDeclaredCapacity records. | `list` | List all resourceDeclaredCapacity records | | `find-first` | Find first matching resourceDeclaredCapacity record | | `get` | Get a resourceDeclaredCapacity by id | -| `create` | Create a new resourceDeclaredCapacity | | `update` | Update an existing resourceDeclaredCapacity | | `delete` | Delete a resourceDeclaredCapacity | @@ -4862,7 +4868,6 @@ CRUD operations for ResourceObservedStorage records. | `list` | List all resourceObservedStorage records | | `find-first` | Find first matching resourceObservedStorage record | | `get` | Get a resourceObservedStorage by id | -| `create` | Create a new resourceObservedStorage | | `update` | Update an existing resourceObservedStorage | | `delete` | Delete a resourceObservedStorage | @@ -4991,7 +4996,6 @@ CRUD operations for ResourceUtilization records. | `list` | List all resourceUtilization records | | `find-first` | Find first matching resourceUtilization record | | `get` | Get a resourceUtilization by id | -| `create` | Create a new resourceUtilization | | `update` | Update an existing resourceUtilization | | `delete` | Delete a resourceUtilization | @@ -5030,7 +5034,6 @@ CRUD operations for ResourcesHealth records. | `list` | List all resourcesHealth records | | `find-first` | Find first matching resourcesHealth record | | `get` | Get a resourcesHealth by id | -| `create` | Create a new resourcesHealth | | `update` | Update an existing resourcesHealth | | `delete` | Delete a resourcesHealth | @@ -5086,7 +5089,6 @@ CRUD operations for ResourcesRequirementsState records. | `list` | List all resourcesRequirementsState records | | `find-first` | Find first matching resourcesRequirementsState record | | `get` | Get a resourcesRequirementsState by id | -| `create` | Create a new resourcesRequirementsState | | `update` | Update an existing resourcesRequirementsState | | `delete` | Delete a resourcesRequirementsState | @@ -5113,7 +5115,6 @@ CRUD operations for ResourcesResolvedRequirement records. | `list` | List all resourcesResolvedRequirement records | | `find-first` | Find first matching resourcesResolvedRequirement record | | `get` | Get a resourcesResolvedRequirement by id | -| `create` | Create a new resourcesResolvedRequirement | | `update` | Update an existing resourcesResolvedRequirement | | `delete` | Delete a resourcesResolvedRequirement | @@ -5135,6 +5136,44 @@ CRUD operations for ResourcesResolvedRequirement records. **Required create fields:** `atomId`, `configObjectName`, `name`, `namespaceId`, `present`, `realm`, `required`, `requirementKind`, `resourceId`, `secretsObjectName`, `slug` +### `service-binding` + +CRUD operations for ServiceBinding records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all serviceBinding records | +| `find-first` | Find first matching serviceBinding record | +| `get` | Get a serviceBinding by id | +| `create` | Create a new serviceBinding | +| `update` | Update an existing serviceBinding | +| `delete` | Delete a serviceBinding | + +**Fields:** + +| Field | Type | +|-------|------| +| `createdAt` | Datetime | +| `createdBy` | UUID | +| `createdByPrincipal` | UUID | +| `databaseId` | UUID | +| `id` | UUID | +| `installationId` | UUID | +| `installationScope` | String | +| `kind` | String | +| `lastError` | String | +| `metadata` | JSON | +| `namespaceId` | UUID | +| `observedHost` | String | +| `realm` | String | +| `status` | String | +| `updatedAt` | Datetime | +| `updatedBy` | UUID | +| `updatedByPrincipal` | UUID | + +**Required create fields:** `databaseId`, `installationId`, `installationScope`, `kind`, `namespaceId` +**Optional create fields (backend defaults):** `createdBy`, `createdByPrincipal`, `lastError`, `metadata`, `observedHost`, `realm`, `status`, `updatedBy`, `updatedByPrincipal` + ### `webhook-endpoint` CRUD operations for WebhookEndpoint records. @@ -5331,6 +5370,23 @@ copyGraph | `--input.name` | String | | `--input.scopeId` | UUID | +### `create-function-graph` + +createFunctionGraph + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.context` | String | + | `--input.createdBy` | UUID | + | `--input.definitionsCommitId` | UUID | + | `--input.description` | String | + | `--input.name` | String | + | `--input.scopeId` | UUID | + ### `database-add-edge` databaseAddEdge diff --git a/sdk/constructive-cli/src/compute/cli/commands.ts b/sdk/constructive-cli/src/compute/cli/commands.ts index 78aee3f9d0..7c446400dc 100644 --- a/sdk/constructive-cli/src/compute/cli/commands.ts +++ b/sdk/constructive-cli/src/compute/cli/commands.ts @@ -8,7 +8,6 @@ import contextCmd from './commands/context'; import authCmd from './commands/auth'; import buildCmd from './commands/build'; import buildStepCmd from './commands/build-step'; -import builderBindingCmd from './commands/builder-binding'; import contentPresetCmd from './commands/content-preset'; import databaseFunctionGraphCmd from './commands/database-function-graph'; import databaseFunctionGraphExecutionCancelRequestCmd from './commands/database-function-graph-execution-cancel-request'; @@ -52,7 +51,6 @@ import namespaceCmd from './commands/namespace'; import namespaceEventCmd from './commands/namespace-event'; import platformBuildCmd from './commands/platform-build'; import platformBuildStepCmd from './commands/platform-build-step'; -import platformBuilderBindingCmd from './commands/platform-builder-binding'; import platformFunctionApiBindingCmd from './commands/platform-function-api-binding'; import platformFunctionCapabilityBindingCmd from './commands/platform-function-capability-binding'; import platformFunctionDefinitionCmd from './commands/platform-function-definition'; @@ -99,6 +97,7 @@ import platformResourceUtilizationCmd from './commands/platform-resource-utiliza import platformResourcesHealthCmd from './commands/platform-resources-health'; import platformResourcesRequirementsStateCmd from './commands/platform-resources-requirements-state'; import platformResourcesResolvedRequirementCmd from './commands/platform-resources-resolved-requirement'; +import platformServiceBindingCmd from './commands/platform-service-binding'; import platformWebhookEndpointCmd from './commands/platform-webhook-endpoint'; import platformWebhookEventCmd from './commands/platform-webhook-event'; import proposalCommentCmd from './commands/proposal-comment'; @@ -127,6 +126,7 @@ import resourceUtilizationCmd from './commands/resource-utilization'; import resourcesHealthCmd from './commands/resources-health'; import resourcesRequirementsStateCmd from './commands/resources-requirements-state'; import resourcesResolvedRequirementCmd from './commands/resources-resolved-requirement'; +import serviceBindingCmd from './commands/service-binding'; import webhookEndpointCmd from './commands/webhook-endpoint'; import webhookEventCmd from './commands/webhook-event'; import databaseReadFunctionGraphCmd from './commands/database-read-function-graph'; @@ -137,6 +137,7 @@ import addNodeCmd from './commands/add-node'; import addNodeAndSaveCmd from './commands/add-node-and-save'; import approveNodeCmd from './commands/approve-node'; import copyGraphCmd from './commands/copy-graph'; +import createFunctionGraphCmd from './commands/create-function-graph'; import databaseAddEdgeCmd from './commands/database-add-edge'; import databaseAddEdgeAndSaveCmd from './commands/database-add-edge-and-save'; import databaseAddNodeCmd from './commands/database-add-node'; @@ -205,7 +206,6 @@ const createCommandMap: () => Record< auth: authCmd, build: buildCmd, 'build-step': buildStepCmd, - 'builder-binding': builderBindingCmd, 'content-preset': contentPresetCmd, 'database-function-graph': databaseFunctionGraphCmd, 'database-function-graph-execution-cancel-request': @@ -250,7 +250,6 @@ const createCommandMap: () => Record< 'namespace-event': namespaceEventCmd, 'platform-build': platformBuildCmd, 'platform-build-step': platformBuildStepCmd, - 'platform-builder-binding': platformBuilderBindingCmd, 'platform-function-api-binding': platformFunctionApiBindingCmd, 'platform-function-capability-binding': platformFunctionCapabilityBindingCmd, 'platform-function-definition': platformFunctionDefinitionCmd, @@ -297,6 +296,7 @@ const createCommandMap: () => Record< 'platform-resources-health': platformResourcesHealthCmd, 'platform-resources-requirements-state': platformResourcesRequirementsStateCmd, 'platform-resources-resolved-requirement': platformResourcesResolvedRequirementCmd, + 'platform-service-binding': platformServiceBindingCmd, 'platform-webhook-endpoint': platformWebhookEndpointCmd, 'platform-webhook-event': platformWebhookEventCmd, 'proposal-comment': proposalCommentCmd, @@ -325,6 +325,7 @@ const createCommandMap: () => Record< 'resources-health': resourcesHealthCmd, 'resources-requirements-state': resourcesRequirementsStateCmd, 'resources-resolved-requirement': resourcesResolvedRequirementCmd, + 'service-binding': serviceBindingCmd, 'webhook-endpoint': webhookEndpointCmd, 'webhook-event': webhookEventCmd, 'database-read-function-graph': databaseReadFunctionGraphCmd, @@ -335,6 +336,7 @@ const createCommandMap: () => Record< 'add-node-and-save': addNodeAndSaveCmd, 'approve-node': approveNodeCmd, 'copy-graph': copyGraphCmd, + 'create-function-graph': createFunctionGraphCmd, 'database-add-edge': databaseAddEdgeCmd, 'database-add-edge-and-save': databaseAddEdgeAndSaveCmd, 'database-add-node': databaseAddNodeCmd, @@ -393,7 +395,7 @@ const createCommandMap: () => Record< 'validate-function-graph': validateFunctionGraphCmd, }); const usage = - "\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n build build CRUD operations\n build-step buildStep CRUD operations\n builder-binding builderBinding CRUD operations\n content-preset contentPreset CRUD operations\n database-function-graph databaseFunctionGraph CRUD operations\n database-function-graph-execution-cancel-request databaseFunctionGraphExecutionCancelRequest CRUD operations\n database-function-graph-execution databaseFunctionGraphExecution CRUD operations\n database-function-graph-execution-node-state databaseFunctionGraphExecutionNodeState CRUD operations\n database-function-graph-execution-output databaseFunctionGraphExecutionOutput CRUD operations\n database-graph-commit databaseGraphCommit CRUD operations\n database-graph-get-all-tree-nodes-record databaseGraphGetAllTreeNodesRecord CRUD operations\n database-graph-object databaseGraphObject CRUD operations\n database-graph-ref databaseGraphRef CRUD operations\n database-graph-store databaseGraphStore CRUD operations\n db-preset dbPreset CRUD operations\n function-api-binding functionApiBinding CRUD operations\n function-capability-binding functionCapabilityBinding CRUD operations\n function-definition functionDefinition CRUD operations\n function-deployment functionDeployment CRUD operations\n function-deployment-event functionDeploymentEvent CRUD operations\n function-execution-log functionExecutionLog CRUD operations\n function-graph-commit functionGraphCommit CRUD operations\n function-graph functionGraph CRUD operations\n function-graph-execution-cancel-request functionGraphExecutionCancelRequest CRUD operations\n function-graph-execution functionGraphExecution CRUD operations\n function-graph-execution-node-state functionGraphExecutionNodeState CRUD operations\n function-graph-execution-output functionGraphExecutionOutput CRUD operations\n function-graph-object functionGraphObject CRUD operations\n function-graph-ref functionGraphRef CRUD operations\n function-graph-store functionGraphStore CRUD operations\n function-invocation-attempt functionInvocationAttempt CRUD operations\n function-invocation functionInvocation CRUD operations\n function-schedule functionSchedule CRUD operations\n get-all-tree-nodes-record getAllTreeNodesRecord CRUD operations\n image image CRUD operations\n image-grant imageGrant CRUD operations\n infra-commit infraCommit CRUD operations\n infra-get-all-tree-nodes-record infraGetAllTreeNodesRecord CRUD operations\n infra-object infraObject CRUD operations\n infra-ref infraRef CRUD operations\n infra-store infraStore CRUD operations\n integration-provider integrationProvider CRUD operations\n namespace namespace CRUD operations\n namespace-event namespaceEvent CRUD operations\n platform-build platformBuild CRUD operations\n platform-build-step platformBuildStep CRUD operations\n platform-builder-binding platformBuilderBinding CRUD operations\n platform-function-api-binding platformFunctionApiBinding CRUD operations\n platform-function-capability-binding platformFunctionCapabilityBinding CRUD operations\n platform-function-definition platformFunctionDefinition CRUD operations\n platform-function-deployment platformFunctionDeployment CRUD operations\n platform-function-deployment-event platformFunctionDeploymentEvent CRUD operations\n platform-function-execution-log platformFunctionExecutionLog CRUD operations\n platform-function-invocation-attempt platformFunctionInvocationAttempt CRUD operations\n platform-function-invocation platformFunctionInvocation CRUD operations\n platform-function-schedule platformFunctionSchedule CRUD operations\n platform-image platformImage CRUD operations\n platform-image-grant platformImageGrant CRUD operations\n platform-infra-commit platformInfraCommit CRUD operations\n platform-infra-get-all-tree-nodes-record platformInfraGetAllTreeNodesRecord CRUD operations\n platform-infra-object platformInfraObject CRUD operations\n platform-infra-ref platformInfraRef CRUD operations\n platform-infra-store platformInfraStore CRUD operations\n platform-k-8-s-resource-kind platformK8sResourceKind CRUD operations\n platform-k-8-s-spec-rule platformK8sSpecRule CRUD operations\n platform-namespace platformNamespace CRUD operations\n platform-namespace-event platformNamespaceEvent CRUD operations\n platform-proposal-comment platformProposalComment CRUD operations\n platform-proposal platformProposal CRUD operations\n platform-proposal-file-view platformProposalFileView CRUD operations\n platform-proposal-reaction platformProposalReaction CRUD operations\n platform-proposal-review platformProposalReview CRUD operations\n platform-proposals-chunk platformProposalsChunk CRUD operations\n platform-registry-binding platformRegistryBinding CRUD operations\n platform-registry platformRegistry CRUD operations\n platform-registry-grant platformRegistryGrant CRUD operations\n platform-repository platformRepository CRUD operations\n platform-repository-event platformRepositoryEvent CRUD operations\n platform-repository-required-check platformRepositoryRequiredCheck CRUD operations\n platform-repository-workflow platformRepositoryWorkflow CRUD operations\n platform-resource platformResource CRUD operations\n platform-resource-declared-capacity platformResourceDeclaredCapacity CRUD operations\n platform-resource-definition platformResourceDefinition CRUD operations\n platform-resource-event platformResourceEvent CRUD operations\n platform-resource-installation platformResourceInstallation CRUD operations\n platform-resource-observed-storage platformResourceObservedStorage CRUD operations\n platform-resource-status-check platformResourceStatusCheck CRUD operations\n platform-resource-usage-log platformResourceUsageLog CRUD operations\n platform-resource-usage-summary platformResourceUsageSummary CRUD operations\n platform-resource-utilization platformResourceUtilization CRUD operations\n platform-resources-health platformResourcesHealth CRUD operations\n platform-resources-requirements-state platformResourcesRequirementsState CRUD operations\n platform-resources-resolved-requirement platformResourcesResolvedRequirement CRUD operations\n platform-webhook-endpoint platformWebhookEndpoint CRUD operations\n platform-webhook-event platformWebhookEvent CRUD operations\n proposal-comment proposalComment CRUD operations\n proposal proposal CRUD operations\n proposal-file-view proposalFileView CRUD operations\n proposal-reaction proposalReaction CRUD operations\n proposal-review proposalReview CRUD operations\n proposals-chunk proposalsChunk CRUD operations\n registry-binding registryBinding CRUD operations\n registry registry CRUD operations\n registry-grant registryGrant CRUD operations\n repository repository CRUD operations\n repository-event repositoryEvent CRUD operations\n repository-required-check repositoryRequiredCheck CRUD operations\n repository-workflow repositoryWorkflow CRUD operations\n resource resource CRUD operations\n resource-declared-capacity resourceDeclaredCapacity CRUD operations\n resource-definition resourceDefinition CRUD operations\n resource-event resourceEvent CRUD operations\n resource-installation resourceInstallation CRUD operations\n resource-observed-storage resourceObservedStorage CRUD operations\n resource-status-check resourceStatusCheck CRUD operations\n resource-usage-log resourceUsageLog CRUD operations\n resource-usage-summary resourceUsageSummary CRUD operations\n resource-utilization resourceUtilization CRUD operations\n resources-health resourcesHealth CRUD operations\n resources-requirements-state resourcesRequirementsState CRUD operations\n resources-resolved-requirement resourcesResolvedRequirement CRUD operations\n webhook-endpoint webhookEndpoint CRUD operations\n webhook-event webhookEvent CRUD operations\n database-read-function-graph databaseReadFunctionGraph\n read-function-graph readFunctionGraph\n add-edge addEdge\n add-edge-and-save addEdgeAndSave\n add-node addNode\n add-node-and-save addNodeAndSave\n approve-node approveNode\n copy-graph copyGraph\n database-add-edge databaseAddEdge\n database-add-edge-and-save databaseAddEdgeAndSave\n database-add-node databaseAddNode\n database-add-node-and-save databaseAddNodeAndSave\n database-approve-node databaseApproveNode\n database-copy-graph databaseCopyGraph\n database-create-function-graph databaseCreateFunctionGraph\n database-graph-init-empty-repo databaseGraphInitEmptyRepo\n database-graph-insert-node-at-path databaseGraphInsertNodeAtPath\n database-graph-insert-nodes-at-paths databaseGraphInsertNodesAtPaths\n database-graph-set-and-commit databaseGraphSetAndCommit\n database-graph-set-data-at-path databaseGraphSetDataAtPath\n database-graph-set-many-and-commit databaseGraphSetManyAndCommit\n database-import-definitions databaseImportDefinitions\n database-import-graph-json databaseImportGraphJson\n database-save-graph databaseSaveGraph\n database-start-execution databaseStartExecution\n database-validate-function-graph databaseValidateFunctionGraph\n function-execution-logs-append functionExecutionLogsAppend\n function-invocations-create-page functionInvocationsCreatePage\n function-invocations-create-sync functionInvocationsCreateSync\n import-definitions importDefinitions\n import-graph-json importGraphJson\n infra-init-empty-repo infraInitEmptyRepo\n infra-insert-node-at-path infraInsertNodeAtPath\n infra-insert-nodes-at-paths infraInsertNodesAtPaths\n infra-set-and-commit infraSetAndCommit\n infra-set-data-at-path infraSetDataAtPath\n infra-set-many-and-commit infraSetManyAndCommit\n init-empty-repo initEmptyRepo\n insert-node-at-path insertNodeAtPath\n insert-nodes-at-paths insertNodesAtPaths\n platform-function-execution-logs-append platformFunctionExecutionLogsAppend\n platform-function-invocations-create-page platformFunctionInvocationsCreatePage\n platform-function-invocations-create-sync platformFunctionInvocationsCreateSync\n platform-infra-init-empty-repo platformInfraInitEmptyRepo\n platform-infra-insert-node-at-path platformInfraInsertNodeAtPath\n platform-infra-insert-nodes-at-paths platformInfraInsertNodesAtPaths\n platform-infra-set-and-commit platformInfraSetAndCommit\n platform-infra-set-data-at-path platformInfraSetDataAtPath\n platform-infra-set-many-and-commit platformInfraSetManyAndCommit\n platform-resource-installations-install platformResourceInstallationsInstall\n platform-resource-installations-rollback platformResourceInstallationsRollback\n platform-resource-installations-uninstall platformResourceInstallationsUninstall\n platform-resource-installations-upgrade platformResourceInstallationsUpgrade\n provision-bucket Reconcile an S3 bucket for a logical bucket in the database.\nRecords the request on the bucket row via RLS; the bucket's job\ntrigger then enqueues the same storage:provision_bucket job used on\nINSERT, and repeated requests collapse into one pending job. This is\nidempotent for an already-reconciled bucket; failures become GraphQL\nerrors.\n resource-installations-install resourceInstallationsInstall\n resource-installations-rollback resourceInstallationsRollback\n resource-installations-uninstall resourceInstallationsUninstall\n resource-installations-upgrade resourceInstallationsUpgrade\n save-graph saveGraph\n set-and-commit setAndCommit\n set-data-at-path setDataAtPath\n set-many-and-commit setManyAndCommit\n start-execution startExecution\n validate-function-graph validateFunctionGraph\n\n --help, -h Show this help message\n --version, -v Show version\n"; + "\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n build build CRUD operations\n build-step buildStep CRUD operations\n content-preset contentPreset CRUD operations\n database-function-graph databaseFunctionGraph CRUD operations\n database-function-graph-execution-cancel-request databaseFunctionGraphExecutionCancelRequest CRUD operations\n database-function-graph-execution databaseFunctionGraphExecution CRUD operations\n database-function-graph-execution-node-state databaseFunctionGraphExecutionNodeState CRUD operations\n database-function-graph-execution-output databaseFunctionGraphExecutionOutput CRUD operations\n database-graph-commit databaseGraphCommit CRUD operations\n database-graph-get-all-tree-nodes-record databaseGraphGetAllTreeNodesRecord CRUD operations\n database-graph-object databaseGraphObject CRUD operations\n database-graph-ref databaseGraphRef CRUD operations\n database-graph-store databaseGraphStore CRUD operations\n db-preset dbPreset CRUD operations\n function-api-binding functionApiBinding CRUD operations\n function-capability-binding functionCapabilityBinding CRUD operations\n function-definition functionDefinition CRUD operations\n function-deployment functionDeployment CRUD operations\n function-deployment-event functionDeploymentEvent CRUD operations\n function-execution-log functionExecutionLog CRUD operations\n function-graph-commit functionGraphCommit CRUD operations\n function-graph functionGraph CRUD operations\n function-graph-execution-cancel-request functionGraphExecutionCancelRequest CRUD operations\n function-graph-execution functionGraphExecution CRUD operations\n function-graph-execution-node-state functionGraphExecutionNodeState CRUD operations\n function-graph-execution-output functionGraphExecutionOutput CRUD operations\n function-graph-object functionGraphObject CRUD operations\n function-graph-ref functionGraphRef CRUD operations\n function-graph-store functionGraphStore CRUD operations\n function-invocation-attempt functionInvocationAttempt CRUD operations\n function-invocation functionInvocation CRUD operations\n function-schedule functionSchedule CRUD operations\n get-all-tree-nodes-record getAllTreeNodesRecord CRUD operations\n image image CRUD operations\n image-grant imageGrant CRUD operations\n infra-commit infraCommit CRUD operations\n infra-get-all-tree-nodes-record infraGetAllTreeNodesRecord CRUD operations\n infra-object infraObject CRUD operations\n infra-ref infraRef CRUD operations\n infra-store infraStore CRUD operations\n integration-provider integrationProvider CRUD operations\n namespace namespace CRUD operations\n namespace-event namespaceEvent CRUD operations\n platform-build platformBuild CRUD operations\n platform-build-step platformBuildStep CRUD operations\n platform-function-api-binding platformFunctionApiBinding CRUD operations\n platform-function-capability-binding platformFunctionCapabilityBinding CRUD operations\n platform-function-definition platformFunctionDefinition CRUD operations\n platform-function-deployment platformFunctionDeployment CRUD operations\n platform-function-deployment-event platformFunctionDeploymentEvent CRUD operations\n platform-function-execution-log platformFunctionExecutionLog CRUD operations\n platform-function-invocation-attempt platformFunctionInvocationAttempt CRUD operations\n platform-function-invocation platformFunctionInvocation CRUD operations\n platform-function-schedule platformFunctionSchedule CRUD operations\n platform-image platformImage CRUD operations\n platform-image-grant platformImageGrant CRUD operations\n platform-infra-commit platformInfraCommit CRUD operations\n platform-infra-get-all-tree-nodes-record platformInfraGetAllTreeNodesRecord CRUD operations\n platform-infra-object platformInfraObject CRUD operations\n platform-infra-ref platformInfraRef CRUD operations\n platform-infra-store platformInfraStore CRUD operations\n platform-k-8-s-resource-kind platformK8sResourceKind CRUD operations\n platform-k-8-s-spec-rule platformK8sSpecRule CRUD operations\n platform-namespace platformNamespace CRUD operations\n platform-namespace-event platformNamespaceEvent CRUD operations\n platform-proposal-comment platformProposalComment CRUD operations\n platform-proposal platformProposal CRUD operations\n platform-proposal-file-view platformProposalFileView CRUD operations\n platform-proposal-reaction platformProposalReaction CRUD operations\n platform-proposal-review platformProposalReview CRUD operations\n platform-proposals-chunk platformProposalsChunk CRUD operations\n platform-registry-binding platformRegistryBinding CRUD operations\n platform-registry platformRegistry CRUD operations\n platform-registry-grant platformRegistryGrant CRUD operations\n platform-repository platformRepository CRUD operations\n platform-repository-event platformRepositoryEvent CRUD operations\n platform-repository-required-check platformRepositoryRequiredCheck CRUD operations\n platform-repository-workflow platformRepositoryWorkflow CRUD operations\n platform-resource platformResource CRUD operations\n platform-resource-declared-capacity platformResourceDeclaredCapacity CRUD operations\n platform-resource-definition platformResourceDefinition CRUD operations\n platform-resource-event platformResourceEvent CRUD operations\n platform-resource-installation platformResourceInstallation CRUD operations\n platform-resource-observed-storage platformResourceObservedStorage CRUD operations\n platform-resource-status-check platformResourceStatusCheck CRUD operations\n platform-resource-usage-log platformResourceUsageLog CRUD operations\n platform-resource-usage-summary platformResourceUsageSummary CRUD operations\n platform-resource-utilization platformResourceUtilization CRUD operations\n platform-resources-health platformResourcesHealth CRUD operations\n platform-resources-requirements-state platformResourcesRequirementsState CRUD operations\n platform-resources-resolved-requirement platformResourcesResolvedRequirement CRUD operations\n platform-service-binding platformServiceBinding CRUD operations\n platform-webhook-endpoint platformWebhookEndpoint CRUD operations\n platform-webhook-event platformWebhookEvent CRUD operations\n proposal-comment proposalComment CRUD operations\n proposal proposal CRUD operations\n proposal-file-view proposalFileView CRUD operations\n proposal-reaction proposalReaction CRUD operations\n proposal-review proposalReview CRUD operations\n proposals-chunk proposalsChunk CRUD operations\n registry-binding registryBinding CRUD operations\n registry registry CRUD operations\n registry-grant registryGrant CRUD operations\n repository repository CRUD operations\n repository-event repositoryEvent CRUD operations\n repository-required-check repositoryRequiredCheck CRUD operations\n repository-workflow repositoryWorkflow CRUD operations\n resource resource CRUD operations\n resource-declared-capacity resourceDeclaredCapacity CRUD operations\n resource-definition resourceDefinition CRUD operations\n resource-event resourceEvent CRUD operations\n resource-installation resourceInstallation CRUD operations\n resource-observed-storage resourceObservedStorage CRUD operations\n resource-status-check resourceStatusCheck CRUD operations\n resource-usage-log resourceUsageLog CRUD operations\n resource-usage-summary resourceUsageSummary CRUD operations\n resource-utilization resourceUtilization CRUD operations\n resources-health resourcesHealth CRUD operations\n resources-requirements-state resourcesRequirementsState CRUD operations\n resources-resolved-requirement resourcesResolvedRequirement CRUD operations\n service-binding serviceBinding CRUD operations\n webhook-endpoint webhookEndpoint CRUD operations\n webhook-event webhookEvent CRUD operations\n database-read-function-graph databaseReadFunctionGraph\n read-function-graph readFunctionGraph\n add-edge addEdge\n add-edge-and-save addEdgeAndSave\n add-node addNode\n add-node-and-save addNodeAndSave\n approve-node approveNode\n copy-graph copyGraph\n create-function-graph createFunctionGraph\n database-add-edge databaseAddEdge\n database-add-edge-and-save databaseAddEdgeAndSave\n database-add-node databaseAddNode\n database-add-node-and-save databaseAddNodeAndSave\n database-approve-node databaseApproveNode\n database-copy-graph databaseCopyGraph\n database-create-function-graph databaseCreateFunctionGraph\n database-graph-init-empty-repo databaseGraphInitEmptyRepo\n database-graph-insert-node-at-path databaseGraphInsertNodeAtPath\n database-graph-insert-nodes-at-paths databaseGraphInsertNodesAtPaths\n database-graph-set-and-commit databaseGraphSetAndCommit\n database-graph-set-data-at-path databaseGraphSetDataAtPath\n database-graph-set-many-and-commit databaseGraphSetManyAndCommit\n database-import-definitions databaseImportDefinitions\n database-import-graph-json databaseImportGraphJson\n database-save-graph databaseSaveGraph\n database-start-execution databaseStartExecution\n database-validate-function-graph databaseValidateFunctionGraph\n function-execution-logs-append functionExecutionLogsAppend\n function-invocations-create-page functionInvocationsCreatePage\n function-invocations-create-sync functionInvocationsCreateSync\n import-definitions importDefinitions\n import-graph-json importGraphJson\n infra-init-empty-repo infraInitEmptyRepo\n infra-insert-node-at-path infraInsertNodeAtPath\n infra-insert-nodes-at-paths infraInsertNodesAtPaths\n infra-set-and-commit infraSetAndCommit\n infra-set-data-at-path infraSetDataAtPath\n infra-set-many-and-commit infraSetManyAndCommit\n init-empty-repo initEmptyRepo\n insert-node-at-path insertNodeAtPath\n insert-nodes-at-paths insertNodesAtPaths\n platform-function-execution-logs-append platformFunctionExecutionLogsAppend\n platform-function-invocations-create-page platformFunctionInvocationsCreatePage\n platform-function-invocations-create-sync platformFunctionInvocationsCreateSync\n platform-infra-init-empty-repo platformInfraInitEmptyRepo\n platform-infra-insert-node-at-path platformInfraInsertNodeAtPath\n platform-infra-insert-nodes-at-paths platformInfraInsertNodesAtPaths\n platform-infra-set-and-commit platformInfraSetAndCommit\n platform-infra-set-data-at-path platformInfraSetDataAtPath\n platform-infra-set-many-and-commit platformInfraSetManyAndCommit\n platform-resource-installations-install platformResourceInstallationsInstall\n platform-resource-installations-rollback platformResourceInstallationsRollback\n platform-resource-installations-uninstall platformResourceInstallationsUninstall\n platform-resource-installations-upgrade platformResourceInstallationsUpgrade\n provision-bucket Reconcile an S3 bucket for a logical bucket in the database.\nRecords the request on the bucket row via RLS; the bucket's job\ntrigger then enqueues the same storage:provision_bucket job used on\nINSERT, and repeated requests collapse into one pending job. This is\nidempotent for an already-reconciled bucket; failures become GraphQL\nerrors.\n resource-installations-install resourceInstallationsInstall\n resource-installations-rollback resourceInstallationsRollback\n resource-installations-uninstall resourceInstallationsUninstall\n resource-installations-upgrade resourceInstallationsUpgrade\n save-graph saveGraph\n set-and-commit setAndCommit\n set-data-at-path setDataAtPath\n set-many-and-commit setManyAndCommit\n start-execution startExecution\n validate-function-graph validateFunctionGraph\n\n --help, -h Show this help message\n --version, -v Show version\n"; export const commands = async ( argv: Partial>, prompter: Inquirerer, diff --git a/sdk/constructive-cli/src/compute/cli/commands/build-step.ts b/sdk/constructive-cli/src/compute/cli/commands/build-step.ts index 0099f3d359..0139161893 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/build-step.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/build-step.ts @@ -86,6 +86,7 @@ async function handleList(argv: Partial>, _prompter: Inq const defaultSelect = { buildId: true, createdByPrincipal: true, + databaseId: true, exitCode: true, finishedAt: true, id: true, @@ -121,6 +122,7 @@ async function handleFindFirst(argv: Partial>, _prompter const defaultSelect = { buildId: true, createdByPrincipal: true, + databaseId: true, exitCode: true, finishedAt: true, id: true, @@ -168,6 +170,7 @@ async function handleGet(argv: Partial>, prompter: Inqui select: { buildId: true, createdByPrincipal: true, + databaseId: true, exitCode: true, finishedAt: true, id: true, @@ -316,6 +319,7 @@ async function handleCreate(argv: Partial>, prompter: In select: { buildId: true, createdByPrincipal: true, + databaseId: true, exitCode: true, finishedAt: true, id: true, @@ -369,6 +373,12 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, { type: 'text', name: 'exitCode', @@ -457,6 +467,7 @@ async function handleUpdate(argv: Partial>, prompter: In data: { buildId: cleanedData.buildId, createdByPrincipal: cleanedData.createdByPrincipal, + databaseId: cleanedData.databaseId, exitCode: cleanedData.exitCode, finishedAt: cleanedData.finishedAt, kind: cleanedData.kind, @@ -472,6 +483,7 @@ async function handleUpdate(argv: Partial>, prompter: In select: { buildId: true, createdByPrincipal: true, + databaseId: true, exitCode: true, finishedAt: true, id: true, diff --git a/sdk/constructive-cli/src/compute/cli/commands/build.ts b/sdk/constructive-cli/src/compute/cli/commands/build.ts index 5d263c986e..cdd6235dc4 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/build.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/build.ts @@ -29,6 +29,8 @@ const fieldSchema: FieldSchema = { imageRef: 'string', jobId: 'int', logs: 'string', + logsUrl: 'string', + logsVersions: 'string', matrixKey: 'string', metadata: 'json', proposalId: 'uuid', @@ -97,6 +99,7 @@ async function handleList(argv: Partial>, _prompter: Inq conclusion: true, createdAt: true, createdByPrincipal: true, + databaseId: true, eventId: true, finishedAt: true, id: true, @@ -139,6 +142,7 @@ async function handleFindFirst(argv: Partial>, _prompter conclusion: true, createdAt: true, createdByPrincipal: true, + databaseId: true, eventId: true, finishedAt: true, id: true, @@ -193,6 +197,7 @@ async function handleGet(argv: Partial>, prompter: Inqui conclusion: true, createdAt: true, createdByPrincipal: true, + databaseId: true, eventId: true, finishedAt: true, id: true, @@ -390,6 +395,7 @@ async function handleCreate(argv: Partial>, prompter: In conclusion: true, createdAt: true, createdByPrincipal: true, + databaseId: true, eventId: true, finishedAt: true, id: true, @@ -462,6 +468,12 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, { type: 'text', name: 'eventId', @@ -574,6 +586,7 @@ async function handleUpdate(argv: Partial>, prompter: In commitSha: cleanedData.commitSha, conclusion: cleanedData.conclusion, createdByPrincipal: cleanedData.createdByPrincipal, + databaseId: cleanedData.databaseId, eventId: cleanedData.eventId, finishedAt: cleanedData.finishedAt, imageRef: cleanedData.imageRef, @@ -596,6 +609,7 @@ async function handleUpdate(argv: Partial>, prompter: In conclusion: true, createdAt: true, createdByPrincipal: true, + databaseId: true, eventId: true, finishedAt: true, id: true, diff --git a/sdk/constructive-cli/src/compute/cli/commands/create-function-graph.ts b/sdk/constructive-cli/src/compute/cli/commands/create-function-graph.ts new file mode 100644 index 0000000000..66d253466e --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/create-function-graph.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation createFunctionGraph + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer } from 'inquirerer'; +import { getClient } from '../executor'; +import { unflattenDotNotation, buildSelectFromPaths } from '../utils'; +import type { CreateFunctionGraphVariables } from '../../orm/mutation'; +import type { CreateFunctionGraphPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'create-function-graph - createFunctionGraph\n\nUsage: create-function-graph [OPTIONS]\n' + ); + process.exit(0); + } + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'input', + message: + 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.', + required: true, + }, + ]); + const client = getClient(); + const parsedAnswers = unflattenDotNotation(answers); + const selectFields = buildSelectFromPaths((argv.select as string) ?? 'clientMutationId'); + const result = await client.mutation + .createFunctionGraph( + parsedAnswers as unknown as CreateFunctionGraphVariables, + { + select: selectFields, + } as unknown as { + select: CreateFunctionGraphPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: createFunctionGraph'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/compute/cli/commands/database-function-graph.ts b/sdk/constructive-cli/src/compute/cli/commands/database-function-graph.ts index aecc43c3f5..54e91b3f2c 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/database-function-graph.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/database-function-graph.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateDatabaseFunctionGraphInput, DatabaseFunctionGraphPatch, DatabaseFunctionGraphSelect, DatabaseFunctionGraphFilter, @@ -47,7 +46,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'get', 'create', 'update', 'delete'], + options: ['list', 'find-first', 'get', 'update', 'delete'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -66,8 +65,6 @@ async function handleTableSubcommand( return handleFindFirst(argv, prompter); case 'get': return handleGet(argv, prompter); - case 'create': - return handleCreate(argv, prompter); case 'update': return handleUpdate(argv, prompter); case 'delete': @@ -188,108 +185,6 @@ async function handleGet(argv: Partial>, prompter: Inqui process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'context', - message: 'context', - required: true, - }, - { - type: 'text', - name: 'createdBy', - message: 'createdBy', - required: true, - }, - { - type: 'text', - name: 'databaseId', - message: 'databaseId', - required: true, - }, - { - type: 'text', - name: 'definitionsCommitId', - message: 'definitionsCommitId', - required: true, - }, - { - type: 'text', - name: 'description', - message: 'description', - required: true, - }, - { - type: 'boolean', - name: 'isValid', - message: 'isValid', - required: true, - }, - { - type: 'text', - name: 'name', - message: 'name', - required: true, - }, - { - type: 'text', - name: 'storeId', - message: 'storeId', - required: true, - }, - { - type: 'json', - name: 'validationErrors', - message: 'validationErrors', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateDatabaseFunctionGraphInput['databaseFunctionGraph']; - const client = getClient(); - const result = await client.databaseFunctionGraph - .create({ - data: { - context: cleanedData.context, - createdBy: cleanedData.createdBy, - databaseId: cleanedData.databaseId, - definitionsCommitId: cleanedData.definitionsCommitId, - description: cleanedData.description, - isValid: cleanedData.isValid, - name: cleanedData.name, - storeId: cleanedData.storeId, - validationErrors: cleanedData.validationErrors, - }, - select: { - context: true, - createdAt: true, - createdBy: true, - databaseId: true, - definitionsCommitId: true, - description: true, - id: true, - isValid: true, - name: true, - storeId: true, - updatedAt: true, - validationErrors: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} async function handleUpdate(argv: Partial>, prompter: Inquirerer) { try { const rawAnswers = await prompter.prompt(argv, [ diff --git a/sdk/constructive-cli/src/compute/cli/commands/database-graph-get-all-tree-nodes-record.ts b/sdk/constructive-cli/src/compute/cli/commands/database-graph-get-all-tree-nodes-record.ts index dfe58474b3..f2447260b7 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/database-graph-get-all-tree-nodes-record.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/database-graph-get-all-tree-nodes-record.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateDatabaseGraphGetAllTreeNodesRecordInput, DatabaseGraphGetAllTreeNodesRecordPatch, DatabaseGraphGetAllTreeNodesRecordSelect, DatabaseGraphGetAllTreeNodesRecordFilter, @@ -37,7 +36,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -54,8 +53,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -115,46 +112,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'json', - name: 'data', - message: 'data', - required: true, - }, - { - type: 'text', - name: 'path', - message: 'path', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateDatabaseGraphGetAllTreeNodesRecordInput['databaseGraphGetAllTreeNodesRecord']; - const client = getClient(); - const result = await client.databaseGraphGetAllTreeNodesRecord - .create({ - data: { - data: cleanedData.data, - path: cleanedData.path, - }, - select: { - data: true, - path: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/compute/cli/commands/function-definition.ts b/sdk/constructive-cli/src/compute/cli/commands/function-definition.ts index b96bf8fb38..9c2e975a6a 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/function-definition.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/function-definition.ts @@ -145,10 +145,8 @@ async function handleList(argv: Partial>, _prompter: Inq queueName: true, requiredBuckets: true, requiredCapabilities: true, - requiredConfigs: true, requiredModels: true, requiredModules: true, - requiredSecrets: true, resources: true, runtime: true, scaleMax: true, @@ -212,10 +210,8 @@ async function handleFindFirst(argv: Partial>, _prompter queueName: true, requiredBuckets: true, requiredCapabilities: true, - requiredConfigs: true, requiredModels: true, requiredModules: true, - requiredSecrets: true, resources: true, runtime: true, scaleMax: true, @@ -291,10 +287,8 @@ async function handleGet(argv: Partial>, prompter: Inqui queueName: true, requiredBuckets: true, requiredCapabilities: true, - requiredConfigs: true, requiredModels: true, requiredModules: true, - requiredSecrets: true, resources: true, runtime: true, scaleMax: true, @@ -678,10 +672,8 @@ async function handleCreate(argv: Partial>, prompter: In queueName: true, requiredBuckets: true, requiredCapabilities: true, - requiredConfigs: true, requiredModels: true, requiredModules: true, - requiredSecrets: true, resources: true, runtime: true, scaleMax: true, @@ -1071,10 +1063,8 @@ async function handleUpdate(argv: Partial>, prompter: In queueName: true, requiredBuckets: true, requiredCapabilities: true, - requiredConfigs: true, requiredModels: true, requiredModules: true, - requiredSecrets: true, resources: true, runtime: true, scaleMax: true, diff --git a/sdk/constructive-cli/src/compute/cli/commands/function-graph.ts b/sdk/constructive-cli/src/compute/cli/commands/function-graph.ts index a83dd2610a..f85a4f5d54 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/function-graph.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/function-graph.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateFunctionGraphInput, FunctionGraphPatch, FunctionGraphSelect, FunctionGraphFilter, @@ -47,7 +46,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'get', 'create', 'update', 'delete'], + options: ['list', 'find-first', 'get', 'update', 'delete'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -66,8 +65,6 @@ async function handleTableSubcommand( return handleFindFirst(argv, prompter); case 'get': return handleGet(argv, prompter); - case 'create': - return handleCreate(argv, prompter); case 'update': return handleUpdate(argv, prompter); case 'delete': @@ -180,108 +177,6 @@ async function handleGet(argv: Partial>, prompter: Inqui process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'context', - message: 'context', - required: true, - }, - { - type: 'text', - name: 'createdBy', - message: 'createdBy', - required: true, - }, - { - type: 'text', - name: 'definitionsCommitId', - message: 'definitionsCommitId', - required: true, - }, - { - type: 'text', - name: 'description', - message: 'description', - required: true, - }, - { - type: 'boolean', - name: 'isValid', - message: 'isValid', - required: true, - }, - { - type: 'text', - name: 'name', - message: 'name', - required: true, - }, - { - type: 'text', - name: 'scopeId', - message: 'scopeId', - required: true, - }, - { - type: 'text', - name: 'storeId', - message: 'storeId', - required: true, - }, - { - type: 'json', - name: 'validationErrors', - message: 'validationErrors', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateFunctionGraphInput['functionGraph']; - const client = getClient(); - const result = await client.functionGraph - .create({ - data: { - context: cleanedData.context, - createdBy: cleanedData.createdBy, - definitionsCommitId: cleanedData.definitionsCommitId, - description: cleanedData.description, - isValid: cleanedData.isValid, - name: cleanedData.name, - scopeId: cleanedData.scopeId, - storeId: cleanedData.storeId, - validationErrors: cleanedData.validationErrors, - }, - select: { - context: true, - createdAt: true, - createdBy: true, - definitionsCommitId: true, - description: true, - id: true, - isValid: true, - name: true, - scopeId: true, - storeId: true, - updatedAt: true, - validationErrors: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} async function handleUpdate(argv: Partial>, prompter: Inquirerer) { try { const rawAnswers = await prompter.prompt(argv, [ diff --git a/sdk/constructive-cli/src/compute/cli/commands/get-all-tree-nodes-record.ts b/sdk/constructive-cli/src/compute/cli/commands/get-all-tree-nodes-record.ts index 31c495de36..72a4fd0cd9 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/get-all-tree-nodes-record.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/get-all-tree-nodes-record.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateGetAllTreeNodesRecordInput, GetAllTreeNodesRecordPatch, GetAllTreeNodesRecordSelect, GetAllTreeNodesRecordFilter, @@ -37,7 +36,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -54,8 +53,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -113,46 +110,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'json', - name: 'data', - message: 'data', - required: true, - }, - { - type: 'text', - name: 'path', - message: 'path', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateGetAllTreeNodesRecordInput['getAllTreeNodesRecord']; - const client = getClient(); - const result = await client.getAllTreeNodesRecord - .create({ - data: { - data: cleanedData.data, - path: cleanedData.path, - }, - select: { - data: true, - path: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/compute/cli/commands/infra-get-all-tree-nodes-record.ts b/sdk/constructive-cli/src/compute/cli/commands/infra-get-all-tree-nodes-record.ts index e269d06e08..d1def16bd0 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/infra-get-all-tree-nodes-record.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/infra-get-all-tree-nodes-record.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateInfraGetAllTreeNodesRecordInput, InfraGetAllTreeNodesRecordPatch, InfraGetAllTreeNodesRecordSelect, InfraGetAllTreeNodesRecordFilter, @@ -37,7 +36,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -54,8 +53,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -113,46 +110,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'json', - name: 'data', - message: 'data', - required: true, - }, - { - type: 'text', - name: 'path', - message: 'path', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateInfraGetAllTreeNodesRecordInput['infraGetAllTreeNodesRecord']; - const client = getClient(); - const result = await client.infraGetAllTreeNodesRecord - .create({ - data: { - data: cleanedData.data, - path: cleanedData.path, - }, - select: { - data: true, - path: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/compute/cli/commands/integration-provider.ts b/sdk/constructive-cli/src/compute/cli/commands/integration-provider.ts index a498efe701..09a806c46a 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/integration-provider.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/integration-provider.ts @@ -23,6 +23,8 @@ const fieldSchema: FieldSchema = { icon: 'string', id: 'uuid', logo: 'string', + logoUrl: 'string', + logoVersions: 'string', name: 'string', requiredConfigs: 'string', requiredSecrets: 'string', @@ -88,8 +90,6 @@ async function handleList(argv: Partial>, _prompter: Inq id: true, logo: true, name: true, - requiredConfigs: true, - requiredSecrets: true, slug: true, updatedAt: true, }; @@ -124,8 +124,6 @@ async function handleFindFirst(argv: Partial>, _prompter id: true, logo: true, name: true, - requiredConfigs: true, - requiredSecrets: true, slug: true, updatedAt: true, }; @@ -172,8 +170,6 @@ async function handleGet(argv: Partial>, prompter: Inqui id: true, logo: true, name: true, - requiredConfigs: true, - requiredSecrets: true, slug: true, updatedAt: true, }, @@ -281,8 +277,6 @@ async function handleCreate(argv: Partial>, prompter: In id: true, logo: true, name: true, - requiredConfigs: true, - requiredSecrets: true, slug: true, updatedAt: true, }, @@ -396,8 +390,6 @@ async function handleUpdate(argv: Partial>, prompter: In id: true, logo: true, name: true, - requiredConfigs: true, - requiredSecrets: true, slug: true, updatedAt: true, }, diff --git a/sdk/constructive-cli/src/compute/cli/commands/platform-build.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-build.ts index 41f5e875cf..d18155d227 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/platform-build.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-build.ts @@ -28,6 +28,8 @@ const fieldSchema: FieldSchema = { imageRef: 'string', jobId: 'int', logs: 'string', + logsUrl: 'string', + logsVersions: 'string', matrixKey: 'string', metadata: 'json', proposalId: 'uuid', diff --git a/sdk/constructive-cli/src/compute/cli/commands/platform-function-definition.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-function-definition.ts index 382ffb7b4e..3f0733e191 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/platform-function-definition.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-function-definition.ts @@ -146,10 +146,8 @@ async function handleList(argv: Partial>, _prompter: Inq queueName: true, requiredBuckets: true, requiredCapabilities: true, - requiredConfigs: true, requiredModels: true, requiredModules: true, - requiredSecrets: true, resources: true, runtime: true, scaleMax: true, @@ -214,10 +212,8 @@ async function handleFindFirst(argv: Partial>, _prompter queueName: true, requiredBuckets: true, requiredCapabilities: true, - requiredConfigs: true, requiredModels: true, requiredModules: true, - requiredSecrets: true, resources: true, runtime: true, scaleMax: true, @@ -294,10 +290,8 @@ async function handleGet(argv: Partial>, prompter: Inqui queueName: true, requiredBuckets: true, requiredCapabilities: true, - requiredConfigs: true, requiredModels: true, requiredModules: true, - requiredSecrets: true, resources: true, runtime: true, scaleMax: true, @@ -691,10 +685,8 @@ async function handleCreate(argv: Partial>, prompter: In queueName: true, requiredBuckets: true, requiredCapabilities: true, - requiredConfigs: true, requiredModels: true, requiredModules: true, - requiredSecrets: true, resources: true, runtime: true, scaleMax: true, @@ -1094,10 +1086,8 @@ async function handleUpdate(argv: Partial>, prompter: In queueName: true, requiredBuckets: true, requiredCapabilities: true, - requiredConfigs: true, requiredModels: true, requiredModules: true, - requiredSecrets: true, resources: true, runtime: true, scaleMax: true, diff --git a/sdk/constructive-cli/src/compute/cli/commands/platform-infra-get-all-tree-nodes-record.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-infra-get-all-tree-nodes-record.ts index 6283b9d768..6282f9ac8b 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/platform-infra-get-all-tree-nodes-record.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-infra-get-all-tree-nodes-record.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreatePlatformInfraGetAllTreeNodesRecordInput, PlatformInfraGetAllTreeNodesRecordPatch, PlatformInfraGetAllTreeNodesRecordSelect, PlatformInfraGetAllTreeNodesRecordFilter, @@ -37,7 +36,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -54,8 +53,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -115,46 +112,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'json', - name: 'data', - message: 'data', - required: true, - }, - { - type: 'text', - name: 'path', - message: 'path', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreatePlatformInfraGetAllTreeNodesRecordInput['platformInfraGetAllTreeNodesRecord']; - const client = getClient(); - const result = await client.platformInfraGetAllTreeNodesRecord - .create({ - data: { - data: cleanedData.data, - path: cleanedData.path, - }, - select: { - data: true, - path: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/compute/cli/commands/platform-proposal-comment.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-proposal-comment.ts index dff5e671ed..1d7acad2ea 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/platform-proposal-comment.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-proposal-comment.ts @@ -18,12 +18,16 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { actorId: 'uuid', attachments: 'string', + attachmentsUrl: 'string', + attachmentsVersions: 'string', body: 'string', bodyTrgmSimilarity: 'float', createdAt: 'string', createdBy: 'uuid', createdByPrincipal: 'uuid', embedding: 'string', + embeddingModel: 'string', + embeddingModelTrgmSimilarity: 'float', embeddingUpdatedAt: 'string', embeddingVectorDistance: 'float', id: 'uuid', @@ -196,6 +200,10 @@ async function handleSearch(argv: Partial>, _prompter: I value: query, threshold: 0.3, }, + trgmEmbeddingModel: { + value: query, + threshold: 0.3, + }, trgmPath: { value: query, threshold: 0.3, diff --git a/sdk/constructive-cli/src/compute/cli/commands/platform-proposal.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-proposal.ts index f5aea1030a..881c967e99 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/platform-proposal.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-proposal.ts @@ -27,6 +27,8 @@ const fieldSchema: FieldSchema = { decidedAt: 'string', dueAt: 'string', embedding: 'string', + embeddingModel: 'string', + embeddingModelTrgmSimilarity: 'float', embeddingUpdatedAt: 'string', embeddingVectorDistance: 'float', id: 'uuid', @@ -236,6 +238,10 @@ async function handleSearch(argv: Partial>, _prompter: I value: query, threshold: 0.3, }, + trgmEmbeddingModel: { + value: query, + threshold: 0.3, + }, trgmKind: { value: query, threshold: 0.3, diff --git a/sdk/constructive-cli/src/compute/cli/commands/platform-repository.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-repository.ts index de65dc3034..88e3435fde 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/platform-repository.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-repository.ts @@ -26,6 +26,8 @@ const fieldSchema: FieldSchema = { description: 'string', descriptionTrgmSimilarity: 'float', embedding: 'string', + embeddingModel: 'string', + embeddingModelTrgmSimilarity: 'float', embeddingUpdatedAt: 'string', embeddingVectorDistance: 'float', externalId: 'string', @@ -219,6 +221,10 @@ async function handleSearch(argv: Partial>, _prompter: I value: query, threshold: 0.3, }, + trgmEmbeddingModel: { + value: query, + threshold: 0.3, + }, trgmExternalId: { value: query, threshold: 0.3, diff --git a/sdk/constructive-cli/src/compute/cli/commands/platform-resource-declared-capacity.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-resource-declared-capacity.ts index f75ec770cd..2ccb7efe79 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/platform-resource-declared-capacity.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-resource-declared-capacity.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreatePlatformResourceDeclaredCapacityInput, PlatformResourceDeclaredCapacityPatch, PlatformResourceDeclaredCapacitySelect, PlatformResourceDeclaredCapacityFilter, @@ -49,7 +48,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -66,8 +65,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -149,142 +146,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'cpuLimitMillicores', - message: 'cpuLimitMillicores', - required: true, - }, - { - type: 'text', - name: 'cpuRequestMillicores', - message: 'cpuRequestMillicores', - required: true, - }, - { - type: 'text', - name: 'installationId', - message: 'installationId', - required: true, - }, - { - type: 'boolean', - name: 'isTransient', - message: 'isTransient', - required: true, - }, - { - type: 'text', - name: 'kind', - message: 'kind', - required: true, - }, - { - type: 'text', - name: 'memoryLimitBytes', - message: 'memoryLimitBytes', - required: true, - }, - { - type: 'text', - name: 'memoryRequestBytes', - message: 'memoryRequestBytes', - required: true, - }, - { - type: 'text', - name: 'namespaceId', - message: 'namespaceId', - required: true, - }, - { - type: 'text', - name: 'podCountMax', - message: 'podCountMax', - required: true, - }, - { - type: 'text', - name: 'podCountMin', - message: 'podCountMin', - required: true, - }, - { - type: 'text', - name: 'source', - message: 'source', - required: true, - }, - { - type: 'text', - name: 'sourceId', - message: 'sourceId', - required: true, - }, - { - type: 'text', - name: 'storageSizeBytes', - message: 'storageSizeBytes', - required: true, - }, - { - type: 'text', - name: 'storageTotalBytes', - message: 'storageTotalBytes', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreatePlatformResourceDeclaredCapacityInput['platformResourceDeclaredCapacity']; - const client = getClient(); - const result = await client.platformResourceDeclaredCapacity - .create({ - data: { - cpuLimitMillicores: cleanedData.cpuLimitMillicores, - cpuRequestMillicores: cleanedData.cpuRequestMillicores, - installationId: cleanedData.installationId, - isTransient: cleanedData.isTransient, - kind: cleanedData.kind, - memoryLimitBytes: cleanedData.memoryLimitBytes, - memoryRequestBytes: cleanedData.memoryRequestBytes, - namespaceId: cleanedData.namespaceId, - podCountMax: cleanedData.podCountMax, - podCountMin: cleanedData.podCountMin, - source: cleanedData.source, - sourceId: cleanedData.sourceId, - storageSizeBytes: cleanedData.storageSizeBytes, - storageTotalBytes: cleanedData.storageTotalBytes, - }, - select: { - cpuLimitMillicores: true, - cpuRequestMillicores: true, - installationId: true, - isTransient: true, - kind: true, - memoryLimitBytes: true, - memoryRequestBytes: true, - namespaceId: true, - podCountMax: true, - podCountMin: true, - source: true, - sourceId: true, - storageSizeBytes: true, - storageTotalBytes: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/compute/cli/commands/platform-resource-definition.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-resource-definition.ts index dab84defbe..860f1e1775 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/platform-resource-definition.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-resource-definition.ts @@ -101,8 +101,6 @@ async function handleList(argv: Partial>, _prompter: Inq name: true, namespaceId: true, paramsSchema: true, - requiredConfigs: true, - requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, @@ -145,8 +143,6 @@ async function handleFindFirst(argv: Partial>, _prompter name: true, namespaceId: true, paramsSchema: true, - requiredConfigs: true, - requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, @@ -201,8 +197,6 @@ async function handleGet(argv: Partial>, prompter: Inqui name: true, namespaceId: true, paramsSchema: true, - requiredConfigs: true, - requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, @@ -380,8 +374,6 @@ async function handleCreate(argv: Partial>, prompter: In name: true, namespaceId: true, paramsSchema: true, - requiredConfigs: true, - requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, @@ -565,8 +557,6 @@ async function handleUpdate(argv: Partial>, prompter: In name: true, namespaceId: true, paramsSchema: true, - requiredConfigs: true, - requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, diff --git a/sdk/constructive-cli/src/compute/cli/commands/platform-resource-observed-storage.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-resource-observed-storage.ts index 6e739bbb6c..d31ba73a11 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/platform-resource-observed-storage.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-resource-observed-storage.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreatePlatformResourceObservedStorageInput, PlatformResourceObservedStoragePatch, PlatformResourceObservedStorageSelect, PlatformResourceObservedStorageFilter, @@ -53,7 +52,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -70,8 +69,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -161,174 +158,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'capacity', - message: 'capacity', - required: true, - }, - { - type: 'text', - name: 'capacityBytes', - message: 'capacityBytes', - required: true, - }, - { - type: 'text', - name: 'claimName', - message: 'claimName', - required: true, - }, - { - type: 'text', - name: 'declaredStorageClass', - message: 'declaredStorageClass', - required: true, - }, - { - type: 'text', - name: 'declaredStorageSizeBytes', - message: 'declaredStorageSizeBytes', - required: true, - }, - { - type: 'text', - name: 'declaredStorageTotalBytes', - message: 'declaredStorageTotalBytes', - required: true, - }, - { - type: 'text', - name: 'installationId', - message: 'installationId', - required: true, - }, - { - type: 'boolean', - name: 'isBound', - message: 'isBound', - required: true, - }, - { - type: 'text', - name: 'kind', - message: 'kind', - required: true, - }, - { - type: 'text', - name: 'namespaceId', - message: 'namespaceId', - required: true, - }, - { - type: 'text', - name: 'phase', - message: 'phase', - required: true, - }, - { - type: 'text', - name: 'requested', - message: 'requested', - required: true, - }, - { - type: 'text', - name: 'requestedBytes', - message: 'requestedBytes', - required: true, - }, - { - type: 'text', - name: 'resourceId', - message: 'resourceId', - required: true, - }, - { - type: 'text', - name: 'resourceStatus', - message: 'resourceStatus', - required: true, - }, - { - type: 'text', - name: 'slug', - message: 'slug', - required: true, - }, - { - type: 'text', - name: 'storageClass', - message: 'storageClass', - required: true, - }, - { - type: 'text', - name: 'storageName', - message: 'storageName', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreatePlatformResourceObservedStorageInput['platformResourceObservedStorage']; - const client = getClient(); - const result = await client.platformResourceObservedStorage - .create({ - data: { - capacity: cleanedData.capacity, - capacityBytes: cleanedData.capacityBytes, - claimName: cleanedData.claimName, - declaredStorageClass: cleanedData.declaredStorageClass, - declaredStorageSizeBytes: cleanedData.declaredStorageSizeBytes, - declaredStorageTotalBytes: cleanedData.declaredStorageTotalBytes, - installationId: cleanedData.installationId, - isBound: cleanedData.isBound, - kind: cleanedData.kind, - namespaceId: cleanedData.namespaceId, - phase: cleanedData.phase, - requested: cleanedData.requested, - requestedBytes: cleanedData.requestedBytes, - resourceId: cleanedData.resourceId, - resourceStatus: cleanedData.resourceStatus, - slug: cleanedData.slug, - storageClass: cleanedData.storageClass, - storageName: cleanedData.storageName, - }, - select: { - capacity: true, - capacityBytes: true, - claimName: true, - declaredStorageClass: true, - declaredStorageSizeBytes: true, - declaredStorageTotalBytes: true, - installationId: true, - isBound: true, - kind: true, - namespaceId: true, - phase: true, - requested: true, - requestedBytes: true, - resourceId: true, - resourceStatus: true, - slug: true, - storageClass: true, - storageName: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/compute/cli/commands/platform-resource-utilization.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-resource-utilization.ts index 9581ffc9f8..7d7d216993 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/platform-resource-utilization.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-resource-utilization.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreatePlatformResourceUtilizationInput, PlatformResourceUtilizationPatch, PlatformResourceUtilizationSelect, PlatformResourceUtilizationFilter, @@ -54,7 +53,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -71,8 +70,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -164,182 +161,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'avgMemoryBytes', - message: 'avgMemoryBytes', - required: true, - }, - { - type: 'text', - name: 'cpuLimitMillicores', - message: 'cpuLimitMillicores', - required: true, - }, - { - type: 'text', - name: 'cpuPeakUtilization', - message: 'cpuPeakUtilization', - required: true, - }, - { - type: 'text', - name: 'cpuRequestHeadroomMillicores', - message: 'cpuRequestHeadroomMillicores', - required: true, - }, - { - type: 'text', - name: 'cpuRequestMillicores', - message: 'cpuRequestMillicores', - required: true, - }, - { - type: 'text', - name: 'date', - message: 'date', - required: true, - }, - { - type: 'text', - name: 'gbSeconds', - message: 'gbSeconds', - required: true, - }, - { - type: 'text', - name: 'kind', - message: 'kind', - required: true, - }, - { - type: 'text', - name: 'maxCpuMillicores', - message: 'maxCpuMillicores', - required: true, - }, - { - type: 'text', - name: 'maxMemoryBytes', - message: 'maxMemoryBytes', - required: true, - }, - { - type: 'text', - name: 'memoryLimitBytes', - message: 'memoryLimitBytes', - required: true, - }, - { - type: 'text', - name: 'memoryPeakUtilization', - message: 'memoryPeakUtilization', - required: true, - }, - { - type: 'text', - name: 'memoryRequestBytes', - message: 'memoryRequestBytes', - required: true, - }, - { - type: 'text', - name: 'memoryRequestHeadroomBytes', - message: 'memoryRequestHeadroomBytes', - required: true, - }, - { - type: 'text', - name: 'namespaceId', - message: 'namespaceId', - required: true, - }, - { - type: 'text', - name: 'replicas', - message: 'replicas', - required: true, - }, - { - type: 'text', - name: 'resourceId', - message: 'resourceId', - required: true, - }, - { - type: 'text', - name: 'runtimeSeconds', - message: 'runtimeSeconds', - required: true, - }, - { - type: 'text', - name: 'sampleCount', - message: 'sampleCount', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreatePlatformResourceUtilizationInput['platformResourceUtilization']; - const client = getClient(); - const result = await client.platformResourceUtilization - .create({ - data: { - avgMemoryBytes: cleanedData.avgMemoryBytes, - cpuLimitMillicores: cleanedData.cpuLimitMillicores, - cpuPeakUtilization: cleanedData.cpuPeakUtilization, - cpuRequestHeadroomMillicores: cleanedData.cpuRequestHeadroomMillicores, - cpuRequestMillicores: cleanedData.cpuRequestMillicores, - date: cleanedData.date, - gbSeconds: cleanedData.gbSeconds, - kind: cleanedData.kind, - maxCpuMillicores: cleanedData.maxCpuMillicores, - maxMemoryBytes: cleanedData.maxMemoryBytes, - memoryLimitBytes: cleanedData.memoryLimitBytes, - memoryPeakUtilization: cleanedData.memoryPeakUtilization, - memoryRequestBytes: cleanedData.memoryRequestBytes, - memoryRequestHeadroomBytes: cleanedData.memoryRequestHeadroomBytes, - namespaceId: cleanedData.namespaceId, - replicas: cleanedData.replicas, - resourceId: cleanedData.resourceId, - runtimeSeconds: cleanedData.runtimeSeconds, - sampleCount: cleanedData.sampleCount, - }, - select: { - avgMemoryBytes: true, - cpuLimitMillicores: true, - cpuPeakUtilization: true, - cpuRequestHeadroomMillicores: true, - cpuRequestMillicores: true, - date: true, - gbSeconds: true, - kind: true, - maxCpuMillicores: true, - maxMemoryBytes: true, - memoryLimitBytes: true, - memoryPeakUtilization: true, - memoryRequestBytes: true, - memoryRequestHeadroomBytes: true, - namespaceId: true, - replicas: true, - resourceId: true, - runtimeSeconds: true, - sampleCount: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/compute/cli/commands/platform-resource.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-resource.ts index ae41c20f2d..53f3a1e20d 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/platform-resource.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-resource.ts @@ -118,8 +118,6 @@ async function handleList(argv: Partial>, _prompter: Inq name: true, namespaceId: true, realm: true, - requiredConfigs: true, - requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, @@ -164,8 +162,6 @@ async function handleFindFirst(argv: Partial>, _prompter name: true, namespaceId: true, realm: true, - requiredConfigs: true, - requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, @@ -222,8 +218,6 @@ async function handleGet(argv: Partial>, prompter: Inqui name: true, namespaceId: true, realm: true, - requiredConfigs: true, - requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, @@ -455,8 +449,6 @@ async function handleCreate(argv: Partial>, prompter: In name: true, namespaceId: true, realm: true, - requiredConfigs: true, - requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, @@ -694,8 +686,6 @@ async function handleUpdate(argv: Partial>, prompter: In name: true, namespaceId: true, realm: true, - requiredConfigs: true, - requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, diff --git a/sdk/constructive-cli/src/compute/cli/commands/platform-resources-health.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-resources-health.ts index cea3a6b3c7..bc8039b940 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/platform-resources-health.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-resources-health.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreatePlatformResourcesHealthInput, PlatformResourcesHealthPatch, PlatformResourcesHealthSelect, PlatformResourcesHealthFilter, @@ -70,7 +69,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -87,8 +86,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -118,8 +115,6 @@ async function handleList(argv: Partial>, _prompter: Inq namespaceId: true, realm: true, replicas: true, - requiredConfigs: true, - requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, @@ -177,8 +172,6 @@ async function handleFindFirst(argv: Partial>, _prompter namespaceId: true, realm: true, replicas: true, - requiredConfigs: true, - requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, @@ -212,289 +205,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'json', - name: 'annotations', - message: 'annotations', - required: true, - }, - { - type: 'text', - name: 'cpuLimitMillicores', - message: 'cpuLimitMillicores', - required: true, - }, - { - type: 'text', - name: 'cpuRequestMillicores', - message: 'cpuRequestMillicores', - required: true, - }, - { - type: 'text', - name: 'createdBy', - message: 'createdBy', - required: true, - }, - { - type: 'text', - name: 'createdByPrincipal', - message: 'createdByPrincipal', - required: true, - }, - { - type: 'text', - name: 'errorCount', - message: 'errorCount', - required: true, - }, - { - type: 'text', - name: 'imageRef', - message: 'imageRef', - required: true, - }, - { - type: 'text', - name: 'installationId', - message: 'installationId', - required: true, - }, - { - type: 'text', - name: 'integrations', - message: 'integrations', - required: true, - }, - { - type: 'text', - name: 'kind', - message: 'kind', - required: true, - }, - { - type: 'json', - name: 'labels', - message: 'labels', - required: true, - }, - { - type: 'text', - name: 'lastError', - message: 'lastError', - required: true, - }, - { - type: 'text', - name: 'lastHeartbeatAt', - message: 'lastHeartbeatAt', - required: true, - }, - { - type: 'text', - name: 'memoryLimitBytes', - message: 'memoryLimitBytes', - required: true, - }, - { - type: 'text', - name: 'memoryRequestBytes', - message: 'memoryRequestBytes', - required: true, - }, - { - type: 'text', - name: 'name', - message: 'name', - required: true, - }, - { - type: 'text', - name: 'namespaceId', - message: 'namespaceId', - required: true, - }, - { - type: 'text', - name: 'realm', - message: 'realm', - required: true, - }, - { - type: 'text', - name: 'replicas', - message: 'replicas', - required: true, - }, - { - type: 'text', - name: 'requiredConfigs', - message: 'requiredConfigs', - required: true, - }, - { - type: 'text', - name: 'requiredSecrets', - message: 'requiredSecrets', - required: true, - }, - { - type: 'text', - name: 'resourceDefinitionId', - message: 'resourceDefinitionId', - required: true, - }, - { - type: 'text', - name: 'slug', - message: 'slug', - required: true, - }, - { - type: 'json', - name: 'spec', - message: 'spec', - required: true, - }, - { - type: 'text', - name: 'status', - message: 'status', - required: true, - }, - { - type: 'text', - name: 'statusDetail', - message: 'statusDetail', - required: true, - }, - { - type: 'json', - name: 'statusObserved', - message: 'statusObserved', - required: true, - }, - { - type: 'text', - name: 'storageClass', - message: 'storageClass', - required: true, - }, - { - type: 'text', - name: 'storageSizeBytes', - message: 'storageSizeBytes', - required: true, - }, - { - type: 'text', - name: 'storageTotalBytes', - message: 'storageTotalBytes', - required: true, - }, - { - type: 'text', - name: 'updatedBy', - message: 'updatedBy', - required: true, - }, - { - type: 'text', - name: 'updatedByPrincipal', - message: 'updatedByPrincipal', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreatePlatformResourcesHealthInput['platformResourcesHealth']; - const client = getClient(); - const result = await client.platformResourcesHealth - .create({ - data: { - annotations: cleanedData.annotations, - cpuLimitMillicores: cleanedData.cpuLimitMillicores, - cpuRequestMillicores: cleanedData.cpuRequestMillicores, - createdBy: cleanedData.createdBy, - createdByPrincipal: cleanedData.createdByPrincipal, - errorCount: cleanedData.errorCount, - imageRef: cleanedData.imageRef, - installationId: cleanedData.installationId, - integrations: cleanedData.integrations, - kind: cleanedData.kind, - labels: cleanedData.labels, - lastError: cleanedData.lastError, - lastHeartbeatAt: cleanedData.lastHeartbeatAt, - memoryLimitBytes: cleanedData.memoryLimitBytes, - memoryRequestBytes: cleanedData.memoryRequestBytes, - name: cleanedData.name, - namespaceId: cleanedData.namespaceId, - realm: cleanedData.realm, - replicas: cleanedData.replicas, - requiredConfigs: cleanedData.requiredConfigs, - requiredSecrets: cleanedData.requiredSecrets, - resourceDefinitionId: cleanedData.resourceDefinitionId, - slug: cleanedData.slug, - spec: cleanedData.spec, - status: cleanedData.status, - statusDetail: cleanedData.statusDetail, - statusObserved: cleanedData.statusObserved, - storageClass: cleanedData.storageClass, - storageSizeBytes: cleanedData.storageSizeBytes, - storageTotalBytes: cleanedData.storageTotalBytes, - updatedBy: cleanedData.updatedBy, - updatedByPrincipal: cleanedData.updatedByPrincipal, - }, - select: { - annotations: true, - cpuLimitMillicores: true, - cpuRequestMillicores: true, - createdAt: true, - createdBy: true, - createdByPrincipal: true, - errorCount: true, - id: true, - imageRef: true, - installationId: true, - integrations: true, - kind: true, - labels: true, - lastError: true, - lastHeartbeatAt: true, - memoryLimitBytes: true, - memoryRequestBytes: true, - name: true, - namespaceId: true, - realm: true, - replicas: true, - requiredConfigs: true, - requiredSecrets: true, - resourceDefinitionId: true, - slug: true, - spec: true, - status: true, - statusDetail: true, - statusObserved: true, - storageClass: true, - storageSizeBytes: true, - storageTotalBytes: true, - updatedAt: true, - updatedBy: true, - updatedByPrincipal: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/compute/cli/commands/platform-resources-requirements-state.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-resources-requirements-state.ts index 1ce47d2c3b..603fe8b32c 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/platform-resources-requirements-state.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-resources-requirements-state.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreatePlatformResourcesRequirementsStateInput, PlatformResourcesRequirementsStatePatch, PlatformResourcesRequirementsStateSelect, PlatformResourcesRequirementsStateFilter, @@ -42,7 +41,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -59,8 +58,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -130,86 +127,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'configHash', - message: 'configHash', - required: true, - }, - { - type: 'text', - name: 'configObjectName', - message: 'configObjectName', - required: true, - }, - { - type: 'text', - name: 'requirementsHash', - message: 'requirementsHash', - required: true, - }, - { - type: 'text', - name: 'resourceId', - message: 'resourceId', - required: true, - }, - { - type: 'text', - name: 'secretsHash', - message: 'secretsHash', - required: true, - }, - { - type: 'text', - name: 'secretsObjectName', - message: 'secretsObjectName', - required: true, - }, - { - type: 'text', - name: 'slug', - message: 'slug', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreatePlatformResourcesRequirementsStateInput['platformResourcesRequirementsState']; - const client = getClient(); - const result = await client.platformResourcesRequirementsState - .create({ - data: { - configHash: cleanedData.configHash, - configObjectName: cleanedData.configObjectName, - requirementsHash: cleanedData.requirementsHash, - resourceId: cleanedData.resourceId, - secretsHash: cleanedData.secretsHash, - secretsObjectName: cleanedData.secretsObjectName, - slug: cleanedData.slug, - }, - select: { - configHash: true, - configObjectName: true, - requirementsHash: true, - resourceId: true, - secretsHash: true, - secretsObjectName: true, - slug: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/compute/cli/commands/platform-resources-resolved-requirement.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-resources-resolved-requirement.ts index d0be9608b4..4ce290fbe5 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/platform-resources-resolved-requirement.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-resources-resolved-requirement.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreatePlatformResourcesResolvedRequirementInput, PlatformResourcesResolvedRequirementPatch, PlatformResourcesResolvedRequirementSelect, PlatformResourcesResolvedRequirementFilter, @@ -46,7 +45,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -63,8 +62,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -144,118 +141,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'atomId', - message: 'atomId', - required: true, - }, - { - type: 'text', - name: 'configObjectName', - message: 'configObjectName', - required: true, - }, - { - type: 'text', - name: 'name', - message: 'name', - required: true, - }, - { - type: 'text', - name: 'namespaceId', - message: 'namespaceId', - required: true, - }, - { - type: 'boolean', - name: 'present', - message: 'present', - required: true, - }, - { - type: 'text', - name: 'realm', - message: 'realm', - required: true, - }, - { - type: 'boolean', - name: 'required', - message: 'required', - required: true, - }, - { - type: 'text', - name: 'requirementKind', - message: 'requirementKind', - required: true, - }, - { - type: 'text', - name: 'resourceId', - message: 'resourceId', - required: true, - }, - { - type: 'text', - name: 'secretsObjectName', - message: 'secretsObjectName', - required: true, - }, - { - type: 'text', - name: 'slug', - message: 'slug', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreatePlatformResourcesResolvedRequirementInput['platformResourcesResolvedRequirement']; - const client = getClient(); - const result = await client.platformResourcesResolvedRequirement - .create({ - data: { - atomId: cleanedData.atomId, - configObjectName: cleanedData.configObjectName, - name: cleanedData.name, - namespaceId: cleanedData.namespaceId, - present: cleanedData.present, - realm: cleanedData.realm, - required: cleanedData.required, - requirementKind: cleanedData.requirementKind, - resourceId: cleanedData.resourceId, - secretsObjectName: cleanedData.secretsObjectName, - slug: cleanedData.slug, - }, - select: { - atomId: true, - configObjectName: true, - name: true, - namespaceId: true, - present: true, - realm: true, - required: true, - requirementKind: true, - resourceId: true, - secretsObjectName: true, - slug: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/compute/cli/commands/platform-builder-binding.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-service-binding.ts similarity index 84% rename from sdk/constructive-cli/src/compute/cli/commands/platform-builder-binding.ts rename to sdk/constructive-cli/src/compute/cli/commands/platform-service-binding.ts index a58bb731f5..2696642efb 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/platform-builder-binding.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-service-binding.ts @@ -1,5 +1,5 @@ /** - * CLI commands for PlatformBuilderBinding + * CLI commands for PlatformServiceBinding * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -8,11 +8,11 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreatePlatformBuilderBindingInput, - PlatformBuilderBindingPatch, - PlatformBuilderBindingSelect, - PlatformBuilderBindingFilter, - PlatformBuilderBindingOrderBy, + CreatePlatformServiceBindingInput, + PlatformServiceBindingPatch, + PlatformServiceBindingSelect, + PlatformServiceBindingFilter, + PlatformServiceBindingOrderBy, } from '../../orm/input-types'; import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { @@ -21,6 +21,8 @@ const fieldSchema: FieldSchema = { createdByPrincipal: 'uuid', id: 'uuid', installationId: 'uuid', + installationScope: 'string', + kind: 'string', lastError: 'string', metadata: 'json', namespaceId: 'uuid', @@ -32,7 +34,7 @@ const fieldSchema: FieldSchema = { updatedByPrincipal: 'uuid', }; const usage = - '\nplatform-builder-binding \n\nCommands:\n list List platformBuilderBinding records\n find-first Find first matching platformBuilderBinding record\n get Get a platformBuilderBinding by ID\n create Create a new platformBuilderBinding\n update Update an existing platformBuilderBinding\n delete Delete a platformBuilderBinding\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; + '\nplatform-service-binding \n\nCommands:\n list List platformServiceBinding records\n find-first Find first matching platformServiceBinding record\n get Get a platformServiceBinding by ID\n create Create a new platformServiceBinding\n update Update an existing platformServiceBinding\n delete Delete a platformServiceBinding\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; export default async ( argv: Partial>, prompter: Inquirerer, @@ -87,6 +89,8 @@ async function handleList(argv: Partial>, _prompter: Inq createdByPrincipal: true, id: true, installationId: true, + installationScope: true, + kind: true, lastError: true, metadata: true, namespaceId: true, @@ -99,15 +103,15 @@ async function handleList(argv: Partial>, _prompter: Inq }; const findManyArgs = parseFindManyArgs< FindManyArgs< - PlatformBuilderBindingSelect, - PlatformBuilderBindingFilter, - PlatformBuilderBindingOrderBy + PlatformServiceBindingSelect, + PlatformServiceBindingFilter, + PlatformServiceBindingOrderBy > & { - select: PlatformBuilderBindingSelect; + select: PlatformServiceBindingSelect; } >(argv, defaultSelect); const client = getClient(); - const result = await client.platformBuilderBinding.findMany(findManyArgs).execute(); + const result = await client.platformServiceBinding.findMany(findManyArgs).execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { console.error('Failed to list records.'); @@ -125,6 +129,8 @@ async function handleFindFirst(argv: Partial>, _prompter createdByPrincipal: true, id: true, installationId: true, + installationScope: true, + kind: true, lastError: true, metadata: true, namespaceId: true, @@ -137,15 +143,15 @@ async function handleFindFirst(argv: Partial>, _prompter }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs< - PlatformBuilderBindingSelect, - PlatformBuilderBindingFilter, - PlatformBuilderBindingOrderBy + PlatformServiceBindingSelect, + PlatformServiceBindingFilter, + PlatformServiceBindingOrderBy > & { - select: PlatformBuilderBindingSelect; + select: PlatformServiceBindingSelect; } >(argv, defaultSelect); const client = getClient(); - const result = await client.platformBuilderBinding.findFirst(findFirstArgs).execute(); + const result = await client.platformServiceBinding.findFirst(findFirstArgs).execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { console.error('Failed to find record.'); @@ -166,7 +172,7 @@ async function handleGet(argv: Partial>, prompter: Inqui }, ]); const client = getClient(); - const result = await client.platformBuilderBinding + const result = await client.platformServiceBinding .findOne({ id: answers.id as string, select: { @@ -175,6 +181,8 @@ async function handleGet(argv: Partial>, prompter: Inqui createdByPrincipal: true, id: true, installationId: true, + installationScope: true, + kind: true, lastError: true, metadata: true, namespaceId: true, @@ -219,6 +227,18 @@ async function handleCreate(argv: Partial>, prompter: In message: 'installationId', required: true, }, + { + type: 'text', + name: 'installationScope', + message: 'installationScope', + required: true, + }, + { + type: 'text', + name: 'kind', + message: 'kind', + required: true, + }, { type: 'text', name: 'lastError', @@ -279,14 +299,16 @@ async function handleCreate(argv: Partial>, prompter: In const cleanedData = stripUndefined( answers, fieldSchema - ) as CreatePlatformBuilderBindingInput['platformBuilderBinding']; + ) as CreatePlatformServiceBindingInput['platformServiceBinding']; const client = getClient(); - const result = await client.platformBuilderBinding + const result = await client.platformServiceBinding .create({ data: { createdBy: cleanedData.createdBy, createdByPrincipal: cleanedData.createdByPrincipal, installationId: cleanedData.installationId, + installationScope: cleanedData.installationScope, + kind: cleanedData.kind, lastError: cleanedData.lastError, metadata: cleanedData.metadata, namespaceId: cleanedData.namespaceId, @@ -302,6 +324,8 @@ async function handleCreate(argv: Partial>, prompter: In createdByPrincipal: true, id: true, installationId: true, + installationScope: true, + kind: true, lastError: true, metadata: true, namespaceId: true, @@ -352,6 +376,18 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'installationId', required: false, }, + { + type: 'text', + name: 'installationScope', + message: 'installationScope', + required: false, + }, + { + type: 'text', + name: 'kind', + message: 'kind', + required: false, + }, { type: 'text', name: 'lastError', @@ -409,9 +445,9 @@ async function handleUpdate(argv: Partial>, prompter: In }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as PlatformBuilderBindingPatch; + const cleanedData = stripUndefined(answers, fieldSchema) as PlatformServiceBindingPatch; const client = getClient(); - const result = await client.platformBuilderBinding + const result = await client.platformServiceBinding .update({ where: { id: answers.id as string, @@ -420,6 +456,8 @@ async function handleUpdate(argv: Partial>, prompter: In createdBy: cleanedData.createdBy, createdByPrincipal: cleanedData.createdByPrincipal, installationId: cleanedData.installationId, + installationScope: cleanedData.installationScope, + kind: cleanedData.kind, lastError: cleanedData.lastError, metadata: cleanedData.metadata, namespaceId: cleanedData.namespaceId, @@ -435,6 +473,8 @@ async function handleUpdate(argv: Partial>, prompter: In createdByPrincipal: true, id: true, installationId: true, + installationScope: true, + kind: true, lastError: true, metadata: true, namespaceId: true, @@ -468,7 +508,7 @@ async function handleDelete(argv: Partial>, prompter: In ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const client = getClient(); - const result = await client.platformBuilderBinding + const result = await client.platformServiceBinding .delete({ where: { id: answers.id as string, diff --git a/sdk/constructive-cli/src/compute/cli/commands/proposal-comment.ts b/sdk/constructive-cli/src/compute/cli/commands/proposal-comment.ts index a5c3983227..802df697b1 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/proposal-comment.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/proposal-comment.ts @@ -18,6 +18,8 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { actorId: 'uuid', attachments: 'string', + attachmentsUrl: 'string', + attachmentsVersions: 'string', body: 'string', bodyTrgmSimilarity: 'float', createdAt: 'string', @@ -25,6 +27,8 @@ const fieldSchema: FieldSchema = { createdByPrincipal: 'uuid', databaseId: 'uuid', embedding: 'string', + embeddingModel: 'string', + embeddingModelTrgmSimilarity: 'float', embeddingUpdatedAt: 'string', embeddingVectorDistance: 'float', id: 'uuid', @@ -101,6 +105,7 @@ async function handleList(argv: Partial>, _prompter: Inq createdAt: true, createdBy: true, createdByPrincipal: true, + databaseId: true, embedding: true, id: true, line: true, @@ -147,6 +152,7 @@ async function handleFindFirst(argv: Partial>, _prompter createdAt: true, createdBy: true, createdByPrincipal: true, + databaseId: true, embedding: true, id: true, line: true, @@ -189,6 +195,10 @@ async function handleSearch(argv: Partial>, _prompter: I value: query, threshold: 0.3, }, + trgmEmbeddingModel: { + value: query, + threshold: 0.3, + }, trgmPath: { value: query, threshold: 0.3, @@ -214,6 +224,7 @@ async function handleSearch(argv: Partial>, _prompter: I createdAt: true, createdBy: true, createdByPrincipal: true, + databaseId: true, embedding: true, id: true, line: true, @@ -262,6 +273,7 @@ async function handleGet(argv: Partial>, prompter: Inqui createdAt: true, createdBy: true, createdByPrincipal: true, + databaseId: true, embedding: true, id: true, line: true, @@ -417,6 +429,7 @@ async function handleCreate(argv: Partial>, prompter: In createdAt: true, createdBy: true, createdByPrincipal: true, + databaseId: true, embedding: true, id: true, line: true, @@ -482,6 +495,12 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, { type: 'text', name: 'embedding', @@ -562,6 +581,7 @@ async function handleUpdate(argv: Partial>, prompter: In body: cleanedData.body, createdBy: cleanedData.createdBy, createdByPrincipal: cleanedData.createdByPrincipal, + databaseId: cleanedData.databaseId, embedding: cleanedData.embedding, line: cleanedData.line, outdatedAt: cleanedData.outdatedAt, @@ -578,6 +598,7 @@ async function handleUpdate(argv: Partial>, prompter: In createdAt: true, createdBy: true, createdByPrincipal: true, + databaseId: true, embedding: true, id: true, line: true, diff --git a/sdk/constructive-cli/src/compute/cli/commands/proposal-file-view.ts b/sdk/constructive-cli/src/compute/cli/commands/proposal-file-view.ts index 99341dfc9c..d48ff2717e 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/proposal-file-view.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/proposal-file-view.ts @@ -82,6 +82,7 @@ async function handleList(argv: Partial>, _prompter: Inq blobSha: true, createdAt: true, createdByPrincipal: true, + databaseId: true, id: true, path: true, proposalId: true, @@ -112,6 +113,7 @@ async function handleFindFirst(argv: Partial>, _prompter blobSha: true, createdAt: true, createdByPrincipal: true, + databaseId: true, id: true, path: true, proposalId: true, @@ -154,6 +156,7 @@ async function handleGet(argv: Partial>, prompter: Inqui blobSha: true, createdAt: true, createdByPrincipal: true, + databaseId: true, id: true, path: true, proposalId: true, @@ -243,6 +246,7 @@ async function handleCreate(argv: Partial>, prompter: In blobSha: true, createdAt: true, createdByPrincipal: true, + databaseId: true, id: true, path: true, proposalId: true, @@ -284,6 +288,12 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, { type: 'text', name: 'path', @@ -328,6 +338,7 @@ async function handleUpdate(argv: Partial>, prompter: In data: { blobSha: cleanedData.blobSha, createdByPrincipal: cleanedData.createdByPrincipal, + databaseId: cleanedData.databaseId, path: cleanedData.path, proposalId: cleanedData.proposalId, reviewerId: cleanedData.reviewerId, @@ -338,6 +349,7 @@ async function handleUpdate(argv: Partial>, prompter: In blobSha: true, createdAt: true, createdByPrincipal: true, + databaseId: true, id: true, path: true, proposalId: true, diff --git a/sdk/constructive-cli/src/compute/cli/commands/proposal-reaction.ts b/sdk/constructive-cli/src/compute/cli/commands/proposal-reaction.ts index e1e8ac3ef3..8b0ae87c3a 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/proposal-reaction.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/proposal-reaction.ts @@ -82,6 +82,7 @@ async function handleList(argv: Partial>, _prompter: Inq commentId: true, createdAt: true, createdByPrincipal: true, + databaseId: true, emoji: true, id: true, proposalId: true, @@ -111,6 +112,7 @@ async function handleFindFirst(argv: Partial>, _prompter commentId: true, createdAt: true, createdByPrincipal: true, + databaseId: true, emoji: true, id: true, proposalId: true, @@ -152,6 +154,7 @@ async function handleGet(argv: Partial>, prompter: Inqui commentId: true, createdAt: true, createdByPrincipal: true, + databaseId: true, emoji: true, id: true, proposalId: true, @@ -233,6 +236,7 @@ async function handleCreate(argv: Partial>, prompter: In commentId: true, createdAt: true, createdByPrincipal: true, + databaseId: true, emoji: true, id: true, proposalId: true, @@ -279,6 +283,12 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, { type: 'text', name: 'emoji', @@ -311,6 +321,7 @@ async function handleUpdate(argv: Partial>, prompter: In actorId: cleanedData.actorId, commentId: cleanedData.commentId, createdByPrincipal: cleanedData.createdByPrincipal, + databaseId: cleanedData.databaseId, emoji: cleanedData.emoji, proposalId: cleanedData.proposalId, updatedByPrincipal: cleanedData.updatedByPrincipal, @@ -320,6 +331,7 @@ async function handleUpdate(argv: Partial>, prompter: In commentId: true, createdAt: true, createdByPrincipal: true, + databaseId: true, emoji: true, id: true, proposalId: true, diff --git a/sdk/constructive-cli/src/compute/cli/commands/proposal-review.ts b/sdk/constructive-cli/src/compute/cli/commands/proposal-review.ts index 1e733f70c8..76840f2ade 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/proposal-review.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/proposal-review.ts @@ -92,6 +92,7 @@ async function handleList(argv: Partial>, _prompter: Inq commitSha: true, createdAt: true, createdByPrincipal: true, + databaseId: true, id: true, proposalId: true, reviewerId: true, @@ -123,6 +124,7 @@ async function handleFindFirst(argv: Partial>, _prompter commitSha: true, createdAt: true, createdByPrincipal: true, + databaseId: true, id: true, proposalId: true, reviewerId: true, @@ -176,6 +178,7 @@ async function handleSearch(argv: Partial>, _prompter: I commitSha: true, createdAt: true, createdByPrincipal: true, + databaseId: true, id: true, proposalId: true, reviewerId: true, @@ -219,6 +222,7 @@ async function handleGet(argv: Partial>, prompter: Inqui commitSha: true, createdAt: true, createdByPrincipal: true, + databaseId: true, id: true, proposalId: true, reviewerId: true, @@ -317,6 +321,7 @@ async function handleCreate(argv: Partial>, prompter: In commitSha: true, createdAt: true, createdByPrincipal: true, + databaseId: true, id: true, proposalId: true, reviewerId: true, @@ -365,6 +370,12 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, { type: 'text', name: 'proposalId', @@ -410,6 +421,7 @@ async function handleUpdate(argv: Partial>, prompter: In body: cleanedData.body, commitSha: cleanedData.commitSha, createdByPrincipal: cleanedData.createdByPrincipal, + databaseId: cleanedData.databaseId, proposalId: cleanedData.proposalId, reviewerId: cleanedData.reviewerId, submittedAt: cleanedData.submittedAt, @@ -421,6 +433,7 @@ async function handleUpdate(argv: Partial>, prompter: In commitSha: true, createdAt: true, createdByPrincipal: true, + databaseId: true, id: true, proposalId: true, reviewerId: true, diff --git a/sdk/constructive-cli/src/compute/cli/commands/proposal.ts b/sdk/constructive-cli/src/compute/cli/commands/proposal.ts index e234a05877..4596b24b9c 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/proposal.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/proposal.ts @@ -28,6 +28,8 @@ const fieldSchema: FieldSchema = { decidedAt: 'string', dueAt: 'string', embedding: 'string', + embeddingModel: 'string', + embeddingModelTrgmSimilarity: 'float', embeddingUpdatedAt: 'string', embeddingVectorDistance: 'float', id: 'uuid', @@ -121,6 +123,7 @@ async function handleList(argv: Partial>, _prompter: Inq createdAt: true, createdBy: true, createdByPrincipal: true, + databaseId: true, decidedAt: true, dueAt: true, embedding: true, @@ -179,6 +182,7 @@ async function handleFindFirst(argv: Partial>, _prompter createdAt: true, createdBy: true, createdByPrincipal: true, + databaseId: true, decidedAt: true, dueAt: true, embedding: true, @@ -237,6 +241,10 @@ async function handleSearch(argv: Partial>, _prompter: I value: query, threshold: 0.3, }, + trgmEmbeddingModel: { + value: query, + threshold: 0.3, + }, trgmKind: { value: query, threshold: 0.3, @@ -290,6 +298,7 @@ async function handleSearch(argv: Partial>, _prompter: I createdAt: true, createdBy: true, createdByPrincipal: true, + databaseId: true, decidedAt: true, dueAt: true, embedding: true, @@ -350,6 +359,7 @@ async function handleGet(argv: Partial>, prompter: Inqui createdAt: true, createdBy: true, createdByPrincipal: true, + databaseId: true, decidedAt: true, dueAt: true, embedding: true, @@ -610,6 +620,7 @@ async function handleCreate(argv: Partial>, prompter: In createdAt: true, createdBy: true, createdByPrincipal: true, + databaseId: true, decidedAt: true, dueAt: true, embedding: true, @@ -688,6 +699,12 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, { type: 'text', name: 'decidedAt', @@ -851,6 +868,7 @@ async function handleUpdate(argv: Partial>, prompter: In closedReason: cleanedData.closedReason, createdBy: cleanedData.createdBy, createdByPrincipal: cleanedData.createdByPrincipal, + databaseId: cleanedData.databaseId, decidedAt: cleanedData.decidedAt, dueAt: cleanedData.dueAt, embedding: cleanedData.embedding, @@ -879,6 +897,7 @@ async function handleUpdate(argv: Partial>, prompter: In createdAt: true, createdBy: true, createdByPrincipal: true, + databaseId: true, decidedAt: true, dueAt: true, embedding: true, diff --git a/sdk/constructive-cli/src/compute/cli/commands/repository-event.ts b/sdk/constructive-cli/src/compute/cli/commands/repository-event.ts index aca1ae25c4..724b1caa39 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/repository-event.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/repository-event.ts @@ -86,6 +86,7 @@ async function handleList(argv: Partial>, _prompter: Inq commitSha: true, createdAt: true, createdByPrincipal: true, + databaseId: true, deliveryId: true, eventType: true, id: true, @@ -119,6 +120,7 @@ async function handleFindFirst(argv: Partial>, _prompter commitSha: true, createdAt: true, createdByPrincipal: true, + databaseId: true, deliveryId: true, eventType: true, id: true, @@ -164,6 +166,7 @@ async function handleGet(argv: Partial>, prompter: Inqui commitSha: true, createdAt: true, createdByPrincipal: true, + databaseId: true, deliveryId: true, eventType: true, id: true, @@ -282,6 +285,7 @@ async function handleCreate(argv: Partial>, prompter: In commitSha: true, createdAt: true, createdByPrincipal: true, + databaseId: true, deliveryId: true, eventType: true, id: true, @@ -333,6 +337,12 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, { type: 'text', name: 'deliveryId', @@ -393,6 +403,7 @@ async function handleUpdate(argv: Partial>, prompter: In actorId: cleanedData.actorId, commitSha: cleanedData.commitSha, createdByPrincipal: cleanedData.createdByPrincipal, + databaseId: cleanedData.databaseId, deliveryId: cleanedData.deliveryId, eventType: cleanedData.eventType, metadata: cleanedData.metadata, @@ -406,6 +417,7 @@ async function handleUpdate(argv: Partial>, prompter: In commitSha: true, createdAt: true, createdByPrincipal: true, + databaseId: true, deliveryId: true, eventType: true, id: true, diff --git a/sdk/constructive-cli/src/compute/cli/commands/repository-workflow.ts b/sdk/constructive-cli/src/compute/cli/commands/repository-workflow.ts index 1d5ee81a14..d0217d686d 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/repository-workflow.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/repository-workflow.ts @@ -92,6 +92,7 @@ async function handleList(argv: Partial>, _prompter: Inq createdAt: true, createdBy: true, createdByPrincipal: true, + databaseId: true, eventType: true, graphId: true, id: true, @@ -134,6 +135,7 @@ async function handleFindFirst(argv: Partial>, _prompter createdAt: true, createdBy: true, createdByPrincipal: true, + databaseId: true, eventType: true, graphId: true, id: true, @@ -188,6 +190,7 @@ async function handleGet(argv: Partial>, prompter: Inqui createdAt: true, createdBy: true, createdByPrincipal: true, + databaseId: true, eventType: true, graphId: true, id: true, @@ -349,6 +352,7 @@ async function handleCreate(argv: Partial>, prompter: In createdAt: true, createdBy: true, createdByPrincipal: true, + databaseId: true, eventType: true, graphId: true, id: true, @@ -411,6 +415,12 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, { type: 'text', name: 'eventType', @@ -498,6 +508,7 @@ async function handleUpdate(argv: Partial>, prompter: In concurrencyKey: cleanedData.concurrencyKey, createdBy: cleanedData.createdBy, createdByPrincipal: cleanedData.createdByPrincipal, + databaseId: cleanedData.databaseId, eventType: cleanedData.eventType, graphId: cleanedData.graphId, inputs: cleanedData.inputs, @@ -516,6 +527,7 @@ async function handleUpdate(argv: Partial>, prompter: In createdAt: true, createdBy: true, createdByPrincipal: true, + databaseId: true, eventType: true, graphId: true, id: true, diff --git a/sdk/constructive-cli/src/compute/cli/commands/repository.ts b/sdk/constructive-cli/src/compute/cli/commands/repository.ts index 84be0a6415..f30f6a236f 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/repository.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/repository.ts @@ -27,6 +27,8 @@ const fieldSchema: FieldSchema = { description: 'string', descriptionTrgmSimilarity: 'float', embedding: 'string', + embeddingModel: 'string', + embeddingModelTrgmSimilarity: 'float', embeddingUpdatedAt: 'string', embeddingVectorDistance: 'float', externalId: 'string', @@ -214,6 +216,10 @@ async function handleSearch(argv: Partial>, _prompter: I value: query, threshold: 0.3, }, + trgmEmbeddingModel: { + value: query, + threshold: 0.3, + }, trgmExternalId: { value: query, threshold: 0.3, diff --git a/sdk/constructive-cli/src/compute/cli/commands/resource-declared-capacity.ts b/sdk/constructive-cli/src/compute/cli/commands/resource-declared-capacity.ts index 19c05f90f9..768ce9e132 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/resource-declared-capacity.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/resource-declared-capacity.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateResourceDeclaredCapacityInput, ResourceDeclaredCapacityPatch, ResourceDeclaredCapacitySelect, ResourceDeclaredCapacityFilter, @@ -49,7 +48,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -66,8 +65,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -149,142 +146,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'cpuLimitMillicores', - message: 'cpuLimitMillicores', - required: true, - }, - { - type: 'text', - name: 'cpuRequestMillicores', - message: 'cpuRequestMillicores', - required: true, - }, - { - type: 'text', - name: 'installationId', - message: 'installationId', - required: true, - }, - { - type: 'boolean', - name: 'isTransient', - message: 'isTransient', - required: true, - }, - { - type: 'text', - name: 'kind', - message: 'kind', - required: true, - }, - { - type: 'text', - name: 'memoryLimitBytes', - message: 'memoryLimitBytes', - required: true, - }, - { - type: 'text', - name: 'memoryRequestBytes', - message: 'memoryRequestBytes', - required: true, - }, - { - type: 'text', - name: 'namespaceId', - message: 'namespaceId', - required: true, - }, - { - type: 'text', - name: 'podCountMax', - message: 'podCountMax', - required: true, - }, - { - type: 'text', - name: 'podCountMin', - message: 'podCountMin', - required: true, - }, - { - type: 'text', - name: 'source', - message: 'source', - required: true, - }, - { - type: 'text', - name: 'sourceId', - message: 'sourceId', - required: true, - }, - { - type: 'text', - name: 'storageSizeBytes', - message: 'storageSizeBytes', - required: true, - }, - { - type: 'text', - name: 'storageTotalBytes', - message: 'storageTotalBytes', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateResourceDeclaredCapacityInput['resourceDeclaredCapacity']; - const client = getClient(); - const result = await client.resourceDeclaredCapacity - .create({ - data: { - cpuLimitMillicores: cleanedData.cpuLimitMillicores, - cpuRequestMillicores: cleanedData.cpuRequestMillicores, - installationId: cleanedData.installationId, - isTransient: cleanedData.isTransient, - kind: cleanedData.kind, - memoryLimitBytes: cleanedData.memoryLimitBytes, - memoryRequestBytes: cleanedData.memoryRequestBytes, - namespaceId: cleanedData.namespaceId, - podCountMax: cleanedData.podCountMax, - podCountMin: cleanedData.podCountMin, - source: cleanedData.source, - sourceId: cleanedData.sourceId, - storageSizeBytes: cleanedData.storageSizeBytes, - storageTotalBytes: cleanedData.storageTotalBytes, - }, - select: { - cpuLimitMillicores: true, - cpuRequestMillicores: true, - installationId: true, - isTransient: true, - kind: true, - memoryLimitBytes: true, - memoryRequestBytes: true, - namespaceId: true, - podCountMax: true, - podCountMin: true, - source: true, - sourceId: true, - storageSizeBytes: true, - storageTotalBytes: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/compute/cli/commands/resource-definition.ts b/sdk/constructive-cli/src/compute/cli/commands/resource-definition.ts index 206a3dfd1e..bea96c65bf 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/resource-definition.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/resource-definition.ts @@ -103,8 +103,6 @@ async function handleList(argv: Partial>, _prompter: Inq name: true, namespaceId: true, paramsSchema: true, - requiredConfigs: true, - requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, @@ -148,8 +146,6 @@ async function handleFindFirst(argv: Partial>, _prompter name: true, namespaceId: true, paramsSchema: true, - requiredConfigs: true, - requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, @@ -205,8 +201,6 @@ async function handleGet(argv: Partial>, prompter: Inqui name: true, namespaceId: true, paramsSchema: true, - requiredConfigs: true, - requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, @@ -392,8 +386,6 @@ async function handleCreate(argv: Partial>, prompter: In name: true, namespaceId: true, paramsSchema: true, - requiredConfigs: true, - requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, @@ -585,8 +577,6 @@ async function handleUpdate(argv: Partial>, prompter: In name: true, namespaceId: true, paramsSchema: true, - requiredConfigs: true, - requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, diff --git a/sdk/constructive-cli/src/compute/cli/commands/resource-observed-storage.ts b/sdk/constructive-cli/src/compute/cli/commands/resource-observed-storage.ts index 3e7dad23c7..398d073875 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/resource-observed-storage.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/resource-observed-storage.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateResourceObservedStorageInput, ResourceObservedStoragePatch, ResourceObservedStorageSelect, ResourceObservedStorageFilter, @@ -53,7 +52,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -70,8 +69,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -161,174 +158,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'capacity', - message: 'capacity', - required: true, - }, - { - type: 'text', - name: 'capacityBytes', - message: 'capacityBytes', - required: true, - }, - { - type: 'text', - name: 'claimName', - message: 'claimName', - required: true, - }, - { - type: 'text', - name: 'declaredStorageClass', - message: 'declaredStorageClass', - required: true, - }, - { - type: 'text', - name: 'declaredStorageSizeBytes', - message: 'declaredStorageSizeBytes', - required: true, - }, - { - type: 'text', - name: 'declaredStorageTotalBytes', - message: 'declaredStorageTotalBytes', - required: true, - }, - { - type: 'text', - name: 'installationId', - message: 'installationId', - required: true, - }, - { - type: 'boolean', - name: 'isBound', - message: 'isBound', - required: true, - }, - { - type: 'text', - name: 'kind', - message: 'kind', - required: true, - }, - { - type: 'text', - name: 'namespaceId', - message: 'namespaceId', - required: true, - }, - { - type: 'text', - name: 'phase', - message: 'phase', - required: true, - }, - { - type: 'text', - name: 'requested', - message: 'requested', - required: true, - }, - { - type: 'text', - name: 'requestedBytes', - message: 'requestedBytes', - required: true, - }, - { - type: 'text', - name: 'resourceId', - message: 'resourceId', - required: true, - }, - { - type: 'text', - name: 'resourceStatus', - message: 'resourceStatus', - required: true, - }, - { - type: 'text', - name: 'slug', - message: 'slug', - required: true, - }, - { - type: 'text', - name: 'storageClass', - message: 'storageClass', - required: true, - }, - { - type: 'text', - name: 'storageName', - message: 'storageName', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateResourceObservedStorageInput['resourceObservedStorage']; - const client = getClient(); - const result = await client.resourceObservedStorage - .create({ - data: { - capacity: cleanedData.capacity, - capacityBytes: cleanedData.capacityBytes, - claimName: cleanedData.claimName, - declaredStorageClass: cleanedData.declaredStorageClass, - declaredStorageSizeBytes: cleanedData.declaredStorageSizeBytes, - declaredStorageTotalBytes: cleanedData.declaredStorageTotalBytes, - installationId: cleanedData.installationId, - isBound: cleanedData.isBound, - kind: cleanedData.kind, - namespaceId: cleanedData.namespaceId, - phase: cleanedData.phase, - requested: cleanedData.requested, - requestedBytes: cleanedData.requestedBytes, - resourceId: cleanedData.resourceId, - resourceStatus: cleanedData.resourceStatus, - slug: cleanedData.slug, - storageClass: cleanedData.storageClass, - storageName: cleanedData.storageName, - }, - select: { - capacity: true, - capacityBytes: true, - claimName: true, - declaredStorageClass: true, - declaredStorageSizeBytes: true, - declaredStorageTotalBytes: true, - installationId: true, - isBound: true, - kind: true, - namespaceId: true, - phase: true, - requested: true, - requestedBytes: true, - resourceId: true, - resourceStatus: true, - slug: true, - storageClass: true, - storageName: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/compute/cli/commands/resource-utilization.ts b/sdk/constructive-cli/src/compute/cli/commands/resource-utilization.ts index bf97744728..e67a6c46c4 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/resource-utilization.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/resource-utilization.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateResourceUtilizationInput, ResourceUtilizationPatch, ResourceUtilizationSelect, ResourceUtilizationFilter, @@ -54,7 +53,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -71,8 +70,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -164,182 +161,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'avgMemoryBytes', - message: 'avgMemoryBytes', - required: true, - }, - { - type: 'text', - name: 'cpuLimitMillicores', - message: 'cpuLimitMillicores', - required: true, - }, - { - type: 'text', - name: 'cpuPeakUtilization', - message: 'cpuPeakUtilization', - required: true, - }, - { - type: 'text', - name: 'cpuRequestHeadroomMillicores', - message: 'cpuRequestHeadroomMillicores', - required: true, - }, - { - type: 'text', - name: 'cpuRequestMillicores', - message: 'cpuRequestMillicores', - required: true, - }, - { - type: 'text', - name: 'date', - message: 'date', - required: true, - }, - { - type: 'text', - name: 'gbSeconds', - message: 'gbSeconds', - required: true, - }, - { - type: 'text', - name: 'kind', - message: 'kind', - required: true, - }, - { - type: 'text', - name: 'maxCpuMillicores', - message: 'maxCpuMillicores', - required: true, - }, - { - type: 'text', - name: 'maxMemoryBytes', - message: 'maxMemoryBytes', - required: true, - }, - { - type: 'text', - name: 'memoryLimitBytes', - message: 'memoryLimitBytes', - required: true, - }, - { - type: 'text', - name: 'memoryPeakUtilization', - message: 'memoryPeakUtilization', - required: true, - }, - { - type: 'text', - name: 'memoryRequestBytes', - message: 'memoryRequestBytes', - required: true, - }, - { - type: 'text', - name: 'memoryRequestHeadroomBytes', - message: 'memoryRequestHeadroomBytes', - required: true, - }, - { - type: 'text', - name: 'namespaceId', - message: 'namespaceId', - required: true, - }, - { - type: 'text', - name: 'replicas', - message: 'replicas', - required: true, - }, - { - type: 'text', - name: 'resourceId', - message: 'resourceId', - required: true, - }, - { - type: 'text', - name: 'runtimeSeconds', - message: 'runtimeSeconds', - required: true, - }, - { - type: 'text', - name: 'sampleCount', - message: 'sampleCount', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateResourceUtilizationInput['resourceUtilization']; - const client = getClient(); - const result = await client.resourceUtilization - .create({ - data: { - avgMemoryBytes: cleanedData.avgMemoryBytes, - cpuLimitMillicores: cleanedData.cpuLimitMillicores, - cpuPeakUtilization: cleanedData.cpuPeakUtilization, - cpuRequestHeadroomMillicores: cleanedData.cpuRequestHeadroomMillicores, - cpuRequestMillicores: cleanedData.cpuRequestMillicores, - date: cleanedData.date, - gbSeconds: cleanedData.gbSeconds, - kind: cleanedData.kind, - maxCpuMillicores: cleanedData.maxCpuMillicores, - maxMemoryBytes: cleanedData.maxMemoryBytes, - memoryLimitBytes: cleanedData.memoryLimitBytes, - memoryPeakUtilization: cleanedData.memoryPeakUtilization, - memoryRequestBytes: cleanedData.memoryRequestBytes, - memoryRequestHeadroomBytes: cleanedData.memoryRequestHeadroomBytes, - namespaceId: cleanedData.namespaceId, - replicas: cleanedData.replicas, - resourceId: cleanedData.resourceId, - runtimeSeconds: cleanedData.runtimeSeconds, - sampleCount: cleanedData.sampleCount, - }, - select: { - avgMemoryBytes: true, - cpuLimitMillicores: true, - cpuPeakUtilization: true, - cpuRequestHeadroomMillicores: true, - cpuRequestMillicores: true, - date: true, - gbSeconds: true, - kind: true, - maxCpuMillicores: true, - maxMemoryBytes: true, - memoryLimitBytes: true, - memoryPeakUtilization: true, - memoryRequestBytes: true, - memoryRequestHeadroomBytes: true, - namespaceId: true, - replicas: true, - resourceId: true, - runtimeSeconds: true, - sampleCount: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/compute/cli/commands/resource.ts b/sdk/constructive-cli/src/compute/cli/commands/resource.ts index 46118319cb..da3329a99a 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/resource.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/resource.ts @@ -120,8 +120,6 @@ async function handleList(argv: Partial>, _prompter: Inq name: true, namespaceId: true, realm: true, - requiredConfigs: true, - requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, @@ -167,8 +165,6 @@ async function handleFindFirst(argv: Partial>, _prompter name: true, namespaceId: true, realm: true, - requiredConfigs: true, - requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, @@ -226,8 +222,6 @@ async function handleGet(argv: Partial>, prompter: Inqui name: true, namespaceId: true, realm: true, - requiredConfigs: true, - requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, @@ -464,8 +458,6 @@ async function handleCreate(argv: Partial>, prompter: In name: true, namespaceId: true, realm: true, - requiredConfigs: true, - requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, @@ -711,8 +703,6 @@ async function handleUpdate(argv: Partial>, prompter: In name: true, namespaceId: true, realm: true, - requiredConfigs: true, - requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, diff --git a/sdk/constructive-cli/src/compute/cli/commands/resources-health.ts b/sdk/constructive-cli/src/compute/cli/commands/resources-health.ts index e8f1d1a366..0e384664ca 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/resources-health.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/resources-health.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateResourcesHealthInput, ResourcesHealthPatch, ResourcesHealthSelect, ResourcesHealthFilter, @@ -71,7 +70,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -88,8 +87,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -120,8 +117,6 @@ async function handleList(argv: Partial>, _prompter: Inq namespaceId: true, realm: true, replicas: true, - requiredConfigs: true, - requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, @@ -176,8 +171,6 @@ async function handleFindFirst(argv: Partial>, _prompter namespaceId: true, realm: true, replicas: true, - requiredConfigs: true, - requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, @@ -207,297 +200,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'json', - name: 'annotations', - message: 'annotations', - required: true, - }, - { - type: 'text', - name: 'cpuLimitMillicores', - message: 'cpuLimitMillicores', - required: true, - }, - { - type: 'text', - name: 'cpuRequestMillicores', - message: 'cpuRequestMillicores', - required: true, - }, - { - type: 'text', - name: 'createdBy', - message: 'createdBy', - required: true, - }, - { - type: 'text', - name: 'createdByPrincipal', - message: 'createdByPrincipal', - required: true, - }, - { - type: 'text', - name: 'databaseId', - message: 'databaseId', - required: true, - }, - { - type: 'text', - name: 'errorCount', - message: 'errorCount', - required: true, - }, - { - type: 'text', - name: 'imageRef', - message: 'imageRef', - required: true, - }, - { - type: 'text', - name: 'installationId', - message: 'installationId', - required: true, - }, - { - type: 'text', - name: 'integrations', - message: 'integrations', - required: true, - }, - { - type: 'text', - name: 'kind', - message: 'kind', - required: true, - }, - { - type: 'json', - name: 'labels', - message: 'labels', - required: true, - }, - { - type: 'text', - name: 'lastError', - message: 'lastError', - required: true, - }, - { - type: 'text', - name: 'lastHeartbeatAt', - message: 'lastHeartbeatAt', - required: true, - }, - { - type: 'text', - name: 'memoryLimitBytes', - message: 'memoryLimitBytes', - required: true, - }, - { - type: 'text', - name: 'memoryRequestBytes', - message: 'memoryRequestBytes', - required: true, - }, - { - type: 'text', - name: 'name', - message: 'name', - required: true, - }, - { - type: 'text', - name: 'namespaceId', - message: 'namespaceId', - required: true, - }, - { - type: 'text', - name: 'realm', - message: 'realm', - required: true, - }, - { - type: 'text', - name: 'replicas', - message: 'replicas', - required: true, - }, - { - type: 'text', - name: 'requiredConfigs', - message: 'requiredConfigs', - required: true, - }, - { - type: 'text', - name: 'requiredSecrets', - message: 'requiredSecrets', - required: true, - }, - { - type: 'text', - name: 'resourceDefinitionId', - message: 'resourceDefinitionId', - required: true, - }, - { - type: 'text', - name: 'slug', - message: 'slug', - required: true, - }, - { - type: 'json', - name: 'spec', - message: 'spec', - required: true, - }, - { - type: 'text', - name: 'status', - message: 'status', - required: true, - }, - { - type: 'text', - name: 'statusDetail', - message: 'statusDetail', - required: true, - }, - { - type: 'json', - name: 'statusObserved', - message: 'statusObserved', - required: true, - }, - { - type: 'text', - name: 'storageClass', - message: 'storageClass', - required: true, - }, - { - type: 'text', - name: 'storageSizeBytes', - message: 'storageSizeBytes', - required: true, - }, - { - type: 'text', - name: 'storageTotalBytes', - message: 'storageTotalBytes', - required: true, - }, - { - type: 'text', - name: 'updatedBy', - message: 'updatedBy', - required: true, - }, - { - type: 'text', - name: 'updatedByPrincipal', - message: 'updatedByPrincipal', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateResourcesHealthInput['resourcesHealth']; - const client = getClient(); - const result = await client.resourcesHealth - .create({ - data: { - annotations: cleanedData.annotations, - cpuLimitMillicores: cleanedData.cpuLimitMillicores, - cpuRequestMillicores: cleanedData.cpuRequestMillicores, - createdBy: cleanedData.createdBy, - createdByPrincipal: cleanedData.createdByPrincipal, - databaseId: cleanedData.databaseId, - errorCount: cleanedData.errorCount, - imageRef: cleanedData.imageRef, - installationId: cleanedData.installationId, - integrations: cleanedData.integrations, - kind: cleanedData.kind, - labels: cleanedData.labels, - lastError: cleanedData.lastError, - lastHeartbeatAt: cleanedData.lastHeartbeatAt, - memoryLimitBytes: cleanedData.memoryLimitBytes, - memoryRequestBytes: cleanedData.memoryRequestBytes, - name: cleanedData.name, - namespaceId: cleanedData.namespaceId, - realm: cleanedData.realm, - replicas: cleanedData.replicas, - requiredConfigs: cleanedData.requiredConfigs, - requiredSecrets: cleanedData.requiredSecrets, - resourceDefinitionId: cleanedData.resourceDefinitionId, - slug: cleanedData.slug, - spec: cleanedData.spec, - status: cleanedData.status, - statusDetail: cleanedData.statusDetail, - statusObserved: cleanedData.statusObserved, - storageClass: cleanedData.storageClass, - storageSizeBytes: cleanedData.storageSizeBytes, - storageTotalBytes: cleanedData.storageTotalBytes, - updatedBy: cleanedData.updatedBy, - updatedByPrincipal: cleanedData.updatedByPrincipal, - }, - select: { - annotations: true, - cpuLimitMillicores: true, - cpuRequestMillicores: true, - createdAt: true, - createdBy: true, - createdByPrincipal: true, - databaseId: true, - errorCount: true, - id: true, - imageRef: true, - installationId: true, - integrations: true, - kind: true, - labels: true, - lastError: true, - lastHeartbeatAt: true, - memoryLimitBytes: true, - memoryRequestBytes: true, - name: true, - namespaceId: true, - realm: true, - replicas: true, - requiredConfigs: true, - requiredSecrets: true, - resourceDefinitionId: true, - slug: true, - spec: true, - status: true, - statusDetail: true, - statusObserved: true, - storageClass: true, - storageSizeBytes: true, - storageTotalBytes: true, - updatedAt: true, - updatedBy: true, - updatedByPrincipal: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/compute/cli/commands/resources-requirements-state.ts b/sdk/constructive-cli/src/compute/cli/commands/resources-requirements-state.ts index 50c8a947a1..1317e983f3 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/resources-requirements-state.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/resources-requirements-state.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateResourcesRequirementsStateInput, ResourcesRequirementsStatePatch, ResourcesRequirementsStateSelect, ResourcesRequirementsStateFilter, @@ -42,7 +41,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -59,8 +58,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -128,86 +125,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'configHash', - message: 'configHash', - required: true, - }, - { - type: 'text', - name: 'configObjectName', - message: 'configObjectName', - required: true, - }, - { - type: 'text', - name: 'requirementsHash', - message: 'requirementsHash', - required: true, - }, - { - type: 'text', - name: 'resourceId', - message: 'resourceId', - required: true, - }, - { - type: 'text', - name: 'secretsHash', - message: 'secretsHash', - required: true, - }, - { - type: 'text', - name: 'secretsObjectName', - message: 'secretsObjectName', - required: true, - }, - { - type: 'text', - name: 'slug', - message: 'slug', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateResourcesRequirementsStateInput['resourcesRequirementsState']; - const client = getClient(); - const result = await client.resourcesRequirementsState - .create({ - data: { - configHash: cleanedData.configHash, - configObjectName: cleanedData.configObjectName, - requirementsHash: cleanedData.requirementsHash, - resourceId: cleanedData.resourceId, - secretsHash: cleanedData.secretsHash, - secretsObjectName: cleanedData.secretsObjectName, - slug: cleanedData.slug, - }, - select: { - configHash: true, - configObjectName: true, - requirementsHash: true, - resourceId: true, - secretsHash: true, - secretsObjectName: true, - slug: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/compute/cli/commands/resources-resolved-requirement.ts b/sdk/constructive-cli/src/compute/cli/commands/resources-resolved-requirement.ts index 39e325234e..4fd1b7194e 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/resources-resolved-requirement.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/resources-resolved-requirement.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateResourcesResolvedRequirementInput, ResourcesResolvedRequirementPatch, ResourcesResolvedRequirementSelect, ResourcesResolvedRequirementFilter, @@ -46,7 +45,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -63,8 +62,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -140,118 +137,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'atomId', - message: 'atomId', - required: true, - }, - { - type: 'text', - name: 'configObjectName', - message: 'configObjectName', - required: true, - }, - { - type: 'text', - name: 'name', - message: 'name', - required: true, - }, - { - type: 'text', - name: 'namespaceId', - message: 'namespaceId', - required: true, - }, - { - type: 'boolean', - name: 'present', - message: 'present', - required: true, - }, - { - type: 'text', - name: 'realm', - message: 'realm', - required: true, - }, - { - type: 'boolean', - name: 'required', - message: 'required', - required: true, - }, - { - type: 'text', - name: 'requirementKind', - message: 'requirementKind', - required: true, - }, - { - type: 'text', - name: 'resourceId', - message: 'resourceId', - required: true, - }, - { - type: 'text', - name: 'secretsObjectName', - message: 'secretsObjectName', - required: true, - }, - { - type: 'text', - name: 'slug', - message: 'slug', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateResourcesResolvedRequirementInput['resourcesResolvedRequirement']; - const client = getClient(); - const result = await client.resourcesResolvedRequirement - .create({ - data: { - atomId: cleanedData.atomId, - configObjectName: cleanedData.configObjectName, - name: cleanedData.name, - namespaceId: cleanedData.namespaceId, - present: cleanedData.present, - realm: cleanedData.realm, - required: cleanedData.required, - requirementKind: cleanedData.requirementKind, - resourceId: cleanedData.resourceId, - secretsObjectName: cleanedData.secretsObjectName, - slug: cleanedData.slug, - }, - select: { - atomId: true, - configObjectName: true, - name: true, - namespaceId: true, - present: true, - realm: true, - required: true, - requirementKind: true, - resourceId: true, - secretsObjectName: true, - slug: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/compute/cli/commands/builder-binding.ts b/sdk/constructive-cli/src/compute/cli/commands/service-binding.ts similarity index 86% rename from sdk/constructive-cli/src/compute/cli/commands/builder-binding.ts rename to sdk/constructive-cli/src/compute/cli/commands/service-binding.ts index 2e0f437fce..8995e03eaf 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/builder-binding.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/service-binding.ts @@ -1,5 +1,5 @@ /** - * CLI commands for BuilderBinding + * CLI commands for ServiceBinding * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -8,11 +8,11 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateBuilderBindingInput, - BuilderBindingPatch, - BuilderBindingSelect, - BuilderBindingFilter, - BuilderBindingOrderBy, + CreateServiceBindingInput, + ServiceBindingPatch, + ServiceBindingSelect, + ServiceBindingFilter, + ServiceBindingOrderBy, } from '../../orm/input-types'; import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { @@ -22,6 +22,8 @@ const fieldSchema: FieldSchema = { databaseId: 'uuid', id: 'uuid', installationId: 'uuid', + installationScope: 'string', + kind: 'string', lastError: 'string', metadata: 'json', namespaceId: 'uuid', @@ -33,7 +35,7 @@ const fieldSchema: FieldSchema = { updatedByPrincipal: 'uuid', }; const usage = - '\nbuilder-binding \n\nCommands:\n list List builderBinding records\n find-first Find first matching builderBinding record\n get Get a builderBinding by ID\n create Create a new builderBinding\n update Update an existing builderBinding\n delete Delete a builderBinding\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; + '\nservice-binding \n\nCommands:\n list List serviceBinding records\n find-first Find first matching serviceBinding record\n get Get a serviceBinding by ID\n create Create a new serviceBinding\n update Update an existing serviceBinding\n delete Delete a serviceBinding\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; export default async ( argv: Partial>, prompter: Inquirerer, @@ -89,6 +91,8 @@ async function handleList(argv: Partial>, _prompter: Inq databaseId: true, id: true, installationId: true, + installationScope: true, + kind: true, lastError: true, metadata: true, namespaceId: true, @@ -100,12 +104,12 @@ async function handleList(argv: Partial>, _prompter: Inq updatedByPrincipal: true, }; const findManyArgs = parseFindManyArgs< - FindManyArgs & { - select: BuilderBindingSelect; + FindManyArgs & { + select: ServiceBindingSelect; } >(argv, defaultSelect); const client = getClient(); - const result = await client.builderBinding.findMany(findManyArgs).execute(); + const result = await client.serviceBinding.findMany(findManyArgs).execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { console.error('Failed to list records.'); @@ -124,6 +128,8 @@ async function handleFindFirst(argv: Partial>, _prompter databaseId: true, id: true, installationId: true, + installationScope: true, + kind: true, lastError: true, metadata: true, namespaceId: true, @@ -135,12 +141,12 @@ async function handleFindFirst(argv: Partial>, _prompter updatedByPrincipal: true, }; const findFirstArgs = parseFindFirstArgs< - FindFirstArgs & { - select: BuilderBindingSelect; + FindFirstArgs & { + select: ServiceBindingSelect; } >(argv, defaultSelect); const client = getClient(); - const result = await client.builderBinding.findFirst(findFirstArgs).execute(); + const result = await client.serviceBinding.findFirst(findFirstArgs).execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { console.error('Failed to find record.'); @@ -161,7 +167,7 @@ async function handleGet(argv: Partial>, prompter: Inqui }, ]); const client = getClient(); - const result = await client.builderBinding + const result = await client.serviceBinding .findOne({ id: answers.id as string, select: { @@ -171,6 +177,8 @@ async function handleGet(argv: Partial>, prompter: Inqui databaseId: true, id: true, installationId: true, + installationScope: true, + kind: true, lastError: true, metadata: true, namespaceId: true, @@ -221,6 +229,18 @@ async function handleCreate(argv: Partial>, prompter: In message: 'installationId', required: true, }, + { + type: 'text', + name: 'installationScope', + message: 'installationScope', + required: true, + }, + { + type: 'text', + name: 'kind', + message: 'kind', + required: true, + }, { type: 'text', name: 'lastError', @@ -281,15 +301,17 @@ async function handleCreate(argv: Partial>, prompter: In const cleanedData = stripUndefined( answers, fieldSchema - ) as CreateBuilderBindingInput['builderBinding']; + ) as CreateServiceBindingInput['serviceBinding']; const client = getClient(); - const result = await client.builderBinding + const result = await client.serviceBinding .create({ data: { createdBy: cleanedData.createdBy, createdByPrincipal: cleanedData.createdByPrincipal, databaseId: cleanedData.databaseId, installationId: cleanedData.installationId, + installationScope: cleanedData.installationScope, + kind: cleanedData.kind, lastError: cleanedData.lastError, metadata: cleanedData.metadata, namespaceId: cleanedData.namespaceId, @@ -306,6 +328,8 @@ async function handleCreate(argv: Partial>, prompter: In databaseId: true, id: true, installationId: true, + installationScope: true, + kind: true, lastError: true, metadata: true, namespaceId: true, @@ -362,6 +386,18 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'installationId', required: false, }, + { + type: 'text', + name: 'installationScope', + message: 'installationScope', + required: false, + }, + { + type: 'text', + name: 'kind', + message: 'kind', + required: false, + }, { type: 'text', name: 'lastError', @@ -419,9 +455,9 @@ async function handleUpdate(argv: Partial>, prompter: In }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as BuilderBindingPatch; + const cleanedData = stripUndefined(answers, fieldSchema) as ServiceBindingPatch; const client = getClient(); - const result = await client.builderBinding + const result = await client.serviceBinding .update({ where: { id: answers.id as string, @@ -431,6 +467,8 @@ async function handleUpdate(argv: Partial>, prompter: In createdByPrincipal: cleanedData.createdByPrincipal, databaseId: cleanedData.databaseId, installationId: cleanedData.installationId, + installationScope: cleanedData.installationScope, + kind: cleanedData.kind, lastError: cleanedData.lastError, metadata: cleanedData.metadata, namespaceId: cleanedData.namespaceId, @@ -447,6 +485,8 @@ async function handleUpdate(argv: Partial>, prompter: In databaseId: true, id: true, installationId: true, + installationScope: true, + kind: true, lastError: true, metadata: true, namespaceId: true, @@ -480,7 +520,7 @@ async function handleDelete(argv: Partial>, prompter: In ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const client = getClient(); - const result = await client.builderBinding + const result = await client.serviceBinding .delete({ where: { id: answers.id as string, diff --git a/sdk/constructive-cli/src/compute/orm/README.md b/sdk/constructive-cli/src/compute/orm/README.md index 68d50bcb97..c547b9a097 100644 --- a/sdk/constructive-cli/src/compute/orm/README.md +++ b/sdk/constructive-cli/src/compute/orm/README.md @@ -23,15 +23,14 @@ const db = createClient({ |-------|------------| | `build` | findMany, findOne, create, update, delete | | `buildStep` | findMany, findOne, create, update, delete | -| `builderBinding` | findMany, findOne, create, update, delete | | `contentPreset` | findMany, findOne, create, update, delete | -| `databaseFunctionGraph` | findMany, findOne, create, update, delete | +| `databaseFunctionGraph` | findMany, findOne, update, delete | | `databaseFunctionGraphExecutionCancelRequest` | findMany, findOne, create, update, delete | | `databaseFunctionGraphExecution` | findMany, findOne, create, update, delete | | `databaseFunctionGraphExecutionNodeState` | findMany, findOne, create, update, delete | | `databaseFunctionGraphExecutionOutput` | findMany, findOne, create, update, delete | | `databaseGraphCommit` | findMany, findOne, create, update, delete | -| `databaseGraphGetAllTreeNodesRecord` | findMany, findOne, create, update, delete | +| `databaseGraphGetAllTreeNodesRecord` | findMany, findOne, update, delete | | `databaseGraphObject` | findMany, findOne, create, update, delete | | `databaseGraphRef` | findMany, findOne, create, update, delete | | `databaseGraphStore` | findMany, findOne, create, update, delete | @@ -43,7 +42,7 @@ const db = createClient({ | `functionDeploymentEvent` | findMany, findOne, create, update, delete | | `functionExecutionLog` | findMany, findOne, create, update, delete | | `functionGraphCommit` | findMany, findOne, create, update, delete | -| `functionGraph` | findMany, findOne, create, update, delete | +| `functionGraph` | findMany, findOne, update, delete | | `functionGraphExecutionCancelRequest` | findMany, findOne, create, update, delete | | `functionGraphExecution` | findMany, findOne, create, update, delete | | `functionGraphExecutionNodeState` | findMany, findOne, create, update, delete | @@ -54,11 +53,11 @@ const db = createClient({ | `functionInvocationAttempt` | findMany, findOne, create, update, delete | | `functionInvocation` | findMany, findOne, create, update, delete | | `functionSchedule` | findMany, findOne, create, update, delete | -| `getAllTreeNodesRecord` | findMany, findOne, create, update, delete | +| `getAllTreeNodesRecord` | findMany, findOne, update, delete | | `image` | findMany, findOne, create, update, delete | | `imageGrant` | findMany, findOne, create, update, delete | | `infraCommit` | findMany, findOne, create, update, delete | -| `infraGetAllTreeNodesRecord` | findMany, findOne, create, update, delete | +| `infraGetAllTreeNodesRecord` | findMany, findOne, update, delete | | `infraObject` | findMany, findOne, create, update, delete | | `infraRef` | findMany, findOne, create, update, delete | | `infraStore` | findMany, findOne, create, update, delete | @@ -67,7 +66,6 @@ const db = createClient({ | `namespaceEvent` | findMany, findOne, create, update, delete | | `platformBuild` | findMany, findOne, create, update, delete | | `platformBuildStep` | findMany, findOne, create, update, delete | -| `platformBuilderBinding` | findMany, findOne, create, update, delete | | `platformFunctionApiBinding` | findMany, findOne, create, update, delete | | `platformFunctionCapabilityBinding` | findMany, findOne, create, update, delete | | `platformFunctionDefinition` | findMany, findOne, create, update, delete | @@ -80,7 +78,7 @@ const db = createClient({ | `platformImage` | findMany, findOne, create, update, delete | | `platformImageGrant` | findMany, findOne, create, update, delete | | `platformInfraCommit` | findMany, findOne, create, update, delete | -| `platformInfraGetAllTreeNodesRecord` | findMany, findOne, create, update, delete | +| `platformInfraGetAllTreeNodesRecord` | findMany, findOne, update, delete | | `platformInfraObject` | findMany, findOne, create, update, delete | | `platformInfraRef` | findMany, findOne, create, update, delete | | `platformInfraStore` | findMany, findOne, create, update, delete | @@ -102,18 +100,19 @@ const db = createClient({ | `platformRepositoryRequiredCheck` | findMany, findOne, create, update, delete | | `platformRepositoryWorkflow` | findMany, findOne, create, update, delete | | `platformResource` | findMany, findOne, create, update, delete | -| `platformResourceDeclaredCapacity` | findMany, findOne, create, update, delete | +| `platformResourceDeclaredCapacity` | findMany, findOne, update, delete | | `platformResourceDefinition` | findMany, findOne, create, update, delete | | `platformResourceEvent` | findMany, findOne, create, update, delete | | `platformResourceInstallation` | findMany, findOne, create, update, delete | -| `platformResourceObservedStorage` | findMany, findOne, create, update, delete | +| `platformResourceObservedStorage` | findMany, findOne, update, delete | | `platformResourceStatusCheck` | findMany, findOne, create, update, delete | | `platformResourceUsageLog` | findMany, findOne, create, update, delete | | `platformResourceUsageSummary` | findMany, findOne, create, update, delete | -| `platformResourceUtilization` | findMany, findOne, create, update, delete | -| `platformResourcesHealth` | findMany, findOne, create, update, delete | -| `platformResourcesRequirementsState` | findMany, findOne, create, update, delete | -| `platformResourcesResolvedRequirement` | findMany, findOne, create, update, delete | +| `platformResourceUtilization` | findMany, findOne, update, delete | +| `platformResourcesHealth` | findMany, findOne, update, delete | +| `platformResourcesRequirementsState` | findMany, findOne, update, delete | +| `platformResourcesResolvedRequirement` | findMany, findOne, update, delete | +| `platformServiceBinding` | findMany, findOne, create, update, delete | | `platformWebhookEndpoint` | findMany, findOne, create, update, delete | | `platformWebhookEvent` | findMany, findOne, create, update, delete | | `proposalComment` | findMany, findOne, create, update, delete | @@ -130,18 +129,19 @@ const db = createClient({ | `repositoryRequiredCheck` | findMany, findOne, create, update, delete | | `repositoryWorkflow` | findMany, findOne, create, update, delete | | `resource` | findMany, findOne, create, update, delete | -| `resourceDeclaredCapacity` | findMany, findOne, create, update, delete | +| `resourceDeclaredCapacity` | findMany, findOne, update, delete | | `resourceDefinition` | findMany, findOne, create, update, delete | | `resourceEvent` | findMany, findOne, create, update, delete | | `resourceInstallation` | findMany, findOne, create, update, delete | -| `resourceObservedStorage` | findMany, findOne, create, update, delete | +| `resourceObservedStorage` | findMany, findOne, update, delete | | `resourceStatusCheck` | findMany, findOne, create, update, delete | | `resourceUsageLog` | findMany, findOne, create, update, delete | | `resourceUsageSummary` | findMany, findOne, create, update, delete | -| `resourceUtilization` | findMany, findOne, create, update, delete | -| `resourcesHealth` | findMany, findOne, create, update, delete | -| `resourcesRequirementsState` | findMany, findOne, create, update, delete | -| `resourcesResolvedRequirement` | findMany, findOne, create, update, delete | +| `resourceUtilization` | findMany, findOne, update, delete | +| `resourcesHealth` | findMany, findOne, update, delete | +| `resourcesRequirementsState` | findMany, findOne, update, delete | +| `resourcesResolvedRequirement` | findMany, findOne, update, delete | +| `serviceBinding` | findMany, findOne, create, update, delete | | `webhookEndpoint` | findMany, findOne, create, update, delete | | `webhookEvent` | findMany, findOne, create, update, delete | @@ -168,6 +168,8 @@ CRUD operations for Build records. | `imageRef` | String | Yes | | `jobId` | BigInt | Yes | | `logs` | ConstructiveInternalTypeUpload | Yes | +| `logsUrl` | String | No | +| `logsVersions` | FileVersion | No | | `matrixKey` | String | Yes | | `metadata` | JSON | Yes | | `proposalId` | UUID | Yes | @@ -242,49 +244,6 @@ const updated = await db.buildStep.update({ where: { id: '' }, data: { bui const deleted = await db.buildStep.delete({ where: { id: '' } }).execute(); ``` -### `db.builderBinding` - -CRUD operations for BuilderBinding records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `createdAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `createdByPrincipal` | UUID | Yes | -| `databaseId` | UUID | Yes | -| `id` | UUID | No | -| `installationId` | UUID | Yes | -| `lastError` | String | Yes | -| `metadata` | JSON | Yes | -| `namespaceId` | UUID | Yes | -| `observedHost` | String | Yes | -| `realm` | String | Yes | -| `status` | String | Yes | -| `updatedAt` | Datetime | No | -| `updatedBy` | UUID | Yes | -| `updatedByPrincipal` | UUID | Yes | - -**Operations:** - -```typescript -// List all builderBinding records -const items = await db.builderBinding.findMany({ select: { createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, installationId: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); - -// Get one by id -const item = await db.builderBinding.findOne({ id: '', select: { createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, installationId: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); - -// Create -const created = await db.builderBinding.create({ data: { createdBy: '', createdByPrincipal: '', databaseId: '', installationId: '', lastError: '', metadata: '', namespaceId: '', observedHost: '', realm: '', status: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.builderBinding.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.builderBinding.delete({ where: { id: '' } }).execute(); -``` - ### `db.contentPreset` CRUD operations for ContentPreset records. @@ -354,9 +313,6 @@ const items = await db.databaseFunctionGraph.findMany({ select: { context: true, // Get one by id const item = await db.databaseFunctionGraph.findOne({ id: '', select: { context: true, createdAt: true, createdBy: true, databaseId: true, definitionsCommitId: true, description: true, id: true, isValid: true, name: true, storeId: true, updatedAt: true, validationErrors: true } }).execute(); -// Create -const created = await db.databaseFunctionGraph.create({ data: { context: '', createdBy: '', databaseId: '', definitionsCommitId: '', description: '', isValid: '', name: '', storeId: '', validationErrors: '' }, select: { id: true } }).execute(); - // Update const updated = await db.databaseFunctionGraph.update({ where: { id: '' }, data: { context: '' }, select: { id: true } }).execute(); @@ -595,9 +551,6 @@ const items = await db.databaseGraphGetAllTreeNodesRecord.findMany({ select: { d // Get one by id const item = await db.databaseGraphGetAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: true } }).execute(); -// Create -const created = await db.databaseGraphGetAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); - // Update const updated = await db.databaseGraphGetAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); @@ -829,8 +782,8 @@ CRUD operations for FunctionDefinition records. | `anonymousCallable` | Boolean | Yes | | `category` | String | Yes | | `concurrency` | Int | Yes | -| `cpuLimitMillicores` | BigInt | Yes | -| `cpuRequestMillicores` | BigInt | Yes | +| `cpuLimitMillicores` | BigInt | No | +| `cpuRequestMillicores` | BigInt | No | | `createdAt` | Datetime | No | | `createdByPrincipal` | UUID | Yes | | `databaseId` | UUID | Yes | @@ -845,8 +798,8 @@ CRUD operations for FunctionDefinition records. | `integrations` | String | Yes | | `isPublished` | Boolean | Yes | | `maxAttempts` | Int | Yes | -| `memoryLimitBytes` | BigInt | Yes | -| `memoryRequestBytes` | BigInt | Yes | +| `memoryLimitBytes` | BigInt | No | +| `memoryRequestBytes` | BigInt | No | | `moduleTable` | String | Yes | | `name` | String | Yes | | `outputs` | JSON | Yes | @@ -868,7 +821,7 @@ CRUD operations for FunctionDefinition records. | `scaleMin` | Int | Yes | | `targetFunction` | String | Yes | | `targetSchema` | String | Yes | -| `taskIdentifier` | String | Yes | +| `taskIdentifier` | String | No | | `timeoutSeconds` | Int | Yes | | `updatedAt` | Datetime | No | | `updatedByPrincipal` | UUID | Yes | @@ -878,13 +831,13 @@ CRUD operations for FunctionDefinition records. ```typescript // List all functionDefinition records -const items = await db.functionDefinition.findMany({ select: { accessChannels: true, anonymousCallable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdByPrincipal: true, databaseId: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredCapabilities: true, requiredConfigs: true, requiredModels: true, requiredModules: true, requiredSecrets: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, updatedByPrincipal: true, volatile: true } }).execute(); +const items = await db.functionDefinition.findMany({ select: { accessChannels: true, anonymousCallable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdByPrincipal: true, databaseId: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredCapabilities: true, requiredModels: true, requiredModules: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, updatedByPrincipal: true, volatile: true } }).execute(); // Get one by id -const item = await db.functionDefinition.findOne({ id: '', select: { accessChannels: true, anonymousCallable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdByPrincipal: true, databaseId: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredCapabilities: true, requiredConfigs: true, requiredModels: true, requiredModules: true, requiredSecrets: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, updatedByPrincipal: true, volatile: true } }).execute(); +const item = await db.functionDefinition.findOne({ id: '', select: { accessChannels: true, anonymousCallable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdByPrincipal: true, databaseId: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredCapabilities: true, requiredModels: true, requiredModules: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, updatedByPrincipal: true, volatile: true } }).execute(); // Create -const created = await db.functionDefinition.create({ data: { accessChannels: '', anonymousCallable: '', category: '', concurrency: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdByPrincipal: '', databaseId: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', memoryLimitBytes: '', memoryRequestBytes: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredCapabilities: '', requiredConfigs: '', requiredModels: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', updatedByPrincipal: '', volatile: '' }, select: { id: true } }).execute(); +const created = await db.functionDefinition.create({ data: { accessChannels: '', anonymousCallable: '', category: '', concurrency: '', createdByPrincipal: '', databaseId: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredCapabilities: '', requiredConfigs: '', requiredModels: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', targetFunction: '', targetSchema: '', timeoutSeconds: '', updatedByPrincipal: '', volatile: '' }, select: { id: true } }).execute(); // Update const updated = await db.functionDefinition.update({ where: { id: '' }, data: { accessChannels: '' }, select: { id: true } }).execute(); @@ -1086,9 +1039,6 @@ const items = await db.functionGraph.findMany({ select: { context: true, created // Get one by id const item = await db.functionGraph.findOne({ id: '', select: { context: true, createdAt: true, createdBy: true, definitionsCommitId: true, description: true, id: true, isValid: true, name: true, scopeId: true, storeId: true, updatedAt: true, validationErrors: true } }).execute(); -// Create -const created = await db.functionGraph.create({ data: { context: '', createdBy: '', definitionsCommitId: '', description: '', isValid: '', name: '', scopeId: '', storeId: '', validationErrors: '' }, select: { id: true } }).execute(); - // Update const updated = await db.functionGraph.update({ where: { id: '' }, data: { context: '' }, select: { id: true } }).execute(); @@ -1527,9 +1477,6 @@ const items = await db.getAllTreeNodesRecord.findMany({ select: { data: true, pa // Get one by id const item = await db.getAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: true } }).execute(); -// Create -const created = await db.getAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); - // Update const updated = await db.getAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); @@ -1681,9 +1628,6 @@ const items = await db.infraGetAllTreeNodesRecord.findMany({ select: { data: tru // Get one by id const item = await db.infraGetAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: true } }).execute(); -// Create -const created = await db.infraGetAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); - // Update const updated = await db.infraGetAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); @@ -1806,6 +1750,8 @@ CRUD operations for IntegrationProvider records. | `icon` | String | Yes | | `id` | UUID | No | | `logo` | ConstructiveInternalTypeImage | Yes | +| `logoUrl` | String | No | +| `logoVersions` | FileVersion | No | | `name` | String | Yes | | `requiredConfigs` | ResourceRequirement | Yes | | `requiredSecrets` | ResourceRequirement | Yes | @@ -1816,10 +1762,10 @@ CRUD operations for IntegrationProvider records. ```typescript // List all integrationProvider records -const items = await db.integrationProvider.findMany({ select: { brand: true, category: true, createdAt: true, description: true, icon: true, id: true, logo: true, name: true, requiredConfigs: true, requiredSecrets: true, slug: true, updatedAt: true } }).execute(); +const items = await db.integrationProvider.findMany({ select: { brand: true, category: true, createdAt: true, description: true, icon: true, id: true, logo: true, name: true, slug: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.integrationProvider.findOne({ id: '', select: { brand: true, category: true, createdAt: true, description: true, icon: true, id: true, logo: true, name: true, requiredConfigs: true, requiredSecrets: true, slug: true, updatedAt: true } }).execute(); +const item = await db.integrationProvider.findOne({ id: '', select: { brand: true, category: true, createdAt: true, description: true, icon: true, id: true, logo: true, name: true, slug: true, updatedAt: true } }).execute(); // Create const created = await db.integrationProvider.create({ data: { brand: '', category: '', description: '', icon: '', logo: '', name: '', requiredConfigs: '', requiredSecrets: '', slug: '' }, select: { id: true } }).execute(); @@ -1929,6 +1875,8 @@ CRUD operations for PlatformBuild records. | `imageRef` | String | Yes | | `jobId` | BigInt | Yes | | `logs` | ConstructiveInternalTypeUpload | Yes | +| `logsUrl` | String | No | +| `logsVersions` | FileVersion | No | | `matrixKey` | String | Yes | | `metadata` | JSON | Yes | | `proposalId` | UUID | Yes | @@ -2002,48 +1950,6 @@ const updated = await db.platformBuildStep.update({ where: { id: '' }, dat const deleted = await db.platformBuildStep.delete({ where: { id: '' } }).execute(); ``` -### `db.platformBuilderBinding` - -CRUD operations for PlatformBuilderBinding records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `createdAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `createdByPrincipal` | UUID | Yes | -| `id` | UUID | No | -| `installationId` | UUID | Yes | -| `lastError` | String | Yes | -| `metadata` | JSON | Yes | -| `namespaceId` | UUID | Yes | -| `observedHost` | String | Yes | -| `realm` | String | Yes | -| `status` | String | Yes | -| `updatedAt` | Datetime | No | -| `updatedBy` | UUID | Yes | -| `updatedByPrincipal` | UUID | Yes | - -**Operations:** - -```typescript -// List all platformBuilderBinding records -const items = await db.platformBuilderBinding.findMany({ select: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, installationId: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); - -// Get one by id -const item = await db.platformBuilderBinding.findOne({ id: '', select: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, installationId: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); - -// Create -const created = await db.platformBuilderBinding.create({ data: { createdBy: '', createdByPrincipal: '', installationId: '', lastError: '', metadata: '', namespaceId: '', observedHost: '', realm: '', status: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.platformBuilderBinding.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.platformBuilderBinding.delete({ where: { id: '' } }).execute(); -``` - ### `db.platformFunctionApiBinding` CRUD operations for PlatformFunctionApiBinding records. @@ -2129,8 +2035,8 @@ CRUD operations for PlatformFunctionDefinition records. | `billable` | Boolean | Yes | | `category` | String | Yes | | `concurrency` | Int | Yes | -| `cpuLimitMillicores` | BigInt | Yes | -| `cpuRequestMillicores` | BigInt | Yes | +| `cpuLimitMillicores` | BigInt | No | +| `cpuRequestMillicores` | BigInt | No | | `createdAt` | Datetime | No | | `createdByPrincipal` | UUID | Yes | | `description` | String | Yes | @@ -2144,8 +2050,8 @@ CRUD operations for PlatformFunctionDefinition records. | `integrations` | String | Yes | | `isPublished` | Boolean | Yes | | `maxAttempts` | Int | Yes | -| `memoryLimitBytes` | BigInt | Yes | -| `memoryRequestBytes` | BigInt | Yes | +| `memoryLimitBytes` | BigInt | No | +| `memoryRequestBytes` | BigInt | No | | `moduleTable` | String | Yes | | `name` | String | Yes | | `outputs` | JSON | Yes | @@ -2168,7 +2074,7 @@ CRUD operations for PlatformFunctionDefinition records. | `system` | Boolean | Yes | | `targetFunction` | String | Yes | | `targetSchema` | String | Yes | -| `taskIdentifier` | String | Yes | +| `taskIdentifier` | String | No | | `timeoutSeconds` | Int | Yes | | `updatedAt` | Datetime | No | | `updatedByPrincipal` | UUID | Yes | @@ -2178,13 +2084,13 @@ CRUD operations for PlatformFunctionDefinition records. ```typescript // List all platformFunctionDefinition records -const items = await db.platformFunctionDefinition.findMany({ select: { accessChannels: true, anonymousCallable: true, billable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdByPrincipal: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredCapabilities: true, requiredConfigs: true, requiredModels: true, requiredModules: true, requiredSecrets: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, system: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, updatedByPrincipal: true, volatile: true } }).execute(); +const items = await db.platformFunctionDefinition.findMany({ select: { accessChannels: true, anonymousCallable: true, billable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdByPrincipal: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredCapabilities: true, requiredModels: true, requiredModules: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, system: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, updatedByPrincipal: true, volatile: true } }).execute(); // Get one by id -const item = await db.platformFunctionDefinition.findOne({ id: '', select: { accessChannels: true, anonymousCallable: true, billable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdByPrincipal: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredCapabilities: true, requiredConfigs: true, requiredModels: true, requiredModules: true, requiredSecrets: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, system: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, updatedByPrincipal: true, volatile: true } }).execute(); +const item = await db.platformFunctionDefinition.findOne({ id: '', select: { accessChannels: true, anonymousCallable: true, billable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdByPrincipal: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredCapabilities: true, requiredModels: true, requiredModules: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, system: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, updatedByPrincipal: true, volatile: true } }).execute(); // Create -const created = await db.platformFunctionDefinition.create({ data: { accessChannels: '', anonymousCallable: '', billable: '', category: '', concurrency: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdByPrincipal: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', memoryLimitBytes: '', memoryRequestBytes: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredCapabilities: '', requiredConfigs: '', requiredModels: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', system: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', updatedByPrincipal: '', volatile: '' }, select: { id: true } }).execute(); +const created = await db.platformFunctionDefinition.create({ data: { accessChannels: '', anonymousCallable: '', billable: '', category: '', concurrency: '', createdByPrincipal: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredCapabilities: '', requiredConfigs: '', requiredModels: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', system: '', targetFunction: '', targetSchema: '', timeoutSeconds: '', updatedByPrincipal: '', volatile: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformFunctionDefinition.update({ where: { id: '' }, data: { accessChannels: '' }, select: { id: true } }).execute(); @@ -2593,9 +2499,6 @@ const items = await db.platformInfraGetAllTreeNodesRecord.findMany({ select: { d // Get one by id const item = await db.platformInfraGetAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: true } }).execute(); -// Create -const created = await db.platformInfraGetAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); - // Update const updated = await db.platformInfraGetAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); @@ -2865,24 +2768,28 @@ CRUD operations for PlatformProposalComment records. |-------|------|----------| | `actorId` | UUID | Yes | | `attachments` | ConstructiveInternalTypeUpload | Yes | +| `attachmentsUrl` | String | No | +| `attachmentsVersions` | FileVersion | No | | `body` | String | Yes | -| `bodyTrgmSimilarity` | Float | Yes | +| `bodyTrgmSimilarity` | Float | No | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | | `createdByPrincipal` | UUID | Yes | | `embedding` | Vector | Yes | -| `embeddingUpdatedAt` | Datetime | Yes | -| `embeddingVectorDistance` | Float | Yes | +| `embeddingModel` | String | No | +| `embeddingModelTrgmSimilarity` | Float | No | +| `embeddingUpdatedAt` | Datetime | No | +| `embeddingVectorDistance` | Float | No | | `id` | UUID | No | | `line` | Int | Yes | | `outdatedAt` | Datetime | Yes | | `path` | String | Yes | -| `pathTrgmSimilarity` | Float | Yes | +| `pathTrgmSimilarity` | Float | No | | `proposalId` | UUID | Yes | | `resolvedAt` | Datetime | Yes | -| `search` | FullText | Yes | -| `searchScore` | Float | Yes | -| `searchTsvRank` | Float | Yes | +| `search` | FullText | No | +| `searchScore` | Float | No | +| `searchTsvRank` | Float | No | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | | `updatedByPrincipal` | UUID | Yes | @@ -2891,13 +2798,13 @@ CRUD operations for PlatformProposalComment records. ```typescript // List all platformProposalComment records -const items = await db.platformProposalComment.findMany({ select: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const items = await db.platformProposalComment.findMany({ select: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.platformProposalComment.findOne({ id: '', select: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const item = await db.platformProposalComment.findOne({ id: '', select: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.platformProposalComment.create({ data: { actorId: '', attachments: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', line: '', outdatedAt: '', path: '', pathTrgmSimilarity: '', proposalId: '', resolvedAt: '', search: '', searchScore: '', searchTsvRank: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); +const created = await db.platformProposalComment.create({ data: { actorId: '', attachments: '', body: '', createdBy: '', createdByPrincipal: '', embedding: '', line: '', outdatedAt: '', path: '', proposalId: '', resolvedAt: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformProposalComment.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -2922,25 +2829,27 @@ CRUD operations for PlatformProposal records. |-------|------|----------| | `actorId` | UUID | Yes | | `body` | String | Yes | -| `bodyTrgmSimilarity` | Float | Yes | +| `bodyTrgmSimilarity` | Float | No | | `closedReason` | String | Yes | -| `closedReasonTrgmSimilarity` | Float | Yes | +| `closedReasonTrgmSimilarity` | Float | No | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | | `createdByPrincipal` | UUID | Yes | | `decidedAt` | Datetime | Yes | | `dueAt` | Datetime | Yes | | `embedding` | Vector | Yes | -| `embeddingUpdatedAt` | Datetime | Yes | -| `embeddingVectorDistance` | Float | Yes | +| `embeddingModel` | String | No | +| `embeddingModelTrgmSimilarity` | Float | No | +| `embeddingUpdatedAt` | Datetime | No | +| `embeddingVectorDistance` | Float | No | | `id` | UUID | No | | `kind` | String | Yes | -| `kindTrgmSimilarity` | Float | Yes | +| `kindTrgmSimilarity` | Float | No | | `labels` | String | Yes | | `mergeCommit` | String | Yes | -| `mergeCommitTrgmSimilarity` | Float | Yes | +| `mergeCommitTrgmSimilarity` | Float | No | | `mergeMethod` | String | Yes | -| `mergeMethodTrgmSimilarity` | Float | Yes | +| `mergeMethodTrgmSimilarity` | Float | No | | `mergeRequestedAt` | Datetime | Yes | | `mergedAt` | Datetime | Yes | | `metadata` | JSON | Yes | @@ -2948,18 +2857,18 @@ CRUD operations for PlatformProposal records. | `priority` | BigFloat | Yes | | `repositoryId` | UUID | Yes | | `resolution` | String | Yes | -| `resolutionTrgmSimilarity` | Float | Yes | -| `search` | FullText | Yes | -| `searchScore` | Float | Yes | -| `searchTsvRank` | Float | Yes | +| `resolutionTrgmSimilarity` | Float | No | +| `search` | FullText | No | +| `searchScore` | Float | No | +| `searchTsvRank` | Float | No | | `sourceRef` | String | Yes | -| `sourceRefTrgmSimilarity` | Float | Yes | +| `sourceRefTrgmSimilarity` | Float | No | | `status` | String | Yes | -| `statusTrgmSimilarity` | Float | Yes | +| `statusTrgmSimilarity` | Float | No | | `targetRef` | String | Yes | -| `targetRefTrgmSimilarity` | Float | Yes | +| `targetRefTrgmSimilarity` | Float | No | | `title` | String | Yes | -| `titleTrgmSimilarity` | Float | Yes | +| `titleTrgmSimilarity` | Float | No | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | | `updatedByPrincipal` | UUID | Yes | @@ -2968,13 +2877,13 @@ CRUD operations for PlatformProposal records. ```typescript // List all platformProposal records -const items = await db.platformProposal.findMany({ select: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const items = await db.platformProposal.findMany({ select: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, decidedAt: true, dueAt: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.platformProposal.findOne({ id: '', select: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const item = await db.platformProposal.findOne({ id: '', select: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, decidedAt: true, dueAt: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.platformProposal.create({ data: { actorId: '', body: '', bodyTrgmSimilarity: '', closedReason: '', closedReasonTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', decidedAt: '', dueAt: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', kind: '', kindTrgmSimilarity: '', labels: '', mergeCommit: '', mergeCommitTrgmSimilarity: '', mergeMethod: '', mergeMethodTrgmSimilarity: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', resolutionTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', sourceRef: '', sourceRefTrgmSimilarity: '', status: '', statusTrgmSimilarity: '', targetRef: '', targetRefTrgmSimilarity: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); +const created = await db.platformProposal.create({ data: { actorId: '', body: '', closedReason: '', createdBy: '', createdByPrincipal: '', decidedAt: '', dueAt: '', embedding: '', kind: '', labels: '', mergeCommit: '', mergeMethod: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', sourceRef: '', status: '', targetRef: '', title: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformProposal.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -3073,22 +2982,22 @@ CRUD operations for PlatformProposalReview records. | Field | Type | Editable | |-------|------|----------| | `body` | String | Yes | -| `bodyTrgmSimilarity` | Float | Yes | +| `bodyTrgmSimilarity` | Float | No | | `commitSha` | String | Yes | -| `commitShaTrgmSimilarity` | Float | Yes | +| `commitShaTrgmSimilarity` | Float | No | | `createdAt` | Datetime | No | | `createdByPrincipal` | UUID | Yes | | `id` | UUID | No | | `proposalId` | UUID | Yes | | `reviewerId` | UUID | Yes | -| `search` | FullText | Yes | -| `searchScore` | Float | Yes | -| `searchTsvRank` | Float | Yes | +| `search` | FullText | No | +| `searchScore` | Float | No | +| `searchTsvRank` | Float | No | | `submittedAt` | Datetime | Yes | | `updatedAt` | Datetime | No | | `updatedByPrincipal` | UUID | Yes | | `verdict` | String | Yes | -| `verdictTrgmSimilarity` | Float | Yes | +| `verdictTrgmSimilarity` | Float | No | **Operations:** @@ -3100,7 +3009,7 @@ const items = await db.platformProposalReview.findMany({ select: { body: true, b const item = await db.platformProposalReview.findOne({ id: '', select: { body: true, bodyTrgmSimilarity: true, commitSha: true, commitShaTrgmSimilarity: true, createdAt: true, createdByPrincipal: true, id: true, proposalId: true, reviewerId: true, search: true, searchScore: true, searchTsvRank: true, submittedAt: true, updatedAt: true, updatedByPrincipal: true, verdict: true, verdictTrgmSimilarity: true } }).execute(); // Create -const created = await db.platformProposalReview.create({ data: { body: '', bodyTrgmSimilarity: '', commitSha: '', commitShaTrgmSimilarity: '', createdByPrincipal: '', proposalId: '', reviewerId: '', search: '', searchScore: '', searchTsvRank: '', submittedAt: '', updatedByPrincipal: '', verdict: '', verdictTrgmSimilarity: '' }, select: { id: true } }).execute(); +const created = await db.platformProposalReview.create({ data: { body: '', commitSha: '', createdByPrincipal: '', proposalId: '', reviewerId: '', submittedAt: '', updatedByPrincipal: '', verdict: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformProposalReview.update({ where: { id: '' }, data: { body: '' }, select: { id: true } }).execute(); @@ -3125,11 +3034,11 @@ CRUD operations for PlatformProposalsChunk records. | `chunkIndex` | Int | Yes | | `createdAt` | Datetime | No | | `embedding` | Vector | Yes | -| `embeddingVectorDistance` | Float | Yes | +| `embeddingVectorDistance` | Float | No | | `id` | UUID | No | | `metadata` | JSON | Yes | | `platformProposalsId` | UUID | Yes | -| `searchScore` | Float | Yes | +| `searchScore` | Float | No | | `updatedAt` | Datetime | No | **Operations:** @@ -3142,7 +3051,7 @@ const items = await db.platformProposalsChunk.findMany({ select: { actorId: true const item = await db.platformProposalsChunk.findOne({ id: '', select: { actorId: true, body: true, chunkIndex: true, createdAt: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, platformProposalsId: true, searchScore: true, updatedAt: true } }).execute(); // Create -const created = await db.platformProposalsChunk.create({ data: { actorId: '', body: '', chunkIndex: '', embedding: '', embeddingVectorDistance: '', metadata: '', platformProposalsId: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.platformProposalsChunk.create({ data: { actorId: '', body: '', chunkIndex: '', embedding: '', metadata: '', platformProposalsId: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformProposalsChunk.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -3292,49 +3201,51 @@ CRUD operations for PlatformRepository records. | Field | Type | Editable | |-------|------|----------| | `cloneUrl` | String | Yes | -| `cloneUrlTrgmSimilarity` | Float | Yes | +| `cloneUrlTrgmSimilarity` | Float | No | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | | `createdByPrincipal` | UUID | Yes | | `defaultBranch` | String | Yes | -| `defaultBranchTrgmSimilarity` | Float | Yes | +| `defaultBranchTrgmSimilarity` | Float | No | | `description` | String | Yes | -| `descriptionTrgmSimilarity` | Float | Yes | +| `descriptionTrgmSimilarity` | Float | No | | `embedding` | Vector | Yes | -| `embeddingUpdatedAt` | Datetime | Yes | -| `embeddingVectorDistance` | Float | Yes | +| `embeddingModel` | String | No | +| `embeddingModelTrgmSimilarity` | Float | No | +| `embeddingUpdatedAt` | Datetime | No | +| `embeddingVectorDistance` | Float | No | | `externalId` | String | Yes | -| `externalIdTrgmSimilarity` | Float | Yes | +| `externalIdTrgmSimilarity` | Float | No | | `id` | UUID | No | | `isArchived` | Boolean | Yes | | `metadata` | JSON | Yes | | `name` | String | Yes | -| `nameTrgmSimilarity` | Float | Yes | +| `nameTrgmSimilarity` | Float | No | | `ownerId` | UUID | Yes | | `provider` | String | Yes | -| `providerTrgmSimilarity` | Float | Yes | -| `search` | FullText | Yes | -| `searchScore` | Float | Yes | -| `searchTsvRank` | Float | Yes | +| `providerTrgmSimilarity` | Float | No | +| `search` | FullText | No | +| `searchScore` | Float | No | +| `searchTsvRank` | Float | No | | `slug` | String | Yes | -| `slugTrgmSimilarity` | Float | Yes | +| `slugTrgmSimilarity` | Float | No | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | | `updatedByPrincipal` | UUID | Yes | | `visibility` | String | Yes | -| `visibilityTrgmSimilarity` | Float | Yes | +| `visibilityTrgmSimilarity` | Float | No | **Operations:** ```typescript // List all platformRepository records -const items = await db.platformRepository.findMany({ select: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }).execute(); +const items = await db.platformRepository.findMany({ select: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }).execute(); // Get one by id -const item = await db.platformRepository.findOne({ id: '', select: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }).execute(); +const item = await db.platformRepository.findOne({ id: '', select: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }).execute(); // Create -const created = await db.platformRepository.create({ data: { cloneUrl: '', cloneUrlTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', defaultBranch: '', defaultBranchTrgmSimilarity: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', externalId: '', externalIdTrgmSimilarity: '', isArchived: '', metadata: '', name: '', nameTrgmSimilarity: '', ownerId: '', provider: '', providerTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', slug: '', slugTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '', visibility: '', visibilityTrgmSimilarity: '' }, select: { id: true } }).execute(); +const created = await db.platformRepository.create({ data: { cloneUrl: '', createdBy: '', createdByPrincipal: '', defaultBranch: '', description: '', embedding: '', externalId: '', isArchived: '', metadata: '', name: '', ownerId: '', provider: '', slug: '', updatedBy: '', updatedByPrincipal: '', visibility: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformRepository.update({ where: { id: '' }, data: { cloneUrl: '' }, select: { id: true } }).execute(); @@ -3478,8 +3389,8 @@ CRUD operations for PlatformResource records. | Field | Type | Editable | |-------|------|----------| | `annotations` | JSON | Yes | -| `cpuLimitMillicores` | BigInt | Yes | -| `cpuRequestMillicores` | BigInt | Yes | +| `cpuLimitMillicores` | BigInt | No | +| `cpuRequestMillicores` | BigInt | No | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | | `createdByPrincipal` | UUID | Yes | @@ -3492,12 +3403,12 @@ CRUD operations for PlatformResource records. | `labels` | JSON | Yes | | `lastError` | String | Yes | | `lastHeartbeatAt` | Datetime | Yes | -| `memoryLimitBytes` | BigInt | Yes | -| `memoryRequestBytes` | BigInt | Yes | +| `memoryLimitBytes` | BigInt | No | +| `memoryRequestBytes` | BigInt | No | | `name` | String | Yes | | `namespaceId` | UUID | Yes | | `realm` | String | Yes | -| `replicas` | Int | Yes | +| `replicas` | Int | No | | `requiredConfigs` | ResourceRequirement | Yes | | `requiredSecrets` | ResourceRequirement | Yes | | `resourceDefinitionId` | UUID | Yes | @@ -3505,9 +3416,9 @@ CRUD operations for PlatformResource records. | `spec` | JSON | Yes | | `status` | String | Yes | | `statusObserved` | JSON | Yes | -| `storageClass` | String | Yes | -| `storageSizeBytes` | BigInt | Yes | -| `storageTotalBytes` | BigInt | Yes | +| `storageClass` | String | No | +| `storageSizeBytes` | BigInt | No | +| `storageTotalBytes` | BigInt | No | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | | `updatedByPrincipal` | UUID | Yes | @@ -3516,13 +3427,13 @@ CRUD operations for PlatformResource records. ```typescript // List all platformResource records -const items = await db.platformResource.findMany({ select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const items = await db.platformResource.findMany({ select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.platformResource.findOne({ id: '', select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const item = await db.platformResource.findOne({ id: '', select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.platformResource.create({ data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); +const created = await db.platformResource.create({ data: { annotations: '', createdBy: '', createdByPrincipal: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', name: '', namespaceId: '', realm: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformResource.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -3563,9 +3474,6 @@ const items = await db.platformResourceDeclaredCapacity.findMany({ select: { cpu // Get one by id const item = await db.platformResourceDeclaredCapacity.findOne({ id: '', select: { cpuLimitMillicores: true, cpuRequestMillicores: true, installationId: true, isTransient: true, kind: true, memoryLimitBytes: true, memoryRequestBytes: true, namespaceId: true, podCountMax: true, podCountMin: true, source: true, sourceId: true, storageSizeBytes: true, storageTotalBytes: true } }).execute(); -// Create -const created = await db.platformResourceDeclaredCapacity.create({ data: { cpuLimitMillicores: '', cpuRequestMillicores: '', installationId: '', isTransient: '', kind: '', memoryLimitBytes: '', memoryRequestBytes: '', namespaceId: '', podCountMax: '', podCountMin: '', source: '', sourceId: '', storageSizeBytes: '', storageTotalBytes: '' }, select: { id: true } }).execute(); - // Update const updated = await db.platformResourceDeclaredCapacity.update({ where: { id: '' }, data: { cpuLimitMillicores: '' }, select: { id: true } }).execute(); @@ -3606,10 +3514,10 @@ CRUD operations for PlatformResourceDefinition records. ```typescript // List all platformResourceDefinition records -const items = await db.platformResourceDefinition.findMany({ select: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const items = await db.platformResourceDefinition.findMany({ select: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.platformResourceDefinition.findOne({ id: '', select: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const item = await db.platformResourceDefinition.findOne({ id: '', select: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create const created = await db.platformResourceDefinition.create({ data: { annotations: '', createdBy: '', createdByPrincipal: '', defaultSpec: '', description: '', integrations: '', kind: '', labels: '', name: '', namespaceId: '', paramsSchema: '', requiredConfigs: '', requiredSecrets: '', slug: '', stepUpMinAge: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); @@ -3735,9 +3643,6 @@ const items = await db.platformResourceObservedStorage.findMany({ select: { capa // Get one by id const item = await db.platformResourceObservedStorage.findOne({ id: '', select: { capacity: true, capacityBytes: true, claimName: true, declaredStorageClass: true, declaredStorageSizeBytes: true, declaredStorageTotalBytes: true, installationId: true, isBound: true, kind: true, namespaceId: true, phase: true, requested: true, requestedBytes: true, resourceId: true, resourceStatus: true, slug: true, storageClass: true, storageName: true } }).execute(); -// Create -const created = await db.platformResourceObservedStorage.create({ data: { capacity: '', capacityBytes: '', claimName: '', declaredStorageClass: '', declaredStorageSizeBytes: '', declaredStorageTotalBytes: '', installationId: '', isBound: '', kind: '', namespaceId: '', phase: '', requested: '', requestedBytes: '', resourceId: '', resourceStatus: '', slug: '', storageClass: '', storageName: '' }, select: { id: true } }).execute(); - // Update const updated = await db.platformResourceObservedStorage.update({ where: { id: '' }, data: { capacity: '' }, select: { id: true } }).execute(); @@ -3891,9 +3796,6 @@ const items = await db.platformResourceUtilization.findMany({ select: { avgMemor // Get one by id const item = await db.platformResourceUtilization.findOne({ id: '', select: { avgMemoryBytes: true, cpuLimitMillicores: true, cpuPeakUtilization: true, cpuRequestHeadroomMillicores: true, cpuRequestMillicores: true, date: true, gbSeconds: true, kind: true, maxCpuMillicores: true, maxMemoryBytes: true, memoryLimitBytes: true, memoryPeakUtilization: true, memoryRequestBytes: true, memoryRequestHeadroomBytes: true, namespaceId: true, replicas: true, resourceId: true, runtimeSeconds: true, sampleCount: true } }).execute(); -// Create -const created = await db.platformResourceUtilization.create({ data: { avgMemoryBytes: '', cpuLimitMillicores: '', cpuPeakUtilization: '', cpuRequestHeadroomMillicores: '', cpuRequestMillicores: '', date: '', gbSeconds: '', kind: '', maxCpuMillicores: '', maxMemoryBytes: '', memoryLimitBytes: '', memoryPeakUtilization: '', memoryRequestBytes: '', memoryRequestHeadroomBytes: '', namespaceId: '', replicas: '', resourceId: '', runtimeSeconds: '', sampleCount: '' }, select: { id: true } }).execute(); - // Update const updated = await db.platformResourceUtilization.update({ where: { id: '' }, data: { avgMemoryBytes: '' }, select: { id: true } }).execute(); @@ -3949,13 +3851,10 @@ CRUD operations for PlatformResourcesHealth records. ```typescript // List all platformResourcesHealth records -const items = await db.platformResourcesHealth.findMany({ select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const items = await db.platformResourcesHealth.findMany({ select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.platformResourcesHealth.findOne({ id: '', select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); - -// Create -const created = await db.platformResourcesHealth.create({ data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusDetail: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); +const item = await db.platformResourcesHealth.findOne({ id: '', select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Update const updated = await db.platformResourcesHealth.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -3989,9 +3888,6 @@ const items = await db.platformResourcesRequirementsState.findMany({ select: { c // Get one by id const item = await db.platformResourcesRequirementsState.findOne({ id: '', select: { configHash: true, configObjectName: true, requirementsHash: true, resourceId: true, secretsHash: true, secretsObjectName: true, slug: true } }).execute(); -// Create -const created = await db.platformResourcesRequirementsState.create({ data: { configHash: '', configObjectName: '', requirementsHash: '', resourceId: '', secretsHash: '', secretsObjectName: '', slug: '' }, select: { id: true } }).execute(); - // Update const updated = await db.platformResourcesRequirementsState.update({ where: { id: '' }, data: { configHash: '' }, select: { id: true } }).execute(); @@ -4028,9 +3924,6 @@ const items = await db.platformResourcesResolvedRequirement.findMany({ select: { // Get one by id const item = await db.platformResourcesResolvedRequirement.findOne({ id: '', select: { atomId: true, configObjectName: true, name: true, namespaceId: true, present: true, realm: true, required: true, requirementKind: true, resourceId: true, secretsObjectName: true, slug: true } }).execute(); -// Create -const created = await db.platformResourcesResolvedRequirement.create({ data: { atomId: '', configObjectName: '', name: '', namespaceId: '', present: '', realm: '', required: '', requirementKind: '', resourceId: '', secretsObjectName: '', slug: '' }, select: { id: true } }).execute(); - // Update const updated = await db.platformResourcesResolvedRequirement.update({ where: { id: '' }, data: { atomId: '' }, select: { id: true } }).execute(); @@ -4038,6 +3931,50 @@ const updated = await db.platformResourcesResolvedRequirement.update({ where: { const deleted = await db.platformResourcesResolvedRequirement.delete({ where: { id: '' } }).execute(); ``` +### `db.platformServiceBinding` + +CRUD operations for PlatformServiceBinding records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `id` | UUID | No | +| `installationId` | UUID | Yes | +| `installationScope` | String | Yes | +| `kind` | String | Yes | +| `lastError` | String | Yes | +| `metadata` | JSON | Yes | +| `namespaceId` | UUID | Yes | +| `observedHost` | String | Yes | +| `realm` | String | Yes | +| `status` | String | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformServiceBinding records +const items = await db.platformServiceBinding.findMany({ select: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, installationId: true, installationScope: true, kind: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.platformServiceBinding.findOne({ id: '', select: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, installationId: true, installationScope: true, kind: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.platformServiceBinding.create({ data: { createdBy: '', createdByPrincipal: '', installationId: '', installationScope: '', kind: '', lastError: '', metadata: '', namespaceId: '', observedHost: '', realm: '', status: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformServiceBinding.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformServiceBinding.delete({ where: { id: '' } }).execute(); +``` + ### `db.platformWebhookEndpoint` CRUD operations for PlatformWebhookEndpoint records. @@ -4131,25 +4068,29 @@ CRUD operations for ProposalComment records. |-------|------|----------| | `actorId` | UUID | Yes | | `attachments` | ConstructiveInternalTypeUpload | Yes | +| `attachmentsUrl` | String | No | +| `attachmentsVersions` | FileVersion | No | | `body` | String | Yes | -| `bodyTrgmSimilarity` | Float | Yes | +| `bodyTrgmSimilarity` | Float | No | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | | `createdByPrincipal` | UUID | Yes | | `databaseId` | UUID | Yes | | `embedding` | Vector | Yes | -| `embeddingUpdatedAt` | Datetime | Yes | -| `embeddingVectorDistance` | Float | Yes | +| `embeddingModel` | String | No | +| `embeddingModelTrgmSimilarity` | Float | No | +| `embeddingUpdatedAt` | Datetime | No | +| `embeddingVectorDistance` | Float | No | | `id` | UUID | No | | `line` | Int | Yes | | `outdatedAt` | Datetime | Yes | | `path` | String | Yes | -| `pathTrgmSimilarity` | Float | Yes | +| `pathTrgmSimilarity` | Float | No | | `proposalId` | UUID | Yes | | `resolvedAt` | Datetime | Yes | -| `search` | FullText | Yes | -| `searchScore` | Float | Yes | -| `searchTsvRank` | Float | Yes | +| `search` | FullText | No | +| `searchScore` | Float | No | +| `searchTsvRank` | Float | No | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | | `updatedByPrincipal` | UUID | Yes | @@ -4158,13 +4099,13 @@ CRUD operations for ProposalComment records. ```typescript // List all proposalComment records -const items = await db.proposalComment.findMany({ select: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const items = await db.proposalComment.findMany({ select: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.proposalComment.findOne({ id: '', select: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const item = await db.proposalComment.findOne({ id: '', select: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.proposalComment.create({ data: { actorId: '', attachments: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', line: '', outdatedAt: '', path: '', pathTrgmSimilarity: '', proposalId: '', resolvedAt: '', search: '', searchScore: '', searchTsvRank: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); +const created = await db.proposalComment.create({ data: { actorId: '', attachments: '', body: '', createdBy: '', createdByPrincipal: '', databaseId: '', embedding: '', line: '', outdatedAt: '', path: '', proposalId: '', resolvedAt: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.proposalComment.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -4189,9 +4130,9 @@ CRUD operations for Proposal records. |-------|------|----------| | `actorId` | UUID | Yes | | `body` | String | Yes | -| `bodyTrgmSimilarity` | Float | Yes | +| `bodyTrgmSimilarity` | Float | No | | `closedReason` | String | Yes | -| `closedReasonTrgmSimilarity` | Float | Yes | +| `closedReasonTrgmSimilarity` | Float | No | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | | `createdByPrincipal` | UUID | Yes | @@ -4199,16 +4140,18 @@ CRUD operations for Proposal records. | `decidedAt` | Datetime | Yes | | `dueAt` | Datetime | Yes | | `embedding` | Vector | Yes | -| `embeddingUpdatedAt` | Datetime | Yes | -| `embeddingVectorDistance` | Float | Yes | +| `embeddingModel` | String | No | +| `embeddingModelTrgmSimilarity` | Float | No | +| `embeddingUpdatedAt` | Datetime | No | +| `embeddingVectorDistance` | Float | No | | `id` | UUID | No | | `kind` | String | Yes | -| `kindTrgmSimilarity` | Float | Yes | +| `kindTrgmSimilarity` | Float | No | | `labels` | String | Yes | | `mergeCommit` | String | Yes | -| `mergeCommitTrgmSimilarity` | Float | Yes | +| `mergeCommitTrgmSimilarity` | Float | No | | `mergeMethod` | String | Yes | -| `mergeMethodTrgmSimilarity` | Float | Yes | +| `mergeMethodTrgmSimilarity` | Float | No | | `mergeRequestedAt` | Datetime | Yes | | `mergedAt` | Datetime | Yes | | `metadata` | JSON | Yes | @@ -4216,18 +4159,18 @@ CRUD operations for Proposal records. | `priority` | BigFloat | Yes | | `repositoryId` | UUID | Yes | | `resolution` | String | Yes | -| `resolutionTrgmSimilarity` | Float | Yes | -| `search` | FullText | Yes | -| `searchScore` | Float | Yes | -| `searchTsvRank` | Float | Yes | +| `resolutionTrgmSimilarity` | Float | No | +| `search` | FullText | No | +| `searchScore` | Float | No | +| `searchTsvRank` | Float | No | | `sourceRef` | String | Yes | -| `sourceRefTrgmSimilarity` | Float | Yes | +| `sourceRefTrgmSimilarity` | Float | No | | `status` | String | Yes | -| `statusTrgmSimilarity` | Float | Yes | +| `statusTrgmSimilarity` | Float | No | | `targetRef` | String | Yes | -| `targetRefTrgmSimilarity` | Float | Yes | +| `targetRefTrgmSimilarity` | Float | No | | `title` | String | Yes | -| `titleTrgmSimilarity` | Float | Yes | +| `titleTrgmSimilarity` | Float | No | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | | `updatedByPrincipal` | UUID | Yes | @@ -4236,13 +4179,13 @@ CRUD operations for Proposal records. ```typescript // List all proposal records -const items = await db.proposal.findMany({ select: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const items = await db.proposal.findMany({ select: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, decidedAt: true, dueAt: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.proposal.findOne({ id: '', select: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const item = await db.proposal.findOne({ id: '', select: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, decidedAt: true, dueAt: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.proposal.create({ data: { actorId: '', body: '', bodyTrgmSimilarity: '', closedReason: '', closedReasonTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', decidedAt: '', dueAt: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', kind: '', kindTrgmSimilarity: '', labels: '', mergeCommit: '', mergeCommitTrgmSimilarity: '', mergeMethod: '', mergeMethodTrgmSimilarity: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', resolutionTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', sourceRef: '', sourceRefTrgmSimilarity: '', status: '', statusTrgmSimilarity: '', targetRef: '', targetRefTrgmSimilarity: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); +const created = await db.proposal.create({ data: { actorId: '', body: '', closedReason: '', createdBy: '', createdByPrincipal: '', databaseId: '', decidedAt: '', dueAt: '', embedding: '', kind: '', labels: '', mergeCommit: '', mergeMethod: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', sourceRef: '', status: '', targetRef: '', title: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.proposal.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -4343,23 +4286,23 @@ CRUD operations for ProposalReview records. | Field | Type | Editable | |-------|------|----------| | `body` | String | Yes | -| `bodyTrgmSimilarity` | Float | Yes | +| `bodyTrgmSimilarity` | Float | No | | `commitSha` | String | Yes | -| `commitShaTrgmSimilarity` | Float | Yes | +| `commitShaTrgmSimilarity` | Float | No | | `createdAt` | Datetime | No | | `createdByPrincipal` | UUID | Yes | | `databaseId` | UUID | Yes | | `id` | UUID | No | | `proposalId` | UUID | Yes | | `reviewerId` | UUID | Yes | -| `search` | FullText | Yes | -| `searchScore` | Float | Yes | -| `searchTsvRank` | Float | Yes | +| `search` | FullText | No | +| `searchScore` | Float | No | +| `searchTsvRank` | Float | No | | `submittedAt` | Datetime | Yes | | `updatedAt` | Datetime | No | | `updatedByPrincipal` | UUID | Yes | | `verdict` | String | Yes | -| `verdictTrgmSimilarity` | Float | Yes | +| `verdictTrgmSimilarity` | Float | No | **Operations:** @@ -4371,7 +4314,7 @@ const items = await db.proposalReview.findMany({ select: { body: true, bodyTrgmS const item = await db.proposalReview.findOne({ id: '', select: { body: true, bodyTrgmSimilarity: true, commitSha: true, commitShaTrgmSimilarity: true, createdAt: true, createdByPrincipal: true, databaseId: true, id: true, proposalId: true, reviewerId: true, search: true, searchScore: true, searchTsvRank: true, submittedAt: true, updatedAt: true, updatedByPrincipal: true, verdict: true, verdictTrgmSimilarity: true } }).execute(); // Create -const created = await db.proposalReview.create({ data: { body: '', bodyTrgmSimilarity: '', commitSha: '', commitShaTrgmSimilarity: '', createdByPrincipal: '', databaseId: '', proposalId: '', reviewerId: '', search: '', searchScore: '', searchTsvRank: '', submittedAt: '', updatedByPrincipal: '', verdict: '', verdictTrgmSimilarity: '' }, select: { id: true } }).execute(); +const created = await db.proposalReview.create({ data: { body: '', commitSha: '', createdByPrincipal: '', databaseId: '', proposalId: '', reviewerId: '', submittedAt: '', updatedByPrincipal: '', verdict: '' }, select: { id: true } }).execute(); // Update const updated = await db.proposalReview.update({ where: { id: '' }, data: { body: '' }, select: { id: true } }).execute(); @@ -4397,11 +4340,11 @@ CRUD operations for ProposalsChunk records. | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | | `embedding` | Vector | Yes | -| `embeddingVectorDistance` | Float | Yes | +| `embeddingVectorDistance` | Float | No | | `id` | UUID | No | | `metadata` | JSON | Yes | | `proposalsId` | UUID | Yes | -| `searchScore` | Float | Yes | +| `searchScore` | Float | No | | `updatedAt` | Datetime | No | **Operations:** @@ -4414,7 +4357,7 @@ const items = await db.proposalsChunk.findMany({ select: { actorId: true, body: const item = await db.proposalsChunk.findOne({ id: '', select: { actorId: true, body: true, chunkIndex: true, createdAt: true, databaseId: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, proposalsId: true, searchScore: true, updatedAt: true } }).execute(); // Create -const created = await db.proposalsChunk.create({ data: { actorId: '', body: '', chunkIndex: '', databaseId: '', embedding: '', embeddingVectorDistance: '', metadata: '', proposalsId: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.proposalsChunk.create({ data: { actorId: '', body: '', chunkIndex: '', databaseId: '', embedding: '', metadata: '', proposalsId: '' }, select: { id: true } }).execute(); // Update const updated = await db.proposalsChunk.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -4567,50 +4510,52 @@ CRUD operations for Repository records. | Field | Type | Editable | |-------|------|----------| | `cloneUrl` | String | Yes | -| `cloneUrlTrgmSimilarity` | Float | Yes | +| `cloneUrlTrgmSimilarity` | Float | No | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | | `createdByPrincipal` | UUID | Yes | | `databaseId` | UUID | Yes | | `defaultBranch` | String | Yes | -| `defaultBranchTrgmSimilarity` | Float | Yes | +| `defaultBranchTrgmSimilarity` | Float | No | | `description` | String | Yes | -| `descriptionTrgmSimilarity` | Float | Yes | +| `descriptionTrgmSimilarity` | Float | No | | `embedding` | Vector | Yes | -| `embeddingUpdatedAt` | Datetime | Yes | -| `embeddingVectorDistance` | Float | Yes | +| `embeddingModel` | String | No | +| `embeddingModelTrgmSimilarity` | Float | No | +| `embeddingUpdatedAt` | Datetime | No | +| `embeddingVectorDistance` | Float | No | | `externalId` | String | Yes | -| `externalIdTrgmSimilarity` | Float | Yes | +| `externalIdTrgmSimilarity` | Float | No | | `id` | UUID | No | | `isArchived` | Boolean | Yes | | `metadata` | JSON | Yes | | `name` | String | Yes | -| `nameTrgmSimilarity` | Float | Yes | +| `nameTrgmSimilarity` | Float | No | | `ownerId` | UUID | Yes | | `provider` | String | Yes | -| `providerTrgmSimilarity` | Float | Yes | -| `search` | FullText | Yes | -| `searchScore` | Float | Yes | -| `searchTsvRank` | Float | Yes | +| `providerTrgmSimilarity` | Float | No | +| `search` | FullText | No | +| `searchScore` | Float | No | +| `searchTsvRank` | Float | No | | `slug` | String | Yes | -| `slugTrgmSimilarity` | Float | Yes | +| `slugTrgmSimilarity` | Float | No | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | | `updatedByPrincipal` | UUID | Yes | | `visibility` | String | Yes | -| `visibilityTrgmSimilarity` | Float | Yes | +| `visibilityTrgmSimilarity` | Float | No | **Operations:** ```typescript // List all repository records -const items = await db.repository.findMany({ select: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }).execute(); +const items = await db.repository.findMany({ select: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }).execute(); // Get one by id -const item = await db.repository.findOne({ id: '', select: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }).execute(); +const item = await db.repository.findOne({ id: '', select: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }).execute(); // Create -const created = await db.repository.create({ data: { cloneUrl: '', cloneUrlTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', defaultBranch: '', defaultBranchTrgmSimilarity: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', externalId: '', externalIdTrgmSimilarity: '', isArchived: '', metadata: '', name: '', nameTrgmSimilarity: '', ownerId: '', provider: '', providerTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', slug: '', slugTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '', visibility: '', visibilityTrgmSimilarity: '' }, select: { id: true } }).execute(); +const created = await db.repository.create({ data: { cloneUrl: '', createdBy: '', createdByPrincipal: '', databaseId: '', defaultBranch: '', description: '', embedding: '', externalId: '', isArchived: '', metadata: '', name: '', ownerId: '', provider: '', slug: '', updatedBy: '', updatedByPrincipal: '', visibility: '' }, select: { id: true } }).execute(); // Update const updated = await db.repository.update({ where: { id: '' }, data: { cloneUrl: '' }, select: { id: true } }).execute(); @@ -4757,8 +4702,8 @@ CRUD operations for Resource records. | Field | Type | Editable | |-------|------|----------| | `annotations` | JSON | Yes | -| `cpuLimitMillicores` | BigInt | Yes | -| `cpuRequestMillicores` | BigInt | Yes | +| `cpuLimitMillicores` | BigInt | No | +| `cpuRequestMillicores` | BigInt | No | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | | `createdByPrincipal` | UUID | Yes | @@ -4772,12 +4717,12 @@ CRUD operations for Resource records. | `labels` | JSON | Yes | | `lastError` | String | Yes | | `lastHeartbeatAt` | Datetime | Yes | -| `memoryLimitBytes` | BigInt | Yes | -| `memoryRequestBytes` | BigInt | Yes | +| `memoryLimitBytes` | BigInt | No | +| `memoryRequestBytes` | BigInt | No | | `name` | String | Yes | | `namespaceId` | UUID | Yes | | `realm` | String | Yes | -| `replicas` | Int | Yes | +| `replicas` | Int | No | | `requiredConfigs` | ResourceRequirement | Yes | | `requiredSecrets` | ResourceRequirement | Yes | | `resourceDefinitionId` | UUID | Yes | @@ -4785,9 +4730,9 @@ CRUD operations for Resource records. | `spec` | JSON | Yes | | `status` | String | Yes | | `statusObserved` | JSON | Yes | -| `storageClass` | String | Yes | -| `storageSizeBytes` | BigInt | Yes | -| `storageTotalBytes` | BigInt | Yes | +| `storageClass` | String | No | +| `storageSizeBytes` | BigInt | No | +| `storageTotalBytes` | BigInt | No | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | | `updatedByPrincipal` | UUID | Yes | @@ -4796,13 +4741,13 @@ CRUD operations for Resource records. ```typescript // List all resource records -const items = await db.resource.findMany({ select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const items = await db.resource.findMany({ select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.resource.findOne({ id: '', select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const item = await db.resource.findOne({ id: '', select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.resource.create({ data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', databaseId: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); +const created = await db.resource.create({ data: { annotations: '', createdBy: '', createdByPrincipal: '', databaseId: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', name: '', namespaceId: '', realm: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.resource.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -4843,9 +4788,6 @@ const items = await db.resourceDeclaredCapacity.findMany({ select: { cpuLimitMil // Get one by id const item = await db.resourceDeclaredCapacity.findOne({ id: '', select: { cpuLimitMillicores: true, cpuRequestMillicores: true, installationId: true, isTransient: true, kind: true, memoryLimitBytes: true, memoryRequestBytes: true, namespaceId: true, podCountMax: true, podCountMin: true, source: true, sourceId: true, storageSizeBytes: true, storageTotalBytes: true } }).execute(); -// Create -const created = await db.resourceDeclaredCapacity.create({ data: { cpuLimitMillicores: '', cpuRequestMillicores: '', installationId: '', isTransient: '', kind: '', memoryLimitBytes: '', memoryRequestBytes: '', namespaceId: '', podCountMax: '', podCountMin: '', source: '', sourceId: '', storageSizeBytes: '', storageTotalBytes: '' }, select: { id: true } }).execute(); - // Update const updated = await db.resourceDeclaredCapacity.update({ where: { id: '' }, data: { cpuLimitMillicores: '' }, select: { id: true } }).execute(); @@ -4887,10 +4829,10 @@ CRUD operations for ResourceDefinition records. ```typescript // List all resourceDefinition records -const items = await db.resourceDefinition.findMany({ select: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const items = await db.resourceDefinition.findMany({ select: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.resourceDefinition.findOne({ id: '', select: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const item = await db.resourceDefinition.findOne({ id: '', select: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create const created = await db.resourceDefinition.create({ data: { annotations: '', createdBy: '', createdByPrincipal: '', databaseId: '', defaultSpec: '', description: '', integrations: '', kind: '', labels: '', name: '', namespaceId: '', paramsSchema: '', requiredConfigs: '', requiredSecrets: '', slug: '', stepUpMinAge: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); @@ -5018,9 +4960,6 @@ const items = await db.resourceObservedStorage.findMany({ select: { capacity: tr // Get one by id const item = await db.resourceObservedStorage.findOne({ id: '', select: { capacity: true, capacityBytes: true, claimName: true, declaredStorageClass: true, declaredStorageSizeBytes: true, declaredStorageTotalBytes: true, installationId: true, isBound: true, kind: true, namespaceId: true, phase: true, requested: true, requestedBytes: true, resourceId: true, resourceStatus: true, slug: true, storageClass: true, storageName: true } }).execute(); -// Create -const created = await db.resourceObservedStorage.create({ data: { capacity: '', capacityBytes: '', claimName: '', declaredStorageClass: '', declaredStorageSizeBytes: '', declaredStorageTotalBytes: '', installationId: '', isBound: '', kind: '', namespaceId: '', phase: '', requested: '', requestedBytes: '', resourceId: '', resourceStatus: '', slug: '', storageClass: '', storageName: '' }, select: { id: true } }).execute(); - // Update const updated = await db.resourceObservedStorage.update({ where: { id: '' }, data: { capacity: '' }, select: { id: true } }).execute(); @@ -5177,9 +5116,6 @@ const items = await db.resourceUtilization.findMany({ select: { avgMemoryBytes: // Get one by id const item = await db.resourceUtilization.findOne({ id: '', select: { avgMemoryBytes: true, cpuLimitMillicores: true, cpuPeakUtilization: true, cpuRequestHeadroomMillicores: true, cpuRequestMillicores: true, date: true, gbSeconds: true, kind: true, maxCpuMillicores: true, maxMemoryBytes: true, memoryLimitBytes: true, memoryPeakUtilization: true, memoryRequestBytes: true, memoryRequestHeadroomBytes: true, namespaceId: true, replicas: true, resourceId: true, runtimeSeconds: true, sampleCount: true } }).execute(); -// Create -const created = await db.resourceUtilization.create({ data: { avgMemoryBytes: '', cpuLimitMillicores: '', cpuPeakUtilization: '', cpuRequestHeadroomMillicores: '', cpuRequestMillicores: '', date: '', gbSeconds: '', kind: '', maxCpuMillicores: '', maxMemoryBytes: '', memoryLimitBytes: '', memoryPeakUtilization: '', memoryRequestBytes: '', memoryRequestHeadroomBytes: '', namespaceId: '', replicas: '', resourceId: '', runtimeSeconds: '', sampleCount: '' }, select: { id: true } }).execute(); - // Update const updated = await db.resourceUtilization.update({ where: { id: '' }, data: { avgMemoryBytes: '' }, select: { id: true } }).execute(); @@ -5236,13 +5172,10 @@ CRUD operations for ResourcesHealth records. ```typescript // List all resourcesHealth records -const items = await db.resourcesHealth.findMany({ select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const items = await db.resourcesHealth.findMany({ select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.resourcesHealth.findOne({ id: '', select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); - -// Create -const created = await db.resourcesHealth.create({ data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', databaseId: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusDetail: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); +const item = await db.resourcesHealth.findOne({ id: '', select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Update const updated = await db.resourcesHealth.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -5276,9 +5209,6 @@ const items = await db.resourcesRequirementsState.findMany({ select: { configHas // Get one by id const item = await db.resourcesRequirementsState.findOne({ id: '', select: { configHash: true, configObjectName: true, requirementsHash: true, resourceId: true, secretsHash: true, secretsObjectName: true, slug: true } }).execute(); -// Create -const created = await db.resourcesRequirementsState.create({ data: { configHash: '', configObjectName: '', requirementsHash: '', resourceId: '', secretsHash: '', secretsObjectName: '', slug: '' }, select: { id: true } }).execute(); - // Update const updated = await db.resourcesRequirementsState.update({ where: { id: '' }, data: { configHash: '' }, select: { id: true } }).execute(); @@ -5315,9 +5245,6 @@ const items = await db.resourcesResolvedRequirement.findMany({ select: { atomId: // Get one by id const item = await db.resourcesResolvedRequirement.findOne({ id: '', select: { atomId: true, configObjectName: true, name: true, namespaceId: true, present: true, realm: true, required: true, requirementKind: true, resourceId: true, secretsObjectName: true, slug: true } }).execute(); -// Create -const created = await db.resourcesResolvedRequirement.create({ data: { atomId: '', configObjectName: '', name: '', namespaceId: '', present: '', realm: '', required: '', requirementKind: '', resourceId: '', secretsObjectName: '', slug: '' }, select: { id: true } }).execute(); - // Update const updated = await db.resourcesResolvedRequirement.update({ where: { id: '' }, data: { atomId: '' }, select: { id: true } }).execute(); @@ -5325,6 +5252,51 @@ const updated = await db.resourcesResolvedRequirement.update({ where: { id: '' } }).execute(); ``` +### `db.serviceBinding` + +CRUD operations for ServiceBinding records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `id` | UUID | No | +| `installationId` | UUID | Yes | +| `installationScope` | String | Yes | +| `kind` | String | Yes | +| `lastError` | String | Yes | +| `metadata` | JSON | Yes | +| `namespaceId` | UUID | Yes | +| `observedHost` | String | Yes | +| `realm` | String | Yes | +| `status` | String | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all serviceBinding records +const items = await db.serviceBinding.findMany({ select: { createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, installationId: true, installationScope: true, kind: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.serviceBinding.findOne({ id: '', select: { createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, installationId: true, installationScope: true, kind: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.serviceBinding.create({ data: { createdBy: '', createdByPrincipal: '', databaseId: '', installationId: '', installationScope: '', kind: '', lastError: '', metadata: '', namespaceId: '', observedHost: '', realm: '', status: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.serviceBinding.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.serviceBinding.delete({ where: { id: '' } }).execute(); +``` + ### `db.webhookEndpoint` CRUD operations for WebhookEndpoint records. @@ -5532,6 +5504,21 @@ copyGraph const result = await db.mutation.copyGraph({ input: { graphId: '', name: '', scopeId: '' } }).execute(); ``` +### `db.mutation.createFunctionGraph` + +createFunctionGraph + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | CreateFunctionGraphInput (required) | + +```typescript +const result = await db.mutation.createFunctionGraph({ input: '' }).execute(); +``` + ### `db.mutation.databaseAddEdge` databaseAddEdge diff --git a/sdk/constructive-cli/src/compute/orm/index.ts b/sdk/constructive-cli/src/compute/orm/index.ts index 01033dc125..bc4368881e 100644 --- a/sdk/constructive-cli/src/compute/orm/index.ts +++ b/sdk/constructive-cli/src/compute/orm/index.ts @@ -7,7 +7,6 @@ import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; import { BuildModel } from './models/build'; import { BuildStepModel } from './models/buildStep'; -import { BuilderBindingModel } from './models/builderBinding'; import { ContentPresetModel } from './models/contentPreset'; import { DatabaseFunctionGraphModel } from './models/databaseFunctionGraph'; import { DatabaseFunctionGraphExecutionCancelRequestModel } from './models/databaseFunctionGraphExecutionCancelRequest'; @@ -51,7 +50,6 @@ import { NamespaceModel } from './models/namespace'; import { NamespaceEventModel } from './models/namespaceEvent'; import { PlatformBuildModel } from './models/platformBuild'; import { PlatformBuildStepModel } from './models/platformBuildStep'; -import { PlatformBuilderBindingModel } from './models/platformBuilderBinding'; import { PlatformFunctionApiBindingModel } from './models/platformFunctionApiBinding'; import { PlatformFunctionCapabilityBindingModel } from './models/platformFunctionCapabilityBinding'; import { PlatformFunctionDefinitionModel } from './models/platformFunctionDefinition'; @@ -98,6 +96,7 @@ import { PlatformResourceUtilizationModel } from './models/platformResourceUtili import { PlatformResourcesHealthModel } from './models/platformResourcesHealth'; import { PlatformResourcesRequirementsStateModel } from './models/platformResourcesRequirementsState'; import { PlatformResourcesResolvedRequirementModel } from './models/platformResourcesResolvedRequirement'; +import { PlatformServiceBindingModel } from './models/platformServiceBinding'; import { PlatformWebhookEndpointModel } from './models/platformWebhookEndpoint'; import { PlatformWebhookEventModel } from './models/platformWebhookEvent'; import { ProposalCommentModel } from './models/proposalComment'; @@ -126,6 +125,7 @@ import { ResourceUtilizationModel } from './models/resourceUtilization'; import { ResourcesHealthModel } from './models/resourcesHealth'; import { ResourcesRequirementsStateModel } from './models/resourcesRequirementsState'; import { ResourcesResolvedRequirementModel } from './models/resourcesResolvedRequirement'; +import { ServiceBindingModel } from './models/serviceBinding'; import { WebhookEndpointModel } from './models/webhookEndpoint'; import { WebhookEventModel } from './models/webhookEvent'; import { createQueryOperations } from './query'; @@ -165,7 +165,6 @@ export function createClient(config: OrmClientConfig) { return { build: new BuildModel(client), buildStep: new BuildStepModel(client), - builderBinding: new BuilderBindingModel(client), contentPreset: new ContentPresetModel(client), databaseFunctionGraph: new DatabaseFunctionGraphModel(client), databaseFunctionGraphExecutionCancelRequest: @@ -212,7 +211,6 @@ export function createClient(config: OrmClientConfig) { namespaceEvent: new NamespaceEventModel(client), platformBuild: new PlatformBuildModel(client), platformBuildStep: new PlatformBuildStepModel(client), - platformBuilderBinding: new PlatformBuilderBindingModel(client), platformFunctionApiBinding: new PlatformFunctionApiBindingModel(client), platformFunctionCapabilityBinding: new PlatformFunctionCapabilityBindingModel(client), platformFunctionDefinition: new PlatformFunctionDefinitionModel(client), @@ -259,6 +257,7 @@ export function createClient(config: OrmClientConfig) { platformResourcesHealth: new PlatformResourcesHealthModel(client), platformResourcesRequirementsState: new PlatformResourcesRequirementsStateModel(client), platformResourcesResolvedRequirement: new PlatformResourcesResolvedRequirementModel(client), + platformServiceBinding: new PlatformServiceBindingModel(client), platformWebhookEndpoint: new PlatformWebhookEndpointModel(client), platformWebhookEvent: new PlatformWebhookEventModel(client), proposalComment: new ProposalCommentModel(client), @@ -287,6 +286,7 @@ export function createClient(config: OrmClientConfig) { resourcesHealth: new ResourcesHealthModel(client), resourcesRequirementsState: new ResourcesRequirementsStateModel(client), resourcesResolvedRequirement: new ResourcesResolvedRequirementModel(client), + serviceBinding: new ServiceBindingModel(client), webhookEndpoint: new WebhookEndpointModel(client), webhookEvent: new WebhookEventModel(client), query: createQueryOperations(client), diff --git a/sdk/constructive-cli/src/compute/orm/input-types.ts b/sdk/constructive-cli/src/compute/orm/input-types.ts index c4f3a14a61..b6ec4589d2 100644 --- a/sdk/constructive-cli/src/compute/orm/input-types.ts +++ b/sdk/constructive-cli/src/compute/orm/input-types.ts @@ -234,7 +234,6 @@ export interface UUIDListFilter { export type Base64EncodedBinary = unknown; export type ConstructiveInternalTypeImage = unknown; export type ConstructiveInternalTypeUpload = unknown; -export type ResourceRequirement = unknown; /** One run of a repository workflow: its commit, its job, and what it produced */ // ============ Entity Types ============ export interface Build { @@ -261,6 +260,10 @@ export interface Build { jobId?: string | null; /** Build log object in storage; step rows slice it by byte range */ logs?: ConstructiveInternalTypeUpload | null; + /** URL to fetch `logs`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + logsUrl?: string | null; + /** The versions rendered beside `logs`, narrowest first, each with a URL. Empty when there are none. */ + logsVersions?: FileVersion[] | null; /** Matrix shard identity; NULL for a non-matrix build */ matrixKey?: string | null; /** Build detail (step results, durations, failure reason) */ @@ -315,32 +318,6 @@ export interface BuildStep { /** Parsed detail: failure message, assertion diff, counts, annotations */ summary?: Record | null; } -/** Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST */ -export interface BuilderBinding { - createdAt?: string | null; - createdBy?: string | null; - createdByPrincipal?: string | null; - /** Database that owns this resource (database-scoped isolation) */ - databaseId?: string | null; - id: string; - /** BuildKit resource installation serving this binding; may belong to another resource scope */ - installationId?: string | null; - /** Most recent projection failure */ - lastError?: string | null; - /** Reconciler detail (projection timestamps and diagnostics) */ - metadata?: Record | null; - /** Namespace whose builds use this BuildKit installation */ - namespaceId?: string | null; - /** BuildKit address last projected into the namespace (NULL = never projected) */ - observedHost?: string | null; - /** Lane this binding applies to (NULL = the scope's default lane) */ - realm?: string | null; - /** Projection state of BUILDKIT_HOST: pending, active, failed */ - status?: string | null; - updatedAt?: string | null; - updatedBy?: string | null; - updatedByPrincipal?: string | null; -} /** Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store */ export interface ContentPreset { /** Whether this preset is selectable at provision time */ @@ -1315,6 +1292,10 @@ export interface IntegrationProvider { id: string; /** Provider logo as an image domain value (url, id, key, bucket, provider) */ logo?: ConstructiveInternalTypeImage | null; + /** URL to fetch `logo`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + logoUrl?: string | null; + /** The versions rendered beside `logo`, narrowest first, each with a URL. Empty when there are none. */ + logoVersions?: FileVersion[] | null; /** Human-readable brand name (e.g. 'Mailgun', 'PostgreSQL') */ name?: string | null; /** Canonical config requirements for this provider: array of (name, required, provider) tuples. Used by the UI to auto-fill function/resource required_configs. */ @@ -1395,6 +1376,10 @@ export interface PlatformBuild { jobId?: string | null; /** Build log object in storage; step rows slice it by byte range */ logs?: ConstructiveInternalTypeUpload | null; + /** URL to fetch `logs`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + logsUrl?: string | null; + /** The versions rendered beside `logs`, narrowest first, each with a URL. Empty when there are none. */ + logsVersions?: FileVersion[] | null; /** Matrix shard identity; NULL for a non-matrix build */ matrixKey?: string | null; /** Build detail (step results, durations, failure reason) */ @@ -1447,30 +1432,6 @@ export interface PlatformBuildStep { /** Parsed detail: failure message, assertion diff, counts, annotations */ summary?: Record | null; } -/** Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST */ -export interface PlatformBuilderBinding { - createdAt?: string | null; - createdBy?: string | null; - createdByPrincipal?: string | null; - id: string; - /** BuildKit resource installation serving this binding; may belong to another resource scope */ - installationId?: string | null; - /** Most recent projection failure */ - lastError?: string | null; - /** Reconciler detail (projection timestamps and diagnostics) */ - metadata?: Record | null; - /** Namespace whose builds use this BuildKit installation */ - namespaceId?: string | null; - /** BuildKit address last projected into the namespace (NULL = never projected) */ - observedHost?: string | null; - /** Lane this binding applies to (NULL = the scope's default lane) */ - realm?: string | null; - /** Projection state of BUILDKIT_HOST: pending, active, failed */ - status?: string | null; - updatedAt?: string | null; - updatedBy?: string | null; - updatedByPrincipal?: string | null; -} /** Join table binding function definitions to API endpoints with per-binding alias and config */ export interface PlatformFunctionApiBinding { /** Binding alias (e.g. default, staging, production) */ @@ -2004,6 +1965,10 @@ export interface PlatformProposalComment { actorId?: string | null; /** Files referenced by the comment body, in the order they were attached */ attachments?: ConstructiveInternalTypeUpload[] | null; + /** URL to fetch `attachments`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + attachmentsUrl?: string[] | null; + /** The versions rendered beside `attachments`, narrowest first, each with a URL. Empty when there are none. */ + attachmentsVersions?: FileVersion[] | null; /** Comment text */ body?: string | null; /** TRGM similarity when searching `body`. Returns null when no trgm search filter is active. */ @@ -2012,6 +1977,9 @@ export interface PlatformProposalComment { createdBy?: string | null; createdByPrincipal?: string | null; embedding?: number[] | null; + embeddingModel?: string | null; + /** TRGM similarity when searching `embeddingModel`. Returns null when no trgm search filter is active. */ + embeddingModelTrgmSimilarity?: number | null; embeddingUpdatedAt?: string | null; /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ embeddingVectorDistance?: number | null; @@ -2057,6 +2025,9 @@ export interface PlatformProposal { /** When this is wanted by (NULL when nothing is promised) */ dueAt?: string | null; embedding?: number[] | null; + embeddingModel?: string | null; + /** TRGM similarity when searching `embeddingModel`. Returns null when no trgm search filter is active. */ + embeddingModelTrgmSimilarity?: number | null; embeddingUpdatedAt?: string | null; /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ embeddingVectorDistance?: number | null; @@ -2297,6 +2268,9 @@ export interface PlatformRepository { /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ descriptionTrgmSimilarity?: number | null; embedding?: number[] | null; + embeddingModel?: string | null; + /** TRGM similarity when searching `embeddingModel`. Returns null when no trgm search filter is active. */ + embeddingModelTrgmSimilarity?: number | null; embeddingUpdatedAt?: string | null; /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ embeddingVectorDistance?: number | null; @@ -2720,6 +2694,34 @@ export interface PlatformResourcesResolvedRequirement { secretsObjectName?: string | null; slug?: string | null; } +/** Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config */ +export interface PlatformServiceBinding { + createdAt?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + id: string; + /** Resource installation serving this binding, in the installations table of installation_scope */ + installationId?: string | null; + /** Scope whose installations table holds installation_id: this scope or platform */ + installationScope?: string | null; + /** Service this binding projects: builder (BUILDKIT_HOST) or git (GIT_PROVIDER + GIT_SERVICE_URL) */ + kind?: string | null; + /** Most recent projection failure */ + lastError?: string | null; + /** Reconciler detail (projection timestamps and diagnostics) */ + metadata?: Record | null; + /** Namespace whose builds use this BuildKit installation */ + namespaceId?: string | null; + /** Service address last projected into the namespace (NULL = never projected) */ + observedHost?: string | null; + /** Lane this binding applies to (NULL = the scope's default lane) */ + realm?: string | null; + /** Projection state of the bound address: pending, active, failed */ + status?: string | null; + updatedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} /** Webhook route authority: (host, path) -> function task_identifier invoked through the webhook channel, with provider, signing-secret reference, and replay window */ export interface PlatformWebhookEndpoint { /** Whether this endpoint currently accepts deliveries */ @@ -2776,6 +2778,10 @@ export interface ProposalComment { actorId?: string | null; /** Files referenced by the comment body, in the order they were attached */ attachments?: ConstructiveInternalTypeUpload[] | null; + /** URL to fetch `attachments`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + attachmentsUrl?: string[] | null; + /** The versions rendered beside `attachments`, narrowest first, each with a URL. Empty when there are none. */ + attachmentsVersions?: FileVersion[] | null; /** Comment text */ body?: string | null; /** TRGM similarity when searching `body`. Returns null when no trgm search filter is active. */ @@ -2786,6 +2792,9 @@ export interface ProposalComment { /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; embedding?: number[] | null; + embeddingModel?: string | null; + /** TRGM similarity when searching `embeddingModel`. Returns null when no trgm search filter is active. */ + embeddingModelTrgmSimilarity?: number | null; embeddingUpdatedAt?: string | null; /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ embeddingVectorDistance?: number | null; @@ -2833,6 +2842,9 @@ export interface Proposal { /** When this is wanted by (NULL when nothing is promised) */ dueAt?: string | null; embedding?: number[] | null; + embeddingModel?: string | null; + /** TRGM similarity when searching `embeddingModel`. Returns null when no trgm search filter is active. */ + embeddingModelTrgmSimilarity?: number | null; embeddingUpdatedAt?: string | null; /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ embeddingVectorDistance?: number | null; @@ -3089,6 +3101,9 @@ export interface Repository { /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ descriptionTrgmSimilarity?: number | null; embedding?: number[] | null; + embeddingModel?: string | null; + /** TRGM similarity when searching `embeddingModel`. Returns null when no trgm search filter is active. */ + embeddingModelTrgmSimilarity?: number | null; embeddingUpdatedAt?: string | null; /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ embeddingVectorDistance?: number | null; @@ -3533,6 +3548,36 @@ export interface ResourcesResolvedRequirement { secretsObjectName?: string | null; slug?: string | null; } +/** Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config */ +export interface ServiceBinding { + createdAt?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + id: string; + /** Resource installation serving this binding, in the installations table of installation_scope */ + installationId?: string | null; + /** Scope whose installations table holds installation_id: this scope or platform */ + installationScope?: string | null; + /** Service this binding projects: builder (BUILDKIT_HOST) or git (GIT_PROVIDER + GIT_SERVICE_URL) */ + kind?: string | null; + /** Most recent projection failure */ + lastError?: string | null; + /** Reconciler detail (projection timestamps and diagnostics) */ + metadata?: Record | null; + /** Namespace whose builds use this BuildKit installation */ + namespaceId?: string | null; + /** Service address last projected into the namespace (NULL = never projected) */ + observedHost?: string | null; + /** Lane this binding applies to (NULL = the scope's default lane) */ + realm?: string | null; + /** Projection state of the bound address: pending, active, failed */ + status?: string | null; + updatedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} /** Webhook route authority: (host, path) -> function task_identifier invoked through the webhook channel, with provider, signing-secret reference, and replay window */ export interface WebhookEndpoint { /** Whether this endpoint currently accepts deliveries */ @@ -3607,9 +3652,6 @@ export interface BuildRelations { workflow?: RepositoryWorkflow | null; } export interface BuildStepRelations {} -export interface BuilderBindingRelations { - namespace?: Namespace | null; -} export interface ContentPresetRelations {} export interface DatabaseFunctionGraphRelations { databaseFunctionGraphExecutionsByGraphId?: ConnectionResult; @@ -3643,7 +3685,7 @@ export interface FunctionDefinitionRelations { webhookEndpoints?: ConnectionResult; } export interface FunctionDeploymentRelations { - namespace?: Namespace | null; + namespaceByNamespaceIdAndDatabaseId?: Namespace | null; } export interface FunctionDeploymentEventRelations {} export interface FunctionExecutionLogRelations {} @@ -3683,13 +3725,13 @@ export interface InfraRefRelations {} export interface InfraStoreRelations {} export interface IntegrationProviderRelations {} export interface NamespaceRelations { - builderBindings?: ConnectionResult; - functionDeployments?: ConnectionResult; - registryBindings?: ConnectionResult; - resourceDefinitions?: ConnectionResult; - resourceInstallations?: ConnectionResult; - resources?: ConnectionResult; - webhookEndpoints?: ConnectionResult; + functionDeploymentsByNamespaceIdAndDatabaseId?: ConnectionResult; + registryBindingsByNamespaceIdAndDatabaseId?: ConnectionResult; + resourceDefinitionsByNamespaceIdAndDatabaseId?: ConnectionResult; + resourceInstallationsByNamespaceIdAndDatabaseId?: ConnectionResult; + resourcesByNamespaceIdAndDatabaseId?: ConnectionResult; + serviceBindingsByNamespaceIdAndDatabaseId?: ConnectionResult; + webhookEndpointsByNamespaceIdAndDatabaseId?: ConnectionResult; } export interface NamespaceEventRelations {} export interface PlatformBuildRelations { @@ -3699,9 +3741,6 @@ export interface PlatformBuildRelations { workflow?: PlatformRepositoryWorkflow | null; } export interface PlatformBuildStepRelations {} -export interface PlatformBuilderBindingRelations { - namespace?: PlatformNamespace | null; -} export interface PlatformFunctionApiBindingRelations { functionDefinition?: PlatformFunctionDefinition | null; platformFunctionInvocationsByApiBindingId?: ConnectionResult; @@ -3742,12 +3781,12 @@ export interface PlatformInfraStoreRelations {} export interface PlatformK8sResourceKindRelations {} export interface PlatformK8sSpecRuleRelations {} export interface PlatformNamespaceRelations { - platformBuilderBindingsByNamespaceId?: ConnectionResult; platformFunctionDeploymentsByNamespaceId?: ConnectionResult; platformRegistryBindingsByNamespaceId?: ConnectionResult; platformResourceDefinitionsByNamespaceId?: ConnectionResult; platformResourceInstallationsByNamespaceId?: ConnectionResult; platformResourcesByNamespaceId?: ConnectionResult; + platformServiceBindingsByNamespaceId?: ConnectionResult; platformWebhookEndpointsByNamespaceId?: ConnectionResult; } export interface PlatformNamespaceEventRelations {} @@ -3839,6 +3878,9 @@ export interface PlatformResourceUtilizationRelations {} export interface PlatformResourcesHealthRelations {} export interface PlatformResourcesRequirementsStateRelations {} export interface PlatformResourcesResolvedRequirementRelations {} +export interface PlatformServiceBindingRelations { + namespace?: PlatformNamespace | null; +} export interface PlatformWebhookEndpointRelations { functionDefinition?: PlatformFunctionDefinition | null; namespace?: PlatformNamespace | null; @@ -3876,7 +3918,7 @@ export interface ProposalsChunkRelations { proposals?: Proposal | null; } export interface RegistryBindingRelations { - namespace?: Namespace | null; + namespaceByNamespaceIdAndDatabaseId?: Namespace | null; registry?: Registry | null; } export interface RegistryRelations { @@ -3910,18 +3952,18 @@ export interface RepositoryWorkflowRelations { } export interface ResourceRelations { installation?: ResourceInstallation | null; - namespace?: Namespace | null; + namespaceByNamespaceIdAndDatabaseId?: Namespace | null; resourceDefinition?: ResourceDefinition | null; resourceStatusChecks?: ConnectionResult; } export interface ResourceDeclaredCapacityRelations {} export interface ResourceDefinitionRelations { - namespace?: Namespace | null; + namespaceByNamespaceIdAndDatabaseId?: Namespace | null; resources?: ConnectionResult; } export interface ResourceEventRelations {} export interface ResourceInstallationRelations { - namespace?: Namespace | null; + namespaceByNamespaceIdAndDatabaseId?: Namespace | null; registriesByInstallationId?: ConnectionResult; resourcesByInstallationId?: ConnectionResult; } @@ -3935,9 +3977,12 @@ export interface ResourceUtilizationRelations {} export interface ResourcesHealthRelations {} export interface ResourcesRequirementsStateRelations {} export interface ResourcesResolvedRequirementRelations {} +export interface ServiceBindingRelations { + namespaceByNamespaceIdAndDatabaseId?: Namespace | null; +} export interface WebhookEndpointRelations { functionDefinition?: FunctionDefinition | null; - namespace?: Namespace | null; + namespaceByNamespaceIdAndDatabaseId?: Namespace | null; webhookEventsByEndpointId?: ConnectionResult; } export interface WebhookEventRelations { @@ -3946,7 +3991,6 @@ export interface WebhookEventRelations { // ============ Entity Types With Relations ============ export type BuildWithRelations = Build & BuildRelations; export type BuildStepWithRelations = BuildStep & BuildStepRelations; -export type BuilderBindingWithRelations = BuilderBinding & BuilderBindingRelations; export type ContentPresetWithRelations = ContentPreset & ContentPresetRelations; export type DatabaseFunctionGraphWithRelations = DatabaseFunctionGraph & DatabaseFunctionGraphRelations; @@ -4007,8 +4051,6 @@ export type NamespaceWithRelations = Namespace & NamespaceRelations; export type NamespaceEventWithRelations = NamespaceEvent & NamespaceEventRelations; export type PlatformBuildWithRelations = PlatformBuild & PlatformBuildRelations; export type PlatformBuildStepWithRelations = PlatformBuildStep & PlatformBuildStepRelations; -export type PlatformBuilderBindingWithRelations = PlatformBuilderBinding & - PlatformBuilderBindingRelations; export type PlatformFunctionApiBindingWithRelations = PlatformFunctionApiBinding & PlatformFunctionApiBindingRelations; export type PlatformFunctionCapabilityBindingWithRelations = PlatformFunctionCapabilityBinding & @@ -4089,6 +4131,8 @@ export type PlatformResourcesRequirementsStateWithRelations = PlatformResourcesR PlatformResourcesRequirementsStateRelations; export type PlatformResourcesResolvedRequirementWithRelations = PlatformResourcesResolvedRequirement & PlatformResourcesResolvedRequirementRelations; +export type PlatformServiceBindingWithRelations = PlatformServiceBinding & + PlatformServiceBindingRelations; export type PlatformWebhookEndpointWithRelations = PlatformWebhookEndpoint & PlatformWebhookEndpointRelations; export type PlatformWebhookEventWithRelations = PlatformWebhookEvent & @@ -4126,6 +4170,7 @@ export type ResourcesRequirementsStateWithRelations = ResourcesRequirementsState ResourcesRequirementsStateRelations; export type ResourcesResolvedRequirementWithRelations = ResourcesResolvedRequirement & ResourcesResolvedRequirementRelations; +export type ServiceBindingWithRelations = ServiceBinding & ServiceBindingRelations; export type WebhookEndpointWithRelations = WebhookEndpoint & WebhookEndpointRelations; export type WebhookEventWithRelations = WebhookEvent & WebhookEventRelations; // ============ Entity Select Types ============ @@ -4143,6 +4188,15 @@ export type BuildSelect = { imageRef?: boolean; jobId?: boolean; logs?: boolean; + logsUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + logsVersions?: { + select: FileVersionSelect; + }; matrixKey?: boolean; metadata?: boolean; proposalId?: boolean; @@ -4184,26 +4238,6 @@ export type BuildStepSelect = { status?: boolean; summary?: boolean; }; -export type BuilderBindingSelect = { - createdAt?: boolean; - createdBy?: boolean; - createdByPrincipal?: boolean; - databaseId?: boolean; - id?: boolean; - installationId?: boolean; - lastError?: boolean; - metadata?: boolean; - namespaceId?: boolean; - observedHost?: boolean; - realm?: boolean; - status?: boolean; - updatedAt?: boolean; - updatedBy?: boolean; - updatedByPrincipal?: boolean; - namespace?: { - select: NamespaceSelect; - }; -}; export type ContentPresetSelect = { active?: boolean; commitId?: boolean; @@ -4439,10 +4473,14 @@ export type FunctionDefinitionSelect = { queueName?: boolean; requiredBuckets?: boolean; requiredCapabilities?: boolean; - requiredConfigs?: boolean; + requiredConfigs?: { + select: ResourceRequirementSelect; + }; requiredModels?: boolean; requiredModules?: boolean; - requiredSecrets?: boolean; + requiredSecrets?: { + select: ResourceRequirementSelect; + }; resources?: boolean; runtime?: boolean; scaleMax?: boolean; @@ -4508,7 +4546,7 @@ export type FunctionDeploymentSelect = { timeoutSeconds?: boolean; updatedAt?: boolean; updatedByPrincipal?: boolean; - namespace?: { + namespaceByNamespaceIdAndDatabaseId?: { select: NamespaceSelect; }; }; @@ -4829,9 +4867,22 @@ export type IntegrationProviderSelect = { icon?: boolean; id?: boolean; logo?: boolean; + logoUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + logoVersions?: { + select: FileVersionSelect; + }; name?: boolean; - requiredConfigs?: boolean; - requiredSecrets?: boolean; + requiredConfigs?: { + select: ResourceRequirementSelect; + }; + requiredSecrets?: { + select: ResourceRequirementSelect; + }; slug?: boolean; updatedAt?: boolean; }; @@ -4850,43 +4901,43 @@ export type NamespaceSelect = { namespaceName?: boolean; status?: boolean; updatedAt?: boolean; - builderBindings?: { - select: BuilderBindingSelect; - first?: number; - filter?: BuilderBindingFilter; - orderBy?: BuilderBindingOrderBy[]; - }; - functionDeployments?: { + functionDeploymentsByNamespaceIdAndDatabaseId?: { select: FunctionDeploymentSelect; first?: number; filter?: FunctionDeploymentFilter; orderBy?: FunctionDeploymentOrderBy[]; }; - registryBindings?: { + registryBindingsByNamespaceIdAndDatabaseId?: { select: RegistryBindingSelect; first?: number; filter?: RegistryBindingFilter; orderBy?: RegistryBindingOrderBy[]; }; - resourceDefinitions?: { + resourceDefinitionsByNamespaceIdAndDatabaseId?: { select: ResourceDefinitionSelect; first?: number; filter?: ResourceDefinitionFilter; orderBy?: ResourceDefinitionOrderBy[]; }; - resourceInstallations?: { + resourceInstallationsByNamespaceIdAndDatabaseId?: { select: ResourceInstallationSelect; first?: number; filter?: ResourceInstallationFilter; orderBy?: ResourceInstallationOrderBy[]; }; - resources?: { + resourcesByNamespaceIdAndDatabaseId?: { select: ResourceSelect; first?: number; filter?: ResourceFilter; orderBy?: ResourceOrderBy[]; }; - webhookEndpoints?: { + serviceBindingsByNamespaceIdAndDatabaseId?: { + select: ServiceBindingSelect; + first?: number; + filter?: ServiceBindingFilter; + orderBy?: ServiceBindingOrderBy[]; + }; + webhookEndpointsByNamespaceIdAndDatabaseId?: { select: WebhookEndpointSelect; first?: number; filter?: WebhookEndpointFilter; @@ -4916,6 +4967,15 @@ export type PlatformBuildSelect = { imageRef?: boolean; jobId?: boolean; logs?: boolean; + logsUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + logsVersions?: { + select: FileVersionSelect; + }; matrixKey?: boolean; metadata?: boolean; proposalId?: boolean; @@ -4956,25 +5016,6 @@ export type PlatformBuildStepSelect = { status?: boolean; summary?: boolean; }; -export type PlatformBuilderBindingSelect = { - createdAt?: boolean; - createdBy?: boolean; - createdByPrincipal?: boolean; - id?: boolean; - installationId?: boolean; - lastError?: boolean; - metadata?: boolean; - namespaceId?: boolean; - observedHost?: boolean; - realm?: boolean; - status?: boolean; - updatedAt?: boolean; - updatedBy?: boolean; - updatedByPrincipal?: boolean; - namespace?: { - select: PlatformNamespaceSelect; - }; -}; export type PlatformFunctionApiBindingSelect = { alias?: boolean; apiId?: boolean; @@ -5041,10 +5082,14 @@ export type PlatformFunctionDefinitionSelect = { queueName?: boolean; requiredBuckets?: boolean; requiredCapabilities?: boolean; - requiredConfigs?: boolean; + requiredConfigs?: { + select: ResourceRequirementSelect; + }; requiredModels?: boolean; requiredModules?: boolean; - requiredSecrets?: boolean; + requiredSecrets?: { + select: ResourceRequirementSelect; + }; resources?: boolean; runtime?: boolean; scaleMax?: boolean; @@ -5313,12 +5358,6 @@ export type PlatformNamespaceSelect = { namespaceName?: boolean; status?: boolean; updatedAt?: boolean; - platformBuilderBindingsByNamespaceId?: { - select: PlatformBuilderBindingSelect; - first?: number; - filter?: PlatformBuilderBindingFilter; - orderBy?: PlatformBuilderBindingOrderBy[]; - }; platformFunctionDeploymentsByNamespaceId?: { select: PlatformFunctionDeploymentSelect; first?: number; @@ -5349,6 +5388,12 @@ export type PlatformNamespaceSelect = { filter?: PlatformResourceFilter; orderBy?: PlatformResourceOrderBy[]; }; + platformServiceBindingsByNamespaceId?: { + select: PlatformServiceBindingSelect; + first?: number; + filter?: PlatformServiceBindingFilter; + orderBy?: PlatformServiceBindingOrderBy[]; + }; platformWebhookEndpointsByNamespaceId?: { select: PlatformWebhookEndpointSelect; first?: number; @@ -5368,12 +5413,23 @@ export type PlatformNamespaceEventSelect = { export type PlatformProposalCommentSelect = { actorId?: boolean; attachments?: boolean; + attachmentsUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + attachmentsVersions?: { + select: FileVersionSelect; + }; body?: boolean; bodyTrgmSimilarity?: boolean; createdAt?: boolean; createdBy?: boolean; createdByPrincipal?: boolean; embedding?: boolean; + embeddingModel?: boolean; + embeddingModelTrgmSimilarity?: boolean; embeddingUpdatedAt?: boolean; embeddingVectorDistance?: boolean; id?: boolean; @@ -5411,6 +5467,8 @@ export type PlatformProposalSelect = { decidedAt?: boolean; dueAt?: boolean; embedding?: boolean; + embeddingModel?: boolean; + embeddingModelTrgmSimilarity?: boolean; embeddingUpdatedAt?: boolean; embeddingVectorDistance?: boolean; id?: boolean; @@ -5648,6 +5706,8 @@ export type PlatformRepositorySelect = { description?: boolean; descriptionTrgmSimilarity?: boolean; embedding?: boolean; + embeddingModel?: boolean; + embeddingModelTrgmSimilarity?: boolean; embeddingUpdatedAt?: boolean; embeddingVectorDistance?: boolean; externalId?: boolean; @@ -5798,8 +5858,12 @@ export type PlatformResourceSelect = { namespaceId?: boolean; realm?: boolean; replicas?: boolean; - requiredConfigs?: boolean; - requiredSecrets?: boolean; + requiredConfigs?: { + select: ResourceRequirementSelect; + }; + requiredSecrets?: { + select: ResourceRequirementSelect; + }; resourceDefinitionId?: boolean; slug?: boolean; spec?: boolean; @@ -5857,8 +5921,12 @@ export type PlatformResourceDefinitionSelect = { name?: boolean; namespaceId?: boolean; paramsSchema?: boolean; - requiredConfigs?: boolean; - requiredSecrets?: boolean; + requiredConfigs?: { + select: ResourceRequirementSelect; + }; + requiredSecrets?: { + select: ResourceRequirementSelect; + }; slug?: boolean; stepUpMinAge?: boolean; updatedAt?: boolean; @@ -6012,8 +6080,12 @@ export type PlatformResourcesHealthSelect = { namespaceId?: boolean; realm?: boolean; replicas?: boolean; - requiredConfigs?: boolean; - requiredSecrets?: boolean; + requiredConfigs?: { + select: ResourceRequirementSelect; + }; + requiredSecrets?: { + select: ResourceRequirementSelect; + }; resourceDefinitionId?: boolean; slug?: boolean; spec?: boolean; @@ -6049,6 +6121,27 @@ export type PlatformResourcesResolvedRequirementSelect = { secretsObjectName?: boolean; slug?: boolean; }; +export type PlatformServiceBindingSelect = { + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + id?: boolean; + installationId?: boolean; + installationScope?: boolean; + kind?: boolean; + lastError?: boolean; + metadata?: boolean; + namespaceId?: boolean; + observedHost?: boolean; + realm?: boolean; + status?: boolean; + updatedAt?: boolean; + updatedBy?: boolean; + updatedByPrincipal?: boolean; + namespace?: { + select: PlatformNamespaceSelect; + }; +}; export type PlatformWebhookEndpointSelect = { active?: boolean; createdAt?: boolean; @@ -6098,6 +6191,15 @@ export type PlatformWebhookEventSelect = { export type ProposalCommentSelect = { actorId?: boolean; attachments?: boolean; + attachmentsUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + attachmentsVersions?: { + select: FileVersionSelect; + }; body?: boolean; bodyTrgmSimilarity?: boolean; createdAt?: boolean; @@ -6105,6 +6207,8 @@ export type ProposalCommentSelect = { createdByPrincipal?: boolean; databaseId?: boolean; embedding?: boolean; + embeddingModel?: boolean; + embeddingModelTrgmSimilarity?: boolean; embeddingUpdatedAt?: boolean; embeddingVectorDistance?: boolean; id?: boolean; @@ -6143,6 +6247,8 @@ export type ProposalSelect = { decidedAt?: boolean; dueAt?: boolean; embedding?: boolean; + embeddingModel?: boolean; + embeddingModelTrgmSimilarity?: boolean; embeddingUpdatedAt?: boolean; embeddingVectorDistance?: boolean; id?: boolean; @@ -6315,7 +6421,7 @@ export type RegistryBindingSelect = { updatedAt?: boolean; updatedBy?: boolean; updatedByPrincipal?: boolean; - namespace?: { + namespaceByNamespaceIdAndDatabaseId?: { select: NamespaceSelect; }; registry?: { @@ -6388,6 +6494,8 @@ export type RepositorySelect = { description?: boolean; descriptionTrgmSimilarity?: boolean; embedding?: boolean; + embeddingModel?: boolean; + embeddingModelTrgmSimilarity?: boolean; embeddingUpdatedAt?: boolean; embeddingVectorDistance?: boolean; externalId?: boolean; @@ -6542,8 +6650,12 @@ export type ResourceSelect = { namespaceId?: boolean; realm?: boolean; replicas?: boolean; - requiredConfigs?: boolean; - requiredSecrets?: boolean; + requiredConfigs?: { + select: ResourceRequirementSelect; + }; + requiredSecrets?: { + select: ResourceRequirementSelect; + }; resourceDefinitionId?: boolean; slug?: boolean; spec?: boolean; @@ -6558,7 +6670,7 @@ export type ResourceSelect = { installation?: { select: ResourceInstallationSelect; }; - namespace?: { + namespaceByNamespaceIdAndDatabaseId?: { select: NamespaceSelect; }; resourceDefinition?: { @@ -6602,14 +6714,18 @@ export type ResourceDefinitionSelect = { name?: boolean; namespaceId?: boolean; paramsSchema?: boolean; - requiredConfigs?: boolean; - requiredSecrets?: boolean; + requiredConfigs?: { + select: ResourceRequirementSelect; + }; + requiredSecrets?: { + select: ResourceRequirementSelect; + }; slug?: boolean; stepUpMinAge?: boolean; updatedAt?: boolean; updatedBy?: boolean; updatedByPrincipal?: boolean; - namespace?: { + namespaceByNamespaceIdAndDatabaseId?: { select: NamespaceSelect; }; resources?: { @@ -6646,7 +6762,7 @@ export type ResourceInstallationSelect = { updatedAt?: boolean; updatedBy?: boolean; updatedByPrincipal?: boolean; - namespace?: { + namespaceByNamespaceIdAndDatabaseId?: { select: NamespaceSelect; }; registriesByInstallationId?: { @@ -6763,8 +6879,12 @@ export type ResourcesHealthSelect = { namespaceId?: boolean; realm?: boolean; replicas?: boolean; - requiredConfigs?: boolean; - requiredSecrets?: boolean; + requiredConfigs?: { + select: ResourceRequirementSelect; + }; + requiredSecrets?: { + select: ResourceRequirementSelect; + }; resourceDefinitionId?: boolean; slug?: boolean; spec?: boolean; @@ -6800,6 +6920,28 @@ export type ResourcesResolvedRequirementSelect = { secretsObjectName?: boolean; slug?: boolean; }; +export type ServiceBindingSelect = { + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + databaseId?: boolean; + id?: boolean; + installationId?: boolean; + installationScope?: boolean; + kind?: boolean; + lastError?: boolean; + metadata?: boolean; + namespaceId?: boolean; + observedHost?: boolean; + realm?: boolean; + status?: boolean; + updatedAt?: boolean; + updatedBy?: boolean; + updatedByPrincipal?: boolean; + namespaceByNamespaceIdAndDatabaseId?: { + select: NamespaceSelect; + }; +}; export type WebhookEndpointSelect = { active?: boolean; createdAt?: boolean; @@ -6820,7 +6962,7 @@ export type WebhookEndpointSelect = { functionDefinition?: { select: FunctionDefinitionSelect; }; - namespace?: { + namespaceByNamespaceIdAndDatabaseId?: { select: NamespaceSelect; }; webhookEventsByEndpointId?: { @@ -6957,46 +7099,6 @@ export interface BuildStepFilter { /** Filter by the object’s `summary` field. */ summary?: JSONFilter; } -export interface BuilderBindingFilter { - /** Checks for all expressions in this list. */ - and?: BuilderBindingFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `createdByPrincipal` field. */ - createdByPrincipal?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `installationId` field. */ - installationId?: UUIDFilter; - /** Filter by the object’s `lastError` field. */ - lastError?: StringFilter; - /** Filter by the object’s `metadata` field. */ - metadata?: JSONFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Negates the expression. */ - not?: BuilderBindingFilter; - /** Filter by the object’s `observedHost` field. */ - observedHost?: StringFilter; - /** Checks for any expressions in this list. */ - or?: BuilderBindingFilter[]; - /** Filter by the object’s `realm` field. */ - realm?: StringFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `updatedByPrincipal` field. */ - updatedByPrincipal?: UUIDFilter; -} export interface ContentPresetFilter { /** Filter by the object’s `active` field. */ active?: BooleanFilter; @@ -7557,8 +7659,8 @@ export interface FunctionDeploymentFilter { lastError?: StringFilter; /** Filter by the object’s `lastErrorAt` field. */ lastErrorAt?: DatetimeFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -8271,10 +8373,6 @@ export interface NamespaceFilter { and?: NamespaceFilter[]; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; - /** Filter by the object’s `builderBindings` relation. */ - builderBindings?: NamespaceToManyBuilderBindingFilter; - /** `builderBindings` exist. */ - builderBindingsExist?: boolean; /** Filter by the object’s `clusterId` field. */ clusterId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -8283,10 +8381,10 @@ export interface NamespaceFilter { databaseId?: UUIDFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; - /** Filter by the object’s `functionDeployments` relation. */ - functionDeployments?: NamespaceToManyFunctionDeploymentFilter; - /** `functionDeployments` exist. */ - functionDeploymentsExist?: boolean; + /** Filter by the object’s `functionDeploymentsByNamespaceIdAndDatabaseId` relation. */ + functionDeploymentsByNamespaceIdAndDatabaseId?: NamespaceToManyFunctionDeploymentFilter; + /** `functionDeploymentsByNamespaceIdAndDatabaseId` exist. */ + functionDeploymentsByNamespaceIdAndDatabaseIdExist?: boolean; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isActive` field. */ @@ -8305,30 +8403,34 @@ export interface NamespaceFilter { not?: NamespaceFilter; /** Checks for any expressions in this list. */ or?: NamespaceFilter[]; - /** Filter by the object’s `registryBindings` relation. */ - registryBindings?: NamespaceToManyRegistryBindingFilter; - /** `registryBindings` exist. */ - registryBindingsExist?: boolean; - /** Filter by the object’s `resourceDefinitions` relation. */ - resourceDefinitions?: NamespaceToManyResourceDefinitionFilter; - /** `resourceDefinitions` exist. */ - resourceDefinitionsExist?: boolean; - /** Filter by the object’s `resourceInstallations` relation. */ - resourceInstallations?: NamespaceToManyResourceInstallationFilter; - /** `resourceInstallations` exist. */ - resourceInstallationsExist?: boolean; - /** Filter by the object’s `resources` relation. */ - resources?: NamespaceToManyResourceFilter; - /** `resources` exist. */ - resourcesExist?: boolean; + /** Filter by the object’s `registryBindingsByNamespaceIdAndDatabaseId` relation. */ + registryBindingsByNamespaceIdAndDatabaseId?: NamespaceToManyRegistryBindingFilter; + /** `registryBindingsByNamespaceIdAndDatabaseId` exist. */ + registryBindingsByNamespaceIdAndDatabaseIdExist?: boolean; + /** Filter by the object’s `resourceDefinitionsByNamespaceIdAndDatabaseId` relation. */ + resourceDefinitionsByNamespaceIdAndDatabaseId?: NamespaceToManyResourceDefinitionFilter; + /** `resourceDefinitionsByNamespaceIdAndDatabaseId` exist. */ + resourceDefinitionsByNamespaceIdAndDatabaseIdExist?: boolean; + /** Filter by the object’s `resourceInstallationsByNamespaceIdAndDatabaseId` relation. */ + resourceInstallationsByNamespaceIdAndDatabaseId?: NamespaceToManyResourceInstallationFilter; + /** `resourceInstallationsByNamespaceIdAndDatabaseId` exist. */ + resourceInstallationsByNamespaceIdAndDatabaseIdExist?: boolean; + /** Filter by the object’s `resourcesByNamespaceIdAndDatabaseId` relation. */ + resourcesByNamespaceIdAndDatabaseId?: NamespaceToManyResourceFilter; + /** `resourcesByNamespaceIdAndDatabaseId` exist. */ + resourcesByNamespaceIdAndDatabaseIdExist?: boolean; + /** Filter by the object’s `serviceBindingsByNamespaceIdAndDatabaseId` relation. */ + serviceBindingsByNamespaceIdAndDatabaseId?: NamespaceToManyServiceBindingFilter; + /** `serviceBindingsByNamespaceIdAndDatabaseId` exist. */ + serviceBindingsByNamespaceIdAndDatabaseIdExist?: boolean; /** Filter by the object’s `status` field. */ status?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; - /** Filter by the object’s `webhookEndpoints` relation. */ - webhookEndpoints?: NamespaceToManyWebhookEndpointFilter; - /** `webhookEndpoints` exist. */ - webhookEndpointsExist?: boolean; + /** Filter by the object’s `webhookEndpointsByNamespaceIdAndDatabaseId` relation. */ + webhookEndpointsByNamespaceIdAndDatabaseId?: NamespaceToManyWebhookEndpointFilter; + /** `webhookEndpointsByNamespaceIdAndDatabaseId` exist. */ + webhookEndpointsByNamespaceIdAndDatabaseIdExist?: boolean; } export interface NamespaceEventFilter { /** Filter by the object’s `actorId` field. */ @@ -8458,44 +8560,6 @@ export interface PlatformBuildStepFilter { /** Filter by the object’s `summary` field. */ summary?: JSONFilter; } -export interface PlatformBuilderBindingFilter { - /** Checks for all expressions in this list. */ - and?: PlatformBuilderBindingFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `createdByPrincipal` field. */ - createdByPrincipal?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `installationId` field. */ - installationId?: UUIDFilter; - /** Filter by the object’s `lastError` field. */ - lastError?: StringFilter; - /** Filter by the object’s `metadata` field. */ - metadata?: JSONFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: PlatformNamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Negates the expression. */ - not?: PlatformBuilderBindingFilter; - /** Filter by the object’s `observedHost` field. */ - observedHost?: StringFilter; - /** Checks for any expressions in this list. */ - or?: PlatformBuilderBindingFilter[]; - /** Filter by the object’s `realm` field. */ - realm?: StringFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `updatedByPrincipal` field. */ - updatedByPrincipal?: UUIDFilter; -} export interface PlatformFunctionApiBindingFilter { /** Filter by the object’s `alias` field. */ alias?: StringFilter; @@ -9166,10 +9230,6 @@ export interface PlatformNamespaceFilter { not?: PlatformNamespaceFilter; /** Checks for any expressions in this list. */ or?: PlatformNamespaceFilter[]; - /** Filter by the object’s `platformBuilderBindingsByNamespaceId` relation. */ - platformBuilderBindingsByNamespaceId?: PlatformNamespaceToManyPlatformBuilderBindingFilter; - /** `platformBuilderBindingsByNamespaceId` exist. */ - platformBuilderBindingsByNamespaceIdExist?: boolean; /** Filter by the object’s `platformFunctionDeploymentsByNamespaceId` relation. */ platformFunctionDeploymentsByNamespaceId?: PlatformNamespaceToManyPlatformFunctionDeploymentFilter; /** `platformFunctionDeploymentsByNamespaceId` exist. */ @@ -9190,6 +9250,10 @@ export interface PlatformNamespaceFilter { platformResourcesByNamespaceId?: PlatformNamespaceToManyPlatformResourceFilter; /** `platformResourcesByNamespaceId` exist. */ platformResourcesByNamespaceIdExist?: boolean; + /** Filter by the object’s `platformServiceBindingsByNamespaceId` relation. */ + platformServiceBindingsByNamespaceId?: PlatformNamespaceToManyPlatformServiceBindingFilter; + /** `platformServiceBindingsByNamespaceId` exist. */ + platformServiceBindingsByNamespaceIdExist?: boolean; /** Filter by the object’s `platformWebhookEndpointsByNamespaceId` relation. */ platformWebhookEndpointsByNamespaceId?: PlatformNamespaceToManyPlatformWebhookEndpointFilter; /** `platformWebhookEndpointsByNamespaceId` exist. */ @@ -9238,6 +9302,8 @@ export interface PlatformProposalCommentFilter { createdByPrincipal?: UUIDFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -9266,6 +9332,8 @@ export interface PlatformProposalCommentFilter { search?: FullTextFilter; /** TRGM search on the `body` column. */ trgmBody?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `path` column. */ trgmPath?: TrgmSearchInput; /** TSV search on the `search` column. */ @@ -9312,6 +9380,8 @@ export interface PlatformProposalFilter { dueAt?: DatetimeFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -9386,6 +9456,8 @@ export interface PlatformProposalFilter { trgmBody?: TrgmSearchInput; /** TRGM search on the `closed_reason` column. */ trgmClosedReason?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `kind` column. */ trgmKind?: TrgmSearchInput; /** TRGM search on the `merge_commit` column. */ @@ -9712,6 +9784,8 @@ export interface PlatformRepositoryFilter { description?: StringTrgmFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `externalId` field. */ @@ -9762,6 +9836,8 @@ export interface PlatformRepositoryFilter { trgmDefaultBranch?: TrgmSearchInput; /** TRGM search on the `description` column. */ trgmDescription?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `external_id` column. */ trgmExternalId?: TrgmSearchInput; /** TRGM search on the `name` column. */ @@ -10447,6 +10523,48 @@ export interface PlatformResourcesResolvedRequirementFilter { /** Filter by the object’s `slug` field. */ slug?: StringFilter; } +export interface PlatformServiceBindingFilter { + /** Checks for all expressions in this list. */ + and?: PlatformServiceBindingFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `installationScope` field. */ + installationScope?: StringFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformServiceBindingFilter; + /** Filter by the object’s `observedHost` field. */ + observedHost?: StringFilter; + /** Checks for any expressions in this list. */ + or?: PlatformServiceBindingFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} export interface PlatformWebhookEndpointFilter { /** Filter by the object’s `active` field. */ active?: BooleanFilter; @@ -10546,6 +10664,8 @@ export interface ProposalCommentFilter { databaseId?: UUIDFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -10574,6 +10694,8 @@ export interface ProposalCommentFilter { search?: FullTextFilter; /** TRGM search on the `body` column. */ trgmBody?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `path` column. */ trgmPath?: TrgmSearchInput; /** TSV search on the `search` column. */ @@ -10626,6 +10748,8 @@ export interface ProposalFilter { dueAt?: DatetimeFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -10696,6 +10820,8 @@ export interface ProposalFilter { trgmBody?: TrgmSearchInput; /** TRGM search on the `closed_reason` column. */ trgmClosedReason?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `kind` column. */ trgmKind?: TrgmSearchInput; /** TRGM search on the `merge_commit` column. */ @@ -10896,8 +11022,8 @@ export interface RegistryBindingFilter { id?: UUIDFilter; /** Filter by the object’s `metadata` field. */ metadata?: JSONFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -11042,6 +11168,8 @@ export interface RepositoryFilter { description?: StringTrgmFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `externalId` field. */ @@ -11088,6 +11216,8 @@ export interface RepositoryFilter { trgmDefaultBranch?: TrgmSearchInput; /** TRGM search on the `description` column. */ trgmDescription?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `external_id` column. */ trgmExternalId?: TrgmSearchInput; /** TRGM search on the `name` column. */ @@ -11290,8 +11420,8 @@ export interface ResourceFilter { memoryRequestBytes?: BigIntFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -11396,8 +11526,8 @@ export interface ResourceDefinitionFilter { labels?: JSONFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -11462,8 +11592,8 @@ export interface ResourceInstallationFilter { id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -11795,6 +11925,50 @@ export interface ResourcesResolvedRequirementFilter { /** Filter by the object’s `slug` field. */ slug?: StringFilter; } +export interface ServiceBindingFilter { + /** Checks for all expressions in this list. */ + and?: ServiceBindingFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `installationScope` field. */ + installationScope?: StringFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: ServiceBindingFilter; + /** Filter by the object’s `observedHost` field. */ + observedHost?: StringFilter; + /** Checks for any expressions in this list. */ + or?: ServiceBindingFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} export interface WebhookEndpointFilter { /** Filter by the object’s `active` field. */ active?: BooleanFilter; @@ -11816,8 +11990,8 @@ export interface WebhookEndpointFilter { host?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -11966,40 +12140,6 @@ export type BuildStepOrderBy = | 'STATUS_DESC' | 'SUMMARY_ASC' | 'SUMMARY_DESC'; -export type BuilderBindingOrderBy = - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'CREATED_BY_PRINCIPAL_ASC' - | 'CREATED_BY_PRINCIPAL_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'INSTALLATION_ID_ASC' - | 'INSTALLATION_ID_DESC' - | 'LAST_ERROR_ASC' - | 'LAST_ERROR_DESC' - | 'METADATA_ASC' - | 'METADATA_DESC' - | 'NAMESPACE_ID_ASC' - | 'NAMESPACE_ID_DESC' - | 'NATURAL' - | 'OBSERVED_HOST_ASC' - | 'OBSERVED_HOST_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'REALM_ASC' - | 'REALM_DESC' - | 'STATUS_ASC' - | 'STATUS_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'UPDATED_BY_PRINCIPAL_ASC' - | 'UPDATED_BY_PRINCIPAL_DESC'; export type ContentPresetOrderBy = | 'ACTIVE_ASC' | 'ACTIVE_DESC' @@ -13198,38 +13338,6 @@ export type PlatformBuildStepOrderBy = | 'STATUS_DESC' | 'SUMMARY_ASC' | 'SUMMARY_DESC'; -export type PlatformBuilderBindingOrderBy = - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'CREATED_BY_PRINCIPAL_ASC' - | 'CREATED_BY_PRINCIPAL_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'INSTALLATION_ID_ASC' - | 'INSTALLATION_ID_DESC' - | 'LAST_ERROR_ASC' - | 'LAST_ERROR_DESC' - | 'METADATA_ASC' - | 'METADATA_DESC' - | 'NAMESPACE_ID_ASC' - | 'NAMESPACE_ID_DESC' - | 'NATURAL' - | 'OBSERVED_HOST_ASC' - | 'OBSERVED_HOST_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'REALM_ASC' - | 'REALM_DESC' - | 'STATUS_ASC' - | 'STATUS_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'UPDATED_BY_PRINCIPAL_ASC' - | 'UPDATED_BY_PRINCIPAL_DESC'; export type PlatformFunctionApiBindingOrderBy = | 'ALIAS_ASC' | 'ALIAS_DESC' @@ -13829,6 +13937,10 @@ export type PlatformProposalCommentOrderBy = | 'CREATED_BY_PRINCIPAL_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_ASC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' @@ -13885,6 +13997,10 @@ export type PlatformProposalOrderBy = | 'DUE_AT_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_ASC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' @@ -14185,6 +14301,10 @@ export type PlatformRepositoryOrderBy = | 'DESCRIPTION_TRGM_SIMILARITY_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_ASC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' @@ -14766,6 +14886,42 @@ export type PlatformResourcesResolvedRequirementOrderBy = | 'SECRETS_OBJECT_NAME_DESC' | 'SLUG_ASC' | 'SLUG_DESC'; +export type PlatformServiceBindingOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'INSTALLATION_ID_ASC' + | 'INSTALLATION_ID_DESC' + | 'INSTALLATION_SCOPE_ASC' + | 'INSTALLATION_SCOPE_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'LAST_ERROR_ASC' + | 'LAST_ERROR_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'NATURAL' + | 'OBSERVED_HOST_ASC' + | 'OBSERVED_HOST_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REALM_ASC' + | 'REALM_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type PlatformWebhookEndpointOrderBy = | 'ACTIVE_ASC' | 'ACTIVE_DESC' @@ -14847,6 +15003,10 @@ export type ProposalCommentOrderBy = | 'DATABASE_ID_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_ASC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' @@ -14905,6 +15065,10 @@ export type ProposalOrderBy = | 'DUE_AT_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_ASC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' @@ -15221,6 +15385,10 @@ export type RepositoryOrderBy = | 'DESCRIPTION_TRGM_SIMILARITY_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_ASC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' @@ -15824,6 +15992,44 @@ export type ResourcesResolvedRequirementOrderBy = | 'SECRETS_OBJECT_NAME_DESC' | 'SLUG_ASC' | 'SLUG_DESC'; +export type ServiceBindingOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'INSTALLATION_ID_ASC' + | 'INSTALLATION_ID_DESC' + | 'INSTALLATION_SCOPE_ASC' + | 'INSTALLATION_SCOPE_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'LAST_ERROR_ASC' + | 'LAST_ERROR_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'NATURAL' + | 'OBSERVED_HOST_ASC' + | 'OBSERVED_HOST_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REALM_ASC' + | 'REALM_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type WebhookEndpointOrderBy = | 'ACTIVE_ASC' | 'ACTIVE_DESC' @@ -15927,7 +16133,6 @@ export interface BuildPatch { imageRef?: string | null; jobId?: string | null; logs?: ConstructiveInternalTypeUpload | null; - logsUpload?: File | null; matrixKey?: string | null; metadata?: Record | null; proposalId?: string | null; @@ -15992,46 +16197,6 @@ export interface DeleteBuildStepInput { clientMutationId?: string; id: string; } -export interface CreateBuilderBindingInput { - clientMutationId?: string; - builderBinding: { - createdBy?: string; - createdByPrincipal?: string; - databaseId: string; - installationId: string; - lastError?: string; - metadata?: Record; - namespaceId: string; - observedHost?: string; - realm?: string; - status?: string; - updatedBy?: string; - updatedByPrincipal?: string; - }; -} -export interface BuilderBindingPatch { - createdBy?: string | null; - createdByPrincipal?: string | null; - databaseId?: string | null; - installationId?: string | null; - lastError?: string | null; - metadata?: Record | null; - namespaceId?: string | null; - observedHost?: string | null; - realm?: string | null; - status?: string | null; - updatedBy?: string | null; - updatedByPrincipal?: string | null; -} -export interface UpdateBuilderBindingInput { - clientMutationId?: string; - id: string; - builderBindingPatch: BuilderBindingPatch; -} -export interface DeleteBuilderBindingInput { - clientMutationId?: string; - id: string; -} export interface CreateContentPresetInput { clientMutationId?: string; contentPreset: { @@ -16064,20 +16229,6 @@ export interface DeleteContentPresetInput { clientMutationId?: string; id: string; } -export interface CreateDatabaseFunctionGraphInput { - clientMutationId?: string; - databaseFunctionGraph: { - context?: string; - createdBy?: string; - databaseId: string; - definitionsCommitId: string; - description?: string; - isValid?: boolean; - name?: string; - storeId: string; - validationErrors?: Record; - }; -} export interface DatabaseFunctionGraphPatch { context?: string | null; createdBy?: string | null; @@ -16304,13 +16455,6 @@ export interface DeleteDatabaseGraphCommitInput { clientMutationId?: string; id: string; } -export interface CreateDatabaseGraphGetAllTreeNodesRecordInput { - clientMutationId?: string; - databaseGraphGetAllTreeNodesRecord: { - data?: Record; - path?: string[]; - }; -} export interface DatabaseGraphGetAllTreeNodesRecordPatch { data?: Record | null; path?: string[] | null; @@ -16726,20 +16870,6 @@ export interface DeleteFunctionGraphCommitInput { clientMutationId?: string; id: string; } -export interface CreateFunctionGraphInput { - clientMutationId?: string; - functionGraph: { - context?: string; - createdBy?: string; - definitionsCommitId: string; - description?: string; - isValid?: boolean; - name?: string; - scopeId: string; - storeId: string; - validationErrors?: Record; - }; -} export interface FunctionGraphPatch { context?: string | null; createdBy?: string | null; @@ -17144,13 +17274,6 @@ export interface DeleteFunctionScheduleInput { clientMutationId?: string; id: string; } -export interface CreateGetAllTreeNodesRecordInput { - clientMutationId?: string; - getAllTreeNodesRecord: { - data?: Record; - path?: string[]; - }; -} export interface GetAllTreeNodesRecordPatch { data?: Record | null; path?: string[] | null; @@ -17278,13 +17401,6 @@ export interface DeleteInfraCommitInput { clientMutationId?: string; id: string; } -export interface CreateInfraGetAllTreeNodesRecordInput { - clientMutationId?: string; - infraGetAllTreeNodesRecord: { - data?: Record; - path?: string[]; - }; -} export interface InfraGetAllTreeNodesRecordPatch { data?: Record | null; path?: string[] | null; @@ -17388,7 +17504,6 @@ export interface IntegrationProviderPatch { description?: string | null; icon?: string | null; logo?: ConstructiveInternalTypeImage | null; - logoUpload?: File | null; name?: string | null; requiredConfigs?: ResourceRequirementInput[] | null; requiredSecrets?: ResourceRequirementInput[] | null; @@ -17504,7 +17619,6 @@ export interface PlatformBuildPatch { imageRef?: string | null; jobId?: string | null; logs?: ConstructiveInternalTypeUpload | null; - logsUpload?: File | null; matrixKey?: string | null; metadata?: Record | null; proposalId?: string | null; @@ -17568,44 +17682,6 @@ export interface DeletePlatformBuildStepInput { clientMutationId?: string; id: string; } -export interface CreatePlatformBuilderBindingInput { - clientMutationId?: string; - platformBuilderBinding: { - createdBy?: string; - createdByPrincipal?: string; - installationId: string; - lastError?: string; - metadata?: Record; - namespaceId: string; - observedHost?: string; - realm?: string; - status?: string; - updatedBy?: string; - updatedByPrincipal?: string; - }; -} -export interface PlatformBuilderBindingPatch { - createdBy?: string | null; - createdByPrincipal?: string | null; - installationId?: string | null; - lastError?: string | null; - metadata?: Record | null; - namespaceId?: string | null; - observedHost?: string | null; - realm?: string | null; - status?: string | null; - updatedBy?: string | null; - updatedByPrincipal?: string | null; -} -export interface UpdatePlatformBuilderBindingInput { - clientMutationId?: string; - id: string; - platformBuilderBindingPatch: PlatformBuilderBindingPatch; -} -export interface DeletePlatformBuilderBindingInput { - clientMutationId?: string; - id: string; -} export interface CreatePlatformFunctionApiBindingInput { clientMutationId?: string; platformFunctionApiBinding: { @@ -18114,13 +18190,6 @@ export interface DeletePlatformInfraCommitInput { clientMutationId?: string; id: string; } -export interface CreatePlatformInfraGetAllTreeNodesRecordInput { - clientMutationId?: string; - platformInfraGetAllTreeNodesRecord: { - data?: Record; - path?: string[]; - }; -} export interface PlatformInfraGetAllTreeNodesRecordPatch { data?: Record | null; path?: string[] | null; @@ -18892,25 +18961,6 @@ export interface DeletePlatformResourceInput { clientMutationId?: string; id: string; } -export interface CreatePlatformResourceDeclaredCapacityInput { - clientMutationId?: string; - platformResourceDeclaredCapacity: { - cpuLimitMillicores?: string; - cpuRequestMillicores?: string; - installationId: string; - isTransient?: boolean; - kind?: string; - memoryLimitBytes?: string; - memoryRequestBytes?: string; - namespaceId: string; - podCountMax?: number; - podCountMin?: number; - source?: string; - sourceId: string; - storageSizeBytes?: string; - storageTotalBytes?: string; - }; -} export interface PlatformResourceDeclaredCapacityPatch { cpuLimitMillicores?: string | null; cpuRequestMillicores?: string | null; @@ -19052,29 +19102,6 @@ export interface DeletePlatformResourceInstallationInput { clientMutationId?: string; id: string; } -export interface CreatePlatformResourceObservedStorageInput { - clientMutationId?: string; - platformResourceObservedStorage: { - capacity?: string; - capacityBytes?: string; - claimName?: string; - declaredStorageClass?: string; - declaredStorageSizeBytes?: string; - declaredStorageTotalBytes?: string; - installationId: string; - isBound?: boolean; - kind?: string; - namespaceId: string; - phase?: string; - requested?: string; - requestedBytes?: string; - resourceId: string; - resourceStatus?: string; - slug?: string; - storageClass?: string; - storageName?: string; - }; -} export interface PlatformResourceObservedStoragePatch { capacity?: string | null; capacityBytes?: string | null; @@ -19196,30 +19223,6 @@ export interface DeletePlatformResourceUsageSummaryInput { clientMutationId?: string; id: string; } -export interface CreatePlatformResourceUtilizationInput { - clientMutationId?: string; - platformResourceUtilization: { - avgMemoryBytes?: string; - cpuLimitMillicores?: string; - cpuPeakUtilization?: string; - cpuRequestHeadroomMillicores?: string; - cpuRequestMillicores?: string; - date?: string; - gbSeconds?: string; - kind?: string; - maxCpuMillicores?: string; - maxMemoryBytes?: string; - memoryLimitBytes?: string; - memoryPeakUtilization?: string; - memoryRequestBytes?: string; - memoryRequestHeadroomBytes?: string; - namespaceId: string; - replicas?: number; - resourceId: string; - runtimeSeconds?: string; - sampleCount?: number; - }; -} export interface PlatformResourceUtilizationPatch { avgMemoryBytes?: string | null; cpuLimitMillicores?: string | null; @@ -19250,43 +19253,6 @@ export interface DeletePlatformResourceUtilizationInput { clientMutationId?: string; id: string; } -export interface CreatePlatformResourcesHealthInput { - clientMutationId?: string; - platformResourcesHealth: { - annotations?: Record; - cpuLimitMillicores?: string; - cpuRequestMillicores?: string; - createdBy?: string; - createdByPrincipal?: string; - errorCount?: number; - imageRef?: string; - installationId: string; - integrations?: string[]; - kind?: string; - labels?: Record; - lastError?: string; - lastHeartbeatAt?: string; - memoryLimitBytes?: string; - memoryRequestBytes?: string; - name?: string; - namespaceId: string; - realm?: string; - replicas?: number; - requiredConfigs?: ResourceRequirement[]; - requiredSecrets?: ResourceRequirement[]; - resourceDefinitionId: string; - slug?: string; - spec?: Record; - status?: string; - statusDetail?: string; - statusObserved?: Record; - storageClass?: string; - storageSizeBytes?: string; - storageTotalBytes?: string; - updatedBy?: string; - updatedByPrincipal?: string; - }; -} export interface PlatformResourcesHealthPatch { annotations?: Record | null; cpuLimitMillicores?: string | null; @@ -19330,18 +19296,6 @@ export interface DeletePlatformResourcesHealthInput { clientMutationId?: string; id: string; } -export interface CreatePlatformResourcesRequirementsStateInput { - clientMutationId?: string; - platformResourcesRequirementsState: { - configHash?: string; - configObjectName?: string; - requirementsHash?: string; - resourceId: string; - secretsHash?: string; - secretsObjectName?: string; - slug?: string; - }; -} export interface PlatformResourcesRequirementsStatePatch { configHash?: string | null; configObjectName?: string | null; @@ -19360,22 +19314,6 @@ export interface DeletePlatformResourcesRequirementsStateInput { clientMutationId?: string; id: string; } -export interface CreatePlatformResourcesResolvedRequirementInput { - clientMutationId?: string; - platformResourcesResolvedRequirement: { - atomId: string; - configObjectName?: string; - name?: string; - namespaceId: string; - present?: boolean; - realm?: string; - required?: boolean; - requirementKind?: string; - resourceId: string; - secretsObjectName?: string; - slug?: string; - }; -} export interface PlatformResourcesResolvedRequirementPatch { atomId?: string | null; configObjectName?: string | null; @@ -19398,6 +19336,48 @@ export interface DeletePlatformResourcesResolvedRequirementInput { clientMutationId?: string; id: string; } +export interface CreatePlatformServiceBindingInput { + clientMutationId?: string; + platformServiceBinding: { + createdBy?: string; + createdByPrincipal?: string; + installationId: string; + installationScope: string; + kind: string; + lastError?: string; + metadata?: Record; + namespaceId: string; + observedHost?: string; + realm?: string; + status?: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformServiceBindingPatch { + createdBy?: string | null; + createdByPrincipal?: string | null; + installationId?: string | null; + installationScope?: string | null; + kind?: string | null; + lastError?: string | null; + metadata?: Record | null; + namespaceId?: string | null; + observedHost?: string | null; + realm?: string | null; + status?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformServiceBindingInput { + clientMutationId?: string; + id: string; + platformServiceBindingPatch: PlatformServiceBindingPatch; +} +export interface DeletePlatformServiceBindingInput { + clientMutationId?: string; + id: string; +} export interface CreatePlatformWebhookEndpointInput { clientMutationId?: string; platformWebhookEndpoint: { @@ -20059,25 +20039,6 @@ export interface DeleteResourceInput { clientMutationId?: string; id: string; } -export interface CreateResourceDeclaredCapacityInput { - clientMutationId?: string; - resourceDeclaredCapacity: { - cpuLimitMillicores?: string; - cpuRequestMillicores?: string; - installationId: string; - isTransient?: boolean; - kind?: string; - memoryLimitBytes?: string; - memoryRequestBytes?: string; - namespaceId: string; - podCountMax?: number; - podCountMin?: number; - source?: string; - sourceId: string; - storageSizeBytes?: string; - storageTotalBytes?: string; - }; -} export interface ResourceDeclaredCapacityPatch { cpuLimitMillicores?: string | null; cpuRequestMillicores?: string | null; @@ -20225,29 +20186,6 @@ export interface DeleteResourceInstallationInput { clientMutationId?: string; id: string; } -export interface CreateResourceObservedStorageInput { - clientMutationId?: string; - resourceObservedStorage: { - capacity?: string; - capacityBytes?: string; - claimName?: string; - declaredStorageClass?: string; - declaredStorageSizeBytes?: string; - declaredStorageTotalBytes?: string; - installationId: string; - isBound?: boolean; - kind?: string; - namespaceId: string; - phase?: string; - requested?: string; - requestedBytes?: string; - resourceId: string; - resourceStatus?: string; - slug?: string; - storageClass?: string; - storageName?: string; - }; -} export interface ResourceObservedStoragePatch { capacity?: string | null; capacityBytes?: string | null; @@ -20375,30 +20313,6 @@ export interface DeleteResourceUsageSummaryInput { clientMutationId?: string; id: string; } -export interface CreateResourceUtilizationInput { - clientMutationId?: string; - resourceUtilization: { - avgMemoryBytes?: string; - cpuLimitMillicores?: string; - cpuPeakUtilization?: string; - cpuRequestHeadroomMillicores?: string; - cpuRequestMillicores?: string; - date?: string; - gbSeconds?: string; - kind?: string; - maxCpuMillicores?: string; - maxMemoryBytes?: string; - memoryLimitBytes?: string; - memoryPeakUtilization?: string; - memoryRequestBytes?: string; - memoryRequestHeadroomBytes?: string; - namespaceId: string; - replicas?: number; - resourceId: string; - runtimeSeconds?: string; - sampleCount?: number; - }; -} export interface ResourceUtilizationPatch { avgMemoryBytes?: string | null; cpuLimitMillicores?: string | null; @@ -20429,44 +20343,6 @@ export interface DeleteResourceUtilizationInput { clientMutationId?: string; id: string; } -export interface CreateResourcesHealthInput { - clientMutationId?: string; - resourcesHealth: { - annotations?: Record; - cpuLimitMillicores?: string; - cpuRequestMillicores?: string; - createdBy?: string; - createdByPrincipal?: string; - databaseId: string; - errorCount?: number; - imageRef?: string; - installationId: string; - integrations?: string[]; - kind?: string; - labels?: Record; - lastError?: string; - lastHeartbeatAt?: string; - memoryLimitBytes?: string; - memoryRequestBytes?: string; - name?: string; - namespaceId: string; - realm?: string; - replicas?: number; - requiredConfigs?: ResourceRequirement[]; - requiredSecrets?: ResourceRequirement[]; - resourceDefinitionId: string; - slug?: string; - spec?: Record; - status?: string; - statusDetail?: string; - statusObserved?: Record; - storageClass?: string; - storageSizeBytes?: string; - storageTotalBytes?: string; - updatedBy?: string; - updatedByPrincipal?: string; - }; -} export interface ResourcesHealthPatch { annotations?: Record | null; cpuLimitMillicores?: string | null; @@ -20511,18 +20387,6 @@ export interface DeleteResourcesHealthInput { clientMutationId?: string; id: string; } -export interface CreateResourcesRequirementsStateInput { - clientMutationId?: string; - resourcesRequirementsState: { - configHash?: string; - configObjectName?: string; - requirementsHash?: string; - resourceId: string; - secretsHash?: string; - secretsObjectName?: string; - slug?: string; - }; -} export interface ResourcesRequirementsStatePatch { configHash?: string | null; configObjectName?: string | null; @@ -20541,22 +20405,6 @@ export interface DeleteResourcesRequirementsStateInput { clientMutationId?: string; id: string; } -export interface CreateResourcesResolvedRequirementInput { - clientMutationId?: string; - resourcesResolvedRequirement: { - atomId: string; - configObjectName?: string; - name?: string; - namespaceId: string; - present?: boolean; - realm?: string; - required?: boolean; - requirementKind?: string; - resourceId: string; - secretsObjectName?: string; - slug?: string; - }; -} export interface ResourcesResolvedRequirementPatch { atomId?: string | null; configObjectName?: string | null; @@ -20579,6 +20427,50 @@ export interface DeleteResourcesResolvedRequirementInput { clientMutationId?: string; id: string; } +export interface CreateServiceBindingInput { + clientMutationId?: string; + serviceBinding: { + createdBy?: string; + createdByPrincipal?: string; + databaseId: string; + installationId: string; + installationScope: string; + kind: string; + lastError?: string; + metadata?: Record; + namespaceId: string; + observedHost?: string; + realm?: string; + status?: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface ServiceBindingPatch { + createdBy?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + installationId?: string | null; + installationScope?: string | null; + kind?: string | null; + lastError?: string | null; + metadata?: Record | null; + namespaceId?: string | null; + observedHost?: string | null; + realm?: string | null; + status?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdateServiceBindingInput { + clientMutationId?: string; + id: string; + serviceBindingPatch: ServiceBindingPatch; +} +export interface DeleteServiceBindingInput { + clientMutationId?: string; + id: string; +} export interface CreateWebhookEndpointInput { clientMutationId?: string; webhookEndpoint: { @@ -20682,13 +20574,13 @@ export const connectionFieldsMap = { imageGrants: 'ImageGrant', }, Namespace: { - builderBindings: 'BuilderBinding', - functionDeployments: 'FunctionDeployment', - registryBindings: 'RegistryBinding', - resourceDefinitions: 'ResourceDefinition', - resourceInstallations: 'ResourceInstallation', - resources: 'Resource', - webhookEndpoints: 'WebhookEndpoint', + functionDeploymentsByNamespaceIdAndDatabaseId: 'FunctionDeployment', + registryBindingsByNamespaceIdAndDatabaseId: 'RegistryBinding', + resourceDefinitionsByNamespaceIdAndDatabaseId: 'ResourceDefinition', + resourceInstallationsByNamespaceIdAndDatabaseId: 'ResourceInstallation', + resourcesByNamespaceIdAndDatabaseId: 'Resource', + serviceBindingsByNamespaceIdAndDatabaseId: 'ServiceBinding', + webhookEndpointsByNamespaceIdAndDatabaseId: 'WebhookEndpoint', }, PlatformFunctionApiBinding: { platformFunctionInvocationsByApiBindingId: 'PlatformFunctionInvocation', @@ -20703,12 +20595,12 @@ export const connectionFieldsMap = { platformImageGrantsByImageId: 'PlatformImageGrant', }, PlatformNamespace: { - platformBuilderBindingsByNamespaceId: 'PlatformBuilderBinding', platformFunctionDeploymentsByNamespaceId: 'PlatformFunctionDeployment', platformRegistryBindingsByNamespaceId: 'PlatformRegistryBinding', platformResourceDefinitionsByNamespaceId: 'PlatformResourceDefinition', platformResourceInstallationsByNamespaceId: 'PlatformResourceInstallation', platformResourcesByNamespaceId: 'PlatformResource', + platformServiceBindingsByNamespaceId: 'PlatformServiceBinding', platformWebhookEndpointsByNamespaceId: 'PlatformWebhookEndpoint', }, PlatformProposalComment: { @@ -20852,6 +20744,15 @@ export interface CopyGraphInput { name?: string; scopeId?: string; } +export interface CreateFunctionGraphInput { + clientMutationId?: string; + context?: string; + createdBy?: string; + definitionsCommitId?: string; + description?: string; + name?: string; + scopeId?: string; +} export interface DatabaseAddEdgeInput { clientMutationId?: string; context?: string; @@ -21488,15 +21389,6 @@ export interface ConstructiveInternalTypeImageFilter { /** Not included in the specified list. */ notIn?: ConstructiveInternalTypeImage[]; } -/** A filter to be used against many `BuilderBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface NamespaceToManyBuilderBindingFilter { - /** Filters to entities where every related entity matches. */ - every?: BuilderBindingFilter; - /** Filters to entities where no related entity matches. */ - none?: BuilderBindingFilter; - /** Filters to entities where at least one related entity matches. */ - some?: BuilderBindingFilter; -} /** A filter to be used against many `FunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ export interface NamespaceToManyFunctionDeploymentFilter { /** Filters to entities where every related entity matches. */ @@ -21542,6 +21434,15 @@ export interface NamespaceToManyResourceFilter { /** Filters to entities where at least one related entity matches. */ some?: ResourceFilter; } +/** A filter to be used against many `ServiceBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface NamespaceToManyServiceBindingFilter { + /** Filters to entities where every related entity matches. */ + every?: ServiceBindingFilter; + /** Filters to entities where no related entity matches. */ + none?: ServiceBindingFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ServiceBindingFilter; +} /** A filter to be used against many `WebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ export interface NamespaceToManyWebhookEndpointFilter { /** Filters to entities where every related entity matches. */ @@ -21605,15 +21506,6 @@ export interface PlatformImageToManyPlatformImageGrantFilter { /** Filters to entities where at least one related entity matches. */ some?: PlatformImageGrantFilter; } -/** A filter to be used against many `PlatformBuilderBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformNamespaceToManyPlatformBuilderBindingFilter { - /** Filters to entities where every related entity matches. */ - every?: PlatformBuilderBindingFilter; - /** Filters to entities where no related entity matches. */ - none?: PlatformBuilderBindingFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlatformBuilderBindingFilter; -} /** A filter to be used against many `PlatformFunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformNamespaceToManyPlatformFunctionDeploymentFilter { /** Filters to entities where every related entity matches. */ @@ -21659,6 +21551,15 @@ export interface PlatformNamespaceToManyPlatformResourceFilter { /** Filters to entities where at least one related entity matches. */ some?: PlatformResourceFilter; } +/** A filter to be used against many `PlatformServiceBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformNamespaceToManyPlatformServiceBindingFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformServiceBindingFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformServiceBindingFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformServiceBindingFilter; +} /** A filter to be used against many `PlatformWebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformNamespaceToManyPlatformWebhookEndpointFilter { /** Filters to entities where every related entity matches. */ @@ -21812,10 +21713,12 @@ export interface VectorNearbyInput { includeChunks?: boolean; /** Similarity metric to use (default: COSINE). */ metric?: VectorMetric; - /** Natural language text to embed server-side for similarity search. Mutually exclusive with `vector` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** The model that produced `vector`. On a column that records the model of each row's vector, only rows embedded with this model are compared; vectors of two models are not comparable. Filled in server-side when `text` is embedded. */ + model?: string; + /** Natural language text to embed server-side for similarity search. Provide exactly one of `text` or `vector`; sending both or neither is an error. Blank text on its own counts as not given. Requires the LLM plugin to be configured with an embedding provider. */ text?: string; /** Query vector for similarity search. */ - vector: number[]; + vector?: number[]; } /** A filter to be used against many `PlatformProposal` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformProposalToManyPlatformProposalFilter { @@ -22322,32 +22225,6 @@ export interface BuildStepInput { /** Parsed detail: failure message, assertion diff, counts, annotations */ summary?: Record; } -/** An input for mutations affecting `BuilderBinding` */ -export interface BuilderBindingInput { - createdAt?: string; - createdBy?: string; - createdByPrincipal?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - id?: string; - /** BuildKit resource installation serving this binding; may belong to another resource scope */ - installationId: string; - /** Most recent projection failure */ - lastError?: string; - /** Reconciler detail (projection timestamps and diagnostics) */ - metadata?: Record; - /** Namespace whose builds use this BuildKit installation */ - namespaceId: string; - /** BuildKit address last projected into the namespace (NULL = never projected) */ - observedHost?: string; - /** Lane this binding applies to (NULL = the scope's default lane) */ - realm?: string; - /** Projection state of BUILDKIT_HOST: pending, active, failed */ - status?: string; - updatedAt?: string; - updatedBy?: string; - updatedByPrincipal?: string; -} /** An input for mutations affecting `ContentPreset` */ export interface ContentPresetInput { /** Whether this preset is selectable at provision time */ @@ -23384,30 +23261,6 @@ export interface PlatformBuildStepInput { /** Parsed detail: failure message, assertion diff, counts, annotations */ summary?: Record; } -/** An input for mutations affecting `PlatformBuilderBinding` */ -export interface PlatformBuilderBindingInput { - createdAt?: string; - createdBy?: string; - createdByPrincipal?: string; - id?: string; - /** BuildKit resource installation serving this binding; may belong to another resource scope */ - installationId: string; - /** Most recent projection failure */ - lastError?: string; - /** Reconciler detail (projection timestamps and diagnostics) */ - metadata?: Record; - /** Namespace whose builds use this BuildKit installation */ - namespaceId: string; - /** BuildKit address last projected into the namespace (NULL = never projected) */ - observedHost?: string; - /** Lane this binding applies to (NULL = the scope's default lane) */ - realm?: string; - /** Projection state of BUILDKIT_HOST: pending, active, failed */ - status?: string; - updatedAt?: string; - updatedBy?: string; - updatedByPrincipal?: string; -} /** An input for mutations affecting `PlatformFunctionApiBinding` */ export interface PlatformFunctionApiBindingInput { /** Binding alias (e.g. default, staging, production) */ @@ -23933,7 +23786,7 @@ export interface PlatformProposalCommentInput { createdBy?: string; createdByPrincipal?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; /** Line within path the comment is anchored to */ @@ -23966,7 +23819,7 @@ export interface PlatformProposalInput { /** When this is wanted by (NULL when nothing is promised) */ dueAt?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; /** issue (a report or plan), change (merge one ref into another), discussion (an open question), decision (a question answered) */ @@ -24065,7 +23918,7 @@ export interface PlatformProposalsChunkInput { chunkIndex?: number; createdAt?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; metadata?: Record; @@ -24166,7 +24019,7 @@ export interface PlatformRepositoryInput { /** What this repository holds */ description?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; /** Identifier of this repository in the external provider (NULL for local) */ externalId?: string; @@ -24460,6 +24313,34 @@ export interface PlatformResourceUsageSummaryInput { /** Number of raw samples aggregated into this summary */ sampleCount?: number; } +/** An input for mutations affecting `PlatformServiceBinding` */ +export interface PlatformServiceBindingInput { + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + id?: string; + /** Resource installation serving this binding, in the installations table of installation_scope */ + installationId: string; + /** Scope whose installations table holds installation_id: this scope or platform */ + installationScope: string; + /** Service this binding projects: builder (BUILDKIT_HOST) or git (GIT_PROVIDER + GIT_SERVICE_URL) */ + kind: string; + /** Most recent projection failure */ + lastError?: string; + /** Reconciler detail (projection timestamps and diagnostics) */ + metadata?: Record; + /** Namespace whose builds use this BuildKit installation */ + namespaceId: string; + /** Service address last projected into the namespace (NULL = never projected) */ + observedHost?: string; + /** Lane this binding applies to (NULL = the scope's default lane) */ + realm?: string; + /** Projection state of the bound address: pending, active, failed */ + status?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; +} /** An input for mutations affecting `PlatformWebhookEndpoint` */ export interface PlatformWebhookEndpointInput { /** Whether this endpoint currently accepts deliveries */ @@ -24522,7 +24403,7 @@ export interface ProposalCommentInput { createdBy?: string; createdByPrincipal?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; /** Line within path the comment is anchored to */ @@ -24555,7 +24436,7 @@ export interface ProposalInput { /** When this is wanted by (NULL when nothing is promised) */ dueAt?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; /** issue (a report or plan), change (merge one ref into another), discussion (an open question), decision (a question answered) */ @@ -24656,7 +24537,7 @@ export interface ProposalsChunkInput { /** Policy-required field derived from source table (used by AuthzRelatedEntityMembership) */ databaseId?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; metadata?: Record; @@ -24765,7 +24646,7 @@ export interface RepositoryInput { /** What this repository holds */ description?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; /** Identifier of this repository in the external provider (NULL for local) */ externalId?: string; @@ -25056,6 +24937,36 @@ export interface ResourceUsageSummaryInput { /** Number of raw samples aggregated into this summary */ sampleCount?: number; } +/** An input for mutations affecting `ServiceBinding` */ +export interface ServiceBindingInput { + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + id?: string; + /** Resource installation serving this binding, in the installations table of installation_scope */ + installationId: string; + /** Scope whose installations table holds installation_id: this scope or platform */ + installationScope: string; + /** Service this binding projects: builder (BUILDKIT_HOST) or git (GIT_PROVIDER + GIT_SERVICE_URL) */ + kind: string; + /** Most recent projection failure */ + lastError?: string; + /** Reconciler detail (projection timestamps and diagnostics) */ + metadata?: Record; + /** Namespace whose builds use this BuildKit installation */ + namespaceId: string; + /** Service address last projected into the namespace (NULL = never projected) */ + observedHost?: string; + /** Lane this binding applies to (NULL = the scope's default lane) */ + realm?: string; + /** Projection state of the bound address: pending, active, failed */ + status?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; +} /** An input for mutations affecting `WebhookEndpoint` */ export interface WebhookEndpointInput { /** Whether this endpoint currently accepts deliveries */ @@ -25555,8 +25466,8 @@ export interface WebhookEndpointFilter { host?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -25874,47 +25785,6 @@ export interface ImageGrantFilter { /** Filter by the object’s `updatedByPrincipal` field. */ updatedByPrincipal?: UUIDFilter; } -/** A filter to be used against `BuilderBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface BuilderBindingFilter { - /** Checks for all expressions in this list. */ - and?: BuilderBindingFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `createdByPrincipal` field. */ - createdByPrincipal?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `installationId` field. */ - installationId?: UUIDFilter; - /** Filter by the object’s `lastError` field. */ - lastError?: StringFilter; - /** Filter by the object’s `metadata` field. */ - metadata?: JSONFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Negates the expression. */ - not?: BuilderBindingFilter; - /** Filter by the object’s `observedHost` field. */ - observedHost?: StringFilter; - /** Checks for any expressions in this list. */ - or?: BuilderBindingFilter[]; - /** Filter by the object’s `realm` field. */ - realm?: StringFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `updatedByPrincipal` field. */ - updatedByPrincipal?: UUIDFilter; -} /** A filter to be used against `FunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ export interface FunctionDeploymentFilter { /** Checks for all expressions in this list. */ @@ -25945,8 +25815,8 @@ export interface FunctionDeploymentFilter { lastError?: StringFilter; /** Filter by the object’s `lastErrorAt` field. */ lastErrorAt?: DatetimeFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -25992,8 +25862,8 @@ export interface RegistryBindingFilter { id?: UUIDFilter; /** Filter by the object’s `metadata` field. */ metadata?: JSONFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -26049,8 +25919,8 @@ export interface ResourceDefinitionFilter { labels?: JSONFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -26092,8 +25962,8 @@ export interface ResourceInstallationFilter { id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -26171,8 +26041,8 @@ export interface ResourceFilter { memoryRequestBytes?: BigIntFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -26214,6 +26084,51 @@ export interface ResourceFilter { /** Filter by the object’s `updatedByPrincipal` field. */ updatedByPrincipal?: UUIDFilter; } +/** A filter to be used against `ServiceBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface ServiceBindingFilter { + /** Checks for all expressions in this list. */ + and?: ServiceBindingFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `installationScope` field. */ + installationScope?: StringFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: ServiceBindingFilter; + /** Filter by the object’s `observedHost` field. */ + observedHost?: StringFilter; + /** Checks for any expressions in this list. */ + or?: ServiceBindingFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} /** A filter to be used against `PlatformFunctionInvocation` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformFunctionInvocationFilter { /** Filter by the object’s `actorId` field. */ @@ -26456,45 +26371,6 @@ export interface PlatformImageGrantFilter { /** Filter by the object’s `updatedByPrincipal` field. */ updatedByPrincipal?: UUIDFilter; } -/** A filter to be used against `PlatformBuilderBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformBuilderBindingFilter { - /** Checks for all expressions in this list. */ - and?: PlatformBuilderBindingFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `createdByPrincipal` field. */ - createdByPrincipal?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `installationId` field. */ - installationId?: UUIDFilter; - /** Filter by the object’s `lastError` field. */ - lastError?: StringFilter; - /** Filter by the object’s `metadata` field. */ - metadata?: JSONFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: PlatformNamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Negates the expression. */ - not?: PlatformBuilderBindingFilter; - /** Filter by the object’s `observedHost` field. */ - observedHost?: StringFilter; - /** Checks for any expressions in this list. */ - or?: PlatformBuilderBindingFilter[]; - /** Filter by the object’s `realm` field. */ - realm?: StringFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `updatedByPrincipal` field. */ - updatedByPrincipal?: UUIDFilter; -} /** A filter to be used against `PlatformFunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformFunctionDeploymentFilter { /** Checks for all expressions in this list. */ @@ -26784,6 +26660,49 @@ export interface PlatformResourceFilter { /** Filter by the object’s `updatedByPrincipal` field. */ updatedByPrincipal?: UUIDFilter; } +/** A filter to be used against `PlatformServiceBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformServiceBindingFilter { + /** Checks for all expressions in this list. */ + and?: PlatformServiceBindingFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `installationScope` field. */ + installationScope?: StringFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformServiceBindingFilter; + /** Filter by the object’s `observedHost` field. */ + observedHost?: StringFilter; + /** Checks for any expressions in this list. */ + or?: PlatformServiceBindingFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} /** A filter to be used against `PlatformProposalReaction` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformProposalReactionFilter { /** Filter by the object’s `actorId` field. */ @@ -26845,6 +26764,8 @@ export interface PlatformProposalFilter { dueAt?: DatetimeFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -26919,6 +26840,8 @@ export interface PlatformProposalFilter { trgmBody?: TrgmSearchInput; /** TRGM search on the `closed_reason` column. */ trgmClosedReason?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `kind` column. */ trgmKind?: TrgmSearchInput; /** TRGM search on the `merge_commit` column. */ @@ -27039,6 +26962,8 @@ export interface PlatformProposalCommentFilter { createdByPrincipal?: UUIDFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -27067,6 +26992,8 @@ export interface PlatformProposalCommentFilter { search?: FullTextFilter; /** TRGM search on the `body` column. */ trgmBody?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `path` column. */ trgmPath?: TrgmSearchInput; /** TSV search on the `search` column. */ @@ -27553,6 +27480,8 @@ export interface ProposalFilter { dueAt?: DatetimeFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -27623,6 +27552,8 @@ export interface ProposalFilter { trgmBody?: TrgmSearchInput; /** TRGM search on the `closed_reason` column. */ trgmClosedReason?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `kind` column. */ trgmKind?: TrgmSearchInput; /** TRGM search on the `merge_commit` column. */ @@ -27678,6 +27609,8 @@ export interface ProposalCommentFilter { databaseId?: UUIDFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -27706,6 +27639,8 @@ export interface ProposalCommentFilter { search?: FullTextFilter; /** TRGM search on the `body` column. */ trgmBody?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `path` column. */ trgmPath?: TrgmSearchInput; /** TSV search on the `search` column. */ @@ -28419,6 +28354,8 @@ export interface RepositoryFilter { description?: StringTrgmFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `externalId` field. */ @@ -28465,6 +28402,8 @@ export interface RepositoryFilter { trgmDefaultBranch?: TrgmSearchInput; /** TRGM search on the `description` column. */ trgmDescription?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `external_id` column. */ trgmExternalId?: TrgmSearchInput; /** TRGM search on the `name` column. */ @@ -28502,10 +28441,6 @@ export interface NamespaceFilter { and?: NamespaceFilter[]; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; - /** Filter by the object’s `builderBindings` relation. */ - builderBindings?: NamespaceToManyBuilderBindingFilter; - /** `builderBindings` exist. */ - builderBindingsExist?: boolean; /** Filter by the object’s `clusterId` field. */ clusterId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -28514,10 +28449,10 @@ export interface NamespaceFilter { databaseId?: UUIDFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; - /** Filter by the object’s `functionDeployments` relation. */ - functionDeployments?: NamespaceToManyFunctionDeploymentFilter; - /** `functionDeployments` exist. */ - functionDeploymentsExist?: boolean; + /** Filter by the object’s `functionDeploymentsByNamespaceIdAndDatabaseId` relation. */ + functionDeploymentsByNamespaceIdAndDatabaseId?: NamespaceToManyFunctionDeploymentFilter; + /** `functionDeploymentsByNamespaceIdAndDatabaseId` exist. */ + functionDeploymentsByNamespaceIdAndDatabaseIdExist?: boolean; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isActive` field. */ @@ -28536,30 +28471,34 @@ export interface NamespaceFilter { not?: NamespaceFilter; /** Checks for any expressions in this list. */ or?: NamespaceFilter[]; - /** Filter by the object’s `registryBindings` relation. */ - registryBindings?: NamespaceToManyRegistryBindingFilter; - /** `registryBindings` exist. */ - registryBindingsExist?: boolean; - /** Filter by the object’s `resourceDefinitions` relation. */ - resourceDefinitions?: NamespaceToManyResourceDefinitionFilter; - /** `resourceDefinitions` exist. */ - resourceDefinitionsExist?: boolean; - /** Filter by the object’s `resourceInstallations` relation. */ - resourceInstallations?: NamespaceToManyResourceInstallationFilter; - /** `resourceInstallations` exist. */ - resourceInstallationsExist?: boolean; - /** Filter by the object’s `resources` relation. */ - resources?: NamespaceToManyResourceFilter; - /** `resources` exist. */ - resourcesExist?: boolean; + /** Filter by the object’s `registryBindingsByNamespaceIdAndDatabaseId` relation. */ + registryBindingsByNamespaceIdAndDatabaseId?: NamespaceToManyRegistryBindingFilter; + /** `registryBindingsByNamespaceIdAndDatabaseId` exist. */ + registryBindingsByNamespaceIdAndDatabaseIdExist?: boolean; + /** Filter by the object’s `resourceDefinitionsByNamespaceIdAndDatabaseId` relation. */ + resourceDefinitionsByNamespaceIdAndDatabaseId?: NamespaceToManyResourceDefinitionFilter; + /** `resourceDefinitionsByNamespaceIdAndDatabaseId` exist. */ + resourceDefinitionsByNamespaceIdAndDatabaseIdExist?: boolean; + /** Filter by the object’s `resourceInstallationsByNamespaceIdAndDatabaseId` relation. */ + resourceInstallationsByNamespaceIdAndDatabaseId?: NamespaceToManyResourceInstallationFilter; + /** `resourceInstallationsByNamespaceIdAndDatabaseId` exist. */ + resourceInstallationsByNamespaceIdAndDatabaseIdExist?: boolean; + /** Filter by the object’s `resourcesByNamespaceIdAndDatabaseId` relation. */ + resourcesByNamespaceIdAndDatabaseId?: NamespaceToManyResourceFilter; + /** `resourcesByNamespaceIdAndDatabaseId` exist. */ + resourcesByNamespaceIdAndDatabaseIdExist?: boolean; + /** Filter by the object’s `serviceBindingsByNamespaceIdAndDatabaseId` relation. */ + serviceBindingsByNamespaceIdAndDatabaseId?: NamespaceToManyServiceBindingFilter; + /** `serviceBindingsByNamespaceIdAndDatabaseId` exist. */ + serviceBindingsByNamespaceIdAndDatabaseIdExist?: boolean; /** Filter by the object’s `status` field. */ status?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; - /** Filter by the object’s `webhookEndpoints` relation. */ - webhookEndpoints?: NamespaceToManyWebhookEndpointFilter; - /** `webhookEndpoints` exist. */ - webhookEndpointsExist?: boolean; + /** Filter by the object’s `webhookEndpointsByNamespaceIdAndDatabaseId` relation. */ + webhookEndpointsByNamespaceIdAndDatabaseId?: NamespaceToManyWebhookEndpointFilter; + /** `webhookEndpointsByNamespaceIdAndDatabaseId` exist. */ + webhookEndpointsByNamespaceIdAndDatabaseIdExist?: boolean; } /** A filter to be used against `FunctionGraph` object types. All fields are combined with a logical ‘and.’ */ export interface FunctionGraphFilter { @@ -28624,6 +28563,8 @@ export interface PlatformRepositoryFilter { description?: StringTrgmFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `externalId` field. */ @@ -28674,6 +28615,8 @@ export interface PlatformRepositoryFilter { trgmDefaultBranch?: TrgmSearchInput; /** TRGM search on the `description` column. */ trgmDescription?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `external_id` column. */ trgmExternalId?: TrgmSearchInput; /** TRGM search on the `name` column. */ @@ -28786,10 +28729,6 @@ export interface PlatformNamespaceFilter { not?: PlatformNamespaceFilter; /** Checks for any expressions in this list. */ or?: PlatformNamespaceFilter[]; - /** Filter by the object’s `platformBuilderBindingsByNamespaceId` relation. */ - platformBuilderBindingsByNamespaceId?: PlatformNamespaceToManyPlatformBuilderBindingFilter; - /** `platformBuilderBindingsByNamespaceId` exist. */ - platformBuilderBindingsByNamespaceIdExist?: boolean; /** Filter by the object’s `platformFunctionDeploymentsByNamespaceId` relation. */ platformFunctionDeploymentsByNamespaceId?: PlatformNamespaceToManyPlatformFunctionDeploymentFilter; /** `platformFunctionDeploymentsByNamespaceId` exist. */ @@ -28810,6 +28749,10 @@ export interface PlatformNamespaceFilter { platformResourcesByNamespaceId?: PlatformNamespaceToManyPlatformResourceFilter; /** `platformResourcesByNamespaceId` exist. */ platformResourcesByNamespaceIdExist?: boolean; + /** Filter by the object’s `platformServiceBindingsByNamespaceId` relation. */ + platformServiceBindingsByNamespaceId?: PlatformNamespaceToManyPlatformServiceBindingFilter; + /** `platformServiceBindingsByNamespaceId` exist. */ + platformServiceBindingsByNamespaceIdExist?: boolean; /** Filter by the object’s `platformWebhookEndpointsByNamespaceId` relation. */ platformWebhookEndpointsByNamespaceId?: PlatformNamespaceToManyPlatformWebhookEndpointFilter; /** `platformWebhookEndpointsByNamespaceId` exist. */ @@ -28976,6 +28919,14 @@ export type CopyGraphPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface CreateFunctionGraphPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type CreateFunctionGraphPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface DatabaseAddEdgePayload { clientMutationId?: string | null; result?: string | null; @@ -29563,51 +29514,6 @@ export type DeleteBuildStepPayloadSelect = { }; clientMutationId?: boolean; }; -export interface CreateBuilderBindingPayload { - /** The `BuilderBinding` that was created by this mutation. */ - builderBinding?: BuilderBinding | null; - builderBindingEdge?: BuilderBindingEdge | null; - clientMutationId?: string | null; -} -export type CreateBuilderBindingPayloadSelect = { - builderBinding?: { - select: BuilderBindingSelect; - }; - builderBindingEdge?: { - select: BuilderBindingEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface UpdateBuilderBindingPayload { - /** The `BuilderBinding` that was updated by this mutation. */ - builderBinding?: BuilderBinding | null; - builderBindingEdge?: BuilderBindingEdge | null; - clientMutationId?: string | null; -} -export type UpdateBuilderBindingPayloadSelect = { - builderBinding?: { - select: BuilderBindingSelect; - }; - builderBindingEdge?: { - select: BuilderBindingEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface DeleteBuilderBindingPayload { - /** The `BuilderBinding` that was deleted by this mutation. */ - builderBinding?: BuilderBinding | null; - builderBindingEdge?: BuilderBindingEdge | null; - clientMutationId?: string | null; -} -export type DeleteBuilderBindingPayloadSelect = { - builderBinding?: { - select: BuilderBindingSelect; - }; - builderBindingEdge?: { - select: BuilderBindingEdgeSelect; - }; - clientMutationId?: boolean; -}; export interface CreateContentPresetPayload { clientMutationId?: string | null; /** The `ContentPreset` that was created by this mutation. */ @@ -30403,14 +30309,6 @@ export type DeleteFunctionGraphCommitPayloadSelect = { select: FunctionGraphCommitEdgeSelect; }; }; -export interface CreateFunctionGraphPayload { - clientMutationId?: string | null; - result?: string | null; -} -export type CreateFunctionGraphPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; export interface UpdateFunctionGraphPayload { clientMutationId?: string | null; /** The `FunctionGraph` that was updated by this mutation. */ @@ -31386,51 +31284,6 @@ export type DeletePlatformBuildStepPayloadSelect = { select: PlatformBuildStepEdgeSelect; }; }; -export interface CreatePlatformBuilderBindingPayload { - clientMutationId?: string | null; - /** The `PlatformBuilderBinding` that was created by this mutation. */ - platformBuilderBinding?: PlatformBuilderBinding | null; - platformBuilderBindingEdge?: PlatformBuilderBindingEdge | null; -} -export type CreatePlatformBuilderBindingPayloadSelect = { - clientMutationId?: boolean; - platformBuilderBinding?: { - select: PlatformBuilderBindingSelect; - }; - platformBuilderBindingEdge?: { - select: PlatformBuilderBindingEdgeSelect; - }; -}; -export interface UpdatePlatformBuilderBindingPayload { - clientMutationId?: string | null; - /** The `PlatformBuilderBinding` that was updated by this mutation. */ - platformBuilderBinding?: PlatformBuilderBinding | null; - platformBuilderBindingEdge?: PlatformBuilderBindingEdge | null; -} -export type UpdatePlatformBuilderBindingPayloadSelect = { - clientMutationId?: boolean; - platformBuilderBinding?: { - select: PlatformBuilderBindingSelect; - }; - platformBuilderBindingEdge?: { - select: PlatformBuilderBindingEdgeSelect; - }; -}; -export interface DeletePlatformBuilderBindingPayload { - clientMutationId?: string | null; - /** The `PlatformBuilderBinding` that was deleted by this mutation. */ - platformBuilderBinding?: PlatformBuilderBinding | null; - platformBuilderBindingEdge?: PlatformBuilderBindingEdge | null; -} -export type DeletePlatformBuilderBindingPayloadSelect = { - clientMutationId?: boolean; - platformBuilderBinding?: { - select: PlatformBuilderBindingSelect; - }; - platformBuilderBindingEdge?: { - select: PlatformBuilderBindingEdgeSelect; - }; -}; export interface CreatePlatformFunctionApiBindingPayload { clientMutationId?: string | null; /** The `PlatformFunctionApiBinding` that was created by this mutation. */ @@ -33186,6 +33039,51 @@ export type DeletePlatformResourceUsageSummaryPayloadSelect = { select: PlatformResourceUsageSummaryEdgeSelect; }; }; +export interface CreatePlatformServiceBindingPayload { + clientMutationId?: string | null; + /** The `PlatformServiceBinding` that was created by this mutation. */ + platformServiceBinding?: PlatformServiceBinding | null; + platformServiceBindingEdge?: PlatformServiceBindingEdge | null; +} +export type CreatePlatformServiceBindingPayloadSelect = { + clientMutationId?: boolean; + platformServiceBinding?: { + select: PlatformServiceBindingSelect; + }; + platformServiceBindingEdge?: { + select: PlatformServiceBindingEdgeSelect; + }; +}; +export interface UpdatePlatformServiceBindingPayload { + clientMutationId?: string | null; + /** The `PlatformServiceBinding` that was updated by this mutation. */ + platformServiceBinding?: PlatformServiceBinding | null; + platformServiceBindingEdge?: PlatformServiceBindingEdge | null; +} +export type UpdatePlatformServiceBindingPayloadSelect = { + clientMutationId?: boolean; + platformServiceBinding?: { + select: PlatformServiceBindingSelect; + }; + platformServiceBindingEdge?: { + select: PlatformServiceBindingEdgeSelect; + }; +}; +export interface DeletePlatformServiceBindingPayload { + clientMutationId?: string | null; + /** The `PlatformServiceBinding` that was deleted by this mutation. */ + platformServiceBinding?: PlatformServiceBinding | null; + platformServiceBindingEdge?: PlatformServiceBindingEdge | null; +} +export type DeletePlatformServiceBindingPayloadSelect = { + clientMutationId?: boolean; + platformServiceBinding?: { + select: PlatformServiceBindingSelect; + }; + platformServiceBindingEdge?: { + select: PlatformServiceBindingEdgeSelect; + }; +}; export interface CreatePlatformWebhookEndpointPayload { clientMutationId?: string | null; /** The `PlatformWebhookEndpoint` that was created by this mutation. */ @@ -34176,6 +34074,51 @@ export type DeleteResourceUsageSummaryPayloadSelect = { select: ResourceUsageSummaryEdgeSelect; }; }; +export interface CreateServiceBindingPayload { + clientMutationId?: string | null; + /** The `ServiceBinding` that was created by this mutation. */ + serviceBinding?: ServiceBinding | null; + serviceBindingEdge?: ServiceBindingEdge | null; +} +export type CreateServiceBindingPayloadSelect = { + clientMutationId?: boolean; + serviceBinding?: { + select: ServiceBindingSelect; + }; + serviceBindingEdge?: { + select: ServiceBindingEdgeSelect; + }; +}; +export interface UpdateServiceBindingPayload { + clientMutationId?: string | null; + /** The `ServiceBinding` that was updated by this mutation. */ + serviceBinding?: ServiceBinding | null; + serviceBindingEdge?: ServiceBindingEdge | null; +} +export type UpdateServiceBindingPayloadSelect = { + clientMutationId?: boolean; + serviceBinding?: { + select: ServiceBindingSelect; + }; + serviceBindingEdge?: { + select: ServiceBindingEdgeSelect; + }; +}; +export interface DeleteServiceBindingPayload { + clientMutationId?: string | null; + /** The `ServiceBinding` that was deleted by this mutation. */ + serviceBinding?: ServiceBinding | null; + serviceBindingEdge?: ServiceBindingEdge | null; +} +export type DeleteServiceBindingPayloadSelect = { + clientMutationId?: boolean; + serviceBinding?: { + select: ServiceBindingSelect; + }; + serviceBindingEdge?: { + select: ServiceBindingEdgeSelect; + }; +}; export interface CreateWebhookEndpointPayload { clientMutationId?: string | null; /** The `WebhookEndpoint` that was created by this mutation. */ @@ -34266,6 +34209,35 @@ export type DeleteWebhookEventPayloadSelect = { select: WebhookEventEdgeSelect; }; }; +/** One version rendered beside a file, with a URL to fetch it. */ +export interface FileVersion { + format?: string | null; + height?: number | null; + key: string; + name?: string | null; + size?: number | null; + url: string; + width?: number | null; +} +export type FileVersionSelect = { + format?: boolean; + height?: boolean; + key?: boolean; + name?: boolean; + size?: boolean; + url?: boolean; + width?: boolean; +}; +export interface ResourceRequirement { + name?: string | null; + provider?: string | null; + required?: boolean | null; +} +export type ResourceRequirementSelect = { + name?: boolean; + provider?: boolean; + required?: boolean; +}; /** A `DatabaseGraphCommit` edge in the connection. */ export interface DatabaseGraphCommitEdge { cursor?: string | null; @@ -34362,18 +34334,6 @@ export type BuildStepEdgeSelect = { select: BuildStepSelect; }; }; -/** A `BuilderBinding` edge in the connection. */ -export interface BuilderBindingEdge { - cursor?: string | null; - /** The `BuilderBinding` at the end of the edge. */ - node?: BuilderBinding | null; -} -export type BuilderBindingEdgeSelect = { - cursor?: boolean; - node?: { - select: BuilderBindingSelect; - }; -}; /** A `ContentPreset` edge in the connection. */ export interface ContentPresetEdge { cursor?: string | null; @@ -34806,18 +34766,6 @@ export type PlatformBuildStepEdgeSelect = { select: PlatformBuildStepSelect; }; }; -/** A `PlatformBuilderBinding` edge in the connection. */ -export interface PlatformBuilderBindingEdge { - cursor?: string | null; - /** The `PlatformBuilderBinding` at the end of the edge. */ - node?: PlatformBuilderBinding | null; -} -export type PlatformBuilderBindingEdgeSelect = { - cursor?: boolean; - node?: { - select: PlatformBuilderBindingSelect; - }; -}; /** A `PlatformFunctionApiBinding` edge in the connection. */ export interface PlatformFunctionApiBindingEdge { cursor?: string | null; @@ -35262,6 +35210,18 @@ export type PlatformResourceUsageSummaryEdgeSelect = { select: PlatformResourceUsageSummarySelect; }; }; +/** A `PlatformServiceBinding` edge in the connection. */ +export interface PlatformServiceBindingEdge { + cursor?: string | null; + /** The `PlatformServiceBinding` at the end of the edge. */ + node?: PlatformServiceBinding | null; +} +export type PlatformServiceBindingEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformServiceBindingSelect; + }; +}; /** A `PlatformWebhookEndpoint` edge in the connection. */ export interface PlatformWebhookEndpointEdge { cursor?: string | null; @@ -35526,6 +35486,18 @@ export type ResourceUsageSummaryEdgeSelect = { select: ResourceUsageSummarySelect; }; }; +/** A `ServiceBinding` edge in the connection. */ +export interface ServiceBindingEdge { + cursor?: string | null; + /** The `ServiceBinding` at the end of the edge. */ + node?: ServiceBinding | null; +} +export type ServiceBindingEdgeSelect = { + cursor?: boolean; + node?: { + select: ServiceBindingSelect; + }; +}; /** A `WebhookEndpoint` edge in the connection. */ export interface WebhookEndpointEdge { cursor?: string | null; diff --git a/sdk/constructive-cli/src/compute/orm/models/databaseFunctionGraph.ts b/sdk/constructive-cli/src/compute/orm/models/databaseFunctionGraph.ts index aa52534b19..358312ae7d 100644 --- a/sdk/constructive-cli/src/compute/orm/models/databaseFunctionGraph.ts +++ b/sdk/constructive-cli/src/compute/orm/models/databaseFunctionGraph.ts @@ -29,7 +29,6 @@ import type { DatabaseFunctionGraphSelect, DatabaseFunctionGraphFilter, DatabaseFunctionGraphOrderBy, - CreateDatabaseFunctionGraphInput, UpdateDatabaseFunctionGraphInput, DatabaseFunctionGraphPatch, } from '../input-types'; @@ -146,33 +145,6 @@ export class DatabaseFunctionGraphModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createDatabaseFunctionGraph: { - databaseFunctionGraph: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'DatabaseFunctionGraph', - 'createDatabaseFunctionGraph', - 'databaseFunctionGraph', - args.select, - args.data, - 'CreateDatabaseFunctionGraphInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'DatabaseFunctionGraph', - fieldName: 'createDatabaseFunctionGraph', - document, - variables, - }); - } update( args: UpdateArgs< S, diff --git a/sdk/constructive-cli/src/compute/orm/models/databaseGraphGetAllTreeNodesRecord.ts b/sdk/constructive-cli/src/compute/orm/models/databaseGraphGetAllTreeNodesRecord.ts index f3a254b255..141a458a79 100644 --- a/sdk/constructive-cli/src/compute/orm/models/databaseGraphGetAllTreeNodesRecord.ts +++ b/sdk/constructive-cli/src/compute/orm/models/databaseGraphGetAllTreeNodesRecord.ts @@ -29,7 +29,6 @@ import type { DatabaseGraphGetAllTreeNodesRecordSelect, DatabaseGraphGetAllTreeNodesRecordFilter, DatabaseGraphGetAllTreeNodesRecordsOrderBy, - CreateDatabaseGraphGetAllTreeNodesRecordInput, UpdateDatabaseGraphGetAllTreeNodesRecordInput, DatabaseGraphGetAllTreeNodesRecordPatch, } from '../input-types'; @@ -117,37 +116,4 @@ export class DatabaseGraphGetAllTreeNodesRecordModel { }), }); } - create( - args: CreateArgs< - S, - CreateDatabaseGraphGetAllTreeNodesRecordInput['databaseGraphGetAllTreeNodesRecord'] - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createDatabaseGraphGetAllTreeNodesRecord: { - databaseGraphGetAllTreeNodesRecord: InferSelectResult< - DatabaseGraphGetAllTreeNodesRecordWithRelations, - S - >; - }; - }> { - const { document, variables } = buildCreateDocument( - 'DatabaseGraphGetAllTreeNodesRecord', - 'createDatabaseGraphGetAllTreeNodesRecord', - 'databaseGraphGetAllTreeNodesRecord', - args.select, - args.data, - 'CreateDatabaseGraphGetAllTreeNodesRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'DatabaseGraphGetAllTreeNodesRecord', - fieldName: 'createDatabaseGraphGetAllTreeNodesRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/compute/orm/models/functionGraph.ts b/sdk/constructive-cli/src/compute/orm/models/functionGraph.ts index 8355e31658..b94c844768 100644 --- a/sdk/constructive-cli/src/compute/orm/models/functionGraph.ts +++ b/sdk/constructive-cli/src/compute/orm/models/functionGraph.ts @@ -29,7 +29,6 @@ import type { FunctionGraphSelect, FunctionGraphFilter, FunctionGraphOrderBy, - CreateFunctionGraphInput, UpdateFunctionGraphInput, FunctionGraphPatch, } from '../input-types'; @@ -144,33 +143,6 @@ export class FunctionGraphModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createFunctionGraph: { - functionGraph: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'FunctionGraph', - 'createFunctionGraph', - 'functionGraph', - args.select, - args.data, - 'CreateFunctionGraphInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'FunctionGraph', - fieldName: 'createFunctionGraph', - document, - variables, - }); - } update( args: UpdateArgs< S, diff --git a/sdk/constructive-cli/src/compute/orm/models/getAllTreeNodesRecord.ts b/sdk/constructive-cli/src/compute/orm/models/getAllTreeNodesRecord.ts index 00f51d01f7..275a902f66 100644 --- a/sdk/constructive-cli/src/compute/orm/models/getAllTreeNodesRecord.ts +++ b/sdk/constructive-cli/src/compute/orm/models/getAllTreeNodesRecord.ts @@ -29,7 +29,6 @@ import type { GetAllTreeNodesRecordSelect, GetAllTreeNodesRecordFilter, GetAllTreeNodesRecordsOrderBy, - CreateGetAllTreeNodesRecordInput, UpdateGetAllTreeNodesRecordInput, GetAllTreeNodesRecordPatch, } from '../input-types'; @@ -104,31 +103,4 @@ export class GetAllTreeNodesRecordModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createGetAllTreeNodesRecord: { - getAllTreeNodesRecord: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'GetAllTreeNodesRecord', - 'createGetAllTreeNodesRecord', - 'getAllTreeNodesRecord', - args.select, - args.data, - 'CreateGetAllTreeNodesRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'GetAllTreeNodesRecord', - fieldName: 'createGetAllTreeNodesRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/compute/orm/models/index.ts b/sdk/constructive-cli/src/compute/orm/models/index.ts index 3b2af275ae..dfb31b3c70 100644 --- a/sdk/constructive-cli/src/compute/orm/models/index.ts +++ b/sdk/constructive-cli/src/compute/orm/models/index.ts @@ -5,7 +5,6 @@ */ export { BuildModel } from './build'; export { BuildStepModel } from './buildStep'; -export { BuilderBindingModel } from './builderBinding'; export { ContentPresetModel } from './contentPreset'; export { DatabaseFunctionGraphModel } from './databaseFunctionGraph'; export { DatabaseFunctionGraphExecutionCancelRequestModel } from './databaseFunctionGraphExecutionCancelRequest'; @@ -49,7 +48,6 @@ export { NamespaceModel } from './namespace'; export { NamespaceEventModel } from './namespaceEvent'; export { PlatformBuildModel } from './platformBuild'; export { PlatformBuildStepModel } from './platformBuildStep'; -export { PlatformBuilderBindingModel } from './platformBuilderBinding'; export { PlatformFunctionApiBindingModel } from './platformFunctionApiBinding'; export { PlatformFunctionCapabilityBindingModel } from './platformFunctionCapabilityBinding'; export { PlatformFunctionDefinitionModel } from './platformFunctionDefinition'; @@ -96,6 +94,7 @@ export { PlatformResourceUtilizationModel } from './platformResourceUtilization' export { PlatformResourcesHealthModel } from './platformResourcesHealth'; export { PlatformResourcesRequirementsStateModel } from './platformResourcesRequirementsState'; export { PlatformResourcesResolvedRequirementModel } from './platformResourcesResolvedRequirement'; +export { PlatformServiceBindingModel } from './platformServiceBinding'; export { PlatformWebhookEndpointModel } from './platformWebhookEndpoint'; export { PlatformWebhookEventModel } from './platformWebhookEvent'; export { ProposalCommentModel } from './proposalComment'; @@ -124,5 +123,6 @@ export { ResourceUtilizationModel } from './resourceUtilization'; export { ResourcesHealthModel } from './resourcesHealth'; export { ResourcesRequirementsStateModel } from './resourcesRequirementsState'; export { ResourcesResolvedRequirementModel } from './resourcesResolvedRequirement'; +export { ServiceBindingModel } from './serviceBinding'; export { WebhookEndpointModel } from './webhookEndpoint'; export { WebhookEventModel } from './webhookEvent'; diff --git a/sdk/constructive-cli/src/compute/orm/models/infraGetAllTreeNodesRecord.ts b/sdk/constructive-cli/src/compute/orm/models/infraGetAllTreeNodesRecord.ts index 7f2e31d467..e3f66b257e 100644 --- a/sdk/constructive-cli/src/compute/orm/models/infraGetAllTreeNodesRecord.ts +++ b/sdk/constructive-cli/src/compute/orm/models/infraGetAllTreeNodesRecord.ts @@ -29,7 +29,6 @@ import type { InfraGetAllTreeNodesRecordSelect, InfraGetAllTreeNodesRecordFilter, InfraGetAllTreeNodesRecordsOrderBy, - CreateInfraGetAllTreeNodesRecordInput, UpdateInfraGetAllTreeNodesRecordInput, InfraGetAllTreeNodesRecordPatch, } from '../input-types'; @@ -109,31 +108,4 @@ export class InfraGetAllTreeNodesRecordModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createInfraGetAllTreeNodesRecord: { - infraGetAllTreeNodesRecord: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'InfraGetAllTreeNodesRecord', - 'createInfraGetAllTreeNodesRecord', - 'infraGetAllTreeNodesRecord', - args.select, - args.data, - 'CreateInfraGetAllTreeNodesRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'InfraGetAllTreeNodesRecord', - fieldName: 'createInfraGetAllTreeNodesRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/compute/orm/models/platformBuilderBinding.ts b/sdk/constructive-cli/src/compute/orm/models/platformBuilderBinding.ts deleted file mode 100644 index 09a8daa1ed..0000000000 --- a/sdk/constructive-cli/src/compute/orm/models/platformBuilderBinding.ts +++ /dev/null @@ -1,247 +0,0 @@ -/** - * PlatformBuilderBinding model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - PlatformBuilderBinding, - PlatformBuilderBindingWithRelations, - PlatformBuilderBindingSelect, - PlatformBuilderBindingFilter, - PlatformBuilderBindingOrderBy, - CreatePlatformBuilderBindingInput, - UpdatePlatformBuilderBindingInput, - PlatformBuilderBindingPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class PlatformBuilderBindingModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - platformBuilderBindings: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'PlatformBuilderBinding', - 'platformBuilderBindings', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'PlatformBuilderBindingFilter', - 'PlatformBuilderBindingOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlatformBuilderBinding', - fieldName: 'platformBuilderBindings', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - platformBuilderBinding: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'PlatformBuilderBinding', - 'platformBuilderBindings', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'PlatformBuilderBindingFilter', - 'PlatformBuilderBindingOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlatformBuilderBinding', - fieldName: 'platformBuilderBinding', - document, - variables, - transform: (data: { - platformBuilderBindings?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - platformBuilderBinding: data.platformBuilderBindings?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - platformBuilderBinding: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'PlatformBuilderBinding', - 'platformBuilderBindings', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'PlatformBuilderBindingFilter', - 'PlatformBuilderBindingOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlatformBuilderBinding', - fieldName: 'platformBuilderBinding', - document, - variables, - transform: (data: { - platformBuilderBindings?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - platformBuilderBinding: data.platformBuilderBindings?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformBuilderBinding: { - platformBuilderBinding: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformBuilderBinding', - 'createPlatformBuilderBinding', - 'platformBuilderBinding', - args.select, - args.data, - 'CreatePlatformBuilderBindingInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformBuilderBinding', - fieldName: 'createPlatformBuilderBinding', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - PlatformBuilderBindingPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updatePlatformBuilderBinding: { - platformBuilderBinding: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'PlatformBuilderBinding', - 'updatePlatformBuilderBinding', - 'platformBuilderBinding', - args.select, - args.where.id, - args.data, - 'UpdatePlatformBuilderBindingInput', - 'id', - 'platformBuilderBindingPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformBuilderBinding', - fieldName: 'updatePlatformBuilderBinding', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deletePlatformBuilderBinding: { - platformBuilderBinding: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'PlatformBuilderBinding', - 'deletePlatformBuilderBinding', - 'platformBuilderBinding', - { - id: args.where.id, - }, - 'DeletePlatformBuilderBindingInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformBuilderBinding', - fieldName: 'deletePlatformBuilderBinding', - document, - variables, - }); - } -} diff --git a/sdk/constructive-cli/src/compute/orm/models/platformInfraGetAllTreeNodesRecord.ts b/sdk/constructive-cli/src/compute/orm/models/platformInfraGetAllTreeNodesRecord.ts index e0e0a2aeaa..522c666bd3 100644 --- a/sdk/constructive-cli/src/compute/orm/models/platformInfraGetAllTreeNodesRecord.ts +++ b/sdk/constructive-cli/src/compute/orm/models/platformInfraGetAllTreeNodesRecord.ts @@ -29,7 +29,6 @@ import type { PlatformInfraGetAllTreeNodesRecordSelect, PlatformInfraGetAllTreeNodesRecordFilter, PlatformInfraGetAllTreeNodesRecordsOrderBy, - CreatePlatformInfraGetAllTreeNodesRecordInput, UpdatePlatformInfraGetAllTreeNodesRecordInput, PlatformInfraGetAllTreeNodesRecordPatch, } from '../input-types'; @@ -117,37 +116,4 @@ export class PlatformInfraGetAllTreeNodesRecordModel { }), }); } - create( - args: CreateArgs< - S, - CreatePlatformInfraGetAllTreeNodesRecordInput['platformInfraGetAllTreeNodesRecord'] - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformInfraGetAllTreeNodesRecord: { - platformInfraGetAllTreeNodesRecord: InferSelectResult< - PlatformInfraGetAllTreeNodesRecordWithRelations, - S - >; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformInfraGetAllTreeNodesRecord', - 'createPlatformInfraGetAllTreeNodesRecord', - 'platformInfraGetAllTreeNodesRecord', - args.select, - args.data, - 'CreatePlatformInfraGetAllTreeNodesRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformInfraGetAllTreeNodesRecord', - fieldName: 'createPlatformInfraGetAllTreeNodesRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/compute/orm/models/platformResourceDeclaredCapacity.ts b/sdk/constructive-cli/src/compute/orm/models/platformResourceDeclaredCapacity.ts index 66a88f859d..c61ba71d35 100644 --- a/sdk/constructive-cli/src/compute/orm/models/platformResourceDeclaredCapacity.ts +++ b/sdk/constructive-cli/src/compute/orm/models/platformResourceDeclaredCapacity.ts @@ -29,7 +29,6 @@ import type { PlatformResourceDeclaredCapacitySelect, PlatformResourceDeclaredCapacityFilter, PlatformResourceDeclaredCapacityOrderBy, - CreatePlatformResourceDeclaredCapacityInput, UpdatePlatformResourceDeclaredCapacityInput, PlatformResourceDeclaredCapacityPatch, } from '../input-types'; @@ -118,37 +117,4 @@ export class PlatformResourceDeclaredCapacityModel { }), }); } - create( - args: CreateArgs< - S, - CreatePlatformResourceDeclaredCapacityInput['platformResourceDeclaredCapacity'] - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformResourceDeclaredCapacity: { - platformResourceDeclaredCapacity: InferSelectResult< - PlatformResourceDeclaredCapacityWithRelations, - S - >; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformResourceDeclaredCapacity', - 'createPlatformResourceDeclaredCapacity', - 'platformResourceDeclaredCapacity', - args.select, - args.data, - 'CreatePlatformResourceDeclaredCapacityInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformResourceDeclaredCapacity', - fieldName: 'createPlatformResourceDeclaredCapacity', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/compute/orm/models/platformResourceObservedStorage.ts b/sdk/constructive-cli/src/compute/orm/models/platformResourceObservedStorage.ts index 80a274b483..5a5654a907 100644 --- a/sdk/constructive-cli/src/compute/orm/models/platformResourceObservedStorage.ts +++ b/sdk/constructive-cli/src/compute/orm/models/platformResourceObservedStorage.ts @@ -29,7 +29,6 @@ import type { PlatformResourceObservedStorageSelect, PlatformResourceObservedStorageFilter, PlatformResourceObservedStorageOrderBy, - CreatePlatformResourceObservedStorageInput, UpdatePlatformResourceObservedStorageInput, PlatformResourceObservedStoragePatch, } from '../input-types'; @@ -117,37 +116,4 @@ export class PlatformResourceObservedStorageModel { }), }); } - create( - args: CreateArgs< - S, - CreatePlatformResourceObservedStorageInput['platformResourceObservedStorage'] - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformResourceObservedStorage: { - platformResourceObservedStorage: InferSelectResult< - PlatformResourceObservedStorageWithRelations, - S - >; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformResourceObservedStorage', - 'createPlatformResourceObservedStorage', - 'platformResourceObservedStorage', - args.select, - args.data, - 'CreatePlatformResourceObservedStorageInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformResourceObservedStorage', - fieldName: 'createPlatformResourceObservedStorage', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/compute/orm/models/platformResourceUtilization.ts b/sdk/constructive-cli/src/compute/orm/models/platformResourceUtilization.ts index 040d38000e..2c7bffa084 100644 --- a/sdk/constructive-cli/src/compute/orm/models/platformResourceUtilization.ts +++ b/sdk/constructive-cli/src/compute/orm/models/platformResourceUtilization.ts @@ -29,7 +29,6 @@ import type { PlatformResourceUtilizationSelect, PlatformResourceUtilizationFilter, PlatformResourceUtilizationOrderBy, - CreatePlatformResourceUtilizationInput, UpdatePlatformResourceUtilizationInput, PlatformResourceUtilizationPatch, } from '../input-types'; @@ -113,31 +112,4 @@ export class PlatformResourceUtilizationModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformResourceUtilization: { - platformResourceUtilization: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformResourceUtilization', - 'createPlatformResourceUtilization', - 'platformResourceUtilization', - args.select, - args.data, - 'CreatePlatformResourceUtilizationInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformResourceUtilization', - fieldName: 'createPlatformResourceUtilization', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/compute/orm/models/platformResourcesHealth.ts b/sdk/constructive-cli/src/compute/orm/models/platformResourcesHealth.ts index 0f0efa3e31..7249c4259c 100644 --- a/sdk/constructive-cli/src/compute/orm/models/platformResourcesHealth.ts +++ b/sdk/constructive-cli/src/compute/orm/models/platformResourcesHealth.ts @@ -29,7 +29,6 @@ import type { PlatformResourcesHealthSelect, PlatformResourcesHealthFilter, PlatformResourcesHealthOrderBy, - CreatePlatformResourcesHealthInput, UpdatePlatformResourcesHealthInput, PlatformResourcesHealthPatch, } from '../input-types'; @@ -146,31 +145,4 @@ export class PlatformResourcesHealthModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformResourcesHealth: { - platformResourcesHealth: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformResourcesHealth', - 'createPlatformResourcesHealth', - 'platformResourcesHealth', - args.select, - args.data, - 'CreatePlatformResourcesHealthInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformResourcesHealth', - fieldName: 'createPlatformResourcesHealth', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/compute/orm/models/platformResourcesRequirementsState.ts b/sdk/constructive-cli/src/compute/orm/models/platformResourcesRequirementsState.ts index ab6152e426..4eb7854059 100644 --- a/sdk/constructive-cli/src/compute/orm/models/platformResourcesRequirementsState.ts +++ b/sdk/constructive-cli/src/compute/orm/models/platformResourcesRequirementsState.ts @@ -29,7 +29,6 @@ import type { PlatformResourcesRequirementsStateSelect, PlatformResourcesRequirementsStateFilter, PlatformResourcesRequirementsStateOrderBy, - CreatePlatformResourcesRequirementsStateInput, UpdatePlatformResourcesRequirementsStateInput, PlatformResourcesRequirementsStatePatch, } from '../input-types'; @@ -118,37 +117,4 @@ export class PlatformResourcesRequirementsStateModel { }), }); } - create( - args: CreateArgs< - S, - CreatePlatformResourcesRequirementsStateInput['platformResourcesRequirementsState'] - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformResourcesRequirementsState: { - platformResourcesRequirementsState: InferSelectResult< - PlatformResourcesRequirementsStateWithRelations, - S - >; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformResourcesRequirementsState', - 'createPlatformResourcesRequirementsState', - 'platformResourcesRequirementsState', - args.select, - args.data, - 'CreatePlatformResourcesRequirementsStateInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformResourcesRequirementsState', - fieldName: 'createPlatformResourcesRequirementsState', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/compute/orm/models/platformResourcesResolvedRequirement.ts b/sdk/constructive-cli/src/compute/orm/models/platformResourcesResolvedRequirement.ts index d7d7bf4ed0..0326681f64 100644 --- a/sdk/constructive-cli/src/compute/orm/models/platformResourcesResolvedRequirement.ts +++ b/sdk/constructive-cli/src/compute/orm/models/platformResourcesResolvedRequirement.ts @@ -29,7 +29,6 @@ import type { PlatformResourcesResolvedRequirementSelect, PlatformResourcesResolvedRequirementFilter, PlatformResourcesResolvedRequirementOrderBy, - CreatePlatformResourcesResolvedRequirementInput, UpdatePlatformResourcesResolvedRequirementInput, PlatformResourcesResolvedRequirementPatch, } from '../input-types'; @@ -118,37 +117,4 @@ export class PlatformResourcesResolvedRequirementModel { }), }); } - create( - args: CreateArgs< - S, - CreatePlatformResourcesResolvedRequirementInput['platformResourcesResolvedRequirement'] - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformResourcesResolvedRequirement: { - platformResourcesResolvedRequirement: InferSelectResult< - PlatformResourcesResolvedRequirementWithRelations, - S - >; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformResourcesResolvedRequirement', - 'createPlatformResourcesResolvedRequirement', - 'platformResourcesResolvedRequirement', - args.select, - args.data, - 'CreatePlatformResourcesResolvedRequirementInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformResourcesResolvedRequirement', - fieldName: 'createPlatformResourcesResolvedRequirement', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/compute/orm/models/platformServiceBinding.ts b/sdk/constructive-cli/src/compute/orm/models/platformServiceBinding.ts new file mode 100644 index 0000000000..e50381b94d --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/platformServiceBinding.ts @@ -0,0 +1,247 @@ +/** + * PlatformServiceBinding model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + PlatformServiceBinding, + PlatformServiceBindingWithRelations, + PlatformServiceBindingSelect, + PlatformServiceBindingFilter, + PlatformServiceBindingOrderBy, + CreatePlatformServiceBindingInput, + UpdatePlatformServiceBindingInput, + PlatformServiceBindingPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformServiceBindingModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformServiceBindings: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformServiceBinding', + 'platformServiceBindings', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'PlatformServiceBindingFilter', + 'PlatformServiceBindingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformServiceBinding', + fieldName: 'platformServiceBindings', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformServiceBinding: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformServiceBinding', + 'platformServiceBindings', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformServiceBindingFilter', + 'PlatformServiceBindingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformServiceBinding', + fieldName: 'platformServiceBinding', + document, + variables, + transform: (data: { + platformServiceBindings?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformServiceBinding: data.platformServiceBindings?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformServiceBinding: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformServiceBinding', + 'platformServiceBindings', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformServiceBindingFilter', + 'PlatformServiceBindingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformServiceBinding', + fieldName: 'platformServiceBinding', + document, + variables, + transform: (data: { + platformServiceBindings?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformServiceBinding: data.platformServiceBindings?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformServiceBinding: { + platformServiceBinding: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformServiceBinding', + 'createPlatformServiceBinding', + 'platformServiceBinding', + args.select, + args.data, + 'CreatePlatformServiceBindingInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformServiceBinding', + fieldName: 'createPlatformServiceBinding', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformServiceBindingPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformServiceBinding: { + platformServiceBinding: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformServiceBinding', + 'updatePlatformServiceBinding', + 'platformServiceBinding', + args.select, + args.where.id, + args.data, + 'UpdatePlatformServiceBindingInput', + 'id', + 'platformServiceBindingPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformServiceBinding', + fieldName: 'updatePlatformServiceBinding', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformServiceBinding: { + platformServiceBinding: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformServiceBinding', + 'deletePlatformServiceBinding', + 'platformServiceBinding', + { + id: args.where.id, + }, + 'DeletePlatformServiceBindingInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformServiceBinding', + fieldName: 'deletePlatformServiceBinding', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/resourceDeclaredCapacity.ts b/sdk/constructive-cli/src/compute/orm/models/resourceDeclaredCapacity.ts index 6340979a98..3ea2e93607 100644 --- a/sdk/constructive-cli/src/compute/orm/models/resourceDeclaredCapacity.ts +++ b/sdk/constructive-cli/src/compute/orm/models/resourceDeclaredCapacity.ts @@ -29,7 +29,6 @@ import type { ResourceDeclaredCapacitySelect, ResourceDeclaredCapacityFilter, ResourceDeclaredCapacityOrderBy, - CreateResourceDeclaredCapacityInput, UpdateResourceDeclaredCapacityInput, ResourceDeclaredCapacityPatch, } from '../input-types'; @@ -106,31 +105,4 @@ export class ResourceDeclaredCapacityModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createResourceDeclaredCapacity: { - resourceDeclaredCapacity: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'ResourceDeclaredCapacity', - 'createResourceDeclaredCapacity', - 'resourceDeclaredCapacity', - args.select, - args.data, - 'CreateResourceDeclaredCapacityInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'ResourceDeclaredCapacity', - fieldName: 'createResourceDeclaredCapacity', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/compute/orm/models/resourceObservedStorage.ts b/sdk/constructive-cli/src/compute/orm/models/resourceObservedStorage.ts index 75769aef61..2d9c328e85 100644 --- a/sdk/constructive-cli/src/compute/orm/models/resourceObservedStorage.ts +++ b/sdk/constructive-cli/src/compute/orm/models/resourceObservedStorage.ts @@ -29,7 +29,6 @@ import type { ResourceObservedStorageSelect, ResourceObservedStorageFilter, ResourceObservedStorageOrderBy, - CreateResourceObservedStorageInput, UpdateResourceObservedStorageInput, ResourceObservedStoragePatch, } from '../input-types'; @@ -106,31 +105,4 @@ export class ResourceObservedStorageModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createResourceObservedStorage: { - resourceObservedStorage: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'ResourceObservedStorage', - 'createResourceObservedStorage', - 'resourceObservedStorage', - args.select, - args.data, - 'CreateResourceObservedStorageInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'ResourceObservedStorage', - fieldName: 'createResourceObservedStorage', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/compute/orm/models/resourceUtilization.ts b/sdk/constructive-cli/src/compute/orm/models/resourceUtilization.ts index 3620486000..6704ad6230 100644 --- a/sdk/constructive-cli/src/compute/orm/models/resourceUtilization.ts +++ b/sdk/constructive-cli/src/compute/orm/models/resourceUtilization.ts @@ -29,7 +29,6 @@ import type { ResourceUtilizationSelect, ResourceUtilizationFilter, ResourceUtilizationOrderBy, - CreateResourceUtilizationInput, UpdateResourceUtilizationInput, ResourceUtilizationPatch, } from '../input-types'; @@ -104,31 +103,4 @@ export class ResourceUtilizationModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createResourceUtilization: { - resourceUtilization: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'ResourceUtilization', - 'createResourceUtilization', - 'resourceUtilization', - args.select, - args.data, - 'CreateResourceUtilizationInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'ResourceUtilization', - fieldName: 'createResourceUtilization', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/compute/orm/models/resourcesHealth.ts b/sdk/constructive-cli/src/compute/orm/models/resourcesHealth.ts index 1ac97bab3d..6b66d67938 100644 --- a/sdk/constructive-cli/src/compute/orm/models/resourcesHealth.ts +++ b/sdk/constructive-cli/src/compute/orm/models/resourcesHealth.ts @@ -29,7 +29,6 @@ import type { ResourcesHealthSelect, ResourcesHealthFilter, ResourcesHealthOrderBy, - CreateResourcesHealthInput, UpdateResourcesHealthInput, ResourcesHealthPatch, } from '../input-types'; @@ -144,31 +143,4 @@ export class ResourcesHealthModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createResourcesHealth: { - resourcesHealth: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'ResourcesHealth', - 'createResourcesHealth', - 'resourcesHealth', - args.select, - args.data, - 'CreateResourcesHealthInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'ResourcesHealth', - fieldName: 'createResourcesHealth', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/compute/orm/models/resourcesRequirementsState.ts b/sdk/constructive-cli/src/compute/orm/models/resourcesRequirementsState.ts index 8ce68f6a31..85dbd5a7d1 100644 --- a/sdk/constructive-cli/src/compute/orm/models/resourcesRequirementsState.ts +++ b/sdk/constructive-cli/src/compute/orm/models/resourcesRequirementsState.ts @@ -29,7 +29,6 @@ import type { ResourcesRequirementsStateSelect, ResourcesRequirementsStateFilter, ResourcesRequirementsStateOrderBy, - CreateResourcesRequirementsStateInput, UpdateResourcesRequirementsStateInput, ResourcesRequirementsStatePatch, } from '../input-types'; @@ -109,31 +108,4 @@ export class ResourcesRequirementsStateModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createResourcesRequirementsState: { - resourcesRequirementsState: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'ResourcesRequirementsState', - 'createResourcesRequirementsState', - 'resourcesRequirementsState', - args.select, - args.data, - 'CreateResourcesRequirementsStateInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'ResourcesRequirementsState', - fieldName: 'createResourcesRequirementsState', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/compute/orm/models/resourcesResolvedRequirement.ts b/sdk/constructive-cli/src/compute/orm/models/resourcesResolvedRequirement.ts index 40680dcfb3..2a9d9d1034 100644 --- a/sdk/constructive-cli/src/compute/orm/models/resourcesResolvedRequirement.ts +++ b/sdk/constructive-cli/src/compute/orm/models/resourcesResolvedRequirement.ts @@ -29,7 +29,6 @@ import type { ResourcesResolvedRequirementSelect, ResourcesResolvedRequirementFilter, ResourcesResolvedRequirementOrderBy, - CreateResourcesResolvedRequirementInput, UpdateResourcesResolvedRequirementInput, ResourcesResolvedRequirementPatch, } from '../input-types'; @@ -117,31 +116,4 @@ export class ResourcesResolvedRequirementModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createResourcesResolvedRequirement: { - resourcesResolvedRequirement: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'ResourcesResolvedRequirement', - 'createResourcesResolvedRequirement', - 'resourcesResolvedRequirement', - args.select, - args.data, - 'CreateResourcesResolvedRequirementInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'ResourcesResolvedRequirement', - fieldName: 'createResourcesResolvedRequirement', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/compute/orm/models/builderBinding.ts b/sdk/constructive-cli/src/compute/orm/models/serviceBinding.ts similarity index 53% rename from sdk/constructive-cli/src/compute/orm/models/builderBinding.ts rename to sdk/constructive-cli/src/compute/orm/models/serviceBinding.ts index 0d5d7843e3..be7061a21b 100644 --- a/sdk/constructive-cli/src/compute/orm/models/builderBinding.ts +++ b/sdk/constructive-cli/src/compute/orm/models/serviceBinding.ts @@ -1,5 +1,5 @@ /** - * BuilderBinding model for ORM client + * ServiceBinding model for ORM client * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -24,28 +24,28 @@ import type { StrictSelect, } from '../select-types'; import type { - BuilderBinding, - BuilderBindingWithRelations, - BuilderBindingSelect, - BuilderBindingFilter, - BuilderBindingOrderBy, - CreateBuilderBindingInput, - UpdateBuilderBindingInput, - BuilderBindingPatch, + ServiceBinding, + ServiceBindingWithRelations, + ServiceBindingSelect, + ServiceBindingFilter, + ServiceBindingOrderBy, + CreateServiceBindingInput, + UpdateServiceBindingInput, + ServiceBindingPatch, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; -export class BuilderBindingModel { +export class ServiceBindingModel { constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { + findMany( + args: FindManyArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - builderBindings: ConnectionResult>; + serviceBindings: ConnectionResult>; }> { const { document, variables } = buildFindManyDocument( - 'BuilderBinding', - 'builderBindings', + 'ServiceBinding', + 'serviceBindings', args.select, { where: args?.where, @@ -56,65 +56,65 @@ export class BuilderBindingModel { before: args?.before, offset: args?.offset, }, - 'BuilderBindingFilter', - 'BuilderBindingOrderBy', + 'ServiceBindingFilter', + 'ServiceBindingOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'BuilderBinding', - fieldName: 'builderBindings', + operationName: 'ServiceBinding', + fieldName: 'serviceBindings', document, variables, }); } - findFirst( - args: FindFirstArgs & { + findFirst( + args: FindFirstArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - builderBinding: InferSelectResult | null; + serviceBinding: InferSelectResult | null; }> { const { document, variables } = buildFindFirstDocument( - 'BuilderBinding', - 'builderBindings', + 'ServiceBinding', + 'serviceBindings', args.select, { where: args?.where, orderBy: args?.orderBy as string[] | undefined, }, - 'BuilderBindingFilter', - 'BuilderBindingOrderBy', + 'ServiceBindingFilter', + 'ServiceBindingOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'BuilderBinding', - fieldName: 'builderBinding', + operationName: 'ServiceBinding', + fieldName: 'serviceBinding', document, variables, transform: (data: { - builderBindings?: { - nodes?: InferSelectResult[]; + serviceBindings?: { + nodes?: InferSelectResult[]; }; }) => ({ - builderBinding: data.builderBindings?.nodes?.[0] ?? null, + serviceBinding: data.serviceBindings?.nodes?.[0] ?? null, }), }); } - findOne( + findOne( args: { id: string; select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - builderBinding: InferSelectResult | null; + serviceBinding: InferSelectResult | null; }> { const { document, variables } = buildFindManyDocument( - 'BuilderBinding', - 'builderBindings', + 'ServiceBinding', + 'serviceBindings', args.select, { where: { @@ -124,91 +124,91 @@ export class BuilderBindingModel { }, first: 1, }, - 'BuilderBindingFilter', - 'BuilderBindingOrderBy', + 'ServiceBindingFilter', + 'ServiceBindingOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'BuilderBinding', - fieldName: 'builderBinding', + operationName: 'ServiceBinding', + fieldName: 'serviceBinding', document, variables, transform: (data: { - builderBindings?: { - nodes?: InferSelectResult[]; + serviceBindings?: { + nodes?: InferSelectResult[]; }; }) => ({ - builderBinding: data.builderBindings?.nodes?.[0] ?? null, + serviceBinding: data.serviceBindings?.nodes?.[0] ?? null, }), }); } - create( - args: CreateArgs & { + create( + args: CreateArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - createBuilderBinding: { - builderBinding: InferSelectResult; + createServiceBinding: { + serviceBinding: InferSelectResult; }; }> { const { document, variables } = buildCreateDocument( - 'BuilderBinding', - 'createBuilderBinding', - 'builderBinding', + 'ServiceBinding', + 'createServiceBinding', + 'serviceBinding', args.select, args.data, - 'CreateBuilderBindingInput', + 'CreateServiceBindingInput', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'BuilderBinding', - fieldName: 'createBuilderBinding', + operationName: 'ServiceBinding', + fieldName: 'createServiceBinding', document, variables, }); } - update( + update( args: UpdateArgs< S, { id: string; }, - BuilderBindingPatch + ServiceBindingPatch > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - updateBuilderBinding: { - builderBinding: InferSelectResult; + updateServiceBinding: { + serviceBinding: InferSelectResult; }; }> { const { document, variables } = buildUpdateByPkDocument( - 'BuilderBinding', - 'updateBuilderBinding', - 'builderBinding', + 'ServiceBinding', + 'updateServiceBinding', + 'serviceBinding', args.select, args.where.id, args.data, - 'UpdateBuilderBindingInput', + 'UpdateServiceBindingInput', 'id', - 'builderBindingPatch', + 'serviceBindingPatch', connectionFieldsMap, undefined ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'BuilderBinding', - fieldName: 'updateBuilderBinding', + operationName: 'ServiceBinding', + fieldName: 'updateServiceBinding', document, variables, }); } - delete( + delete( args: DeleteArgs< { id: string; @@ -216,28 +216,28 @@ export class BuilderBindingModel { S > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - deleteBuilderBinding: { - builderBinding: InferSelectResult; + deleteServiceBinding: { + serviceBinding: InferSelectResult; }; }> { const { document, variables } = buildDeleteByPkDocument( - 'BuilderBinding', - 'deleteBuilderBinding', - 'builderBinding', + 'ServiceBinding', + 'deleteServiceBinding', + 'serviceBinding', { id: args.where.id, }, - 'DeleteBuilderBindingInput', + 'DeleteServiceBindingInput', args.select, connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'BuilderBinding', - fieldName: 'deleteBuilderBinding', + operationName: 'ServiceBinding', + fieldName: 'deleteServiceBinding', document, variables, }); diff --git a/sdk/constructive-cli/src/compute/orm/mutation/index.ts b/sdk/constructive-cli/src/compute/orm/mutation/index.ts index 48ca756e41..3b03efb8a3 100644 --- a/sdk/constructive-cli/src/compute/orm/mutation/index.ts +++ b/sdk/constructive-cli/src/compute/orm/mutation/index.ts @@ -13,6 +13,7 @@ import type { AddNodeAndSaveInput, ApproveNodeInput, CopyGraphInput, + CreateFunctionGraphInput, DatabaseAddEdgeInput, DatabaseAddEdgeAndSaveInput, DatabaseAddNodeInput, @@ -75,6 +76,7 @@ import type { AddNodeAndSavePayload, ApproveNodePayload, CopyGraphPayload, + CreateFunctionGraphPayload, DatabaseAddEdgePayload, DatabaseAddEdgeAndSavePayload, DatabaseAddNodePayload, @@ -137,6 +139,7 @@ import type { AddNodeAndSavePayloadSelect, ApproveNodePayloadSelect, CopyGraphPayloadSelect, + CreateFunctionGraphPayloadSelect, DatabaseAddEdgePayloadSelect, DatabaseAddEdgeAndSavePayloadSelect, DatabaseAddNodePayloadSelect, @@ -213,6 +216,9 @@ export interface ApproveNodeVariables { export interface CopyGraphVariables { input: CopyGraphInput; } +export interface CreateFunctionGraphVariables { + input: CreateFunctionGraphInput; +} export interface DatabaseAddEdgeVariables { input: DatabaseAddEdgeInput; } @@ -566,6 +572,35 @@ export function createMutationOperations(client: OrmClient) { 'CopyGraphPayload' ), }), + createFunctionGraph: ( + args: CreateFunctionGraphVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + createFunctionGraph: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'CreateFunctionGraph', + fieldName: 'createFunctionGraph', + ...buildCustomDocument( + 'mutation', + 'CreateFunctionGraph', + 'createFunctionGraph', + options.select, + args, + [ + { + name: 'input', + type: 'CreateFunctionGraphInput!', + }, + ], + connectionFieldsMap, + 'CreateFunctionGraphPayload' + ), + }), databaseAddEdge: ( args: DatabaseAddEdgeVariables, options: { diff --git a/sdk/constructive-cli/src/compute/orm/query-builder.ts b/sdk/constructive-cli/src/compute/orm/query-builder.ts index fd785bbae6..d6c981907f 100644 --- a/sdk/constructive-cli/src/compute/orm/query-builder.ts +++ b/sdk/constructive-cli/src/compute/orm/query-builder.ts @@ -140,9 +140,7 @@ export function buildSelections( ); const nestedSelect = nested.select; if (nestedSelect && typeof nestedSelect === 'object') { - const subSelections = Object.entries(nestedSelect) - .filter(([, v]) => v) - .map(([name]) => t.field({ name })); + const subSelections = buildSelections(nestedSelect, connectionFieldsMap); fields.push( t.field({ name: key, diff --git a/sdk/constructive-cli/src/compute/orm/select-types.ts b/sdk/constructive-cli/src/compute/orm/select-types.ts index 4b39d7e820..783c4603df 100644 --- a/sdk/constructive-cli/src/compute/orm/select-types.ts +++ b/sdk/constructive-cli/src/compute/orm/select-types.ts @@ -159,9 +159,13 @@ export type InferSelectResult = TSelect extends undefined ? K extends keyof TEntity ? NonNullable extends ConnectionResult ? ConnectionResult> - : - | InferSelectResult, NestedSelect> - | (null extends TEntity[K] ? null : never) + : NonNullable extends readonly (infer Item)[] + ? + | InferSelectResult, NestedSelect>[] + | (null extends TEntity[K] ? null : never) + : + | InferSelectResult, NestedSelect> + | (null extends TEntity[K] ? null : never) : never : K extends keyof TEntity ? TEntity[K] diff --git a/sdk/constructive-cli/src/config/cli/README.md b/sdk/constructive-cli/src/config/cli/README.md index 7c20cf8de5..0909ad51a6 100644 --- a/sdk/constructive-cli/src/config/cli/README.md +++ b/sdk/constructive-cli/src/config/cli/README.md @@ -112,7 +112,6 @@ CRUD operations for AppInternalSecret records. | `list` | List all appInternalSecret records | | `find-first` | Find first matching appInternalSecret record | | `get` | Get a appInternalSecret by id | -| `create` | Create a new appInternalSecret | | `update` | Update an existing appInternalSecret | | `delete` | Delete a appInternalSecret | @@ -211,7 +210,6 @@ CRUD operations for InternalSecret records. | `list` | List all internalSecret records | | `find-first` | Find first matching internalSecret record | | `get` | Get a internalSecret by id | -| `create` | Create a new internalSecret | | `update` | Update an existing internalSecret | | `delete` | Delete a internalSecret | @@ -309,7 +307,6 @@ CRUD operations for PlatformInternalSecret records. | `list` | List all platformInternalSecret records | | `find-first` | Find first matching platformInternalSecret record | | `get` | Get a platformInternalSecret by id | -| `create` | Create a new platformInternalSecret | | `update` | Update an existing platformInternalSecret | | `delete` | Delete a platformInternalSecret | @@ -339,7 +336,6 @@ CRUD operations for PlatformSecret records. | `list` | List all platformSecret records | | `find-first` | Find first matching platformSecret record | | `get` | Get a platformSecret by id | -| `create` | Create a new platformSecret | | `update` | Update an existing platformSecret | | `delete` | Delete a platformSecret | @@ -371,7 +367,6 @@ CRUD operations for Secret records. | `list` | List all secret records | | `find-first` | Find first matching secret record | | `get` | Get a secret by id | -| `create` | Create a new secret | | `update` | Update an existing secret | | `delete` | Delete a secret | diff --git a/sdk/constructive-cli/src/config/cli/commands/app-internal-secret.ts b/sdk/constructive-cli/src/config/cli/commands/app-internal-secret.ts index 76ed14eb12..bed0ca09dc 100644 --- a/sdk/constructive-cli/src/config/cli/commands/app-internal-secret.ts +++ b/sdk/constructive-cli/src/config/cli/commands/app-internal-secret.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateAppInternalSecretInput, AppInternalSecretPatch, AppInternalSecretSelect, AppInternalSecretFilter, @@ -45,7 +44,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -62,8 +61,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -129,89 +126,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'json', - name: 'annotations', - message: 'annotations', - required: true, - }, - { - type: 'text', - name: 'description', - message: 'description', - required: true, - }, - { - type: 'json', - name: 'labels', - message: 'labels', - required: true, - }, - { - type: 'text', - name: 'name', - message: 'name', - required: true, - }, - { - type: 'text', - name: 'realm', - message: 'realm', - required: true, - }, - { - type: 'text', - name: 'retiredAt', - message: 'retiredAt', - required: true, - }, - { - type: 'text', - name: 'rotatedAt', - message: 'rotatedAt', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateAppInternalSecretInput['appInternalSecret']; - const client = getClient(); - const result = await client.appInternalSecret - .create({ - data: { - annotations: cleanedData.annotations, - description: cleanedData.description, - labels: cleanedData.labels, - name: cleanedData.name, - realm: cleanedData.realm, - retiredAt: cleanedData.retiredAt, - rotatedAt: cleanedData.rotatedAt, - }, - select: { - annotations: true, - createdAt: true, - description: true, - id: true, - labels: true, - name: true, - realm: true, - retiredAt: true, - rotatedAt: true, - updatedAt: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/config/cli/commands/internal-secret.ts b/sdk/constructive-cli/src/config/cli/commands/internal-secret.ts index 54517c08d9..ef7b2d2cfb 100644 --- a/sdk/constructive-cli/src/config/cli/commands/internal-secret.ts +++ b/sdk/constructive-cli/src/config/cli/commands/internal-secret.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateInternalSecretInput, InternalSecretPatch, InternalSecretSelect, InternalSecretFilter, @@ -46,7 +45,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -63,8 +62,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -132,97 +129,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'json', - name: 'annotations', - message: 'annotations', - required: true, - }, - { - type: 'text', - name: 'databaseId', - message: 'databaseId', - required: true, - }, - { - type: 'text', - name: 'description', - message: 'description', - required: true, - }, - { - type: 'json', - name: 'labels', - message: 'labels', - required: true, - }, - { - type: 'text', - name: 'name', - message: 'name', - required: true, - }, - { - type: 'text', - name: 'realm', - message: 'realm', - required: true, - }, - { - type: 'text', - name: 'retiredAt', - message: 'retiredAt', - required: true, - }, - { - type: 'text', - name: 'rotatedAt', - message: 'rotatedAt', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateInternalSecretInput['internalSecret']; - const client = getClient(); - const result = await client.internalSecret - .create({ - data: { - annotations: cleanedData.annotations, - databaseId: cleanedData.databaseId, - description: cleanedData.description, - labels: cleanedData.labels, - name: cleanedData.name, - realm: cleanedData.realm, - retiredAt: cleanedData.retiredAt, - rotatedAt: cleanedData.rotatedAt, - }, - select: { - annotations: true, - createdAt: true, - databaseId: true, - description: true, - id: true, - labels: true, - name: true, - realm: true, - retiredAt: true, - rotatedAt: true, - updatedAt: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/config/cli/commands/platform-internal-secret.ts b/sdk/constructive-cli/src/config/cli/commands/platform-internal-secret.ts index 2d00f183cd..d35c8d04e9 100644 --- a/sdk/constructive-cli/src/config/cli/commands/platform-internal-secret.ts +++ b/sdk/constructive-cli/src/config/cli/commands/platform-internal-secret.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreatePlatformInternalSecretInput, PlatformInternalSecretPatch, PlatformInternalSecretSelect, PlatformInternalSecretFilter, @@ -45,7 +44,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -62,8 +61,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -137,89 +134,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'json', - name: 'annotations', - message: 'annotations', - required: true, - }, - { - type: 'text', - name: 'description', - message: 'description', - required: true, - }, - { - type: 'json', - name: 'labels', - message: 'labels', - required: true, - }, - { - type: 'text', - name: 'name', - message: 'name', - required: true, - }, - { - type: 'text', - name: 'realm', - message: 'realm', - required: true, - }, - { - type: 'text', - name: 'retiredAt', - message: 'retiredAt', - required: true, - }, - { - type: 'text', - name: 'rotatedAt', - message: 'rotatedAt', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreatePlatformInternalSecretInput['platformInternalSecret']; - const client = getClient(); - const result = await client.platformInternalSecret - .create({ - data: { - annotations: cleanedData.annotations, - description: cleanedData.description, - labels: cleanedData.labels, - name: cleanedData.name, - realm: cleanedData.realm, - retiredAt: cleanedData.retiredAt, - rotatedAt: cleanedData.rotatedAt, - }, - select: { - annotations: true, - createdAt: true, - description: true, - id: true, - labels: true, - name: true, - realm: true, - retiredAt: true, - rotatedAt: true, - updatedAt: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/config/cli/commands/platform-secret.ts b/sdk/constructive-cli/src/config/cli/commands/platform-secret.ts index fec0aa4339..aa567b0cd9 100644 --- a/sdk/constructive-cli/src/config/cli/commands/platform-secret.ts +++ b/sdk/constructive-cli/src/config/cli/commands/platform-secret.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreatePlatformSecretInput, PlatformSecretPatch, PlatformSecretSelect, PlatformSecretFilter, @@ -47,7 +46,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -64,8 +63,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -135,105 +132,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'json', - name: 'annotations', - message: 'annotations', - required: true, - }, - { - type: 'text', - name: 'description', - message: 'description', - required: true, - }, - { - type: 'json', - name: 'labels', - message: 'labels', - required: true, - }, - { - type: 'text', - name: 'name', - message: 'name', - required: true, - }, - { - type: 'text', - name: 'namespaceId', - message: 'namespaceId', - required: true, - }, - { - type: 'text', - name: 'provider', - message: 'provider', - required: true, - }, - { - type: 'text', - name: 'realm', - message: 'realm', - required: true, - }, - { - type: 'text', - name: 'retiredAt', - message: 'retiredAt', - required: true, - }, - { - type: 'text', - name: 'rotatedAt', - message: 'rotatedAt', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreatePlatformSecretInput['platformSecret']; - const client = getClient(); - const result = await client.platformSecret - .create({ - data: { - annotations: cleanedData.annotations, - description: cleanedData.description, - labels: cleanedData.labels, - name: cleanedData.name, - namespaceId: cleanedData.namespaceId, - provider: cleanedData.provider, - realm: cleanedData.realm, - retiredAt: cleanedData.retiredAt, - rotatedAt: cleanedData.rotatedAt, - }, - select: { - annotations: true, - createdAt: true, - description: true, - id: true, - labels: true, - name: true, - namespaceId: true, - provider: true, - realm: true, - retiredAt: true, - rotatedAt: true, - updatedAt: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/config/cli/commands/secret.ts b/sdk/constructive-cli/src/config/cli/commands/secret.ts index 49d2e99237..065f9ed661 100644 --- a/sdk/constructive-cli/src/config/cli/commands/secret.ts +++ b/sdk/constructive-cli/src/config/cli/commands/secret.ts @@ -7,13 +7,7 @@ import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; -import type { - CreateSecretInput, - SecretPatch, - SecretSelect, - SecretFilter, - SecretOrderBy, -} from '../../orm/input-types'; +import type { SecretPatch, SecretSelect, SecretFilter, SecretOrderBy } from '../../orm/input-types'; import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { annotations: 'json', @@ -48,7 +42,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -65,8 +59,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -138,110 +130,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'json', - name: 'annotations', - message: 'annotations', - required: true, - }, - { - type: 'text', - name: 'databaseId', - message: 'databaseId', - required: true, - }, - { - type: 'text', - name: 'description', - message: 'description', - required: true, - }, - { - type: 'json', - name: 'labels', - message: 'labels', - required: true, - }, - { - type: 'text', - name: 'name', - message: 'name', - required: true, - }, - { - type: 'text', - name: 'namespaceId', - message: 'namespaceId', - required: true, - }, - { - type: 'text', - name: 'provider', - message: 'provider', - required: true, - }, - { - type: 'text', - name: 'realm', - message: 'realm', - required: true, - }, - { - type: 'text', - name: 'retiredAt', - message: 'retiredAt', - required: true, - }, - { - type: 'text', - name: 'rotatedAt', - message: 'rotatedAt', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as CreateSecretInput['secret']; - const client = getClient(); - const result = await client.secret - .create({ - data: { - annotations: cleanedData.annotations, - databaseId: cleanedData.databaseId, - description: cleanedData.description, - labels: cleanedData.labels, - name: cleanedData.name, - namespaceId: cleanedData.namespaceId, - provider: cleanedData.provider, - realm: cleanedData.realm, - retiredAt: cleanedData.retiredAt, - rotatedAt: cleanedData.rotatedAt, - }, - select: { - annotations: true, - createdAt: true, - databaseId: true, - description: true, - id: true, - labels: true, - name: true, - namespaceId: true, - provider: true, - realm: true, - retiredAt: true, - rotatedAt: true, - updatedAt: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/config/orm/README.md b/sdk/constructive-cli/src/config/orm/README.md index 8e9c44033d..b52d2f9776 100644 --- a/sdk/constructive-cli/src/config/orm/README.md +++ b/sdk/constructive-cli/src/config/orm/README.md @@ -21,15 +21,15 @@ const db = createClient({ | Model | Operations | |-------|------------| -| `appInternalSecret` | findMany, findOne, create, update, delete | +| `appInternalSecret` | findMany, findOne, update, delete | | `config` | findMany, findOne, create, update, delete | | `internalConfig` | findMany, findOne, create, update, delete | -| `internalSecret` | findMany, findOne, create, update, delete | +| `internalSecret` | findMany, findOne, update, delete | | `platformConfig` | findMany, findOne, create, update, delete | | `platformInternalConfig` | findMany, findOne, create, update, delete | -| `platformInternalSecret` | findMany, findOne, create, update, delete | -| `platformSecret` | findMany, findOne, create, update, delete | -| `secret` | findMany, findOne, create, update, delete | +| `platformInternalSecret` | findMany, findOne, update, delete | +| `platformSecret` | findMany, findOne, update, delete | +| `secret` | findMany, findOne, update, delete | ## Table Operations @@ -61,9 +61,6 @@ const items = await db.appInternalSecret.findMany({ select: { annotations: true, // Get one by id const item = await db.appInternalSecret.findOne({ id: '', select: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }).execute(); -// Create -const created = await db.appInternalSecret.create({ data: { annotations: '', description: '', labels: '', name: '', realm: '', retiredAt: '', rotatedAt: '' }, select: { id: true } }).execute(); - // Update const updated = await db.appInternalSecret.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -183,9 +180,6 @@ const items = await db.internalSecret.findMany({ select: { annotations: true, cr // Get one by id const item = await db.internalSecret.findOne({ id: '', select: { annotations: true, createdAt: true, databaseId: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }).execute(); -// Create -const created = await db.internalSecret.create({ data: { annotations: '', databaseId: '', description: '', labels: '', name: '', realm: '', retiredAt: '', rotatedAt: '' }, select: { id: true } }).execute(); - // Update const updated = await db.internalSecret.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -302,9 +296,6 @@ const items = await db.platformInternalSecret.findMany({ select: { annotations: // Get one by id const item = await db.platformInternalSecret.findOne({ id: '', select: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }).execute(); -// Create -const created = await db.platformInternalSecret.create({ data: { annotations: '', description: '', labels: '', name: '', realm: '', retiredAt: '', rotatedAt: '' }, select: { id: true } }).execute(); - // Update const updated = await db.platformInternalSecret.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -342,9 +333,6 @@ const items = await db.platformSecret.findMany({ select: { annotations: true, cr // Get one by id const item = await db.platformSecret.findOne({ id: '', select: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }).execute(); -// Create -const created = await db.platformSecret.create({ data: { annotations: '', description: '', labels: '', name: '', namespaceId: '', provider: '', realm: '', retiredAt: '', rotatedAt: '' }, select: { id: true } }).execute(); - // Update const updated = await db.platformSecret.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -383,9 +371,6 @@ const items = await db.secret.findMany({ select: { annotations: true, createdAt: // Get one by id const item = await db.secret.findOne({ id: '', select: { annotations: true, createdAt: true, databaseId: true, description: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }).execute(); -// Create -const created = await db.secret.create({ data: { annotations: '', databaseId: '', description: '', labels: '', name: '', namespaceId: '', provider: '', realm: '', retiredAt: '', rotatedAt: '' }, select: { id: true } }).execute(); - // Update const updated = await db.secret.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); diff --git a/sdk/constructive-cli/src/config/orm/input-types.ts b/sdk/constructive-cli/src/config/orm/input-types.ts index 317d86e5b9..bd666714a5 100644 --- a/sdk/constructive-cli/src/config/orm/input-types.ts +++ b/sdk/constructive-cli/src/config/orm/input-types.ts @@ -1095,18 +1095,6 @@ export type SecretOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; // ============ CRUD Input Types ============ -export interface CreateAppInternalSecretInput { - clientMutationId?: string; - appInternalSecret: { - annotations?: Record; - description?: string; - labels?: Record; - name?: string; - realm?: string; - retiredAt?: string; - rotatedAt?: string; - }; -} export interface AppInternalSecretPatch { annotations?: Record | null; description?: string | null; @@ -1199,19 +1187,6 @@ export interface DeleteInternalConfigInput { clientMutationId?: string; id: string; } -export interface CreateInternalSecretInput { - clientMutationId?: string; - internalSecret: { - annotations?: Record; - databaseId: string; - description?: string; - labels?: Record; - name?: string; - realm?: string; - retiredAt?: string; - rotatedAt?: string; - }; -} export interface InternalSecretPatch { annotations?: Record | null; databaseId?: string | null; @@ -1301,18 +1276,6 @@ export interface DeletePlatformInternalConfigInput { clientMutationId?: string; id: string; } -export interface CreatePlatformInternalSecretInput { - clientMutationId?: string; - platformInternalSecret: { - annotations?: Record; - description?: string; - labels?: Record; - name?: string; - realm?: string; - retiredAt?: string; - rotatedAt?: string; - }; -} export interface PlatformInternalSecretPatch { annotations?: Record | null; description?: string | null; @@ -1331,20 +1294,6 @@ export interface DeletePlatformInternalSecretInput { clientMutationId?: string; id: string; } -export interface CreatePlatformSecretInput { - clientMutationId?: string; - platformSecret: { - annotations?: Record; - description?: string; - labels?: Record; - name?: string; - namespaceId: string; - provider?: string; - realm?: string; - retiredAt?: string; - rotatedAt?: string; - }; -} export interface PlatformSecretPatch { annotations?: Record | null; description?: string | null; @@ -1365,21 +1314,6 @@ export interface DeletePlatformSecretInput { clientMutationId?: string; id: string; } -export interface CreateSecretInput { - clientMutationId?: string; - secret: { - annotations?: Record; - databaseId: string; - description?: string; - labels?: Record; - name?: string; - namespaceId: string; - provider?: string; - realm?: string; - retiredAt?: string; - rotatedAt?: string; - }; -} export interface SecretPatch { annotations?: Record | null; databaseId?: string | null; diff --git a/sdk/constructive-cli/src/config/orm/models/appInternalSecret.ts b/sdk/constructive-cli/src/config/orm/models/appInternalSecret.ts index 6efc1ad009..d876c61ee7 100644 --- a/sdk/constructive-cli/src/config/orm/models/appInternalSecret.ts +++ b/sdk/constructive-cli/src/config/orm/models/appInternalSecret.ts @@ -29,7 +29,6 @@ import type { AppInternalSecretSelect, AppInternalSecretFilter, AppInternalSecretOrderBy, - CreateAppInternalSecretInput, UpdateAppInternalSecretInput, AppInternalSecretPatch, } from '../input-types'; @@ -144,31 +143,4 @@ export class AppInternalSecretModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppInternalSecret: { - appInternalSecret: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppInternalSecret', - 'createAppInternalSecret', - 'appInternalSecret', - args.select, - args.data, - 'CreateAppInternalSecretInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppInternalSecret', - fieldName: 'createAppInternalSecret', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/config/orm/models/internalSecret.ts b/sdk/constructive-cli/src/config/orm/models/internalSecret.ts index daeef23c68..443924fe70 100644 --- a/sdk/constructive-cli/src/config/orm/models/internalSecret.ts +++ b/sdk/constructive-cli/src/config/orm/models/internalSecret.ts @@ -29,7 +29,6 @@ import type { InternalSecretSelect, InternalSecretFilter, InternalSecretOrderBy, - CreateInternalSecretInput, UpdateInternalSecretInput, InternalSecretPatch, } from '../input-types'; @@ -144,31 +143,4 @@ export class InternalSecretModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createInternalSecret: { - internalSecret: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'InternalSecret', - 'createInternalSecret', - 'internalSecret', - args.select, - args.data, - 'CreateInternalSecretInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'InternalSecret', - fieldName: 'createInternalSecret', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/config/orm/models/platformInternalSecret.ts b/sdk/constructive-cli/src/config/orm/models/platformInternalSecret.ts index 35e0c7b538..0f246265ec 100644 --- a/sdk/constructive-cli/src/config/orm/models/platformInternalSecret.ts +++ b/sdk/constructive-cli/src/config/orm/models/platformInternalSecret.ts @@ -29,7 +29,6 @@ import type { PlatformInternalSecretSelect, PlatformInternalSecretFilter, PlatformInternalSecretOrderBy, - CreatePlatformInternalSecretInput, UpdatePlatformInternalSecretInput, PlatformInternalSecretPatch, } from '../input-types'; @@ -146,31 +145,4 @@ export class PlatformInternalSecretModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformInternalSecret: { - platformInternalSecret: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformInternalSecret', - 'createPlatformInternalSecret', - 'platformInternalSecret', - args.select, - args.data, - 'CreatePlatformInternalSecretInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformInternalSecret', - fieldName: 'createPlatformInternalSecret', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/config/orm/models/platformSecret.ts b/sdk/constructive-cli/src/config/orm/models/platformSecret.ts index 03c0e23540..4c51afe005 100644 --- a/sdk/constructive-cli/src/config/orm/models/platformSecret.ts +++ b/sdk/constructive-cli/src/config/orm/models/platformSecret.ts @@ -29,7 +29,6 @@ import type { PlatformSecretSelect, PlatformSecretFilter, PlatformSecretOrderBy, - CreatePlatformSecretInput, UpdatePlatformSecretInput, PlatformSecretPatch, } from '../input-types'; @@ -144,31 +143,4 @@ export class PlatformSecretModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformSecret: { - platformSecret: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformSecret', - 'createPlatformSecret', - 'platformSecret', - args.select, - args.data, - 'CreatePlatformSecretInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformSecret', - fieldName: 'createPlatformSecret', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/config/orm/models/secret.ts b/sdk/constructive-cli/src/config/orm/models/secret.ts index 37571240d8..580d275fdb 100644 --- a/sdk/constructive-cli/src/config/orm/models/secret.ts +++ b/sdk/constructive-cli/src/config/orm/models/secret.ts @@ -29,7 +29,6 @@ import type { SecretSelect, SecretFilter, SecretOrderBy, - CreateSecretInput, UpdateSecretInput, SecretPatch, } from '../input-types'; @@ -144,31 +143,4 @@ export class SecretModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createSecret: { - secret: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'Secret', - 'createSecret', - 'secret', - args.select, - args.data, - 'CreateSecretInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'Secret', - fieldName: 'createSecret', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/config/orm/query-builder.ts b/sdk/constructive-cli/src/config/orm/query-builder.ts index fd785bbae6..d6c981907f 100644 --- a/sdk/constructive-cli/src/config/orm/query-builder.ts +++ b/sdk/constructive-cli/src/config/orm/query-builder.ts @@ -140,9 +140,7 @@ export function buildSelections( ); const nestedSelect = nested.select; if (nestedSelect && typeof nestedSelect === 'object') { - const subSelections = Object.entries(nestedSelect) - .filter(([, v]) => v) - .map(([name]) => t.field({ name })); + const subSelections = buildSelections(nestedSelect, connectionFieldsMap); fields.push( t.field({ name: key, diff --git a/sdk/constructive-cli/src/config/orm/select-types.ts b/sdk/constructive-cli/src/config/orm/select-types.ts index 4b39d7e820..783c4603df 100644 --- a/sdk/constructive-cli/src/config/orm/select-types.ts +++ b/sdk/constructive-cli/src/config/orm/select-types.ts @@ -159,9 +159,13 @@ export type InferSelectResult = TSelect extends undefined ? K extends keyof TEntity ? NonNullable extends ConnectionResult ? ConnectionResult> - : - | InferSelectResult, NestedSelect> - | (null extends TEntity[K] ? null : never) + : NonNullable extends readonly (infer Item)[] + ? + | InferSelectResult, NestedSelect>[] + | (null extends TEntity[K] ? null : never) + : + | InferSelectResult, NestedSelect> + | (null extends TEntity[K] ? null : never) : never : K extends keyof TEntity ? TEntity[K] diff --git a/sdk/constructive-cli/src/infra/cli/README.md b/sdk/constructive-cli/src/infra/cli/README.md index ad1d69fee5..b4c79dda18 100644 --- a/sdk/constructive-cli/src/infra/cli/README.md +++ b/sdk/constructive-cli/src/infra/cli/README.md @@ -258,7 +258,6 @@ CRUD operations for PlatformInfraGetAllTreeNodesRecord records. | `list` | List all platformInfraGetAllTreeNodesRecord records | | `find-first` | Find first matching platformInfraGetAllTreeNodesRecord record | | `get` | Get a platformInfraGetAllTreeNodesRecord by id | -| `create` | Create a new platformInfraGetAllTreeNodesRecord | | `update` | Update an existing platformInfraGetAllTreeNodesRecord | | `delete` | Delete a platformInfraGetAllTreeNodesRecord | diff --git a/sdk/constructive-cli/src/infra/cli/commands/platform-infra-get-all-tree-nodes-record.ts b/sdk/constructive-cli/src/infra/cli/commands/platform-infra-get-all-tree-nodes-record.ts index 6283b9d768..6282f9ac8b 100644 --- a/sdk/constructive-cli/src/infra/cli/commands/platform-infra-get-all-tree-nodes-record.ts +++ b/sdk/constructive-cli/src/infra/cli/commands/platform-infra-get-all-tree-nodes-record.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreatePlatformInfraGetAllTreeNodesRecordInput, PlatformInfraGetAllTreeNodesRecordPatch, PlatformInfraGetAllTreeNodesRecordSelect, PlatformInfraGetAllTreeNodesRecordFilter, @@ -37,7 +36,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -54,8 +53,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -115,46 +112,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'json', - name: 'data', - message: 'data', - required: true, - }, - { - type: 'text', - name: 'path', - message: 'path', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreatePlatformInfraGetAllTreeNodesRecordInput['platformInfraGetAllTreeNodesRecord']; - const client = getClient(); - const result = await client.platformInfraGetAllTreeNodesRecord - .create({ - data: { - data: cleanedData.data, - path: cleanedData.path, - }, - select: { - data: true, - path: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/infra/orm/README.md b/sdk/constructive-cli/src/infra/orm/README.md index 63c0b0f3e5..82604daf03 100644 --- a/sdk/constructive-cli/src/infra/orm/README.md +++ b/sdk/constructive-cli/src/infra/orm/README.md @@ -26,7 +26,7 @@ const db = createClient({ | `namespace` | findMany, findOne, create, update, delete | | `namespaceEvent` | findMany, findOne, create, update, delete | | `platformInfraCommit` | findMany, findOne, create, update, delete | -| `platformInfraGetAllTreeNodesRecord` | findMany, findOne, create, update, delete | +| `platformInfraGetAllTreeNodesRecord` | findMany, findOne, update, delete | | `platformInfraObject` | findMany, findOne, create, update, delete | | `platformInfraRef` | findMany, findOne, create, update, delete | | `platformInfraStore` | findMany, findOne, create, update, delete | @@ -248,9 +248,6 @@ const items = await db.platformInfraGetAllTreeNodesRecord.findMany({ select: { d // Get one by id const item = await db.platformInfraGetAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: true } }).execute(); -// Create -const created = await db.platformInfraGetAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); - // Update const updated = await db.platformInfraGetAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); diff --git a/sdk/constructive-cli/src/infra/orm/input-types.ts b/sdk/constructive-cli/src/infra/orm/input-types.ts index 10a6c604ec..498b6592bf 100644 --- a/sdk/constructive-cli/src/infra/orm/input-types.ts +++ b/sdk/constructive-cli/src/infra/orm/input-types.ts @@ -1245,13 +1245,6 @@ export interface DeletePlatformInfraCommitInput { clientMutationId?: string; id: string; } -export interface CreatePlatformInfraGetAllTreeNodesRecordInput { - clientMutationId?: string; - platformInfraGetAllTreeNodesRecord: { - data?: Record; - path?: string[]; - }; -} export interface PlatformInfraGetAllTreeNodesRecordPatch { data?: Record | null; path?: string[] | null; diff --git a/sdk/constructive-cli/src/infra/orm/models/platformInfraGetAllTreeNodesRecord.ts b/sdk/constructive-cli/src/infra/orm/models/platformInfraGetAllTreeNodesRecord.ts index e0e0a2aeaa..522c666bd3 100644 --- a/sdk/constructive-cli/src/infra/orm/models/platformInfraGetAllTreeNodesRecord.ts +++ b/sdk/constructive-cli/src/infra/orm/models/platformInfraGetAllTreeNodesRecord.ts @@ -29,7 +29,6 @@ import type { PlatformInfraGetAllTreeNodesRecordSelect, PlatformInfraGetAllTreeNodesRecordFilter, PlatformInfraGetAllTreeNodesRecordsOrderBy, - CreatePlatformInfraGetAllTreeNodesRecordInput, UpdatePlatformInfraGetAllTreeNodesRecordInput, PlatformInfraGetAllTreeNodesRecordPatch, } from '../input-types'; @@ -117,37 +116,4 @@ export class PlatformInfraGetAllTreeNodesRecordModel { }), }); } - create( - args: CreateArgs< - S, - CreatePlatformInfraGetAllTreeNodesRecordInput['platformInfraGetAllTreeNodesRecord'] - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformInfraGetAllTreeNodesRecord: { - platformInfraGetAllTreeNodesRecord: InferSelectResult< - PlatformInfraGetAllTreeNodesRecordWithRelations, - S - >; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformInfraGetAllTreeNodesRecord', - 'createPlatformInfraGetAllTreeNodesRecord', - 'platformInfraGetAllTreeNodesRecord', - args.select, - args.data, - 'CreatePlatformInfraGetAllTreeNodesRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformInfraGetAllTreeNodesRecord', - fieldName: 'createPlatformInfraGetAllTreeNodesRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/infra/orm/query-builder.ts b/sdk/constructive-cli/src/infra/orm/query-builder.ts index fd785bbae6..d6c981907f 100644 --- a/sdk/constructive-cli/src/infra/orm/query-builder.ts +++ b/sdk/constructive-cli/src/infra/orm/query-builder.ts @@ -140,9 +140,7 @@ export function buildSelections( ); const nestedSelect = nested.select; if (nestedSelect && typeof nestedSelect === 'object') { - const subSelections = Object.entries(nestedSelect) - .filter(([, v]) => v) - .map(([name]) => t.field({ name })); + const subSelections = buildSelections(nestedSelect, connectionFieldsMap); fields.push( t.field({ name: key, diff --git a/sdk/constructive-cli/src/infra/orm/select-types.ts b/sdk/constructive-cli/src/infra/orm/select-types.ts index 4b39d7e820..783c4603df 100644 --- a/sdk/constructive-cli/src/infra/orm/select-types.ts +++ b/sdk/constructive-cli/src/infra/orm/select-types.ts @@ -159,9 +159,13 @@ export type InferSelectResult = TSelect extends undefined ? K extends keyof TEntity ? NonNullable extends ConnectionResult ? ConnectionResult> - : - | InferSelectResult, NestedSelect> - | (null extends TEntity[K] ? null : never) + : NonNullable extends readonly (infer Item)[] + ? + | InferSelectResult, NestedSelect>[] + | (null extends TEntity[K] ? null : never) + : + | InferSelectResult, NestedSelect> + | (null extends TEntity[K] ? null : never) : never : K extends keyof TEntity ? TEntity[K] diff --git a/sdk/constructive-cli/src/modules/cli/README.md b/sdk/constructive-cli/src/modules/cli/README.md index 1334f3510d..94370ac629 100644 --- a/sdk/constructive-cli/src/modules/cli/README.md +++ b/sdk/constructive-cli/src/modules/cli/README.md @@ -114,7 +114,7 @@ csdk auth set-token | `webauthn-auth-module` | webauthnAuthModule CRUD operations | | `webauthn-credentials-module` | webauthnCredentialsModule CRUD operations | | `webhook-module` | webhookModule CRUD operations | -| `construct-blueprint` | Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). A table entry either names its table (table_name plus optional schema_name) or references one an installed module generated ("module": {"type": "agent", "scope": "org", "table": "message"}), which resolves through the module row's recorded table ids and raises when it matches nothing instead of creating an empty table. After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID. A failure raises its coded error to the caller and rolls back the whole construction, including the construction record. | +| `construct-blueprint` | Requests a build of a blueprint: snapshots its definition into a pending blueprint_construction row, enqueues the blueprint:construct job that runs metaschema_private.construct_blueprint_run on it, and returns the construction id immediately. Poll the row: pending -> constructing -> constructed (table_map populated) or failed (error holds the coded error). schema_id is the default schema for tables without an explicit schema_name. | | `copy-template-to-blueprint` | Creates a new blueprint by copying a template definition. Checks visibility: owners can always copy their own templates, others require public visibility. Increments the template copy_count. Returns the new blueprint ID. | | `provision-bucket` | Reconcile an S3 bucket for a logical bucket in the database. Records the request on the bucket row via RLS; the bucket's job @@ -517,6 +517,7 @@ CRUD operations for BlueprintConstruction records. | `constructedDefinition` | JSON | | `createdAt` | Datetime | | `databaseId` | UUID | +| `error` | JSON | | `id` | UUID | | `schemaId` | UUID | | `status` | String | @@ -524,7 +525,7 @@ CRUD operations for BlueprintConstruction records. | `updatedAt` | Datetime | **Required create fields:** `blueprintId`, `databaseId` -**Optional create fields (backend defaults):** `constructedAt`, `constructedDefinition`, `schemaId`, `status`, `tableMap` +**Optional create fields (backend defaults):** `constructedAt`, `constructedDefinition`, `error`, `schemaId`, `status`, `tableMap` ### `blueprint-template` @@ -1157,6 +1158,8 @@ CRUD operations for DbUsageModule records. | `queryStatsLogTableName` | String | | `queryStatsSummaryTableId` | UUID | | `queryStatsSummaryTableName` | String | +| `readDbQueryStatsUsagePeriodFunction` | String | +| `readDbTableStatsUsagePeriodFunction` | String | | `retention` | String | | `rollupDbQueryStatsUsageSummaryFunction` | String | | `rollupDbTableStatsUsageSummaryFunction` | String | @@ -1168,7 +1171,7 @@ CRUD operations for DbUsageModule records. | `tableStatsSummaryTableName` | String | **Required create fields:** `databaseId`, `scope` -**Optional create fields (backend defaults):** `apiName`, `collectDbQueryStatsFunction`, `collectDbTableStatsFunction`, `defaultCapabilities`, `entityField`, `interval`, `prefix`, `premake`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `publicSchemaName`, `queryStatsLogTableId`, `queryStatsLogTableName`, `queryStatsSummaryTableId`, `queryStatsSummaryTableName`, `retention`, `rollupDbQueryStatsUsageSummaryFunction`, `rollupDbTableStatsUsageSummaryFunction`, `schemaId`, `tableStatsLogTableId`, `tableStatsLogTableName`, `tableStatsSummaryTableId`, `tableStatsSummaryTableName` +**Optional create fields (backend defaults):** `apiName`, `collectDbQueryStatsFunction`, `collectDbTableStatsFunction`, `defaultCapabilities`, `entityField`, `interval`, `prefix`, `premake`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `publicSchemaName`, `queryStatsLogTableId`, `queryStatsLogTableName`, `queryStatsSummaryTableId`, `queryStatsSummaryTableName`, `readDbQueryStatsUsagePeriodFunction`, `readDbTableStatsUsagePeriodFunction`, `retention`, `rollupDbQueryStatsUsageSummaryFunction`, `rollupDbTableStatsUsageSummaryFunction`, `schemaId`, `tableStatsLogTableId`, `tableStatsLogTableName`, `tableStatsSummaryTableId`, `tableStatsSummaryTableName` ### `default-ids-module` @@ -1274,6 +1277,7 @@ CRUD operations for DomainModule records. | `catalogModuleId` | UUID | | `databaseId` | UUID | | `defaultCapabilities` | String | +| `defaultReservedSubdomains` | JSON | | `domainEventsTableId` | UUID | | `domainEventsTableName` | String | | `domainVerificationsTableId` | UUID | @@ -1292,11 +1296,14 @@ CRUD operations for DomainModule records. | `privateSchemaName` | String | | `provisions` | JSON | | `publicSchemaName` | String | +| `reservedSubdomainsTableId` | UUID | +| `reservedSubdomainsTableName` | String | | `schemaId` | UUID | | `scope` | String | +| `sweepUnverifiedDomainsFunction` | String | **Required create fields:** `databaseId`, `scope` -**Optional create fields (backend defaults):** `apiName`, `catalogModuleId`, `defaultCapabilities`, `domainEventsTableId`, `domainEventsTableName`, `domainVerificationsTableId`, `domainVerificationsTableName`, `domainsTableId`, `domainsTableName`, `entityField`, `entityTableId`, `managedDomainsTableId`, `managedDomainsTableName`, `policies`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provisions`, `publicSchemaName`, `schemaId` +**Optional create fields (backend defaults):** `apiName`, `catalogModuleId`, `defaultCapabilities`, `defaultReservedSubdomains`, `domainEventsTableId`, `domainEventsTableName`, `domainVerificationsTableId`, `domainVerificationsTableName`, `domainsTableId`, `domainsTableName`, `entityField`, `entityTableId`, `managedDomainsTableId`, `managedDomainsTableName`, `policies`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provisions`, `publicSchemaName`, `reservedSubdomainsTableId`, `reservedSubdomainsTableName`, `schemaId`, `sweepUnverifiedDomainsFunction` ### `email-sender-module` @@ -3019,8 +3026,6 @@ CRUD operations for ResourceModule records. | Field | Type | |-------|------| | `apiName` | String | -| `builderBindingsTableId` | UUID | -| `builderBindingsTableName` | String | | `databaseId` | UUID | | `defaultCapabilities` | String | | `entityField` | String | @@ -3058,9 +3063,11 @@ CRUD operations for ResourceModule records. | `rollupResourceUsageSummaryFunction` | String | | `schemaId` | UUID | | `scope` | String | +| `serviceBindingsTableId` | UUID | +| `serviceBindingsTableName` | String | **Required create fields:** `databaseId`, `scope` -**Optional create fields (backend defaults):** `apiName`, `builderBindingsTableId`, `builderBindingsTableName`, `defaultCapabilities`, `entityField`, `entityTableId`, `installationStoreName`, `merkleStoreModuleId`, `namespaceModuleId`, `policies`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provisions`, `publicSchemaName`, `registryBindingsTableId`, `registryBindingsTableName`, `requirementsStateViewName`, `resolvedRequirementsViewName`, `resourceBillingRollupFunction`, `resourceDefinitionsTableId`, `resourceDefinitionsTableName`, `resourceEventsTableId`, `resourceEventsTableName`, `resourceInstallationsTableId`, `resourceInstallationsTableName`, `resourceStatusChecksTableId`, `resourceStatusChecksTableName`, `resourceUsageLogTableId`, `resourceUsageLogTableName`, `resourceUsageSummaryTableId`, `resourceUsageSummaryTableName`, `resourcesTableId`, `resourcesTableName`, `rollupResourceUsageSummaryFunction`, `schemaId` +**Optional create fields (backend defaults):** `apiName`, `defaultCapabilities`, `entityField`, `entityTableId`, `installationStoreName`, `merkleStoreModuleId`, `namespaceModuleId`, `policies`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provisions`, `publicSchemaName`, `registryBindingsTableId`, `registryBindingsTableName`, `requirementsStateViewName`, `resolvedRequirementsViewName`, `resourceBillingRollupFunction`, `resourceDefinitionsTableId`, `resourceDefinitionsTableName`, `resourceEventsTableId`, `resourceEventsTableName`, `resourceInstallationsTableId`, `resourceInstallationsTableName`, `resourceStatusChecksTableId`, `resourceStatusChecksTableName`, `resourceUsageLogTableId`, `resourceUsageLogTableName`, `resourceUsageSummaryTableId`, `resourceUsageSummaryTableName`, `resourcesTableId`, `resourcesTableName`, `rollupResourceUsageSummaryFunction`, `schemaId`, `serviceBindingsTableId`, `serviceBindingsTableName` ### `rls-module` @@ -3350,6 +3357,7 @@ CRUD operations for StorageLogModule records. | `privateSchemaId` | UUID | | `privateSchemaName` | String | | `publicSchemaName` | String | +| `readStorageUsagePeriodFunction` | String | | `retention` | String | | `rollupFunctionName` | String | | `schemaId` | UUID | @@ -3360,7 +3368,7 @@ CRUD operations for StorageLogModule records. | `usageSummaryTableName` | String | **Required create fields:** `databaseId`, `scope` -**Optional create fields (backend defaults):** `apiName`, `entityField`, `interval`, `prefix`, `premake`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `publicSchemaName`, `retention`, `rollupFunctionName`, `schemaId`, `storageLogTableId`, `storageLogTableName`, `usageSummaryTableId`, `usageSummaryTableName` +**Optional create fields (backend defaults):** `apiName`, `entityField`, `interval`, `prefix`, `premake`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `publicSchemaName`, `readStorageUsagePeriodFunction`, `retention`, `rollupFunctionName`, `schemaId`, `storageLogTableId`, `storageLogTableName`, `usageSummaryTableId`, `usageSummaryTableName` ### `storage-module` @@ -3397,7 +3405,6 @@ CRUD operations for StorageModule records. | `filesTableId` | UUID | | `filesTableName` | String | | `hasAuditLog` | Boolean | -| `hasConfirmUpload` | Boolean | | `hasContentHash` | Boolean | | `hasCustomKeys` | Boolean | | `hasPathShares` | Boolean | @@ -3424,7 +3431,7 @@ CRUD operations for StorageModule records. | `uploadUrlExpirySeconds` | Int | **Required create fields:** `databaseId`, `scope` -**Optional create fields (backend defaults):** `allowedOrigins`, `apiName`, `bucketsTableId`, `bucketsTableName`, `cacheTtlSeconds`, `catalogModuleId`, `confirmUploadDelay`, `defaultCapabilities`, `defaultMaxFileSize`, `downloadUrlExpirySeconds`, `endpoint`, `entityField`, `entityTableId`, `fileEventsTableId`, `filesTableId`, `filesTableName`, `hasAuditLog`, `hasConfirmUpload`, `hasContentHash`, `hasCustomKeys`, `hasPathShares`, `hasVersioning`, `key`, `maxBulkFiles`, `maxBulkTotalSize`, `maxFilenameLength`, `pathSharesTableId`, `policies`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provider`, `provisions`, `publicSchemaName`, `publicUrlPrefix`, `region`, `restrictReads`, `schemaId`, `uploadUrlExpirySeconds` +**Optional create fields (backend defaults):** `allowedOrigins`, `apiName`, `bucketsTableId`, `bucketsTableName`, `cacheTtlSeconds`, `catalogModuleId`, `confirmUploadDelay`, `defaultCapabilities`, `defaultMaxFileSize`, `downloadUrlExpirySeconds`, `endpoint`, `entityField`, `entityTableId`, `fileEventsTableId`, `filesTableId`, `filesTableName`, `hasAuditLog`, `hasContentHash`, `hasCustomKeys`, `hasPathShares`, `hasVersioning`, `key`, `maxBulkFiles`, `maxBulkTotalSize`, `maxFilenameLength`, `pathSharesTableId`, `policies`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provider`, `provisions`, `publicSchemaName`, `publicUrlPrefix`, `region`, `restrictReads`, `schemaId`, `uploadUrlExpirySeconds` ### `transfer-log-module` @@ -3775,7 +3782,7 @@ CRUD operations for WebhookModule records. ### `construct-blueprint` -Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). A table entry either names its table (table_name plus optional schema_name) or references one an installed module generated ("module": {"type": "agent", "scope": "org", "table": "message"}), which resolves through the module row's recorded table ids and raises when it matches nothing instead of creating an empty table. After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID. A failure raises its coded error to the caller and rolls back the whole construction, including the construction record. +Requests a build of a blueprint: snapshots its definition into a pending blueprint_construction row, enqueues the blueprint:construct job that runs metaschema_private.construct_blueprint_run on it, and returns the construction id immediately. Poll the row: pending -> constructing -> constructed (table_map populated) or failed (error holds the coded error). schema_id is the default schema for tables without an explicit schema_name. - **Type:** mutation - **Arguments:** diff --git a/sdk/constructive-cli/src/modules/cli/commands.ts b/sdk/constructive-cli/src/modules/cli/commands.ts index 3f3384e5d4..f036b3b1a9 100644 --- a/sdk/constructive-cli/src/modules/cli/commands.ts +++ b/sdk/constructive-cli/src/modules/cli/commands.ts @@ -200,7 +200,7 @@ const createCommandMap: () => Record< 'provision-bucket': provisionBucketCmd, }); const usage = - '\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n agent-module agentModule CRUD operations\n api-surface-module apiSurfaceModule CRUD operations\n app-module appModule CRUD operations\n billing-module billingModule CRUD operations\n billing-provider-module billingProviderModule CRUD operations\n blueprint blueprint CRUD operations\n blueprint-construction blueprintConstruction CRUD operations\n blueprint-template blueprintTemplate CRUD operations\n capabilities-module capabilitiesModule CRUD operations\n catalog-module catalogModule CRUD operations\n cluster-module clusterModule CRUD operations\n compute-log-module computeLogModule CRUD operations\n connected-accounts-module connectedAccountsModule CRUD operations\n content-preset-module contentPresetModule CRUD operations\n crypto-addresses-module cryptoAddressesModule CRUD operations\n crypto-auth-module cryptoAuthModule CRUD operations\n data-capabilities-field dataCapabilitiesField CRUD operations\n database-provision-module databaseProvisionModule CRUD operations\n database-settings-module databaseSettingsModule CRUD operations\n db-pool-config dbPoolConfig CRUD operations\n db-pool dbPool CRUD operations\n db-preset-module dbPresetModule CRUD operations\n db-usage-module dbUsageModule CRUD operations\n default-ids-module defaultIdsModule CRUD operations\n denormalized-table-field denormalizedTableField CRUD operations\n devices-module devicesModule CRUD operations\n domain-module domainModule CRUD operations\n email-sender-module emailSenderModule CRUD operations\n emails-module emailsModule CRUD operations\n entity-type-provision entityTypeProvision CRUD operations\n events-module eventsModule CRUD operations\n file-ref-field fileRefField CRUD operations\n function-deployment-module functionDeploymentModule CRUD operations\n function-invocation-module functionInvocationModule CRUD operations\n function-module functionModule CRUD operations\n graph-execution-module graphExecutionModule CRUD operations\n graph-module graphModule CRUD operations\n hierarchy-module hierarchyModule CRUD operations\n i-18-n-module i18NModule CRUD operations\n identity-providers-module identityProvidersModule CRUD operations\n image-module imageModule CRUD operations\n inference-log-module inferenceLogModule CRUD operations\n infra-config-module infraConfigModule CRUD operations\n infra-secrets-module infraSecretsModule CRUD operations\n integration-providers-module integrationProvidersModule CRUD operations\n internal-config-module internalConfigModule CRUD operations\n internal-secrets-module internalSecretsModule CRUD operations\n invites-module invitesModule CRUD operations\n k-8-s-admission-module k8sAdmissionModule CRUD operations\n limits-module limitsModule CRUD operations\n machine-module machineModule CRUD operations\n membership-types-module membershipTypesModule CRUD operations\n memberships-module membershipsModule CRUD operations\n merkle-store-module merkleStoreModule CRUD operations\n namespace-module namespaceModule CRUD operations\n notifications-module notificationsModule CRUD operations\n oauth-requests-module oauthRequestsModule CRUD operations\n pages-module pagesModule CRUD operations\n phone-numbers-module phoneNumbersModule CRUD operations\n plans-module plansModule CRUD operations\n principal-auth-module principalAuthModule CRUD operations\n profiles-module profilesModule CRUD operations\n rate-limit-meters-module rateLimitMetersModule CRUD operations\n rate-limits-module rateLimitsModule CRUD operations\n realtime-module realtimeModule CRUD operations\n refusal-log-module refusalLogModule CRUD operations\n relation-provision relationProvision CRUD operations\n repository-module repositoryModule CRUD operations\n resource-module resourceModule CRUD operations\n rls-module rlsModule CRUD operations\n route-module routeModule CRUD operations\n scope-types-module scopeTypesModule CRUD operations\n secure-table-provision secureTableProvision CRUD operations\n session-secrets-module sessionSecretsModule CRUD operations\n sessions-module sessionsModule CRUD operations\n site-surface-module siteSurfaceModule CRUD operations\n storage-log-module storageLogModule CRUD operations\n storage-module storageModule CRUD operations\n transfer-log-module transferLogModule CRUD operations\n user-auth-module userAuthModule CRUD operations\n user-credentials-module userCredentialsModule CRUD operations\n user-settings-module userSettingsModule CRUD operations\n user-settings-security-module userSettingsSecurityModule CRUD operations\n user-state-module userStateModule CRUD operations\n users-module usersModule CRUD operations\n webauthn-auth-module webauthnAuthModule CRUD operations\n webauthn-credentials-module webauthnCredentialsModule CRUD operations\n webhook-module webhookModule CRUD operations\n construct-blueprint Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry \u2014 provisions entity tables, membership modules, and security. When a prefix already exists (e.g., \'org\'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope (\'app\' or \'org\' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). A table entry either names its table (table_name plus optional schema_name) or references one an installed module generated ("module": {"type": "agent", "scope": "org", "table": "message"}), which resolves through the module row\'s recorded table ids and raises when it matches nothing instead of creating an empty table. After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] \u2014 resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID. A failure raises its coded error to the caller and rolls back the whole construction, including the construction record.\n copy-template-to-blueprint Creates a new blueprint by copying a template definition. Checks visibility: owners can always copy their own templates, others require public visibility. Increments the template copy_count. Returns the new blueprint ID.\n provision-bucket Reconcile an S3 bucket for a logical bucket in the database.\nRecords the request on the bucket row via RLS; the bucket\'s job\ntrigger then enqueues the same storage:provision_bucket job used on\nINSERT, and repeated requests collapse into one pending job. This is\nidempotent for an already-reconciled bucket; failures become GraphQL\nerrors.\n\n --help, -h Show this help message\n --version, -v Show version\n'; + "\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n agent-module agentModule CRUD operations\n api-surface-module apiSurfaceModule CRUD operations\n app-module appModule CRUD operations\n billing-module billingModule CRUD operations\n billing-provider-module billingProviderModule CRUD operations\n blueprint blueprint CRUD operations\n blueprint-construction blueprintConstruction CRUD operations\n blueprint-template blueprintTemplate CRUD operations\n capabilities-module capabilitiesModule CRUD operations\n catalog-module catalogModule CRUD operations\n cluster-module clusterModule CRUD operations\n compute-log-module computeLogModule CRUD operations\n connected-accounts-module connectedAccountsModule CRUD operations\n content-preset-module contentPresetModule CRUD operations\n crypto-addresses-module cryptoAddressesModule CRUD operations\n crypto-auth-module cryptoAuthModule CRUD operations\n data-capabilities-field dataCapabilitiesField CRUD operations\n database-provision-module databaseProvisionModule CRUD operations\n database-settings-module databaseSettingsModule CRUD operations\n db-pool-config dbPoolConfig CRUD operations\n db-pool dbPool CRUD operations\n db-preset-module dbPresetModule CRUD operations\n db-usage-module dbUsageModule CRUD operations\n default-ids-module defaultIdsModule CRUD operations\n denormalized-table-field denormalizedTableField CRUD operations\n devices-module devicesModule CRUD operations\n domain-module domainModule CRUD operations\n email-sender-module emailSenderModule CRUD operations\n emails-module emailsModule CRUD operations\n entity-type-provision entityTypeProvision CRUD operations\n events-module eventsModule CRUD operations\n file-ref-field fileRefField CRUD operations\n function-deployment-module functionDeploymentModule CRUD operations\n function-invocation-module functionInvocationModule CRUD operations\n function-module functionModule CRUD operations\n graph-execution-module graphExecutionModule CRUD operations\n graph-module graphModule CRUD operations\n hierarchy-module hierarchyModule CRUD operations\n i-18-n-module i18NModule CRUD operations\n identity-providers-module identityProvidersModule CRUD operations\n image-module imageModule CRUD operations\n inference-log-module inferenceLogModule CRUD operations\n infra-config-module infraConfigModule CRUD operations\n infra-secrets-module infraSecretsModule CRUD operations\n integration-providers-module integrationProvidersModule CRUD operations\n internal-config-module internalConfigModule CRUD operations\n internal-secrets-module internalSecretsModule CRUD operations\n invites-module invitesModule CRUD operations\n k-8-s-admission-module k8sAdmissionModule CRUD operations\n limits-module limitsModule CRUD operations\n machine-module machineModule CRUD operations\n membership-types-module membershipTypesModule CRUD operations\n memberships-module membershipsModule CRUD operations\n merkle-store-module merkleStoreModule CRUD operations\n namespace-module namespaceModule CRUD operations\n notifications-module notificationsModule CRUD operations\n oauth-requests-module oauthRequestsModule CRUD operations\n pages-module pagesModule CRUD operations\n phone-numbers-module phoneNumbersModule CRUD operations\n plans-module plansModule CRUD operations\n principal-auth-module principalAuthModule CRUD operations\n profiles-module profilesModule CRUD operations\n rate-limit-meters-module rateLimitMetersModule CRUD operations\n rate-limits-module rateLimitsModule CRUD operations\n realtime-module realtimeModule CRUD operations\n refusal-log-module refusalLogModule CRUD operations\n relation-provision relationProvision CRUD operations\n repository-module repositoryModule CRUD operations\n resource-module resourceModule CRUD operations\n rls-module rlsModule CRUD operations\n route-module routeModule CRUD operations\n scope-types-module scopeTypesModule CRUD operations\n secure-table-provision secureTableProvision CRUD operations\n session-secrets-module sessionSecretsModule CRUD operations\n sessions-module sessionsModule CRUD operations\n site-surface-module siteSurfaceModule CRUD operations\n storage-log-module storageLogModule CRUD operations\n storage-module storageModule CRUD operations\n transfer-log-module transferLogModule CRUD operations\n user-auth-module userAuthModule CRUD operations\n user-credentials-module userCredentialsModule CRUD operations\n user-settings-module userSettingsModule CRUD operations\n user-settings-security-module userSettingsSecurityModule CRUD operations\n user-state-module userStateModule CRUD operations\n users-module usersModule CRUD operations\n webauthn-auth-module webauthnAuthModule CRUD operations\n webauthn-credentials-module webauthnCredentialsModule CRUD operations\n webhook-module webhookModule CRUD operations\n construct-blueprint Requests a build of a blueprint: snapshots its definition into a pending blueprint_construction row, enqueues the blueprint:construct job that runs metaschema_private.construct_blueprint_run on it, and returns the construction id immediately. Poll the row: pending -> constructing -> constructed (table_map populated) or failed (error holds the coded error). schema_id is the default schema for tables without an explicit schema_name.\n copy-template-to-blueprint Creates a new blueprint by copying a template definition. Checks visibility: owners can always copy their own templates, others require public visibility. Increments the template copy_count. Returns the new blueprint ID.\n provision-bucket Reconcile an S3 bucket for a logical bucket in the database.\nRecords the request on the bucket row via RLS; the bucket's job\ntrigger then enqueues the same storage:provision_bucket job used on\nINSERT, and repeated requests collapse into one pending job. This is\nidempotent for an already-reconciled bucket; failures become GraphQL\nerrors.\n\n --help, -h Show this help message\n --version, -v Show version\n"; export const commands = async ( argv: Partial>, prompter: Inquirerer, diff --git a/sdk/constructive-cli/src/modules/cli/commands/blueprint-construction.ts b/sdk/constructive-cli/src/modules/cli/commands/blueprint-construction.ts index 0a5f93fccd..fdb653770f 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/blueprint-construction.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/blueprint-construction.ts @@ -21,6 +21,7 @@ const fieldSchema: FieldSchema = { constructedDefinition: 'json', createdAt: 'string', databaseId: 'uuid', + error: 'json', id: 'uuid', schemaId: 'uuid', status: 'string', @@ -83,6 +84,7 @@ async function handleList(argv: Partial>, _prompter: Inq constructedDefinition: true, createdAt: true, databaseId: true, + error: true, id: true, schemaId: true, status: true, @@ -117,6 +119,7 @@ async function handleFindFirst(argv: Partial>, _prompter constructedDefinition: true, createdAt: true, databaseId: true, + error: true, id: true, schemaId: true, status: true, @@ -163,6 +166,7 @@ async function handleGet(argv: Partial>, prompter: Inqui constructedDefinition: true, createdAt: true, databaseId: true, + error: true, id: true, schemaId: true, status: true, @@ -209,6 +213,13 @@ async function handleCreate(argv: Partial>, prompter: In message: 'databaseId', required: true, }, + { + type: 'json', + name: 'error', + message: 'error', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -244,6 +255,7 @@ async function handleCreate(argv: Partial>, prompter: In constructedAt: cleanedData.constructedAt, constructedDefinition: cleanedData.constructedDefinition, databaseId: cleanedData.databaseId, + error: cleanedData.error, schemaId: cleanedData.schemaId, status: cleanedData.status, tableMap: cleanedData.tableMap, @@ -254,6 +266,7 @@ async function handleCreate(argv: Partial>, prompter: In constructedDefinition: true, createdAt: true, databaseId: true, + error: true, id: true, schemaId: true, status: true, @@ -306,6 +319,13 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'databaseId', required: false, }, + { + type: 'json', + name: 'error', + message: 'error', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -341,6 +361,7 @@ async function handleUpdate(argv: Partial>, prompter: In constructedAt: cleanedData.constructedAt, constructedDefinition: cleanedData.constructedDefinition, databaseId: cleanedData.databaseId, + error: cleanedData.error, schemaId: cleanedData.schemaId, status: cleanedData.status, tableMap: cleanedData.tableMap, @@ -351,6 +372,7 @@ async function handleUpdate(argv: Partial>, prompter: In constructedDefinition: true, createdAt: true, databaseId: true, + error: true, id: true, schemaId: true, status: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/construct-blueprint.ts b/sdk/constructive-cli/src/modules/cli/commands/construct-blueprint.ts index da487655b6..65bec14a7a 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/construct-blueprint.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/construct-blueprint.ts @@ -16,7 +16,7 @@ export default async ( try { if (argv.help || argv.h) { console.log( - 'construct-blueprint - Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry \u2014 provisions entity tables, membership modules, and security. When a prefix already exists (e.g., \'org\'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope (\'app\' or \'org\' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). A table entry either names its table (table_name plus optional schema_name) or references one an installed module generated ("module": {"type": "agent", "scope": "org", "table": "message"}), which resolves through the module row\'s recorded table ids and raises when it matches nothing instead of creating an empty table. After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] \u2014 resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID. A failure raises its coded error to the caller and rolls back the whole construction, including the construction record.\n\nUsage: construct-blueprint [OPTIONS]\n' + 'construct-blueprint - Requests a build of a blueprint: snapshots its definition into a pending blueprint_construction row, enqueues the blueprint:construct job that runs metaschema_private.construct_blueprint_run on it, and returns the construction id immediately. Poll the row: pending -> constructing -> constructed (table_map populated) or failed (error holds the coded error). schema_id is the default schema for tables without an explicit schema_name.\n\nUsage: construct-blueprint [OPTIONS]\n' ); process.exit(0); } diff --git a/sdk/constructive-cli/src/modules/cli/commands/db-usage-module.ts b/sdk/constructive-cli/src/modules/cli/commands/db-usage-module.ts index 491f743647..268e32f222 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/db-usage-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/db-usage-module.ts @@ -34,6 +34,8 @@ const fieldSchema: FieldSchema = { queryStatsLogTableName: 'string', queryStatsSummaryTableId: 'uuid', queryStatsSummaryTableName: 'string', + readDbQueryStatsUsagePeriodFunction: 'string', + readDbTableStatsUsagePeriodFunction: 'string', retention: 'string', rollupDbQueryStatsUsageSummaryFunction: 'string', rollupDbTableStatsUsageSummaryFunction: 'string', @@ -113,6 +115,8 @@ async function handleList(argv: Partial>, _prompter: Inq queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, + readDbQueryStatsUsagePeriodFunction: true, + readDbTableStatsUsagePeriodFunction: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, @@ -160,6 +164,8 @@ async function handleFindFirst(argv: Partial>, _prompter queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, + readDbQueryStatsUsagePeriodFunction: true, + readDbTableStatsUsagePeriodFunction: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, @@ -219,6 +225,8 @@ async function handleGet(argv: Partial>, prompter: Inqui queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, + readDbQueryStatsUsagePeriodFunction: true, + readDbTableStatsUsagePeriodFunction: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, @@ -361,6 +369,20 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'readDbQueryStatsUsagePeriodFunction', + message: 'readDbQueryStatsUsagePeriodFunction', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'readDbTableStatsUsagePeriodFunction', + message: 'readDbTableStatsUsagePeriodFunction', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'retention', @@ -450,6 +472,8 @@ async function handleCreate(argv: Partial>, prompter: In queryStatsLogTableName: cleanedData.queryStatsLogTableName, queryStatsSummaryTableId: cleanedData.queryStatsSummaryTableId, queryStatsSummaryTableName: cleanedData.queryStatsSummaryTableName, + readDbQueryStatsUsagePeriodFunction: cleanedData.readDbQueryStatsUsagePeriodFunction, + readDbTableStatsUsagePeriodFunction: cleanedData.readDbTableStatsUsagePeriodFunction, retention: cleanedData.retention, rollupDbQueryStatsUsageSummaryFunction: cleanedData.rollupDbQueryStatsUsageSummaryFunction, @@ -481,6 +505,8 @@ async function handleCreate(argv: Partial>, prompter: In queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, + readDbQueryStatsUsagePeriodFunction: true, + readDbTableStatsUsagePeriodFunction: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, @@ -629,6 +655,20 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'readDbQueryStatsUsagePeriodFunction', + message: 'readDbQueryStatsUsagePeriodFunction', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'readDbTableStatsUsagePeriodFunction', + message: 'readDbTableStatsUsagePeriodFunction', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'retention', @@ -718,6 +758,8 @@ async function handleUpdate(argv: Partial>, prompter: In queryStatsLogTableName: cleanedData.queryStatsLogTableName, queryStatsSummaryTableId: cleanedData.queryStatsSummaryTableId, queryStatsSummaryTableName: cleanedData.queryStatsSummaryTableName, + readDbQueryStatsUsagePeriodFunction: cleanedData.readDbQueryStatsUsagePeriodFunction, + readDbTableStatsUsagePeriodFunction: cleanedData.readDbTableStatsUsagePeriodFunction, retention: cleanedData.retention, rollupDbQueryStatsUsageSummaryFunction: cleanedData.rollupDbQueryStatsUsageSummaryFunction, @@ -749,6 +791,8 @@ async function handleUpdate(argv: Partial>, prompter: In queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, + readDbQueryStatsUsagePeriodFunction: true, + readDbTableStatsUsagePeriodFunction: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/domain-module.ts b/sdk/constructive-cli/src/modules/cli/commands/domain-module.ts index 5b7d9e2ed3..316a21c2e3 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/domain-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/domain-module.ts @@ -20,6 +20,7 @@ const fieldSchema: FieldSchema = { catalogModuleId: 'uuid', databaseId: 'uuid', defaultCapabilities: 'string', + defaultReservedSubdomains: 'json', domainEventsTableId: 'uuid', domainEventsTableName: 'string', domainVerificationsTableId: 'uuid', @@ -38,8 +39,11 @@ const fieldSchema: FieldSchema = { privateSchemaName: 'string', provisions: 'json', publicSchemaName: 'string', + reservedSubdomainsTableId: 'uuid', + reservedSubdomainsTableName: 'string', schemaId: 'uuid', scope: 'string', + sweepUnverifiedDomainsFunction: 'string', }; const usage = '\ndomain-module \n\nCommands:\n list List domainModule records\n find-first Find first matching domainModule record\n get Get a domainModule by ID\n create Create a new domainModule\n update Update an existing domainModule\n delete Delete a domainModule\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; @@ -96,6 +100,7 @@ async function handleList(argv: Partial>, _prompter: Inq catalogModuleId: true, databaseId: true, defaultCapabilities: true, + defaultReservedSubdomains: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, @@ -114,8 +119,11 @@ async function handleList(argv: Partial>, _prompter: Inq privateSchemaName: true, provisions: true, publicSchemaName: true, + reservedSubdomainsTableId: true, + reservedSubdomainsTableName: true, schemaId: true, scope: true, + sweepUnverifiedDomainsFunction: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -140,6 +148,7 @@ async function handleFindFirst(argv: Partial>, _prompter catalogModuleId: true, databaseId: true, defaultCapabilities: true, + defaultReservedSubdomains: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, @@ -158,8 +167,11 @@ async function handleFindFirst(argv: Partial>, _prompter privateSchemaName: true, provisions: true, publicSchemaName: true, + reservedSubdomainsTableId: true, + reservedSubdomainsTableName: true, schemaId: true, scope: true, + sweepUnverifiedDomainsFunction: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -196,6 +208,7 @@ async function handleGet(argv: Partial>, prompter: Inqui catalogModuleId: true, databaseId: true, defaultCapabilities: true, + defaultReservedSubdomains: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, @@ -214,8 +227,11 @@ async function handleGet(argv: Partial>, prompter: Inqui privateSchemaName: true, provisions: true, publicSchemaName: true, + reservedSubdomainsTableId: true, + reservedSubdomainsTableName: true, schemaId: true, scope: true, + sweepUnverifiedDomainsFunction: true, }, }) .execute(); @@ -258,6 +274,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'json', + name: 'defaultReservedSubdomains', + message: 'defaultReservedSubdomains', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'domainEventsTableId', @@ -377,6 +400,20 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'reservedSubdomainsTableId', + message: 'reservedSubdomainsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'reservedSubdomainsTableName', + message: 'reservedSubdomainsTableName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -390,6 +427,13 @@ async function handleCreate(argv: Partial>, prompter: In message: 'scope', required: true, }, + { + type: 'text', + name: 'sweepUnverifiedDomainsFunction', + message: 'sweepUnverifiedDomainsFunction', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -404,6 +448,7 @@ async function handleCreate(argv: Partial>, prompter: In catalogModuleId: cleanedData.catalogModuleId, databaseId: cleanedData.databaseId, defaultCapabilities: cleanedData.defaultCapabilities, + defaultReservedSubdomains: cleanedData.defaultReservedSubdomains, domainEventsTableId: cleanedData.domainEventsTableId, domainEventsTableName: cleanedData.domainEventsTableName, domainVerificationsTableId: cleanedData.domainVerificationsTableId, @@ -421,14 +466,18 @@ async function handleCreate(argv: Partial>, prompter: In privateSchemaName: cleanedData.privateSchemaName, provisions: cleanedData.provisions, publicSchemaName: cleanedData.publicSchemaName, + reservedSubdomainsTableId: cleanedData.reservedSubdomainsTableId, + reservedSubdomainsTableName: cleanedData.reservedSubdomainsTableName, schemaId: cleanedData.schemaId, scope: cleanedData.scope, + sweepUnverifiedDomainsFunction: cleanedData.sweepUnverifiedDomainsFunction, }, select: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, + defaultReservedSubdomains: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, @@ -447,8 +496,11 @@ async function handleCreate(argv: Partial>, prompter: In privateSchemaName: true, provisions: true, publicSchemaName: true, + reservedSubdomainsTableId: true, + reservedSubdomainsTableName: true, schemaId: true, scope: true, + sweepUnverifiedDomainsFunction: true, }, }) .execute(); @@ -497,6 +549,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'json', + name: 'defaultReservedSubdomains', + message: 'defaultReservedSubdomains', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'domainEventsTableId', @@ -616,6 +675,20 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'reservedSubdomainsTableId', + message: 'reservedSubdomainsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'reservedSubdomainsTableName', + message: 'reservedSubdomainsTableName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -629,6 +702,13 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'scope', required: false, }, + { + type: 'text', + name: 'sweepUnverifiedDomainsFunction', + message: 'sweepUnverifiedDomainsFunction', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as DomainModulePatch; @@ -643,6 +723,7 @@ async function handleUpdate(argv: Partial>, prompter: In catalogModuleId: cleanedData.catalogModuleId, databaseId: cleanedData.databaseId, defaultCapabilities: cleanedData.defaultCapabilities, + defaultReservedSubdomains: cleanedData.defaultReservedSubdomains, domainEventsTableId: cleanedData.domainEventsTableId, domainEventsTableName: cleanedData.domainEventsTableName, domainVerificationsTableId: cleanedData.domainVerificationsTableId, @@ -660,14 +741,18 @@ async function handleUpdate(argv: Partial>, prompter: In privateSchemaName: cleanedData.privateSchemaName, provisions: cleanedData.provisions, publicSchemaName: cleanedData.publicSchemaName, + reservedSubdomainsTableId: cleanedData.reservedSubdomainsTableId, + reservedSubdomainsTableName: cleanedData.reservedSubdomainsTableName, schemaId: cleanedData.schemaId, scope: cleanedData.scope, + sweepUnverifiedDomainsFunction: cleanedData.sweepUnverifiedDomainsFunction, }, select: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, + defaultReservedSubdomains: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, @@ -686,8 +771,11 @@ async function handleUpdate(argv: Partial>, prompter: In privateSchemaName: true, provisions: true, publicSchemaName: true, + reservedSubdomainsTableId: true, + reservedSubdomainsTableName: true, schemaId: true, scope: true, + sweepUnverifiedDomainsFunction: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/modules/cli/commands/resource-module.ts b/sdk/constructive-cli/src/modules/cli/commands/resource-module.ts index 50621949a7..7466f15d8f 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/resource-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/resource-module.ts @@ -17,8 +17,6 @@ import type { import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { apiName: 'string', - builderBindingsTableId: 'uuid', - builderBindingsTableName: 'string', databaseId: 'uuid', defaultCapabilities: 'string', entityField: 'string', @@ -56,6 +54,8 @@ const fieldSchema: FieldSchema = { rollupResourceUsageSummaryFunction: 'string', schemaId: 'uuid', scope: 'string', + serviceBindingsTableId: 'uuid', + serviceBindingsTableName: 'string', }; const usage = '\nresource-module \n\nCommands:\n list List resourceModule records\n find-first Find first matching resourceModule record\n get Get a resourceModule by ID\n create Create a new resourceModule\n update Update an existing resourceModule\n delete Delete a resourceModule\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; @@ -109,8 +109,6 @@ async function handleList(argv: Partial>, _prompter: Inq try { const defaultSelect = { apiName: true, - builderBindingsTableId: true, - builderBindingsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, @@ -148,6 +146,8 @@ async function handleList(argv: Partial>, _prompter: Inq rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true, + serviceBindingsTableId: true, + serviceBindingsTableName: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -169,8 +169,6 @@ async function handleFindFirst(argv: Partial>, _prompter try { const defaultSelect = { apiName: true, - builderBindingsTableId: true, - builderBindingsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, @@ -208,6 +206,8 @@ async function handleFindFirst(argv: Partial>, _prompter rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true, + serviceBindingsTableId: true, + serviceBindingsTableName: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -241,8 +241,6 @@ async function handleGet(argv: Partial>, prompter: Inqui id: answers.id as string, select: { apiName: true, - builderBindingsTableId: true, - builderBindingsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, @@ -280,6 +278,8 @@ async function handleGet(argv: Partial>, prompter: Inqui rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true, + serviceBindingsTableId: true, + serviceBindingsTableName: true, }, }) .execute(); @@ -302,20 +302,6 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'builderBindingsTableId', - message: 'builderBindingsTableId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'builderBindingsTableName', - message: 'builderBindingsTableName', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'databaseId', @@ -566,6 +552,20 @@ async function handleCreate(argv: Partial>, prompter: In message: 'scope', required: true, }, + { + type: 'text', + name: 'serviceBindingsTableId', + message: 'serviceBindingsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'serviceBindingsTableName', + message: 'serviceBindingsTableName', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -577,8 +577,6 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { apiName: cleanedData.apiName, - builderBindingsTableId: cleanedData.builderBindingsTableId, - builderBindingsTableName: cleanedData.builderBindingsTableName, databaseId: cleanedData.databaseId, defaultCapabilities: cleanedData.defaultCapabilities, entityField: cleanedData.entityField, @@ -615,11 +613,11 @@ async function handleCreate(argv: Partial>, prompter: In rollupResourceUsageSummaryFunction: cleanedData.rollupResourceUsageSummaryFunction, schemaId: cleanedData.schemaId, scope: cleanedData.scope, + serviceBindingsTableId: cleanedData.serviceBindingsTableId, + serviceBindingsTableName: cleanedData.serviceBindingsTableName, }, select: { apiName: true, - builderBindingsTableId: true, - builderBindingsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, @@ -657,6 +655,8 @@ async function handleCreate(argv: Partial>, prompter: In rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true, + serviceBindingsTableId: true, + serviceBindingsTableName: true, }, }) .execute(); @@ -685,20 +685,6 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'builderBindingsTableId', - message: 'builderBindingsTableId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'builderBindingsTableName', - message: 'builderBindingsTableName', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'databaseId', @@ -949,6 +935,20 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'scope', required: false, }, + { + type: 'text', + name: 'serviceBindingsTableId', + message: 'serviceBindingsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'serviceBindingsTableName', + message: 'serviceBindingsTableName', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as ResourceModulePatch; @@ -960,8 +960,6 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { apiName: cleanedData.apiName, - builderBindingsTableId: cleanedData.builderBindingsTableId, - builderBindingsTableName: cleanedData.builderBindingsTableName, databaseId: cleanedData.databaseId, defaultCapabilities: cleanedData.defaultCapabilities, entityField: cleanedData.entityField, @@ -998,11 +996,11 @@ async function handleUpdate(argv: Partial>, prompter: In rollupResourceUsageSummaryFunction: cleanedData.rollupResourceUsageSummaryFunction, schemaId: cleanedData.schemaId, scope: cleanedData.scope, + serviceBindingsTableId: cleanedData.serviceBindingsTableId, + serviceBindingsTableName: cleanedData.serviceBindingsTableName, }, select: { apiName: true, - builderBindingsTableId: true, - builderBindingsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, @@ -1040,6 +1038,8 @@ async function handleUpdate(argv: Partial>, prompter: In rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true, + serviceBindingsTableId: true, + serviceBindingsTableName: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/modules/cli/commands/storage-log-module.ts b/sdk/constructive-cli/src/modules/cli/commands/storage-log-module.ts index 8f7e1acda4..cca4511736 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/storage-log-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/storage-log-module.ts @@ -27,6 +27,7 @@ const fieldSchema: FieldSchema = { privateSchemaId: 'uuid', privateSchemaName: 'string', publicSchemaName: 'string', + readStorageUsagePeriodFunction: 'string', retention: 'string', rollupFunctionName: 'string', schemaId: 'uuid', @@ -98,6 +99,7 @@ async function handleList(argv: Partial>, _prompter: Inq privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, + readStorageUsagePeriodFunction: true, retention: true, rollupFunctionName: true, schemaId: true, @@ -137,6 +139,7 @@ async function handleFindFirst(argv: Partial>, _prompter privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, + readStorageUsagePeriodFunction: true, retention: true, rollupFunctionName: true, schemaId: true, @@ -188,6 +191,7 @@ async function handleGet(argv: Partial>, prompter: Inqui privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, + readStorageUsagePeriodFunction: true, retention: true, rollupFunctionName: true, schemaId: true, @@ -280,6 +284,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'readStorageUsagePeriodFunction', + message: 'readStorageUsagePeriodFunction', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'retention', @@ -355,6 +366,7 @@ async function handleCreate(argv: Partial>, prompter: In privateSchemaId: cleanedData.privateSchemaId, privateSchemaName: cleanedData.privateSchemaName, publicSchemaName: cleanedData.publicSchemaName, + readStorageUsagePeriodFunction: cleanedData.readStorageUsagePeriodFunction, retention: cleanedData.retention, rollupFunctionName: cleanedData.rollupFunctionName, schemaId: cleanedData.schemaId, @@ -376,6 +388,7 @@ async function handleCreate(argv: Partial>, prompter: In privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, + readStorageUsagePeriodFunction: true, retention: true, rollupFunctionName: true, schemaId: true, @@ -474,6 +487,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'readStorageUsagePeriodFunction', + message: 'readStorageUsagePeriodFunction', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'retention', @@ -549,6 +569,7 @@ async function handleUpdate(argv: Partial>, prompter: In privateSchemaId: cleanedData.privateSchemaId, privateSchemaName: cleanedData.privateSchemaName, publicSchemaName: cleanedData.publicSchemaName, + readStorageUsagePeriodFunction: cleanedData.readStorageUsagePeriodFunction, retention: cleanedData.retention, rollupFunctionName: cleanedData.rollupFunctionName, schemaId: cleanedData.schemaId, @@ -570,6 +591,7 @@ async function handleUpdate(argv: Partial>, prompter: In privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, + readStorageUsagePeriodFunction: true, retention: true, rollupFunctionName: true, schemaId: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/storage-module.ts b/sdk/constructive-cli/src/modules/cli/commands/storage-module.ts index dfd0941682..a3f9813692 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/storage-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/storage-module.ts @@ -34,7 +34,6 @@ const fieldSchema: FieldSchema = { filesTableId: 'uuid', filesTableName: 'string', hasAuditLog: 'boolean', - hasConfirmUpload: 'boolean', hasContentHash: 'boolean', hasCustomKeys: 'boolean', hasPathShares: 'boolean', @@ -129,7 +128,6 @@ async function handleList(argv: Partial>, _prompter: Inq filesTableId: true, filesTableName: true, hasAuditLog: true, - hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, @@ -192,7 +190,6 @@ async function handleFindFirst(argv: Partial>, _prompter filesTableId: true, filesTableName: true, hasAuditLog: true, - hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, @@ -267,7 +264,6 @@ async function handleGet(argv: Partial>, prompter: Inqui filesTableId: true, filesTableName: true, hasAuditLog: true, - hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, @@ -432,13 +428,6 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'boolean', - name: 'hasConfirmUpload', - message: 'hasConfirmUpload', - required: false, - skipPrompt: true, - }, { type: 'boolean', name: 'hasContentHash', @@ -627,7 +616,6 @@ async function handleCreate(argv: Partial>, prompter: In filesTableId: cleanedData.filesTableId, filesTableName: cleanedData.filesTableName, hasAuditLog: cleanedData.hasAuditLog, - hasConfirmUpload: cleanedData.hasConfirmUpload, hasContentHash: cleanedData.hasContentHash, hasCustomKeys: cleanedData.hasCustomKeys, hasPathShares: cleanedData.hasPathShares, @@ -671,7 +659,6 @@ async function handleCreate(argv: Partial>, prompter: In filesTableId: true, filesTableName: true, hasAuditLog: true, - hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, @@ -842,13 +829,6 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'boolean', - name: 'hasConfirmUpload', - message: 'hasConfirmUpload', - required: false, - skipPrompt: true, - }, { type: 'boolean', name: 'hasContentHash', @@ -1037,7 +1017,6 @@ async function handleUpdate(argv: Partial>, prompter: In filesTableId: cleanedData.filesTableId, filesTableName: cleanedData.filesTableName, hasAuditLog: cleanedData.hasAuditLog, - hasConfirmUpload: cleanedData.hasConfirmUpload, hasContentHash: cleanedData.hasContentHash, hasCustomKeys: cleanedData.hasCustomKeys, hasPathShares: cleanedData.hasPathShares, @@ -1081,7 +1060,6 @@ async function handleUpdate(argv: Partial>, prompter: In filesTableId: true, filesTableName: true, hasAuditLog: true, - hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, diff --git a/sdk/constructive-cli/src/modules/orm/README.md b/sdk/constructive-cli/src/modules/orm/README.md index 73e6574eaa..b7b873e859 100644 --- a/sdk/constructive-cli/src/modules/orm/README.md +++ b/sdk/constructive-cli/src/modules/orm/README.md @@ -498,6 +498,7 @@ CRUD operations for BlueprintConstruction records. | `constructedDefinition` | JSON | Yes | | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | +| `error` | JSON | Yes | | `id` | UUID | No | | `schemaId` | UUID | Yes | | `status` | String | Yes | @@ -508,13 +509,13 @@ CRUD operations for BlueprintConstruction records. ```typescript // List all blueprintConstruction records -const items = await db.blueprintConstruction.findMany({ select: { blueprintId: true, constructedAt: true, constructedDefinition: true, createdAt: true, databaseId: true, id: true, schemaId: true, status: true, tableMap: true, updatedAt: true } }).execute(); +const items = await db.blueprintConstruction.findMany({ select: { blueprintId: true, constructedAt: true, constructedDefinition: true, createdAt: true, databaseId: true, error: true, id: true, schemaId: true, status: true, tableMap: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.blueprintConstruction.findOne({ id: '', select: { blueprintId: true, constructedAt: true, constructedDefinition: true, createdAt: true, databaseId: true, id: true, schemaId: true, status: true, tableMap: true, updatedAt: true } }).execute(); +const item = await db.blueprintConstruction.findOne({ id: '', select: { blueprintId: true, constructedAt: true, constructedDefinition: true, createdAt: true, databaseId: true, error: true, id: true, schemaId: true, status: true, tableMap: true, updatedAt: true } }).execute(); // Create -const created = await db.blueprintConstruction.create({ data: { blueprintId: '', constructedAt: '', constructedDefinition: '', databaseId: '', schemaId: '', status: '', tableMap: '' }, select: { id: true } }).execute(); +const created = await db.blueprintConstruction.create({ data: { blueprintId: '', constructedAt: '', constructedDefinition: '', databaseId: '', error: '', schemaId: '', status: '', tableMap: '' }, select: { id: true } }).execute(); // Update const updated = await db.blueprintConstruction.update({ where: { id: '' }, data: { blueprintId: '' }, select: { id: true } }).execute(); @@ -1250,6 +1251,8 @@ CRUD operations for DbUsageModule records. | `queryStatsLogTableName` | String | Yes | | `queryStatsSummaryTableId` | UUID | Yes | | `queryStatsSummaryTableName` | String | Yes | +| `readDbQueryStatsUsagePeriodFunction` | String | Yes | +| `readDbTableStatsUsagePeriodFunction` | String | Yes | | `retention` | String | Yes | | `rollupDbQueryStatsUsageSummaryFunction` | String | Yes | | `rollupDbTableStatsUsageSummaryFunction` | String | Yes | @@ -1264,13 +1267,13 @@ CRUD operations for DbUsageModule records. ```typescript // List all dbUsageModule records -const items = await db.dbUsageModule.findMany({ select: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultCapabilities: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } }).execute(); +const items = await db.dbUsageModule.findMany({ select: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultCapabilities: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, readDbQueryStatsUsagePeriodFunction: true, readDbTableStatsUsagePeriodFunction: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } }).execute(); // Get one by id -const item = await db.dbUsageModule.findOne({ id: '', select: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultCapabilities: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } }).execute(); +const item = await db.dbUsageModule.findOne({ id: '', select: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultCapabilities: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, readDbQueryStatsUsagePeriodFunction: true, readDbTableStatsUsagePeriodFunction: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } }).execute(); // Create -const created = await db.dbUsageModule.create({ data: { apiName: '', collectDbQueryStatsFunction: '', collectDbTableStatsFunction: '', databaseId: '', defaultCapabilities: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsSummaryTableId: '', queryStatsSummaryTableName: '', retention: '', rollupDbQueryStatsUsageSummaryFunction: '', rollupDbTableStatsUsageSummaryFunction: '', schemaId: '', scope: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsSummaryTableId: '', tableStatsSummaryTableName: '' }, select: { id: true } }).execute(); +const created = await db.dbUsageModule.create({ data: { apiName: '', collectDbQueryStatsFunction: '', collectDbTableStatsFunction: '', databaseId: '', defaultCapabilities: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsSummaryTableId: '', queryStatsSummaryTableName: '', readDbQueryStatsUsagePeriodFunction: '', readDbTableStatsUsagePeriodFunction: '', retention: '', rollupDbQueryStatsUsageSummaryFunction: '', rollupDbTableStatsUsageSummaryFunction: '', schemaId: '', scope: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsSummaryTableId: '', tableStatsSummaryTableName: '' }, select: { id: true } }).execute(); // Update const updated = await db.dbUsageModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -1396,6 +1399,7 @@ CRUD operations for DomainModule records. | `catalogModuleId` | UUID | Yes | | `databaseId` | UUID | Yes | | `defaultCapabilities` | String | Yes | +| `defaultReservedSubdomains` | JSON | Yes | | `domainEventsTableId` | UUID | Yes | | `domainEventsTableName` | String | Yes | | `domainVerificationsTableId` | UUID | Yes | @@ -1414,20 +1418,23 @@ CRUD operations for DomainModule records. | `privateSchemaName` | String | Yes | | `provisions` | JSON | Yes | | `publicSchemaName` | String | Yes | +| `reservedSubdomainsTableId` | UUID | Yes | +| `reservedSubdomainsTableName` | String | Yes | | `schemaId` | UUID | Yes | | `scope` | String | Yes | +| `sweepUnverifiedDomainsFunction` | String | Yes | **Operations:** ```typescript // List all domainModule records -const items = await db.domainModule.findMany({ select: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); +const items = await db.domainModule.findMany({ select: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, defaultReservedSubdomains: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, reservedSubdomainsTableId: true, reservedSubdomainsTableName: true, schemaId: true, scope: true, sweepUnverifiedDomainsFunction: true } }).execute(); // Get one by id -const item = await db.domainModule.findOne({ id: '', select: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); +const item = await db.domainModule.findOne({ id: '', select: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, defaultReservedSubdomains: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, reservedSubdomainsTableId: true, reservedSubdomainsTableName: true, schemaId: true, scope: true, sweepUnverifiedDomainsFunction: true } }).execute(); // Create -const created = await db.domainModule.create({ data: { apiName: '', catalogModuleId: '', databaseId: '', defaultCapabilities: '', domainEventsTableId: '', domainEventsTableName: '', domainVerificationsTableId: '', domainVerificationsTableName: '', domainsTableId: '', domainsTableName: '', entityField: '', entityTableId: '', managedDomainsTableId: '', managedDomainsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); +const created = await db.domainModule.create({ data: { apiName: '', catalogModuleId: '', databaseId: '', defaultCapabilities: '', defaultReservedSubdomains: '', domainEventsTableId: '', domainEventsTableName: '', domainVerificationsTableId: '', domainVerificationsTableName: '', domainsTableId: '', domainsTableName: '', entityField: '', entityTableId: '', managedDomainsTableId: '', managedDomainsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', reservedSubdomainsTableId: '', reservedSubdomainsTableName: '', schemaId: '', scope: '', sweepUnverifiedDomainsFunction: '' }, select: { id: true } }).execute(); // Update const updated = await db.domainModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -3435,8 +3442,6 @@ CRUD operations for ResourceModule records. | Field | Type | Editable | |-------|------|----------| | `apiName` | String | Yes | -| `builderBindingsTableId` | UUID | Yes | -| `builderBindingsTableName` | String | Yes | | `databaseId` | UUID | Yes | | `defaultCapabilities` | String | Yes | | `entityField` | String | Yes | @@ -3474,18 +3479,20 @@ CRUD operations for ResourceModule records. | `rollupResourceUsageSummaryFunction` | String | Yes | | `schemaId` | UUID | Yes | | `scope` | String | Yes | +| `serviceBindingsTableId` | UUID | Yes | +| `serviceBindingsTableName` | String | Yes | **Operations:** ```typescript // List all resourceModule records -const items = await db.resourceModule.findMany({ select: { apiName: true, builderBindingsTableId: true, builderBindingsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, registryBindingsTableId: true, registryBindingsTableName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true } }).execute(); +const items = await db.resourceModule.findMany({ select: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, registryBindingsTableId: true, registryBindingsTableName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true, serviceBindingsTableId: true, serviceBindingsTableName: true } }).execute(); // Get one by id -const item = await db.resourceModule.findOne({ id: '', select: { apiName: true, builderBindingsTableId: true, builderBindingsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, registryBindingsTableId: true, registryBindingsTableName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true } }).execute(); +const item = await db.resourceModule.findOne({ id: '', select: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, registryBindingsTableId: true, registryBindingsTableName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true, serviceBindingsTableId: true, serviceBindingsTableName: true } }).execute(); // Create -const created = await db.resourceModule.create({ data: { apiName: '', builderBindingsTableId: '', builderBindingsTableName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', installationStoreName: '', merkleStoreModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', registryBindingsTableId: '', registryBindingsTableName: '', requirementsStateViewName: '', resolvedRequirementsViewName: '', resourceBillingRollupFunction: '', resourceDefinitionsTableId: '', resourceDefinitionsTableName: '', resourceEventsTableId: '', resourceEventsTableName: '', resourceInstallationsTableId: '', resourceInstallationsTableName: '', resourceStatusChecksTableId: '', resourceStatusChecksTableName: '', resourceUsageLogTableId: '', resourceUsageLogTableName: '', resourceUsageSummaryTableId: '', resourceUsageSummaryTableName: '', resourcesTableId: '', resourcesTableName: '', rollupResourceUsageSummaryFunction: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); +const created = await db.resourceModule.create({ data: { apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', installationStoreName: '', merkleStoreModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', registryBindingsTableId: '', registryBindingsTableName: '', requirementsStateViewName: '', resolvedRequirementsViewName: '', resourceBillingRollupFunction: '', resourceDefinitionsTableId: '', resourceDefinitionsTableName: '', resourceEventsTableId: '', resourceEventsTableName: '', resourceInstallationsTableId: '', resourceInstallationsTableName: '', resourceStatusChecksTableId: '', resourceStatusChecksTableName: '', resourceUsageLogTableId: '', resourceUsageLogTableName: '', resourceUsageSummaryTableId: '', resourceUsageSummaryTableName: '', resourcesTableId: '', resourcesTableName: '', rollupResourceUsageSummaryFunction: '', schemaId: '', scope: '', serviceBindingsTableId: '', serviceBindingsTableName: '' }, select: { id: true } }).execute(); // Update const updated = await db.resourceModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -3822,6 +3829,7 @@ CRUD operations for StorageLogModule records. | `privateSchemaId` | UUID | Yes | | `privateSchemaName` | String | Yes | | `publicSchemaName` | String | Yes | +| `readStorageUsagePeriodFunction` | String | Yes | | `retention` | String | Yes | | `rollupFunctionName` | String | Yes | | `schemaId` | UUID | Yes | @@ -3835,13 +3843,13 @@ CRUD operations for StorageLogModule records. ```typescript // List all storageLogModule records -const items = await db.storageLogModule.findMany({ select: { apiName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); +const items = await db.storageLogModule.findMany({ select: { apiName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, readStorageUsagePeriodFunction: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); // Get one by id -const item = await db.storageLogModule.findOne({ id: '', select: { apiName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); +const item = await db.storageLogModule.findOne({ id: '', select: { apiName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, readStorageUsagePeriodFunction: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); // Create -const created = await db.storageLogModule.create({ data: { apiName: '', databaseId: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', rollupFunctionName: '', schemaId: '', scope: '', storageLogTableId: '', storageLogTableName: '', usageSummaryTableId: '', usageSummaryTableName: '' }, select: { id: true } }).execute(); +const created = await db.storageLogModule.create({ data: { apiName: '', databaseId: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', readStorageUsagePeriodFunction: '', retention: '', rollupFunctionName: '', schemaId: '', scope: '', storageLogTableId: '', storageLogTableName: '', usageSummaryTableId: '', usageSummaryTableName: '' }, select: { id: true } }).execute(); // Update const updated = await db.storageLogModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -3876,7 +3884,6 @@ CRUD operations for StorageModule records. | `filesTableId` | UUID | Yes | | `filesTableName` | String | Yes | | `hasAuditLog` | Boolean | Yes | -| `hasConfirmUpload` | Boolean | Yes | | `hasContentHash` | Boolean | Yes | | `hasCustomKeys` | Boolean | Yes | | `hasPathShares` | Boolean | Yes | @@ -3906,13 +3913,13 @@ CRUD operations for StorageModule records. ```typescript // List all storageModule records -const items = await db.storageModule.findMany({ select: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, region: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }).execute(); +const items = await db.storageModule.findMany({ select: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, region: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }).execute(); // Get one by id -const item = await db.storageModule.findOne({ id: '', select: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, region: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }).execute(); +const item = await db.storageModule.findOne({ id: '', select: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, region: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }).execute(); // Create -const created = await db.storageModule.create({ data: { allowedOrigins: '', apiName: '', bucketsTableId: '', bucketsTableName: '', cacheTtlSeconds: '', catalogModuleId: '', confirmUploadDelay: '', databaseId: '', defaultCapabilities: '', defaultMaxFileSize: '', downloadUrlExpirySeconds: '', endpoint: '', entityField: '', entityTableId: '', fileEventsTableId: '', filesTableId: '', filesTableName: '', hasAuditLog: '', hasConfirmUpload: '', hasContentHash: '', hasCustomKeys: '', hasPathShares: '', hasVersioning: '', key: '', maxBulkFiles: '', maxBulkTotalSize: '', maxFilenameLength: '', pathSharesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provider: '', provisions: '', publicSchemaName: '', publicUrlPrefix: '', region: '', restrictReads: '', schemaId: '', scope: '', uploadUrlExpirySeconds: '' }, select: { id: true } }).execute(); +const created = await db.storageModule.create({ data: { allowedOrigins: '', apiName: '', bucketsTableId: '', bucketsTableName: '', cacheTtlSeconds: '', catalogModuleId: '', confirmUploadDelay: '', databaseId: '', defaultCapabilities: '', defaultMaxFileSize: '', downloadUrlExpirySeconds: '', endpoint: '', entityField: '', entityTableId: '', fileEventsTableId: '', filesTableId: '', filesTableName: '', hasAuditLog: '', hasContentHash: '', hasCustomKeys: '', hasPathShares: '', hasVersioning: '', key: '', maxBulkFiles: '', maxBulkTotalSize: '', maxFilenameLength: '', pathSharesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provider: '', provisions: '', publicSchemaName: '', publicUrlPrefix: '', region: '', restrictReads: '', schemaId: '', scope: '', uploadUrlExpirySeconds: '' }, select: { id: true } }).execute(); // Update const updated = await db.storageModule.update({ where: { id: '' }, data: { allowedOrigins: '' }, select: { id: true } }).execute(); @@ -4340,7 +4347,7 @@ const deleted = await db.webhookModule.delete({ where: { id: '' } }).execu ### `db.mutation.constructBlueprint` -Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). A table entry either names its table (table_name plus optional schema_name) or references one an installed module generated ("module": {"type": "agent", "scope": "org", "table": "message"}), which resolves through the module row's recorded table ids and raises when it matches nothing instead of creating an empty table. After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID. A failure raises its coded error to the caller and rolls back the whole construction, including the construction record. +Requests a build of a blueprint: snapshots its definition into a pending blueprint_construction row, enqueues the blueprint:construct job that runs metaschema_private.construct_blueprint_run on it, and returns the construction id immediately. Poll the row: pending -> constructing -> constructed (table_map populated) or failed (error holds the coded error). schema_id is the default schema for tables without an explicit schema_name. - **Type:** mutation - **Arguments:** diff --git a/sdk/constructive-cli/src/modules/orm/input-types.ts b/sdk/constructive-cli/src/modules/orm/input-types.ts index ca44c2dad1..1e2b8d3965 100644 --- a/sdk/constructive-cli/src/modules/orm/input-types.ts +++ b/sdk/constructive-cli/src/modules/orm/input-types.ts @@ -461,7 +461,7 @@ export interface Blueprint { /** Timestamp when this blueprint was last modified. */ updatedAt?: string | null; } -/** Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts. */ +/** Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here as pending and a blueprint:construct job builds it in the background. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts, including failed ones. */ export interface BlueprintConstruction { /** The blueprint that was constructed. */ blueprintId?: string | null; @@ -473,11 +473,13 @@ export interface BlueprintConstruction { createdAt?: string | null; /** The database the blueprint was constructed into. */ databaseId?: string | null; + /** The coded error ({"code", "context", "class"} as raised through errors.raise_error, or {"code": , "message"} for a database error) a failed construction ended with. NULL unless status is failed. */ + error?: Record | null; /** Unique identifier for this construction attempt. */ id: string; /** The default schema used for tables that did not specify an explicit schema_name. NULL if not yet resolved. */ schemaId?: string | null; - /** Execution state of this construction attempt. pending: created but not yet started. constructing: currently executing. constructed: successfully completed. A failed construction raises and rolls back, so it leaves no row. */ + /** Execution state of this construction attempt. pending: enqueued, the blueprint:construct job has not started. constructing: the job is executing. constructed: successfully completed. failed: the job raised; the build rolled back and error carries its coded error. */ status?: string | null; /** Mapping of table names to created table UUIDs, populated after successful construction. Format: {"products": "uuid", "categories": "uuid", ...}. Defaults to empty object. */ tableMap?: Record | null; @@ -866,6 +868,8 @@ export interface DbUsageModule { queryStatsLogTableName?: string | null; queryStatsSummaryTableId?: string | null; queryStatsSummaryTableName?: string | null; + readDbQueryStatsUsagePeriodFunction?: string | null; + readDbTableStatsUsagePeriodFunction?: string | null; retention?: string | null; rollupDbQueryStatsUsageSummaryFunction?: string | null; rollupDbTableStatsUsageSummaryFunction?: string | null; @@ -908,6 +912,7 @@ export interface DomainModule { catalogModuleId?: string | null; databaseId?: string | null; defaultCapabilities?: string[] | null; + defaultReservedSubdomains?: Record | null; domainEventsTableId?: string | null; domainEventsTableName?: string | null; domainVerificationsTableId?: string | null; @@ -926,8 +931,11 @@ export interface DomainModule { privateSchemaName?: string | null; provisions?: Record | null; publicSchemaName?: string | null; + reservedSubdomainsTableId?: string | null; + reservedSubdomainsTableName?: string | null; schemaId?: string | null; scope?: string | null; + sweepUnverifiedDomainsFunction?: string | null; } export interface EmailSenderModule { apiName?: string | null; @@ -1167,7 +1175,6 @@ export interface EntityTypeProvision { * - has_content_hash (boolean) enable content hash for dedup * - has_custom_keys (boolean) allow client-provided S3 keys * - has_audit_log (boolean) enable file events audit table - * - has_confirm_upload (boolean) enable HeadObject confirmation flow * - confirm_upload_delay (interval) delay before first confirmation attempt * - buckets (jsonb[]) array of initial bucket definitions to seed. * Each bucket: { name (required), description, is_public, allowed_mime_types, max_file_size, allowed_origins } @@ -2214,8 +2221,6 @@ export interface RepositoryModule { } export interface ResourceModule { apiName?: string | null; - builderBindingsTableId?: string | null; - builderBindingsTableName?: string | null; databaseId?: string | null; defaultCapabilities?: string[] | null; entityField?: string | null; @@ -2253,6 +2258,8 @@ export interface ResourceModule { rollupResourceUsageSummaryFunction?: string | null; schemaId?: string | null; scope?: string | null; + serviceBindingsTableId?: string | null; + serviceBindingsTableName?: string | null; } export interface RlsModule { apiName?: string | null; @@ -2409,6 +2416,7 @@ export interface StorageLogModule { privateSchemaId?: string | null; privateSchemaName?: string | null; publicSchemaName?: string | null; + readStorageUsagePeriodFunction?: string | null; retention?: string | null; rollupFunctionName?: string | null; schemaId?: string | null; @@ -2437,7 +2445,6 @@ export interface StorageModule { filesTableId?: string | null; filesTableName?: string | null; hasAuditLog?: boolean | null; - hasConfirmUpload?: boolean | null; hasContentHash?: boolean | null; hasCustomKeys?: boolean | null; hasPathShares?: boolean | null; @@ -3158,6 +3165,7 @@ export type BlueprintConstructionSelect = { constructedDefinition?: boolean; createdAt?: boolean; databaseId?: boolean; + error?: boolean; id?: boolean; schemaId?: boolean; status?: boolean; @@ -3557,6 +3565,8 @@ export type DbUsageModuleSelect = { queryStatsLogTableName?: boolean; queryStatsSummaryTableId?: boolean; queryStatsSummaryTableName?: boolean; + readDbQueryStatsUsagePeriodFunction?: boolean; + readDbTableStatsUsagePeriodFunction?: boolean; retention?: boolean; rollupDbQueryStatsUsageSummaryFunction?: boolean; rollupDbTableStatsUsageSummaryFunction?: boolean; @@ -3599,6 +3609,7 @@ export type DomainModuleSelect = { catalogModuleId?: boolean; databaseId?: boolean; defaultCapabilities?: boolean; + defaultReservedSubdomains?: boolean; domainEventsTableId?: boolean; domainEventsTableName?: boolean; domainVerificationsTableId?: boolean; @@ -3617,8 +3628,11 @@ export type DomainModuleSelect = { privateSchemaName?: boolean; provisions?: boolean; publicSchemaName?: boolean; + reservedSubdomainsTableId?: boolean; + reservedSubdomainsTableName?: boolean; schemaId?: boolean; scope?: boolean; + sweepUnverifiedDomainsFunction?: boolean; catalogModule?: { select: CatalogModuleSelect; }; @@ -4666,8 +4680,6 @@ export type RepositoryModuleSelect = { }; export type ResourceModuleSelect = { apiName?: boolean; - builderBindingsTableId?: boolean; - builderBindingsTableName?: boolean; databaseId?: boolean; defaultCapabilities?: boolean; entityField?: boolean; @@ -4705,6 +4717,8 @@ export type ResourceModuleSelect = { rollupResourceUsageSummaryFunction?: boolean; schemaId?: boolean; scope?: boolean; + serviceBindingsTableId?: boolean; + serviceBindingsTableName?: boolean; merkleStoreModule?: { select: MerkleStoreModuleSelect; }; @@ -4872,6 +4886,7 @@ export type StorageLogModuleSelect = { privateSchemaId?: boolean; privateSchemaName?: boolean; publicSchemaName?: boolean; + readStorageUsagePeriodFunction?: boolean; retention?: boolean; rollupFunctionName?: boolean; schemaId?: boolean; @@ -4900,7 +4915,6 @@ export type StorageModuleSelect = { filesTableId?: boolean; filesTableName?: boolean; hasAuditLog?: boolean; - hasConfirmUpload?: boolean; hasContentHash?: boolean; hasCustomKeys?: boolean; hasPathShares?: boolean; @@ -5589,6 +5603,8 @@ export interface BlueprintConstructionFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `error` field. */ + error?: JSONFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Negates the expression. */ @@ -6371,6 +6387,10 @@ export interface DbUsageModuleFilter { queryStatsSummaryTableId?: UUIDFilter; /** Filter by the object’s `queryStatsSummaryTableName` field. */ queryStatsSummaryTableName?: StringFilter; + /** Filter by the object’s `readDbQueryStatsUsagePeriodFunction` field. */ + readDbQueryStatsUsagePeriodFunction?: StringFilter; + /** Filter by the object’s `readDbTableStatsUsagePeriodFunction` field. */ + readDbTableStatsUsagePeriodFunction?: StringFilter; /** Filter by the object’s `retention` field. */ retention?: StringFilter; /** Filter by the object’s `rollupDbQueryStatsUsageSummaryFunction` field. */ @@ -6471,6 +6491,8 @@ export interface DomainModuleFilter { databaseId?: UUIDFilter; /** Filter by the object’s `defaultCapabilities` field. */ defaultCapabilities?: StringListFilter; + /** Filter by the object’s `defaultReservedSubdomains` field. */ + defaultReservedSubdomains?: JSONFilter; /** Filter by the object’s `domainEventsTableId` field. */ domainEventsTableId?: UUIDFilter; /** Filter by the object’s `domainEventsTableName` field. */ @@ -6511,6 +6533,10 @@ export interface DomainModuleFilter { provisions?: JSONFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; + /** Filter by the object’s `reservedSubdomainsTableId` field. */ + reservedSubdomainsTableId?: UUIDFilter; + /** Filter by the object’s `reservedSubdomainsTableName` field. */ + reservedSubdomainsTableName?: StringFilter; /** Filter by the object’s `routeModules` relation. */ routeModules?: DomainModuleToManyRouteModuleFilter; /** `routeModules` exist. */ @@ -6519,6 +6545,8 @@ export interface DomainModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; + /** Filter by the object’s `sweepUnverifiedDomainsFunction` field. */ + sweepUnverifiedDomainsFunction?: StringFilter; } export interface EmailSenderModuleFilter { /** Checks for all expressions in this list. */ @@ -8619,10 +8647,6 @@ export interface ResourceModuleFilter { and?: ResourceModuleFilter[]; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; - /** Filter by the object’s `builderBindingsTableId` field. */ - builderBindingsTableId?: UUIDFilter; - /** Filter by the object’s `builderBindingsTableName` field. */ - builderBindingsTableName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `defaultCapabilities` field. */ @@ -8709,6 +8733,10 @@ export interface ResourceModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; + /** Filter by the object’s `serviceBindingsTableId` field. */ + serviceBindingsTableId?: UUIDFilter; + /** Filter by the object’s `serviceBindingsTableName` field. */ + serviceBindingsTableName?: StringFilter; } export interface RlsModuleFilter { /** Checks for all expressions in this list. */ @@ -9041,6 +9069,8 @@ export interface StorageLogModuleFilter { privateSchemaName?: StringFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; + /** Filter by the object’s `readStorageUsagePeriodFunction` field. */ + readStorageUsagePeriodFunction?: StringFilter; /** Filter by the object’s `retention` field. */ retention?: StringFilter; /** Filter by the object’s `rollupFunctionName` field. */ @@ -9101,8 +9131,6 @@ export interface StorageModuleFilter { filesTableName?: StringFilter; /** Filter by the object’s `hasAuditLog` field. */ hasAuditLog?: BooleanFilter; - /** Filter by the object’s `hasConfirmUpload` field. */ - hasConfirmUpload?: BooleanFilter; /** Filter by the object’s `hasContentHash` field. */ hasContentHash?: BooleanFilter; /** Filter by the object’s `hasCustomKeys` field. */ @@ -9968,6 +9996,8 @@ export type BlueprintConstructionOrderBy = | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ERROR_ASC' + | 'ERROR_DESC' | 'ID_ASC' | 'ID_DESC' | 'NATURAL' @@ -10643,6 +10673,10 @@ export type DbUsageModuleOrderBy = | 'QUERY_STATS_SUMMARY_TABLE_ID_DESC' | 'QUERY_STATS_SUMMARY_TABLE_NAME_ASC' | 'QUERY_STATS_SUMMARY_TABLE_NAME_DESC' + | 'READ_DB_QUERY_STATS_USAGE_PERIOD_FUNCTION_ASC' + | 'READ_DB_QUERY_STATS_USAGE_PERIOD_FUNCTION_DESC' + | 'READ_DB_TABLE_STATS_USAGE_PERIOD_FUNCTION_ASC' + | 'READ_DB_TABLE_STATS_USAGE_PERIOD_FUNCTION_DESC' | 'RETENTION_ASC' | 'RETENTION_DESC' | 'ROLLUP_DB_QUERY_STATS_USAGE_SUMMARY_FUNCTION_ASC' @@ -10724,6 +10758,8 @@ export type DomainModuleOrderBy = | 'DATABASE_ID_DESC' | 'DEFAULT_CAPABILITIES_ASC' | 'DEFAULT_CAPABILITIES_DESC' + | 'DEFAULT_RESERVED_SUBDOMAINS_ASC' + | 'DEFAULT_RESERVED_SUBDOMAINS_DESC' | 'DOMAINS_TABLE_ID_ASC' | 'DOMAINS_TABLE_ID_DESC' | 'DOMAINS_TABLE_NAME_ASC' @@ -10763,10 +10799,16 @@ export type DomainModuleOrderBy = | 'PROVISIONS_DESC' | 'PUBLIC_SCHEMA_NAME_ASC' | 'PUBLIC_SCHEMA_NAME_DESC' + | 'RESERVED_SUBDOMAINS_TABLE_ID_ASC' + | 'RESERVED_SUBDOMAINS_TABLE_ID_DESC' + | 'RESERVED_SUBDOMAINS_TABLE_NAME_ASC' + | 'RESERVED_SUBDOMAINS_TABLE_NAME_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SCOPE_ASC' - | 'SCOPE_DESC'; + | 'SCOPE_DESC' + | 'SWEEP_UNVERIFIED_DOMAINS_FUNCTION_ASC' + | 'SWEEP_UNVERIFIED_DOMAINS_FUNCTION_DESC'; export type EmailSenderModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' @@ -12618,10 +12660,6 @@ export type RepositoryModuleOrderBy = export type ResourceModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' - | 'BUILDER_BINDINGS_TABLE_ID_ASC' - | 'BUILDER_BINDINGS_TABLE_ID_DESC' - | 'BUILDER_BINDINGS_TABLE_NAME_ASC' - | 'BUILDER_BINDINGS_TABLE_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DEFAULT_CAPABILITIES_ASC' @@ -12698,7 +12736,11 @@ export type ResourceModuleOrderBy = | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SCOPE_ASC' - | 'SCOPE_DESC'; + | 'SCOPE_DESC' + | 'SERVICE_BINDINGS_TABLE_ID_ASC' + | 'SERVICE_BINDINGS_TABLE_ID_DESC' + | 'SERVICE_BINDINGS_TABLE_NAME_ASC' + | 'SERVICE_BINDINGS_TABLE_NAME_DESC'; export type RlsModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' @@ -12979,6 +13021,8 @@ export type StorageLogModuleOrderBy = | 'PRIVATE_SCHEMA_NAME_DESC' | 'PUBLIC_SCHEMA_NAME_ASC' | 'PUBLIC_SCHEMA_NAME_DESC' + | 'READ_STORAGE_USAGE_PERIOD_FUNCTION_ASC' + | 'READ_STORAGE_USAGE_PERIOD_FUNCTION_DESC' | 'RETENTION_ASC' | 'RETENTION_DESC' | 'ROLLUP_FUNCTION_NAME_ASC' @@ -13032,8 +13076,6 @@ export type StorageModuleOrderBy = | 'FILE_EVENTS_TABLE_ID_DESC' | 'HAS_AUDIT_LOG_ASC' | 'HAS_AUDIT_LOG_DESC' - | 'HAS_CONFIRM_UPLOAD_ASC' - | 'HAS_CONFIRM_UPLOAD_DESC' | 'HAS_CONTENT_HASH_ASC' | 'HAS_CONTENT_HASH_DESC' | 'HAS_CUSTOM_KEYS_ASC' @@ -13893,6 +13935,7 @@ export interface CreateBlueprintConstructionInput { constructedAt?: string; constructedDefinition?: Record; databaseId: string; + error?: Record; schemaId?: string; status?: string; tableMap?: Record; @@ -13903,6 +13946,7 @@ export interface BlueprintConstructionPatch { constructedAt?: string | null; constructedDefinition?: Record | null; databaseId?: string | null; + error?: Record | null; schemaId?: string | null; status?: string | null; tableMap?: Record | null; @@ -14688,6 +14732,8 @@ export interface CreateDbUsageModuleInput { queryStatsLogTableName?: string; queryStatsSummaryTableId?: string; queryStatsSummaryTableName?: string; + readDbQueryStatsUsagePeriodFunction?: string; + readDbTableStatsUsagePeriodFunction?: string; retention?: string; rollupDbQueryStatsUsageSummaryFunction?: string; rollupDbTableStatsUsageSummaryFunction?: string; @@ -14717,6 +14763,8 @@ export interface DbUsageModulePatch { queryStatsLogTableName?: string | null; queryStatsSummaryTableId?: string | null; queryStatsSummaryTableName?: string | null; + readDbQueryStatsUsagePeriodFunction?: string | null; + readDbTableStatsUsagePeriodFunction?: string | null; retention?: string | null; rollupDbQueryStatsUsageSummaryFunction?: string | null; rollupDbTableStatsUsageSummaryFunction?: string | null; @@ -14827,6 +14875,7 @@ export interface CreateDomainModuleInput { catalogModuleId?: string; databaseId: string; defaultCapabilities?: string[]; + defaultReservedSubdomains?: Record; domainEventsTableId?: string; domainEventsTableName?: string; domainVerificationsTableId?: string; @@ -14844,8 +14893,11 @@ export interface CreateDomainModuleInput { privateSchemaName?: string; provisions?: Record; publicSchemaName?: string; + reservedSubdomainsTableId?: string; + reservedSubdomainsTableName?: string; schemaId?: string; scope: string; + sweepUnverifiedDomainsFunction?: string; }; } export interface DomainModulePatch { @@ -14853,6 +14905,7 @@ export interface DomainModulePatch { catalogModuleId?: string | null; databaseId?: string | null; defaultCapabilities?: string[] | null; + defaultReservedSubdomains?: Record | null; domainEventsTableId?: string | null; domainEventsTableName?: string | null; domainVerificationsTableId?: string | null; @@ -14870,8 +14923,11 @@ export interface DomainModulePatch { privateSchemaName?: string | null; provisions?: Record | null; publicSchemaName?: string | null; + reservedSubdomainsTableId?: string | null; + reservedSubdomainsTableName?: string | null; schemaId?: string | null; scope?: string | null; + sweepUnverifiedDomainsFunction?: string | null; } export interface UpdateDomainModuleInput { clientMutationId?: string; @@ -17132,8 +17188,6 @@ export interface CreateResourceModuleInput { clientMutationId?: string; resourceModule: { apiName?: string; - builderBindingsTableId?: string; - builderBindingsTableName?: string; databaseId: string; defaultCapabilities?: string[]; entityField?: string; @@ -17170,12 +17224,12 @@ export interface CreateResourceModuleInput { rollupResourceUsageSummaryFunction?: string; schemaId?: string; scope: string; + serviceBindingsTableId?: string; + serviceBindingsTableName?: string; }; } export interface ResourceModulePatch { apiName?: string | null; - builderBindingsTableId?: string | null; - builderBindingsTableName?: string | null; databaseId?: string | null; defaultCapabilities?: string[] | null; entityField?: string | null; @@ -17212,6 +17266,8 @@ export interface ResourceModulePatch { rollupResourceUsageSummaryFunction?: string | null; schemaId?: string | null; scope?: string | null; + serviceBindingsTableId?: string | null; + serviceBindingsTableName?: string | null; } export interface UpdateResourceModuleInput { clientMutationId?: string; @@ -17559,6 +17615,7 @@ export interface CreateStorageLogModuleInput { privateSchemaId?: string; privateSchemaName?: string; publicSchemaName?: string; + readStorageUsagePeriodFunction?: string; retention?: string; rollupFunctionName?: string; schemaId?: string; @@ -17580,6 +17637,7 @@ export interface StorageLogModulePatch { privateSchemaId?: string | null; privateSchemaName?: string | null; publicSchemaName?: string | null; + readStorageUsagePeriodFunction?: string | null; retention?: string | null; rollupFunctionName?: string | null; schemaId?: string | null; @@ -17619,7 +17677,6 @@ export interface CreateStorageModuleInput { filesTableId?: string; filesTableName?: string; hasAuditLog?: boolean; - hasConfirmUpload?: boolean; hasContentHash?: boolean; hasCustomKeys?: boolean; hasPathShares?: boolean; @@ -17664,7 +17721,6 @@ export interface StorageModulePatch { filesTableId?: string | null; filesTableName?: string | null; hasAuditLog?: boolean | null; - hasConfirmUpload?: boolean | null; hasContentHash?: boolean | null; hasCustomKeys?: boolean | null; hasPathShares?: boolean | null; @@ -18741,11 +18797,13 @@ export interface BlueprintConstructionInput { createdAt?: string; /** The database the blueprint was constructed into. */ databaseId: string; + /** The coded error ({"code", "context", "class"} as raised through errors.raise_error, or {"code": , "message"} for a database error) a failed construction ended with. NULL unless status is failed. */ + error?: Record; /** Unique identifier for this construction attempt. */ id?: string; /** The default schema used for tables that did not specify an explicit schema_name. NULL if not yet resolved. */ schemaId?: string; - /** Execution state of this construction attempt. pending: created but not yet started. constructing: currently executing. constructed: successfully completed. A failed construction raises and rolls back, so it leaves no row. */ + /** Execution state of this construction attempt. pending: enqueued, the blueprint:construct job has not started. constructing: the job is executing. constructed: successfully completed. failed: the job raised; the build rolled back and error carries its coded error. */ status?: string; /** Mapping of table names to created table UUIDs, populated after successful construction. Format: {"products": "uuid", "categories": "uuid", ...}. Defaults to empty object. */ tableMap?: Record; @@ -19165,6 +19223,8 @@ export interface DbUsageModuleInput { queryStatsLogTableName?: string; queryStatsSummaryTableId?: string; queryStatsSummaryTableName?: string; + readDbQueryStatsUsagePeriodFunction?: string; + readDbTableStatsUsagePeriodFunction?: string; retention?: string; rollupDbQueryStatsUsageSummaryFunction?: string; rollupDbTableStatsUsageSummaryFunction?: string; @@ -19211,6 +19271,7 @@ export interface DomainModuleInput { catalogModuleId?: string; databaseId: string; defaultCapabilities?: string[]; + defaultReservedSubdomains?: Record; domainEventsTableId?: string; domainEventsTableName?: string; domainVerificationsTableId?: string; @@ -19229,8 +19290,11 @@ export interface DomainModuleInput { privateSchemaName?: string; provisions?: Record; publicSchemaName?: string; + reservedSubdomainsTableId?: string; + reservedSubdomainsTableName?: string; schemaId?: string; scope: string; + sweepUnverifiedDomainsFunction?: string; } /** An input for mutations affecting `EmailSenderModule` */ export interface EmailSenderModuleInput { @@ -19463,7 +19527,6 @@ export interface EntityTypeProvisionInput { * - has_content_hash (boolean) enable content hash for dedup * - has_custom_keys (boolean) allow client-provided S3 keys * - has_audit_log (boolean) enable file events audit table - * - has_confirm_upload (boolean) enable HeadObject confirmation flow * - confirm_upload_delay (interval) delay before first confirmation attempt * - buckets (jsonb[]) array of initial bucket definitions to seed. * Each bucket: { name (required), description, is_public, allowed_mime_types, max_file_size, allowed_origins } @@ -20507,8 +20570,6 @@ export interface RepositoryModuleInput { /** An input for mutations affecting `ResourceModule` */ export interface ResourceModuleInput { apiName?: string; - builderBindingsTableId?: string; - builderBindingsTableName?: string; databaseId: string; defaultCapabilities?: string[]; entityField?: string; @@ -20546,6 +20607,8 @@ export interface ResourceModuleInput { rollupResourceUsageSummaryFunction?: string; schemaId?: string; scope: string; + serviceBindingsTableId?: string; + serviceBindingsTableName?: string; } /** An input for mutations affecting `RlsModule` */ export interface RlsModuleInput { @@ -20708,6 +20771,7 @@ export interface StorageLogModuleInput { privateSchemaId?: string; privateSchemaName?: string; publicSchemaName?: string; + readStorageUsagePeriodFunction?: string; retention?: string; rollupFunctionName?: string; schemaId?: string; @@ -20737,7 +20801,6 @@ export interface StorageModuleInput { filesTableId?: string; filesTableName?: string; hasAuditLog?: boolean; - hasConfirmUpload?: boolean; hasContentHash?: boolean; hasCustomKeys?: boolean; hasPathShares?: boolean; @@ -20945,6 +21008,8 @@ export interface BlueprintConstructionFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `error` field. */ + error?: JSONFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Negates the expression. */ @@ -21223,6 +21288,8 @@ export interface DomainModuleFilter { databaseId?: UUIDFilter; /** Filter by the object’s `defaultCapabilities` field. */ defaultCapabilities?: StringListFilter; + /** Filter by the object’s `defaultReservedSubdomains` field. */ + defaultReservedSubdomains?: JSONFilter; /** Filter by the object’s `domainEventsTableId` field. */ domainEventsTableId?: UUIDFilter; /** Filter by the object’s `domainEventsTableName` field. */ @@ -21263,6 +21330,10 @@ export interface DomainModuleFilter { provisions?: JSONFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; + /** Filter by the object’s `reservedSubdomainsTableId` field. */ + reservedSubdomainsTableId?: UUIDFilter; + /** Filter by the object’s `reservedSubdomainsTableName` field. */ + reservedSubdomainsTableName?: StringFilter; /** Filter by the object’s `routeModules` relation. */ routeModules?: DomainModuleToManyRouteModuleFilter; /** `routeModules` exist. */ @@ -21271,6 +21342,8 @@ export interface DomainModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; + /** Filter by the object’s `sweepUnverifiedDomainsFunction` field. */ + sweepUnverifiedDomainsFunction?: StringFilter; } /** A filter to be used against `RouteModule` object types. All fields are combined with a logical ‘and.’ */ export interface RouteModuleFilter { @@ -21884,10 +21957,6 @@ export interface ResourceModuleFilter { and?: ResourceModuleFilter[]; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; - /** Filter by the object’s `builderBindingsTableId` field. */ - builderBindingsTableId?: UUIDFilter; - /** Filter by the object’s `builderBindingsTableName` field. */ - builderBindingsTableName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `defaultCapabilities` field. */ @@ -21974,6 +22043,10 @@ export interface ResourceModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; + /** Filter by the object’s `serviceBindingsTableId` field. */ + serviceBindingsTableId?: UUIDFilter; + /** Filter by the object’s `serviceBindingsTableName` field. */ + serviceBindingsTableName?: StringFilter; } /** A filter to be used against `EmailSenderModule` object types. All fields are combined with a logical ‘and.’ */ export interface EmailSenderModuleFilter { @@ -22833,8 +22906,6 @@ export interface StorageModuleFilter { filesTableName?: StringFilter; /** Filter by the object’s `hasAuditLog` field. */ hasAuditLog?: BooleanFilter; - /** Filter by the object’s `hasConfirmUpload` field. */ - hasConfirmUpload?: BooleanFilter; /** Filter by the object’s `hasContentHash` field. */ hasContentHash?: BooleanFilter; /** Filter by the object’s `hasCustomKeys` field. */ diff --git a/sdk/constructive-cli/src/modules/orm/mutation/index.ts b/sdk/constructive-cli/src/modules/orm/mutation/index.ts index e59de99a2e..26ad9b2410 100644 --- a/sdk/constructive-cli/src/modules/orm/mutation/index.ts +++ b/sdk/constructive-cli/src/modules/orm/mutation/index.ts @@ -20,7 +20,7 @@ import type { import { connectionFieldsMap } from '../input-types'; /** * Variables for constructBlueprint - * Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). A table entry either names its table (table_name plus optional schema_name) or references one an installed module generated ("module": {"type": "agent", "scope": "org", "table": "message"}), which resolves through the module row's recorded table ids and raises when it matches nothing instead of creating an empty table. After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID. A failure raises its coded error to the caller and rolls back the whole construction, including the construction record. + * Requests a build of a blueprint: snapshots its definition into a pending blueprint_construction row, enqueues the blueprint:construct job that runs metaschema_private.construct_blueprint_run on it, and returns the construction id immediately. Poll the row: pending -> constructing -> constructed (table_map populated) or failed (error holds the coded error). schema_id is the default schema for tables without an explicit schema_name. */ export interface ConstructBlueprintVariables { input: ConstructBlueprintInput; diff --git a/sdk/constructive-cli/src/modules/orm/query-builder.ts b/sdk/constructive-cli/src/modules/orm/query-builder.ts index fd785bbae6..d6c981907f 100644 --- a/sdk/constructive-cli/src/modules/orm/query-builder.ts +++ b/sdk/constructive-cli/src/modules/orm/query-builder.ts @@ -140,9 +140,7 @@ export function buildSelections( ); const nestedSelect = nested.select; if (nestedSelect && typeof nestedSelect === 'object') { - const subSelections = Object.entries(nestedSelect) - .filter(([, v]) => v) - .map(([name]) => t.field({ name })); + const subSelections = buildSelections(nestedSelect, connectionFieldsMap); fields.push( t.field({ name: key, diff --git a/sdk/constructive-cli/src/modules/orm/select-types.ts b/sdk/constructive-cli/src/modules/orm/select-types.ts index 4b39d7e820..783c4603df 100644 --- a/sdk/constructive-cli/src/modules/orm/select-types.ts +++ b/sdk/constructive-cli/src/modules/orm/select-types.ts @@ -159,9 +159,13 @@ export type InferSelectResult = TSelect extends undefined ? K extends keyof TEntity ? NonNullable extends ConnectionResult ? ConnectionResult> - : - | InferSelectResult, NestedSelect> - | (null extends TEntity[K] ? null : never) + : NonNullable extends readonly (infer Item)[] + ? + | InferSelectResult, NestedSelect>[] + | (null extends TEntity[K] ? null : never) + : + | InferSelectResult, NestedSelect> + | (null extends TEntity[K] ? null : never) : never : K extends keyof TEntity ? TEntity[K] diff --git a/sdk/constructive-cli/src/objects/cli/README.md b/sdk/constructive-cli/src/objects/cli/README.md index d32e2e93d9..9a869530ae 100644 --- a/sdk/constructive-cli/src/objects/cli/README.md +++ b/sdk/constructive-cli/src/objects/cli/README.md @@ -124,7 +124,6 @@ CRUD operations for GetAllTreeNodesRecord records. | `list` | List all getAllTreeNodesRecord records | | `find-first` | Find first matching getAllTreeNodesRecord record | | `get` | Get a getAllTreeNodesRecord by id | -| `create` | Create a new getAllTreeNodesRecord | | `update` | Update an existing getAllTreeNodesRecord | | `delete` | Delete a getAllTreeNodesRecord | diff --git a/sdk/constructive-cli/src/objects/cli/commands/get-all-tree-nodes-record.ts b/sdk/constructive-cli/src/objects/cli/commands/get-all-tree-nodes-record.ts index 31c495de36..72a4fd0cd9 100644 --- a/sdk/constructive-cli/src/objects/cli/commands/get-all-tree-nodes-record.ts +++ b/sdk/constructive-cli/src/objects/cli/commands/get-all-tree-nodes-record.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateGetAllTreeNodesRecordInput, GetAllTreeNodesRecordPatch, GetAllTreeNodesRecordSelect, GetAllTreeNodesRecordFilter, @@ -37,7 +36,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -54,8 +53,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -113,46 +110,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'json', - name: 'data', - message: 'data', - required: true, - }, - { - type: 'text', - name: 'path', - message: 'path', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateGetAllTreeNodesRecordInput['getAllTreeNodesRecord']; - const client = getClient(); - const result = await client.getAllTreeNodesRecord - .create({ - data: { - data: cleanedData.data, - path: cleanedData.path, - }, - select: { - data: true, - path: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/objects/orm/README.md b/sdk/constructive-cli/src/objects/orm/README.md index 866cd6f1ef..f5b1e0ead1 100644 --- a/sdk/constructive-cli/src/objects/orm/README.md +++ b/sdk/constructive-cli/src/objects/orm/README.md @@ -22,7 +22,7 @@ const db = createClient({ | Model | Operations | |-------|------------| | `commit` | findMany, findOne, create, update, delete | -| `getAllTreeNodesRecord` | findMany, findOne, create, update, delete | +| `getAllTreeNodesRecord` | findMany, findOne, update, delete | | `object` | findMany, findOne, create, update, delete | | `ref` | findMany, findOne, create, update, delete | | `store` | findMany, findOne, create, update, delete | @@ -86,9 +86,6 @@ const items = await db.getAllTreeNodesRecord.findMany({ select: { data: true, pa // Get one by id const item = await db.getAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: true } }).execute(); -// Create -const created = await db.getAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); - // Update const updated = await db.getAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); diff --git a/sdk/constructive-cli/src/objects/orm/input-types.ts b/sdk/constructive-cli/src/objects/orm/input-types.ts index fbe09b35cb..faa72ecfe0 100644 --- a/sdk/constructive-cli/src/objects/orm/input-types.ts +++ b/sdk/constructive-cli/src/objects/orm/input-types.ts @@ -558,13 +558,6 @@ export interface DeleteCommitInput { clientMutationId?: string; id: string; } -export interface CreateGetAllTreeNodesRecordInput { - clientMutationId?: string; - getAllTreeNodesRecord: { - data?: Record; - path?: string[]; - }; -} export interface GetAllTreeNodesRecordPatch { data?: Record | null; path?: string[] | null; diff --git a/sdk/constructive-cli/src/objects/orm/models/getAllTreeNodesRecord.ts b/sdk/constructive-cli/src/objects/orm/models/getAllTreeNodesRecord.ts index 00f51d01f7..275a902f66 100644 --- a/sdk/constructive-cli/src/objects/orm/models/getAllTreeNodesRecord.ts +++ b/sdk/constructive-cli/src/objects/orm/models/getAllTreeNodesRecord.ts @@ -29,7 +29,6 @@ import type { GetAllTreeNodesRecordSelect, GetAllTreeNodesRecordFilter, GetAllTreeNodesRecordsOrderBy, - CreateGetAllTreeNodesRecordInput, UpdateGetAllTreeNodesRecordInput, GetAllTreeNodesRecordPatch, } from '../input-types'; @@ -104,31 +103,4 @@ export class GetAllTreeNodesRecordModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createGetAllTreeNodesRecord: { - getAllTreeNodesRecord: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'GetAllTreeNodesRecord', - 'createGetAllTreeNodesRecord', - 'getAllTreeNodesRecord', - args.select, - args.data, - 'CreateGetAllTreeNodesRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'GetAllTreeNodesRecord', - fieldName: 'createGetAllTreeNodesRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/objects/orm/query-builder.ts b/sdk/constructive-cli/src/objects/orm/query-builder.ts index fd785bbae6..d6c981907f 100644 --- a/sdk/constructive-cli/src/objects/orm/query-builder.ts +++ b/sdk/constructive-cli/src/objects/orm/query-builder.ts @@ -140,9 +140,7 @@ export function buildSelections( ); const nestedSelect = nested.select; if (nestedSelect && typeof nestedSelect === 'object') { - const subSelections = Object.entries(nestedSelect) - .filter(([, v]) => v) - .map(([name]) => t.field({ name })); + const subSelections = buildSelections(nestedSelect, connectionFieldsMap); fields.push( t.field({ name: key, diff --git a/sdk/constructive-cli/src/objects/orm/select-types.ts b/sdk/constructive-cli/src/objects/orm/select-types.ts index 4b39d7e820..783c4603df 100644 --- a/sdk/constructive-cli/src/objects/orm/select-types.ts +++ b/sdk/constructive-cli/src/objects/orm/select-types.ts @@ -159,9 +159,13 @@ export type InferSelectResult = TSelect extends undefined ? K extends keyof TEntity ? NonNullable extends ConnectionResult ? ConnectionResult> - : - | InferSelectResult, NestedSelect> - | (null extends TEntity[K] ? null : never) + : NonNullable extends readonly (infer Item)[] + ? + | InferSelectResult, NestedSelect>[] + | (null extends TEntity[K] ? null : never) + : + | InferSelectResult, NestedSelect> + | (null extends TEntity[K] ? null : never) : never : K extends keyof TEntity ? TEntity[K] diff --git a/sdk/constructive-cli/src/remote/README.md b/sdk/constructive-cli/src/remote/README.md index 9dd2d4d9cb..2e22b6aba1 100644 --- a/sdk/constructive-cli/src/remote/README.md +++ b/sdk/constructive-cli/src/remote/README.md @@ -9,7 +9,7 @@ ## Overview - **Tables:** 3 -- **Custom queries:** 0 +- **Custom queries:** 1 - **Custom mutations:** 2 **Generators:** ORM, CLI diff --git a/sdk/constructive-cli/src/remote/cli/README.md b/sdk/constructive-cli/src/remote/cli/README.md index afc3f9beff..7f29433b5f 100644 --- a/sdk/constructive-cli/src/remote/cli/README.md +++ b/sdk/constructive-cli/src/remote/cli/README.md @@ -29,6 +29,7 @@ csdk auth set-token | `machine` | machine CRUD operations | | `machine-message` | machineMessage CRUD operations | | `machine-session` | machineSession CRUD operations | +| `current-database-id` | currentDatabaseId | | `machines-enroll` | machinesEnroll | | `provision-bucket` | Reconcile an S3 bucket for a logical bucket in the database. Records the request on the bucket row via RLS; the bucket's job @@ -145,7 +146,7 @@ CRUD operations for MachineMessage records. | `seq` | BigInt | | `sessionId` | UUID | -**Required create fields:** `actorId`, `kind`, `seq`, `sessionId` +**Required create fields:** `actorId`, `entityId`, `kind`, `ownerId`, `seq`, `sessionId` **Optional create fields (backend defaults):** `content`, `createdByPrincipal`, `recordedAt` ### `machine-session` @@ -194,11 +195,18 @@ CRUD operations for MachineSession records. | `updatedBy` | UUID | | `updatedByPrincipal` | UUID | -**Required create fields:** `machineId`, `ownerId` +**Required create fields:** `entityId`, `machineId`, `ownerId` **Optional create fields (backend defaults):** `agentMode`, `agentSessionRef`, `args`, `cols`, `command`, `createdBy`, `createdByPrincipal`, `cwd`, `endedAt`, `env`, `exitCode`, `interactive`, `lastActivityAt`, `lastSeq`, `metadata`, `pid`, `runId`, `startedAt`, `state`, `termRows`, `updatedBy`, `updatedByPrincipal` ## Custom Operations +### `current-database-id` + +currentDatabaseId + +- **Type:** query +- **Arguments:** none + ### `machines-enroll` machinesEnroll diff --git a/sdk/constructive-cli/src/remote/cli/commands.ts b/sdk/constructive-cli/src/remote/cli/commands.ts index e51b43e0e5..05b8a47c5b 100644 --- a/sdk/constructive-cli/src/remote/cli/commands.ts +++ b/sdk/constructive-cli/src/remote/cli/commands.ts @@ -9,6 +9,7 @@ import authCmd from './commands/auth'; import machineCmd from './commands/machine'; import machineMessageCmd from './commands/machine-message'; import machineSessionCmd from './commands/machine-session'; +import currentDatabaseIdCmd from './commands/current-database-id'; import machinesEnrollCmd from './commands/machines-enroll'; import provisionBucketCmd from './commands/provision-bucket'; const createCommandMap: () => Record< @@ -24,11 +25,12 @@ const createCommandMap: () => Record< machine: machineCmd, 'machine-message': machineMessageCmd, 'machine-session': machineSessionCmd, + 'current-database-id': currentDatabaseIdCmd, 'machines-enroll': machinesEnrollCmd, 'provision-bucket': provisionBucketCmd, }); const usage = - "\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n machine machine CRUD operations\n machine-message machineMessage CRUD operations\n machine-session machineSession CRUD operations\n machines-enroll machinesEnroll\n provision-bucket Reconcile an S3 bucket for a logical bucket in the database.\nRecords the request on the bucket row via RLS; the bucket's job\ntrigger then enqueues the same storage:provision_bucket job used on\nINSERT, and repeated requests collapse into one pending job. This is\nidempotent for an already-reconciled bucket; failures become GraphQL\nerrors.\n\n --help, -h Show this help message\n --version, -v Show version\n"; + "\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n machine machine CRUD operations\n machine-message machineMessage CRUD operations\n machine-session machineSession CRUD operations\n current-database-id currentDatabaseId\n machines-enroll machinesEnroll\n provision-bucket Reconcile an S3 bucket for a logical bucket in the database.\nRecords the request on the bucket row via RLS; the bucket's job\ntrigger then enqueues the same storage:provision_bucket job used on\nINSERT, and repeated requests collapse into one pending job. This is\nidempotent for an already-reconciled bucket; failures become GraphQL\nerrors.\n\n --help, -h Show this help message\n --version, -v Show version\n"; export const commands = async ( argv: Partial>, prompter: Inquirerer, diff --git a/sdk/constructive-cli/src/api/cli/commands/resolve-site-app-links.ts b/sdk/constructive-cli/src/remote/cli/commands/current-database-id.ts similarity index 52% rename from sdk/constructive-cli/src/api/cli/commands/resolve-site-app-links.ts rename to sdk/constructive-cli/src/remote/cli/commands/current-database-id.ts index 5a08de23a1..674a964532 100644 --- a/sdk/constructive-cli/src/api/cli/commands/resolve-site-app-links.ts +++ b/sdk/constructive-cli/src/remote/cli/commands/current-database-id.ts @@ -1,11 +1,10 @@ /** - * CLI command for query resolveSiteAppLinks + * CLI command for query currentDatabaseId * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ import { CLIOptions, Inquirerer } from 'inquirerer'; import { getClient } from '../executor'; -import type { ResolveSiteAppLinksVariables } from '../../orm/query'; export default async ( argv: Partial>, prompter: Inquirerer, @@ -14,24 +13,15 @@ export default async ( try { if (argv.help || argv.h) { console.log( - 'resolve-site-app-links - resolveSiteAppLinks\n\nUsage: resolve-site-app-links [OPTIONS]\n' + 'current-database-id - currentDatabaseId\n\nUsage: current-database-id [OPTIONS]\n' ); process.exit(0); } - const answers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'targetSiteId', - message: 'targetSiteId', - }, - ]); const client = getClient(); - const result = await client.query - .resolveSiteAppLinks(answers as unknown as ResolveSiteAppLinksVariables) - .execute(); + const result = await client.query.currentDatabaseId().execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { - console.error('Failed: resolveSiteAppLinks'); + console.error('Failed: currentDatabaseId'); if (error instanceof Error) { console.error(error.message); } diff --git a/sdk/constructive-cli/src/remote/cli/commands/machine-message.ts b/sdk/constructive-cli/src/remote/cli/commands/machine-message.ts index 13d74c9170..86d0096b54 100644 --- a/sdk/constructive-cli/src/remote/cli/commands/machine-message.ts +++ b/sdk/constructive-cli/src/remote/cli/commands/machine-message.ts @@ -81,8 +81,10 @@ async function handleList(argv: Partial>, _prompter: Inq actorId: true, content: true, createdByPrincipal: true, + entityId: true, id: true, kind: true, + ownerId: true, recordedAt: true, seq: true, sessionId: true, @@ -109,8 +111,10 @@ async function handleFindFirst(argv: Partial>, _prompter actorId: true, content: true, createdByPrincipal: true, + entityId: true, id: true, kind: true, + ownerId: true, recordedAt: true, seq: true, sessionId: true, @@ -149,8 +153,10 @@ async function handleGet(argv: Partial>, prompter: Inqui actorId: true, content: true, createdByPrincipal: true, + entityId: true, id: true, kind: true, + ownerId: true, recordedAt: true, seq: true, sessionId: true, @@ -236,8 +242,10 @@ async function handleCreate(argv: Partial>, prompter: In actorId: true, content: true, createdByPrincipal: true, + entityId: true, id: true, kind: true, + ownerId: true, recordedAt: true, seq: true, sessionId: true, @@ -288,12 +296,24 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'entityId', + message: 'entityId', + required: false, + }, { type: 'text', name: 'kind', message: 'kind', required: false, }, + { + type: 'text', + name: 'ownerId', + message: 'ownerId', + required: false, + }, { type: 'text', name: 'seq', @@ -320,7 +340,9 @@ async function handleUpdate(argv: Partial>, prompter: In actorId: cleanedData.actorId, content: cleanedData.content, createdByPrincipal: cleanedData.createdByPrincipal, + entityId: cleanedData.entityId, kind: cleanedData.kind, + ownerId: cleanedData.ownerId, seq: cleanedData.seq, sessionId: cleanedData.sessionId, }, @@ -328,8 +350,10 @@ async function handleUpdate(argv: Partial>, prompter: In actorId: true, content: true, createdByPrincipal: true, + entityId: true, id: true, kind: true, + ownerId: true, recordedAt: true, seq: true, sessionId: true, diff --git a/sdk/constructive-cli/src/remote/cli/commands/machine-session.ts b/sdk/constructive-cli/src/remote/cli/commands/machine-session.ts index 3a27887845..c2b6f7e3bb 100644 --- a/sdk/constructive-cli/src/remote/cli/commands/machine-session.ts +++ b/sdk/constructive-cli/src/remote/cli/commands/machine-session.ts @@ -106,6 +106,7 @@ async function handleList(argv: Partial>, _prompter: Inq createdByPrincipal: true, cwd: true, endedAt: true, + entityId: true, env: true, exitCode: true, id: true, @@ -153,6 +154,7 @@ async function handleFindFirst(argv: Partial>, _prompter createdByPrincipal: true, cwd: true, endedAt: true, + entityId: true, env: true, exitCode: true, id: true, @@ -212,6 +214,7 @@ async function handleGet(argv: Partial>, prompter: Inqui createdByPrincipal: true, cwd: true, endedAt: true, + entityId: true, env: true, exitCode: true, id: true, @@ -456,6 +459,7 @@ async function handleCreate(argv: Partial>, prompter: In createdByPrincipal: true, cwd: true, endedAt: true, + entityId: true, env: true, exitCode: true, id: true, @@ -557,6 +561,12 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'entityId', + message: 'entityId', + required: false, + }, { type: 'json', name: 'env', @@ -679,6 +689,7 @@ async function handleUpdate(argv: Partial>, prompter: In createdByPrincipal: cleanedData.createdByPrincipal, cwd: cleanedData.cwd, endedAt: cleanedData.endedAt, + entityId: cleanedData.entityId, env: cleanedData.env, exitCode: cleanedData.exitCode, interactive: cleanedData.interactive, @@ -706,6 +717,7 @@ async function handleUpdate(argv: Partial>, prompter: In createdByPrincipal: true, cwd: true, endedAt: true, + entityId: true, env: true, exitCode: true, id: true, diff --git a/sdk/constructive-cli/src/remote/orm/README.md b/sdk/constructive-cli/src/remote/orm/README.md index eb2fdd09aa..b76819b71e 100644 --- a/sdk/constructive-cli/src/remote/orm/README.md +++ b/sdk/constructive-cli/src/remote/orm/README.md @@ -169,6 +169,17 @@ const deleted = await db.machineSession.delete({ where: { id: '' } }).exec ## Custom Operations +### `db.query.currentDatabaseId` + +currentDatabaseId + +- **Type:** query +- **Arguments:** none + +```typescript +const result = await db.query.currentDatabaseId().execute(); +``` + ### `db.mutation.machinesEnroll` machinesEnroll diff --git a/sdk/constructive-cli/src/remote/orm/index.ts b/sdk/constructive-cli/src/remote/orm/index.ts index e166dd236a..554ce59ad1 100644 --- a/sdk/constructive-cli/src/remote/orm/index.ts +++ b/sdk/constructive-cli/src/remote/orm/index.ts @@ -8,12 +8,14 @@ import type { OrmClientConfig } from './client'; import { MachineModel } from './models/machine'; import { MachineMessageModel } from './models/machineMessage'; import { MachineSessionModel } from './models/machineSession'; +import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; export { GraphQLRequestError, FetchAdapter } from './client'; export { QueryBuilder } from './query-builder'; export * from './select-types'; export * from './models'; +export { createQueryOperations } from './query'; export { createMutationOperations } from './mutation'; /** * Create an ORM client instance @@ -44,6 +46,7 @@ export function createClient(config: OrmClientConfig) { machine: new MachineModel(client), machineMessage: new MachineMessageModel(client), machineSession: new MachineSessionModel(client), + query: createQueryOperations(client), mutation: createMutationOperations(client), }; } diff --git a/sdk/constructive-cli/src/remote/orm/query-builder.ts b/sdk/constructive-cli/src/remote/orm/query-builder.ts index fd785bbae6..d6c981907f 100644 --- a/sdk/constructive-cli/src/remote/orm/query-builder.ts +++ b/sdk/constructive-cli/src/remote/orm/query-builder.ts @@ -140,9 +140,7 @@ export function buildSelections( ); const nestedSelect = nested.select; if (nestedSelect && typeof nestedSelect === 'object') { - const subSelections = Object.entries(nestedSelect) - .filter(([, v]) => v) - .map(([name]) => t.field({ name })); + const subSelections = buildSelections(nestedSelect, connectionFieldsMap); fields.push( t.field({ name: key, diff --git a/sdk/constructive-cli/src/remote/orm/query/index.ts b/sdk/constructive-cli/src/remote/orm/query/index.ts new file mode 100644 index 0000000000..901e0de080 --- /dev/null +++ b/sdk/constructive-cli/src/remote/orm/query/index.ts @@ -0,0 +1,32 @@ +/** + * Custom query operations + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { QueryBuilder, buildCustomDocument } from '../query-builder'; +import type { InferSelectResult, StrictSelect } from '../select-types'; +import { connectionFieldsMap } from '../input-types'; +export function createQueryOperations(client: OrmClient) { + return { + currentDatabaseId: (options?: { select?: Record }) => + new QueryBuilder<{ + currentDatabaseId: string | null; + }>({ + client, + operation: 'query', + operationName: 'CurrentDatabaseId', + fieldName: 'currentDatabaseId', + ...buildCustomDocument( + 'query', + 'CurrentDatabaseId', + 'currentDatabaseId', + options?.select, + undefined, + [], + connectionFieldsMap, + undefined + ), + }), + }; +} diff --git a/sdk/constructive-cli/src/remote/orm/select-types.ts b/sdk/constructive-cli/src/remote/orm/select-types.ts index 4b39d7e820..783c4603df 100644 --- a/sdk/constructive-cli/src/remote/orm/select-types.ts +++ b/sdk/constructive-cli/src/remote/orm/select-types.ts @@ -159,9 +159,13 @@ export type InferSelectResult = TSelect extends undefined ? K extends keyof TEntity ? NonNullable extends ConnectionResult ? ConnectionResult> - : - | InferSelectResult, NestedSelect> - | (null extends TEntity[K] ? null : never) + : NonNullable extends readonly (infer Item)[] + ? + | InferSelectResult, NestedSelect>[] + | (null extends TEntity[K] ? null : never) + : + | InferSelectResult, NestedSelect> + | (null extends TEntity[K] ? null : never) : never : K extends keyof TEntity ? TEntity[K] diff --git a/sdk/constructive-cli/src/storage/cli/README.md b/sdk/constructive-cli/src/storage/cli/README.md index 9074edd5bb..4491f9bf3c 100644 --- a/sdk/constructive-cli/src/storage/cli/README.md +++ b/sdk/constructive-cli/src/storage/cli/README.md @@ -133,7 +133,6 @@ CRUD operations for File records. | `list` | List all file records | | `find-first` | Find first matching file record | | `get` | Get a file by id | -| `create` | Create a new file | | `update` | Update an existing file | | `delete` | Delete a file | @@ -156,14 +155,16 @@ CRUD operations for File records. | `key` | String | | `mimeType` | String | | `promotedAt` | Datetime | +| `rejectionReason` | String | | `size` | BigInt | | `status` | FileStatus | | `tags` | String | | `updatedAt` | Datetime | | `upload` | Upload | +| `uploadUrl` | String | +| `uploadVersions` | FileVersion | -**Required create fields:** `actorId`, `bucketId`, `key`, `mimeType`, `size` -**Optional create fields (backend defaults):** `contentHash`, `description`, `expiryEnqueuedAt`, `filename`, `promotedAt`, `status`, `tags`, `upload` +**Required create fields:** `actorId`, `bucketId`, `contentHash`, `databaseId`, `description`, `expiryEnqueuedAt`, `filename`, `isPublic`, `key`, `mimeType`, `promotedAt`, `rejectionReason`, `size`, `status`, `tags`, `upload` ### `platform-bucket` @@ -213,7 +214,6 @@ CRUD operations for PlatformFile records. | `list` | List all platformFile records | | `find-first` | Find first matching platformFile record | | `get` | Get a platformFile by id | -| `create` | Create a new platformFile | | `update` | Update an existing platformFile | | `delete` | Delete a platformFile | @@ -235,14 +235,16 @@ CRUD operations for PlatformFile records. | `key` | String | | `mimeType` | String | | `promotedAt` | Datetime | +| `rejectionReason` | String | | `size` | BigInt | | `status` | FileStatus | | `tags` | String | | `updatedAt` | Datetime | | `upload` | Upload | +| `uploadUrl` | String | +| `uploadVersions` | FileVersion | -**Required create fields:** `actorId`, `bucketId`, `key`, `mimeType`, `size` -**Optional create fields (backend defaults):** `contentHash`, `description`, `expiryEnqueuedAt`, `filename`, `promotedAt`, `status`, `tags`, `upload` +**Required create fields:** `actorId`, `bucketId`, `contentHash`, `description`, `expiryEnqueuedAt`, `filename`, `isPublic`, `key`, `mimeType`, `promotedAt`, `rejectionReason`, `size`, `status`, `tags`, `upload` ## Custom Operations @@ -301,6 +303,7 @@ Upload a file: resolves the bucket by key, creates the file row, and returns a p | `--input.bucketKey` | String | | `--input.contentHash` | String (required) | | `--input.contentType` | String (required) | + | `--input.databaseId` | UUID | | `--input.filename` | String | | `--input.isPublic` | Boolean | | `--input.key` | String | @@ -316,6 +319,7 @@ Upload multiple files: resolves the bucket by key, creates file rows, and return | Argument | Type | |----------|------| | `--input.bucketKey` | String | + | `--input.databaseId` | UUID | | `--input.files` | UploadFileBulkFileInput (required) | | `--input.isPublic` | Boolean | diff --git a/sdk/constructive-cli/src/storage/cli/commands/file.ts b/sdk/constructive-cli/src/storage/cli/commands/file.ts index 12119e4eb2..41f205ef09 100644 --- a/sdk/constructive-cli/src/storage/cli/commands/file.ts +++ b/sdk/constructive-cli/src/storage/cli/commands/file.ts @@ -7,13 +7,7 @@ import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; -import type { - CreateFileInput, - FilePatch, - FileSelect, - FileFilter, - FileOrderBy, -} from '../../orm/input-types'; +import type { FilePatch, FileSelect, FileFilter, FileOrderBy } from '../../orm/input-types'; import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { actorId: 'uuid', @@ -31,11 +25,14 @@ const fieldSchema: FieldSchema = { key: 'string', mimeType: 'string', promotedAt: 'string', + rejectionReason: 'string', size: 'int', status: 'string', tags: 'string', updatedAt: 'string', upload: 'string', + uploadUrl: 'string', + uploadVersions: 'string', }; const usage = '\nfile \n\nCommands:\n list List file records\n find-first Find first matching file record\n get Get a file by ID\n create Create a new file\n update Update an existing file\n delete Delete a file\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; @@ -55,7 +52,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'get', 'create', 'update', 'delete'], + options: ['list', 'find-first', 'get', 'update', 'delete'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -74,8 +71,6 @@ async function handleTableSubcommand( return handleFindFirst(argv, prompter); case 'get': return handleGet(argv, prompter); - case 'create': - return handleCreate(argv, prompter); case 'update': return handleUpdate(argv, prompter); case 'delete': @@ -92,13 +87,16 @@ async function handleList(argv: Partial>, _prompter: Inq bucketId: true, contentHash: true, createdAt: true, + databaseId: true, description: true, expiryEnqueuedAt: true, filename: true, id: true, + isPublic: true, key: true, mimeType: true, promotedAt: true, + rejectionReason: true, size: true, status: true, tags: true, @@ -128,13 +126,16 @@ async function handleFindFirst(argv: Partial>, _prompter bucketId: true, contentHash: true, createdAt: true, + databaseId: true, description: true, expiryEnqueuedAt: true, filename: true, id: true, + isPublic: true, key: true, mimeType: true, promotedAt: true, + rejectionReason: true, size: true, status: true, tags: true, @@ -176,13 +177,16 @@ async function handleGet(argv: Partial>, prompter: Inqui bucketId: true, contentHash: true, createdAt: true, + databaseId: true, description: true, expiryEnqueuedAt: true, filename: true, id: true, + isPublic: true, key: true, mimeType: true, promotedAt: true, + rejectionReason: true, size: true, status: true, tags: true, @@ -200,145 +204,6 @@ async function handleGet(argv: Partial>, prompter: Inqui process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'actorId', - message: 'actorId', - required: true, - }, - { - type: 'text', - name: 'bucketId', - message: 'bucketId', - required: true, - }, - { - type: 'text', - name: 'contentHash', - message: 'contentHash', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'description', - message: 'description', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'expiryEnqueuedAt', - message: 'expiryEnqueuedAt', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'filename', - message: 'filename', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'key', - message: 'key', - required: true, - }, - { - type: 'text', - name: 'mimeType', - message: 'mimeType', - required: true, - }, - { - type: 'text', - name: 'promotedAt', - message: 'promotedAt', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'size', - message: 'size', - required: true, - }, - { - type: 'text', - name: 'status', - message: 'status', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'tags', - message: 'tags', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'upload', - message: 'upload', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as CreateFileInput['file']; - const client = getClient(); - const result = await client.file - .create({ - data: { - actorId: cleanedData.actorId, - bucketId: cleanedData.bucketId, - contentHash: cleanedData.contentHash, - description: cleanedData.description, - expiryEnqueuedAt: cleanedData.expiryEnqueuedAt, - filename: cleanedData.filename, - key: cleanedData.key, - mimeType: cleanedData.mimeType, - promotedAt: cleanedData.promotedAt, - size: cleanedData.size, - status: cleanedData.status, - tags: cleanedData.tags, - upload: cleanedData.upload, - }, - select: { - actorId: true, - bucketId: true, - contentHash: true, - createdAt: true, - description: true, - expiryEnqueuedAt: true, - filename: true, - id: true, - key: true, - mimeType: true, - promotedAt: true, - size: true, - status: true, - tags: true, - updatedAt: true, - upload: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} async function handleUpdate(argv: Partial>, prompter: Inquirerer) { try { const rawAnswers = await prompter.prompt(argv, [ @@ -365,28 +230,36 @@ async function handleUpdate(argv: Partial>, prompter: In name: 'contentHash', message: 'contentHash', required: false, - skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, }, { type: 'text', name: 'description', message: 'description', required: false, - skipPrompt: true, }, { type: 'text', name: 'expiryEnqueuedAt', message: 'expiryEnqueuedAt', required: false, - skipPrompt: true, }, { type: 'text', name: 'filename', message: 'filename', required: false, - skipPrompt: true, + }, + { + type: 'boolean', + name: 'isPublic', + message: 'isPublic', + required: false, }, { type: 'text', @@ -405,7 +278,12 @@ async function handleUpdate(argv: Partial>, prompter: In name: 'promotedAt', message: 'promotedAt', required: false, - skipPrompt: true, + }, + { + type: 'text', + name: 'rejectionReason', + message: 'rejectionReason', + required: false, }, { type: 'text', @@ -418,21 +296,18 @@ async function handleUpdate(argv: Partial>, prompter: In name: 'status', message: 'status', required: false, - skipPrompt: true, }, { type: 'text', name: 'tags', message: 'tags', required: false, - skipPrompt: true, }, { type: 'text', name: 'upload', message: 'upload', required: false, - skipPrompt: true, }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); @@ -447,12 +322,15 @@ async function handleUpdate(argv: Partial>, prompter: In actorId: cleanedData.actorId, bucketId: cleanedData.bucketId, contentHash: cleanedData.contentHash, + databaseId: cleanedData.databaseId, description: cleanedData.description, expiryEnqueuedAt: cleanedData.expiryEnqueuedAt, filename: cleanedData.filename, + isPublic: cleanedData.isPublic, key: cleanedData.key, mimeType: cleanedData.mimeType, promotedAt: cleanedData.promotedAt, + rejectionReason: cleanedData.rejectionReason, size: cleanedData.size, status: cleanedData.status, tags: cleanedData.tags, @@ -463,13 +341,16 @@ async function handleUpdate(argv: Partial>, prompter: In bucketId: true, contentHash: true, createdAt: true, + databaseId: true, description: true, expiryEnqueuedAt: true, filename: true, id: true, + isPublic: true, key: true, mimeType: true, promotedAt: true, + rejectionReason: true, size: true, status: true, tags: true, diff --git a/sdk/constructive-cli/src/storage/cli/commands/platform-file.ts b/sdk/constructive-cli/src/storage/cli/commands/platform-file.ts index 6b64a314a7..27460d734a 100644 --- a/sdk/constructive-cli/src/storage/cli/commands/platform-file.ts +++ b/sdk/constructive-cli/src/storage/cli/commands/platform-file.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreatePlatformFileInput, PlatformFilePatch, PlatformFileSelect, PlatformFileFilter, @@ -30,11 +29,14 @@ const fieldSchema: FieldSchema = { key: 'string', mimeType: 'string', promotedAt: 'string', + rejectionReason: 'string', size: 'int', status: 'string', tags: 'string', updatedAt: 'string', upload: 'string', + uploadUrl: 'string', + uploadVersions: 'string', }; const usage = '\nplatform-file \n\nCommands:\n list List platformFile records\n find-first Find first matching platformFile record\n get Get a platformFile by ID\n create Create a new platformFile\n update Update an existing platformFile\n delete Delete a platformFile\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; @@ -54,7 +56,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'get', 'create', 'update', 'delete'], + options: ['list', 'find-first', 'get', 'update', 'delete'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -73,8 +75,6 @@ async function handleTableSubcommand( return handleFindFirst(argv, prompter); case 'get': return handleGet(argv, prompter); - case 'create': - return handleCreate(argv, prompter); case 'update': return handleUpdate(argv, prompter); case 'delete': @@ -95,9 +95,11 @@ async function handleList(argv: Partial>, _prompter: Inq expiryEnqueuedAt: true, filename: true, id: true, + isPublic: true, key: true, mimeType: true, promotedAt: true, + rejectionReason: true, size: true, status: true, tags: true, @@ -131,9 +133,11 @@ async function handleFindFirst(argv: Partial>, _prompter expiryEnqueuedAt: true, filename: true, id: true, + isPublic: true, key: true, mimeType: true, promotedAt: true, + rejectionReason: true, size: true, status: true, tags: true, @@ -179,9 +183,11 @@ async function handleGet(argv: Partial>, prompter: Inqui expiryEnqueuedAt: true, filename: true, id: true, + isPublic: true, key: true, mimeType: true, promotedAt: true, + rejectionReason: true, size: true, status: true, tags: true, @@ -199,148 +205,6 @@ async function handleGet(argv: Partial>, prompter: Inqui process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'actorId', - message: 'actorId', - required: true, - }, - { - type: 'text', - name: 'bucketId', - message: 'bucketId', - required: true, - }, - { - type: 'text', - name: 'contentHash', - message: 'contentHash', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'description', - message: 'description', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'expiryEnqueuedAt', - message: 'expiryEnqueuedAt', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'filename', - message: 'filename', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'key', - message: 'key', - required: true, - }, - { - type: 'text', - name: 'mimeType', - message: 'mimeType', - required: true, - }, - { - type: 'text', - name: 'promotedAt', - message: 'promotedAt', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'size', - message: 'size', - required: true, - }, - { - type: 'text', - name: 'status', - message: 'status', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'tags', - message: 'tags', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'upload', - message: 'upload', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreatePlatformFileInput['platformFile']; - const client = getClient(); - const result = await client.platformFile - .create({ - data: { - actorId: cleanedData.actorId, - bucketId: cleanedData.bucketId, - contentHash: cleanedData.contentHash, - description: cleanedData.description, - expiryEnqueuedAt: cleanedData.expiryEnqueuedAt, - filename: cleanedData.filename, - key: cleanedData.key, - mimeType: cleanedData.mimeType, - promotedAt: cleanedData.promotedAt, - size: cleanedData.size, - status: cleanedData.status, - tags: cleanedData.tags, - upload: cleanedData.upload, - }, - select: { - actorId: true, - bucketId: true, - contentHash: true, - createdAt: true, - description: true, - expiryEnqueuedAt: true, - filename: true, - id: true, - key: true, - mimeType: true, - promotedAt: true, - size: true, - status: true, - tags: true, - updatedAt: true, - upload: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} async function handleUpdate(argv: Partial>, prompter: Inquirerer) { try { const rawAnswers = await prompter.prompt(argv, [ @@ -367,28 +231,30 @@ async function handleUpdate(argv: Partial>, prompter: In name: 'contentHash', message: 'contentHash', required: false, - skipPrompt: true, }, { type: 'text', name: 'description', message: 'description', required: false, - skipPrompt: true, }, { type: 'text', name: 'expiryEnqueuedAt', message: 'expiryEnqueuedAt', required: false, - skipPrompt: true, }, { type: 'text', name: 'filename', message: 'filename', required: false, - skipPrompt: true, + }, + { + type: 'boolean', + name: 'isPublic', + message: 'isPublic', + required: false, }, { type: 'text', @@ -407,7 +273,12 @@ async function handleUpdate(argv: Partial>, prompter: In name: 'promotedAt', message: 'promotedAt', required: false, - skipPrompt: true, + }, + { + type: 'text', + name: 'rejectionReason', + message: 'rejectionReason', + required: false, }, { type: 'text', @@ -420,21 +291,18 @@ async function handleUpdate(argv: Partial>, prompter: In name: 'status', message: 'status', required: false, - skipPrompt: true, }, { type: 'text', name: 'tags', message: 'tags', required: false, - skipPrompt: true, }, { type: 'text', name: 'upload', message: 'upload', required: false, - skipPrompt: true, }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); @@ -452,9 +320,11 @@ async function handleUpdate(argv: Partial>, prompter: In description: cleanedData.description, expiryEnqueuedAt: cleanedData.expiryEnqueuedAt, filename: cleanedData.filename, + isPublic: cleanedData.isPublic, key: cleanedData.key, mimeType: cleanedData.mimeType, promotedAt: cleanedData.promotedAt, + rejectionReason: cleanedData.rejectionReason, size: cleanedData.size, status: cleanedData.status, tags: cleanedData.tags, @@ -469,9 +339,11 @@ async function handleUpdate(argv: Partial>, prompter: In expiryEnqueuedAt: true, filename: true, id: true, + isPublic: true, key: true, mimeType: true, promotedAt: true, + rejectionReason: true, size: true, status: true, tags: true, diff --git a/sdk/constructive-cli/src/storage/orm/README.md b/sdk/constructive-cli/src/storage/orm/README.md index a4e42cc98d..76a3ee3519 100644 --- a/sdk/constructive-cli/src/storage/orm/README.md +++ b/sdk/constructive-cli/src/storage/orm/README.md @@ -22,9 +22,9 @@ const db = createClient({ | Model | Operations | |-------|------------| | `bucket` | findMany, findOne, create, update, delete | -| `file` | findMany, findOne, create, update, delete | +| `file` | findMany, findOne, update, delete | | `platformBucket` | findMany, findOne, create, update, delete | -| `platformFile` | findMany, findOne, create, update, delete | +| `platformFile` | findMany, findOne, update, delete | ## Table Operations @@ -47,7 +47,7 @@ CRUD operations for Bucket records. | `id` | UUID | No | | `isPublic` | Boolean | Yes | | `key` | String | Yes | -| `maxBulkFiles` | Int | Yes | +| `maxBulkFiles` | Int | No | | `maxFileSize` | BigInt | Yes | | `physicalName` | String | Yes | | `provisionRequestedAt` | Datetime | Yes | @@ -66,7 +66,7 @@ const items = await db.bucket.findMany({ select: { actorId: true, allowCustomKey const item = await db.bucket.findOne({ id: '', select: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, databaseId: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxBulkFiles: true, maxFileSize: true, physicalName: true, provisionRequestedAt: true, stagingTtl: true, tags: true, type: true, updatedAt: true } }).execute(); // Create -const created = await db.bucket.create({ data: { actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', databaseId: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxBulkFiles: '', maxFileSize: '', physicalName: '', provisionRequestedAt: '', stagingTtl: '', tags: '', type: '' }, select: { id: true } }).execute(); +const created = await db.bucket.create({ data: { actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', databaseId: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxFileSize: '', physicalName: '', provisionRequestedAt: '', stagingTtl: '', tags: '', type: '' }, select: { id: true } }).execute(); // Update const updated = await db.bucket.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -89,32 +89,32 @@ CRUD operations for File records. | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | | `description` | String | Yes | -| `downloadUrl` | String | Yes | +| `downloadUrl` | String | No | | `expiryEnqueuedAt` | Datetime | Yes | -| `filePath` | String | Yes | +| `filePath` | String | No | | `filename` | String | Yes | | `id` | UUID | No | | `isPublic` | Boolean | Yes | | `key` | String | Yes | | `mimeType` | String | Yes | | `promotedAt` | Datetime | Yes | +| `rejectionReason` | String | Yes | | `size` | BigInt | Yes | | `status` | FileStatus | Yes | | `tags` | String | Yes | | `updatedAt` | Datetime | No | | `upload` | ConstructiveInternalTypeUpload | Yes | +| `uploadUrl` | String | No | +| `uploadVersions` | FileVersion | No | **Operations:** ```typescript // List all file records -const items = await db.file.findMany({ select: { actorId: true, bucketId: true, contentHash: true, createdAt: true, databaseId: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }).execute(); +const items = await db.file.findMany({ select: { actorId: true, bucketId: true, contentHash: true, createdAt: true, databaseId: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, rejectionReason: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }).execute(); // Get one by id -const item = await db.file.findOne({ id: '', select: { actorId: true, bucketId: true, contentHash: true, createdAt: true, databaseId: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }).execute(); - -// Create -const created = await db.file.create({ data: { actorId: '', bucketId: '', contentHash: '', databaseId: '', description: '', downloadUrl: '', expiryEnqueuedAt: '', filePath: '', filename: '', isPublic: '', key: '', mimeType: '', promotedAt: '', size: '', status: '', tags: '', upload: '' }, select: { id: true } }).execute(); +const item = await db.file.findOne({ id: '', select: { actorId: true, bucketId: true, contentHash: true, createdAt: true, databaseId: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, rejectionReason: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }).execute(); // Update const updated = await db.file.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -141,7 +141,7 @@ CRUD operations for PlatformBucket records. | `id` | UUID | No | | `isPublic` | Boolean | Yes | | `key` | String | Yes | -| `maxBulkFiles` | Int | Yes | +| `maxBulkFiles` | Int | No | | `maxFileSize` | BigInt | Yes | | `physicalName` | String | Yes | | `provisionRequestedAt` | Datetime | Yes | @@ -160,7 +160,7 @@ const items = await db.platformBucket.findMany({ select: { actorId: true, allowC const item = await db.platformBucket.findOne({ id: '', select: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxBulkFiles: true, maxFileSize: true, physicalName: true, provisionRequestedAt: true, stagingTtl: true, tags: true, type: true, updatedAt: true } }).execute(); // Create -const created = await db.platformBucket.create({ data: { actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxBulkFiles: '', maxFileSize: '', physicalName: '', provisionRequestedAt: '', stagingTtl: '', tags: '', type: '' }, select: { id: true } }).execute(); +const created = await db.platformBucket.create({ data: { actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxFileSize: '', physicalName: '', provisionRequestedAt: '', stagingTtl: '', tags: '', type: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformBucket.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -182,32 +182,32 @@ CRUD operations for PlatformFile records. | `contentHash` | String | Yes | | `createdAt` | Datetime | No | | `description` | String | Yes | -| `downloadUrl` | String | Yes | +| `downloadUrl` | String | No | | `expiryEnqueuedAt` | Datetime | Yes | -| `filePath` | String | Yes | +| `filePath` | String | No | | `filename` | String | Yes | | `id` | UUID | No | | `isPublic` | Boolean | Yes | | `key` | String | Yes | | `mimeType` | String | Yes | | `promotedAt` | Datetime | Yes | +| `rejectionReason` | String | Yes | | `size` | BigInt | Yes | | `status` | FileStatus | Yes | | `tags` | String | Yes | | `updatedAt` | Datetime | No | | `upload` | ConstructiveInternalTypeUpload | Yes | +| `uploadUrl` | String | No | +| `uploadVersions` | FileVersion | No | **Operations:** ```typescript // List all platformFile records -const items = await db.platformFile.findMany({ select: { actorId: true, bucketId: true, contentHash: true, createdAt: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }).execute(); +const items = await db.platformFile.findMany({ select: { actorId: true, bucketId: true, contentHash: true, createdAt: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, rejectionReason: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }).execute(); // Get one by id -const item = await db.platformFile.findOne({ id: '', select: { actorId: true, bucketId: true, contentHash: true, createdAt: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }).execute(); - -// Create -const created = await db.platformFile.create({ data: { actorId: '', bucketId: '', contentHash: '', description: '', downloadUrl: '', expiryEnqueuedAt: '', filePath: '', filename: '', isPublic: '', key: '', mimeType: '', promotedAt: '', size: '', status: '', tags: '', upload: '' }, select: { id: true } }).execute(); +const item = await db.platformFile.findOne({ id: '', select: { actorId: true, bucketId: true, contentHash: true, createdAt: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, rejectionReason: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }).execute(); // Update const updated = await db.platformFile.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -295,7 +295,7 @@ Upload multiple files: resolves the bucket by key, creates file rows, and return | `input` | UploadFileBulkInput (required) | ```typescript -const result = await db.mutation.uploadFiles({ input: { bucketKey: '', files: '', isPublic: '' } }).execute(); +const result = await db.mutation.uploadFiles({ input: { bucketKey: '', databaseId: '', files: '', isPublic: '' } }).execute(); ``` ### `db.mutation.uploadPlatformFile` diff --git a/sdk/constructive-cli/src/storage/orm/input-types.ts b/sdk/constructive-cli/src/storage/orm/input-types.ts index ffb823c7ee..1351860637 100644 --- a/sdk/constructive-cli/src/storage/orm/input-types.ts +++ b/sdk/constructive-cli/src/storage/orm/input-types.ts @@ -232,7 +232,7 @@ export interface UUIDListFilter { } // ============ Enum Types ============ export type BucketType = 'PRIVATE' | 'PUBLIC' | 'TEMP'; -export type FileStatus = 'EXPIRED' | 'PROCESSED' | 'REJECTED' | 'REQUESTED' | 'UPLOADED'; +export type FileStatus = 'PROCESSED' | 'REJECTED' | 'REQUESTED' | 'UPLOADED'; // ============ Custom Scalar Types ============ export type ConstructiveInternalTypeUpload = unknown; /** Logical storage containers that group files with shared access policies and CDN behavior */ @@ -287,7 +287,7 @@ export interface File { databaseId?: string | null; /** Human-readable description or alt text for the file (mutable) */ description?: string | null; - /** URL to download this file. For public files, returns the public URL. For private files, returns a time-limited presigned URL. */ + /** URL to download this file. For public files, returns the public URL. For private files, returns a time-limited presigned URL. Null until the upload is confirmed (status uploaded or processed), and for a rejected file. */ downloadUrl?: string | null; /** When the staged-expiry sweep enqueued deletion of this file's object. NULL until it expires; set once so expiry is enqueued exactly once. */ expiryEnqueuedAt?: string | null; @@ -303,15 +303,21 @@ export interface File { mimeType?: string | null; /** When this file was promoted out of its staging bucket into its destination bucket. NULL for a file that was never staged, or is still staged. */ promotedAt?: string | null; + /** Why the upload was rejected (declared MIME, extension and magic bytes disagreed, size mismatch, ...). NULL unless status is rejected. */ + rejectionReason?: string | null; /** File size in bytes. Immutable after INSERT. */ size?: string | null; - /** File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). */ + /** File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes). A requested row whose bytes never arrive within upload_url_expiry_seconds is deleted by the confirm loop. */ status?: FileStatus | null; /** User-defined tags for categorization and search (mutable) */ tags?: string[] | null; updatedAt?: string | null; /** Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. */ upload?: ConstructiveInternalTypeUpload | null; + /** URL to fetch `upload`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + uploadUrl?: string | null; + /** The versions rendered beside `upload`, narrowest first, each with a URL. Empty when there are none. */ + uploadVersions?: FileVersion[] | null; } /** Logical storage containers that group files with shared access policies and CDN behavior */ export interface PlatformBucket { @@ -360,7 +366,7 @@ export interface PlatformFile { createdAt?: string | null; /** Human-readable description or alt text for the file (mutable) */ description?: string | null; - /** URL to download this file. For public files, returns the public URL. For private files, returns a time-limited presigned URL. */ + /** URL to download this file. For public files, returns the public URL. For private files, returns a time-limited presigned URL. Null until the upload is confirmed (status uploaded or processed), and for a rejected file. */ downloadUrl?: string | null; /** When the staged-expiry sweep enqueued deletion of this file's object. NULL until it expires; set once so expiry is enqueued exactly once. */ expiryEnqueuedAt?: string | null; @@ -376,15 +382,21 @@ export interface PlatformFile { mimeType?: string | null; /** When this file was promoted out of its staging bucket into its destination bucket. NULL for a file that was never staged, or is still staged. */ promotedAt?: string | null; + /** Why the upload was rejected (declared MIME, extension and magic bytes disagreed, size mismatch, ...). NULL unless status is rejected. */ + rejectionReason?: string | null; /** File size in bytes. Immutable after INSERT. */ size?: string | null; - /** File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). */ + /** File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes). A requested row whose bytes never arrive within upload_url_expiry_seconds is deleted by the confirm loop. */ status?: FileStatus | null; /** User-defined tags for categorization and search (mutable) */ tags?: string[] | null; updatedAt?: string | null; /** Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. */ upload?: ConstructiveInternalTypeUpload | null; + /** URL to fetch `upload`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + uploadUrl?: string | null; + /** The versions rendered beside `upload`, narrowest first, each with a URL. Empty when there are none. */ + uploadVersions?: FileVersion[] | null; } // ============ Relation Helper Types ============ export interface ConnectionResult { @@ -473,11 +485,21 @@ export type FileSelect = { key?: boolean; mimeType?: boolean; promotedAt?: boolean; + rejectionReason?: boolean; size?: boolean; status?: boolean; tags?: boolean; updatedAt?: boolean; upload?: boolean; + uploadUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + uploadVersions?: { + select: FileVersionSelect; + }; bucket?: { select: BucketSelect; }; @@ -532,11 +554,21 @@ export type PlatformFileSelect = { key?: boolean; mimeType?: boolean; promotedAt?: boolean; + rejectionReason?: boolean; size?: boolean; status?: boolean; tags?: boolean; updatedAt?: boolean; upload?: boolean; + uploadUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + uploadVersions?: { + select: FileVersionSelect; + }; bucket?: { select: PlatformBucketSelect; }; @@ -633,6 +665,8 @@ export interface FileFilter { or?: FileFilter[]; /** Filter by the object’s `promotedAt` field. */ promotedAt?: DatetimeFilter; + /** Filter by the object’s `rejectionReason` field. */ + rejectionReason?: StringFilter; /** Filter by the object’s `size` field. */ size?: BigIntFilter; /** Filter by the object’s `status` field. */ @@ -731,6 +765,8 @@ export interface PlatformFileFilter { or?: PlatformFileFilter[]; /** Filter by the object’s `promotedAt` field. */ promotedAt?: DatetimeFilter; + /** Filter by the object’s `rejectionReason` field. */ + rejectionReason?: StringFilter; /** Filter by the object’s `size` field. */ size?: BigIntFilter; /** Filter by the object’s `status` field. */ @@ -813,6 +849,8 @@ export type FileOrderBy = | 'PRIMARY_KEY_DESC' | 'PROMOTED_AT_ASC' | 'PROMOTED_AT_DESC' + | 'REJECTION_REASON_ASC' + | 'REJECTION_REASON_DESC' | 'SIZE_ASC' | 'SIZE_DESC' | 'STATUS_ASC' @@ -889,6 +927,8 @@ export type PlatformFileOrderBy = | 'PRIMARY_KEY_DESC' | 'PROMOTED_AT_ASC' | 'PROMOTED_AT_DESC' + | 'REJECTION_REASON_ASC' + | 'REJECTION_REASON_DESC' | 'SIZE_ASC' | 'SIZE_DESC' | 'STATUS_ASC' @@ -946,24 +986,6 @@ export interface DeleteBucketInput { clientMutationId?: string; id: string; } -export interface CreateFileInput { - clientMutationId?: string; - file: { - actorId: string; - bucketId: string; - contentHash?: string; - description?: string; - expiryEnqueuedAt?: string; - filename?: string; - key: string; - mimeType: string; - promotedAt?: string; - size: string; - status?: FileStatus; - tags?: string[]; - upload?: ConstructiveInternalTypeUpload; - }; -} export interface FilePatch { actorId?: string | null; bucketId?: string | null; @@ -976,11 +998,11 @@ export interface FilePatch { key?: string | null; mimeType?: string | null; promotedAt?: string | null; + rejectionReason?: string | null; size?: string | null; status?: FileStatus | null; tags?: string[] | null; upload?: ConstructiveInternalTypeUpload | null; - uploadUpload?: File | null; } export interface UpdateFileInput { clientMutationId?: string; @@ -1035,24 +1057,6 @@ export interface DeletePlatformBucketInput { clientMutationId?: string; id: string; } -export interface CreatePlatformFileInput { - clientMutationId?: string; - platformFile: { - actorId: string; - bucketId: string; - contentHash?: string; - description?: string; - expiryEnqueuedAt?: string; - filename?: string; - key: string; - mimeType: string; - promotedAt?: string; - size: string; - status?: FileStatus; - tags?: string[]; - upload?: ConstructiveInternalTypeUpload; - }; -} export interface PlatformFilePatch { actorId?: string | null; bucketId?: string | null; @@ -1064,11 +1068,11 @@ export interface PlatformFilePatch { key?: string | null; mimeType?: string | null; promotedAt?: string | null; + rejectionReason?: string | null; size?: string | null; status?: FileStatus | null; tags?: string[] | null; upload?: ConstructiveInternalTypeUpload | null; - uploadUpload?: File | null; } export interface UpdatePlatformFileInput { clientMutationId?: string; @@ -1117,6 +1121,8 @@ export interface UploadFileInput { contentHash: string; /** MIME type of the file */ contentType: string; + /** Database the file belongs to. Omit for the database of the current session; a caller who is not a member of the named database is refused. */ + databaseId?: string; /** Original filename (optional) */ filename?: string; /** Which default bucket to resolve when bucketKey is omitted: the public one (true) or the private one (default false). Ignored when bucketKey is given. */ @@ -1129,6 +1135,8 @@ export interface UploadFileInput { export interface UploadFileBulkInput { /** Bucket key (e.g., "public", "private"). Omit to use the database's default bucket for the requested access. */ bucketKey?: string; + /** Database the file belongs to. Omit for the database of the current session; a caller who is not a member of the named database is refused. */ + databaseId?: string; /** Array of files to upload */ files: UploadFileBulkFileInput[]; /** Which default bucket to resolve when bucketKey is omitted. Ignored when bucketKey is given. */ @@ -1359,38 +1367,6 @@ export interface IntervalInput { /** A quantity of years. */ years?: number; } -/** An input for mutations affecting `File` */ -export interface FileInput { - /** User who uploaded this file. Forced to current_user_id() on INSERT. Used for UPDATE/DELETE authorization. */ - actorId: string; - /** Bucket this file belongs to. Determines owner_id and is_public via inheritance trigger. */ - bucketId: string; - /** SHA-256 content hash for integrity verification and dedup. In default mode, equals the S3 key. In custom key mode, stored separately. */ - contentHash?: string; - createdAt?: string; - /** Human-readable description or alt text for the file (mutable) */ - description?: string; - /** When the staged-expiry sweep enqueued deletion of this file's object. NULL until it expires; set once so expiry is enqueued exactly once. */ - expiryEnqueuedAt?: string; - /** Original filename provided by the uploader. Used for display and Content-Disposition header on download. */ - filename?: string; - id?: string; - /** S3 object key for this file, unique within its bucket */ - key: string; - /** MIME type of the file (e.g. image/png, application/pdf). Immutable after INSERT. */ - mimeType: string; - /** When this file was promoted out of its staging bucket into its destination bucket. NULL for a file that was never staged, or is still staged. */ - promotedAt?: string; - /** File size in bytes. Immutable after INSERT. */ - size: string; - /** File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). */ - status?: FileStatus; - /** User-defined tags for categorization and search (mutable) */ - tags?: string[]; - updatedAt?: string; - /** Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. */ - upload?: ConstructiveInternalTypeUpload; -} /** An input for mutations affecting `PlatformBucket` */ export interface PlatformBucketInput { /** User who created this bucket. Forced to current_user_id() on INSERT. */ @@ -1425,38 +1401,6 @@ export interface PlatformBucketInput { type?: BucketType; updatedAt?: string; } -/** An input for mutations affecting `PlatformFile` */ -export interface PlatformFileInput { - /** User who uploaded this file. Forced to current_user_id() on INSERT. Used for UPDATE/DELETE authorization. */ - actorId: string; - /** Bucket this file belongs to. Determines owner_id and is_public via inheritance trigger. */ - bucketId: string; - /** SHA-256 content hash for integrity verification and dedup. In default mode, equals the S3 key. In custom key mode, stored separately. */ - contentHash?: string; - createdAt?: string; - /** Human-readable description or alt text for the file (mutable) */ - description?: string; - /** When the staged-expiry sweep enqueued deletion of this file's object. NULL until it expires; set once so expiry is enqueued exactly once. */ - expiryEnqueuedAt?: string; - /** Original filename provided by the uploader. Used for display and Content-Disposition header on download. */ - filename?: string; - id?: string; - /** S3 object key for this file, unique within its bucket */ - key: string; - /** MIME type of the file (e.g. image/png, application/pdf). Immutable after INSERT. */ - mimeType: string; - /** When this file was promoted out of its staging bucket into its destination bucket. NULL for a file that was never staged, or is still staged. */ - promotedAt?: string; - /** File size in bytes. Immutable after INSERT. */ - size: string; - /** File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). */ - status?: FileStatus; - /** User-defined tags for categorization and search (mutable) */ - tags?: string[]; - updatedAt?: string; - /** Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. */ - upload?: ConstructiveInternalTypeUpload; -} export interface UploadFileBulkFileInput { /** SHA-256 content hash (hex-encoded, 64 chars) */ contentHash: string; @@ -1574,6 +1518,8 @@ export interface FileFilter { or?: FileFilter[]; /** Filter by the object’s `promotedAt` field. */ promotedAt?: DatetimeFilter; + /** Filter by the object’s `rejectionReason` field. */ + rejectionReason?: StringFilter; /** Filter by the object’s `size` field. */ size?: BigIntFilter; /** Filter by the object’s `status` field. */ @@ -1674,6 +1620,8 @@ export interface PlatformFileFilter { or?: PlatformFileFilter[]; /** Filter by the object’s `promotedAt` field. */ promotedAt?: DatetimeFilter; + /** Filter by the object’s `rejectionReason` field. */ + rejectionReason?: StringFilter; /** Filter by the object’s `size` field. */ size?: BigIntFilter; /** Filter by the object’s `status` field. */ @@ -1956,6 +1904,8 @@ export interface UploadFilePayload { fileId: string; /** The S3 object key */ key: string; + /** The exact headers the PUT to uploadUrl must send (Content-Type and every header the URL is signed over, e.g. x-amz-checksum-sha256 and x-amz-meta-upload-id). Forward them as-is. Null if deduplicated. */ + uploadHeaders?: Record | null; /** Presigned PUT URL (null if deduplicated) */ uploadUrl?: string | null; } @@ -1965,6 +1915,7 @@ export type UploadFilePayloadSelect = { file?: boolean; fileId?: boolean; key?: boolean; + uploadHeaders?: boolean; uploadUrl?: boolean; }; export interface UploadFileBulkPayload { @@ -1986,6 +1937,8 @@ export interface UploadPlatformFilePayload { fileId: string; /** The S3 object key */ key: string; + /** The exact headers the PUT to uploadUrl must send (Content-Type and every header the URL is signed over, e.g. x-amz-checksum-sha256 and x-amz-meta-upload-id). Forward them as-is. Null if deduplicated. */ + uploadHeaders?: Record | null; /** Presigned PUT URL (null if deduplicated) */ uploadUrl?: string | null; } @@ -1995,6 +1948,7 @@ export type UploadPlatformFilePayloadSelect = { file?: boolean; fileId?: boolean; key?: boolean; + uploadHeaders?: boolean; uploadUrl?: boolean; }; export interface UploadPlatformFileBulkPayload { @@ -2050,21 +2004,6 @@ export type DeleteBucketPayloadSelect = { }; clientMutationId?: boolean; }; -export interface CreateFilePayload { - clientMutationId?: string | null; - /** The `File` that was created by this mutation. */ - file?: File | null; - fileEdge?: FileEdge | null; -} -export type CreateFilePayloadSelect = { - clientMutationId?: boolean; - file?: { - select: FileSelect; - }; - fileEdge?: { - select: FileEdgeSelect; - }; -}; export interface UpdateFilePayload { clientMutationId?: string | null; /** The `File` that was updated by this mutation. */ @@ -2140,21 +2079,6 @@ export type DeletePlatformBucketPayloadSelect = { select: PlatformBucketEdgeSelect; }; }; -export interface CreatePlatformFilePayload { - clientMutationId?: string | null; - /** The `PlatformFile` that was created by this mutation. */ - platformFile?: PlatformFile | null; - platformFileEdge?: PlatformFileEdge | null; -} -export type CreatePlatformFilePayloadSelect = { - clientMutationId?: boolean; - platformFile?: { - select: PlatformFileSelect; - }; - platformFileEdge?: { - select: PlatformFileEdgeSelect; - }; -}; export interface UpdatePlatformFilePayload { clientMutationId?: string | null; /** The `PlatformFile` that was updated by this mutation. */ @@ -2185,6 +2109,25 @@ export type DeletePlatformFilePayloadSelect = { select: PlatformFileEdgeSelect; }; }; +/** One version rendered beside a file, with a URL to fetch it. */ +export interface FileVersion { + format?: string | null; + height?: number | null; + key: string; + name?: string | null; + size?: number | null; + url: string; + width?: number | null; +} +export type FileVersionSelect = { + format?: boolean; + height?: boolean; + key?: boolean; + name?: boolean; + size?: boolean; + url?: boolean; + width?: boolean; +}; /** A `File` edge in the connection. */ export interface FileEdge { cursor?: string | null; @@ -2216,6 +2159,8 @@ export interface UploadFileBulkFilePayload { file?: Record | null; fileId: string; key: string; + /** The exact headers the PUT to uploadUrl must send. */ + uploadHeaders?: Record | null; uploadUrl?: string | null; } export type UploadFileBulkFilePayloadSelect = { @@ -2224,6 +2169,7 @@ export type UploadFileBulkFilePayloadSelect = { file?: boolean; fileId?: boolean; key?: boolean; + uploadHeaders?: boolean; uploadUrl?: boolean; }; export interface UploadPlatformFileBulkFilePayload { @@ -2233,6 +2179,8 @@ export interface UploadPlatformFileBulkFilePayload { file?: Record | null; fileId: string; key: string; + /** The exact headers the PUT to uploadUrl must send. */ + uploadHeaders?: Record | null; uploadUrl?: string | null; } export type UploadPlatformFileBulkFilePayloadSelect = { @@ -2241,6 +2189,7 @@ export type UploadPlatformFileBulkFilePayloadSelect = { file?: boolean; fileId?: boolean; key?: boolean; + uploadHeaders?: boolean; uploadUrl?: boolean; }; /** A `Bucket` edge in the connection. */ diff --git a/sdk/constructive-cli/src/storage/orm/models/file.ts b/sdk/constructive-cli/src/storage/orm/models/file.ts index a2d0e48ee3..e702b67170 100644 --- a/sdk/constructive-cli/src/storage/orm/models/file.ts +++ b/sdk/constructive-cli/src/storage/orm/models/file.ts @@ -29,7 +29,6 @@ import type { FileSelect, FileFilter, FileOrderBy, - CreateFileInput, UpdateFileInput, FilePatch, } from '../input-types'; @@ -144,33 +143,6 @@ export class FileModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createFile: { - file: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'File', - 'createFile', - 'file', - args.select, - args.data, - 'CreateFileInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'File', - fieldName: 'createFile', - document, - variables, - }); - } update( args: UpdateArgs< S, diff --git a/sdk/constructive-cli/src/storage/orm/models/platformFile.ts b/sdk/constructive-cli/src/storage/orm/models/platformFile.ts index bfc7890e99..921d7f3f92 100644 --- a/sdk/constructive-cli/src/storage/orm/models/platformFile.ts +++ b/sdk/constructive-cli/src/storage/orm/models/platformFile.ts @@ -29,7 +29,6 @@ import type { PlatformFileSelect, PlatformFileFilter, PlatformFileOrderBy, - CreatePlatformFileInput, UpdatePlatformFileInput, PlatformFilePatch, } from '../input-types'; @@ -144,33 +143,6 @@ export class PlatformFileModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformFile: { - platformFile: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformFile', - 'createPlatformFile', - 'platformFile', - args.select, - args.data, - 'CreatePlatformFileInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformFile', - fieldName: 'createPlatformFile', - document, - variables, - }); - } update( args: UpdateArgs< S, diff --git a/sdk/constructive-cli/src/storage/orm/query-builder.ts b/sdk/constructive-cli/src/storage/orm/query-builder.ts index fd785bbae6..d6c981907f 100644 --- a/sdk/constructive-cli/src/storage/orm/query-builder.ts +++ b/sdk/constructive-cli/src/storage/orm/query-builder.ts @@ -140,9 +140,7 @@ export function buildSelections( ); const nestedSelect = nested.select; if (nestedSelect && typeof nestedSelect === 'object') { - const subSelections = Object.entries(nestedSelect) - .filter(([, v]) => v) - .map(([name]) => t.field({ name })); + const subSelections = buildSelections(nestedSelect, connectionFieldsMap); fields.push( t.field({ name: key, diff --git a/sdk/constructive-cli/src/storage/orm/select-types.ts b/sdk/constructive-cli/src/storage/orm/select-types.ts index 4b39d7e820..783c4603df 100644 --- a/sdk/constructive-cli/src/storage/orm/select-types.ts +++ b/sdk/constructive-cli/src/storage/orm/select-types.ts @@ -159,9 +159,13 @@ export type InferSelectResult = TSelect extends undefined ? K extends keyof TEntity ? NonNullable extends ConnectionResult ? ConnectionResult> - : - | InferSelectResult, NestedSelect> - | (null extends TEntity[K] ? null : never) + : NonNullable extends readonly (infer Item)[] + ? + | InferSelectResult, NestedSelect>[] + | (null extends TEntity[K] ? null : never) + : + | InferSelectResult, NestedSelect> + | (null extends TEntity[K] ? null : never) : never : K extends keyof TEntity ? TEntity[K] diff --git a/sdk/constructive-cli/src/usage/orm/query-builder.ts b/sdk/constructive-cli/src/usage/orm/query-builder.ts index fd785bbae6..d6c981907f 100644 --- a/sdk/constructive-cli/src/usage/orm/query-builder.ts +++ b/sdk/constructive-cli/src/usage/orm/query-builder.ts @@ -140,9 +140,7 @@ export function buildSelections( ); const nestedSelect = nested.select; if (nestedSelect && typeof nestedSelect === 'object') { - const subSelections = Object.entries(nestedSelect) - .filter(([, v]) => v) - .map(([name]) => t.field({ name })); + const subSelections = buildSelections(nestedSelect, connectionFieldsMap); fields.push( t.field({ name: key, diff --git a/sdk/constructive-cli/src/usage/orm/select-types.ts b/sdk/constructive-cli/src/usage/orm/select-types.ts index 4b39d7e820..783c4603df 100644 --- a/sdk/constructive-cli/src/usage/orm/select-types.ts +++ b/sdk/constructive-cli/src/usage/orm/select-types.ts @@ -159,9 +159,13 @@ export type InferSelectResult = TSelect extends undefined ? K extends keyof TEntity ? NonNullable extends ConnectionResult ? ConnectionResult> - : - | InferSelectResult, NestedSelect> - | (null extends TEntity[K] ? null : never) + : NonNullable extends readonly (infer Item)[] + ? + | InferSelectResult, NestedSelect>[] + | (null extends TEntity[K] ? null : never) + : + | InferSelectResult, NestedSelect> + | (null extends TEntity[K] ? null : never) : never : K extends keyof TEntity ? TEntity[K] diff --git a/sdk/constructive-react/src/admin/hooks/README.md b/sdk/constructive-react/src/admin/hooks/README.md index 9ec9e73be9..d1c6a35853 100644 --- a/sdk/constructive-react/src/admin/hooks/README.md +++ b/sdk/constructive-react/src/admin/hooks/README.md @@ -84,12 +84,10 @@ function App() { | `useDeleteMembershipTypeMutation` | Mutation | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | | `useMyPendingAppInvitesQuery` | Query | List all myPendingAppInvites | | `useMyPendingAppInvitesRecordQuery` | Query | Get one myPendingAppInvitesRecord | -| `useCreateMyPendingAppInvitesRecordMutation` | Mutation | Create a myPendingAppInvitesRecord | | `useUpdateMyPendingAppInvitesRecordMutation` | Mutation | Update a myPendingAppInvitesRecord | | `useDeleteMyPendingAppInvitesRecordMutation` | Mutation | Delete a myPendingAppInvitesRecord | | `useMyPendingOrgInvitesQuery` | Query | List all myPendingOrgInvites | | `useMyPendingOrgInvitesRecordQuery` | Query | Get one myPendingOrgInvitesRecord | -| `useCreateMyPendingOrgInvitesRecordMutation` | Mutation | Create a myPendingOrgInvitesRecord | | `useUpdateMyPendingOrgInvitesRecordMutation` | Mutation | Update a myPendingOrgInvitesRecord | | `useDeleteMyPendingOrgInvitesRecordMutation` | Mutation | Delete a myPendingOrgInvitesRecord | | `useOrgAdminGrantsQuery` | Query | Records of admin role grants and revocations between members | @@ -123,9 +121,7 @@ function App() { | `useUpdateOrgClaimedInviteMutation` | Mutation | Records of successfully claimed invitations, linking senders to receivers | | `useDeleteOrgClaimedInviteMutation` | Mutation | Records of successfully claimed invitations, linking senders to receivers | | `useOrgGetManagersQuery` | Query | List all orgGetManagers | -| `useCreateOrgGetManagersRecordMutation` | Mutation | Create a orgGetManagersRecord | | `useOrgGetSubordinatesQuery` | Query | List all orgGetSubordinates | -| `useCreateOrgGetSubordinatesRecordMutation` | Mutation | Create a orgGetSubordinatesRecord | | `useOrgGrantsQuery` | Query | Records of individual capability grants and revocations for members via bitmask | | `useOrgGrantQuery` | Query | Records of individual capability grants and revocations for members via bitmask | | `useCreateOrgGrantMutation` | Mutation | Records of individual capability grants and revocations for members via bitmask | @@ -409,11 +405,6 @@ const { data: item } = useMyPendingAppInvitesRecordQuery({ selection: { fields: { channel: true, createdAt: true, expiresAt: true, id: true, senderId: true } }, }); -// Create a myPendingAppInvitesRecord -const { mutate: create } = useCreateMyPendingAppInvitesRecordMutation({ - selection: { fields: { id: true } }, -}); -create({ channel: '', expiresAt: '', senderId: '' }); ``` ### MyPendingOrgInvitesRecord @@ -430,11 +421,6 @@ const { data: item } = useMyPendingOrgInvitesRecordQuery({ selection: { fields: { channel: true, createdAt: true, entityId: true, expiresAt: true, id: true, senderId: true } }, }); -// Create a myPendingOrgInvitesRecord -const { mutate: create } = useCreateMyPendingOrgInvitesRecordMutation({ - selection: { fields: { id: true } }, -}); -create({ channel: '', entityId: '', expiresAt: '', senderId: '' }); ``` ### OrgAdminGrant @@ -571,11 +557,6 @@ const { data, isLoading } = useOrgGetManagersQuery({ selection: { fields: { depth: true, userId: true } }, }); -// Create a orgGetManagersRecord -const { mutate: create } = useCreateOrgGetManagersRecordMutation({ - selection: { fields: { id: true } }, -}); -create({ depth: '', userId: '' }); ``` ### OrgGetSubordinatesRecord @@ -586,11 +567,6 @@ const { data, isLoading } = useOrgGetSubordinatesQuery({ selection: { fields: { depth: true, userId: true } }, }); -// Create a orgGetSubordinatesRecord -const { mutate: create } = useCreateOrgGetSubordinatesRecordMutation({ - selection: { fields: { id: true } }, -}); -create({ depth: '', userId: '' }); ``` ### OrgGrant diff --git a/sdk/constructive-react/src/admin/hooks/mutations/index.ts b/sdk/constructive-react/src/admin/hooks/mutations/index.ts index 9da3dda5d2..19c059086f 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/index.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/index.ts @@ -33,8 +33,6 @@ export * from './useDeleteAppOwnerGrantMutation'; export * from './useCreateMembershipTypeMutation'; export * from './useUpdateMembershipTypeMutation'; export * from './useDeleteMembershipTypeMutation'; -export * from './useCreateMyPendingAppInvitesRecordMutation'; -export * from './useCreateMyPendingOrgInvitesRecordMutation'; export * from './useCreateOrgAdminGrantMutation'; export * from './useUpdateOrgAdminGrantMutation'; export * from './useDeleteOrgAdminGrantMutation'; @@ -53,8 +51,6 @@ export * from './useDeleteOrgChartEdgeGrantMutation'; export * from './useCreateOrgClaimedInviteMutation'; export * from './useUpdateOrgClaimedInviteMutation'; export * from './useDeleteOrgClaimedInviteMutation'; -export * from './useCreateOrgGetManagersRecordMutation'; -export * from './useCreateOrgGetSubordinatesRecordMutation'; export * from './useCreateOrgGrantMutation'; export * from './useUpdateOrgGrantMutation'; export * from './useDeleteOrgGrantMutation'; diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateMyPendingAppInvitesRecordMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateMyPendingAppInvitesRecordMutation.ts deleted file mode 100644 index c0720ca0e6..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateMyPendingAppInvitesRecordMutation.ts +++ /dev/null @@ -1,97 +0,0 @@ -/** - * Create mutation hook for MyPendingAppInvitesRecord - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { myPendingAppInvitesRecordKeys } from '../query-keys'; -import { myPendingAppInvitesRecordMutationKeys } from '../mutation-keys'; -import type { - MyPendingAppInvitesRecordSelect, - MyPendingAppInvitesRecordWithRelations, - CreateMyPendingAppInvitesRecordInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - MyPendingAppInvitesRecordSelect, - MyPendingAppInvitesRecordWithRelations, - CreateMyPendingAppInvitesRecordInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a MyPendingAppInvitesRecord - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateMyPendingAppInvitesRecordMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateMyPendingAppInvitesRecordMutation< - S extends MyPendingAppInvitesRecordSelect, ->( - params: { - selection: { - fields: S & MyPendingAppInvitesRecordSelect; - } & HookStrictSelect, MyPendingAppInvitesRecordSelect>; - } & Omit< - UseMutationOptions< - { - createMyPendingAppInvitesRecord: { - myPendingAppInvitesRecord: InferSelectResult; - }; - }, - Error, - CreateMyPendingAppInvitesRecordInput['myPendingAppInvitesRecord'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createMyPendingAppInvitesRecord: { - myPendingAppInvitesRecord: InferSelectResult; - }; - }, - Error, - CreateMyPendingAppInvitesRecordInput['myPendingAppInvitesRecord'] ->; -export function useCreateMyPendingAppInvitesRecordMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - CreateMyPendingAppInvitesRecordInput['myPendingAppInvitesRecord'] - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: myPendingAppInvitesRecordMutationKeys.create(), - mutationFn: (data: CreateMyPendingAppInvitesRecordInput['myPendingAppInvitesRecord']) => - getClient() - .myPendingAppInvitesRecord.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: myPendingAppInvitesRecordKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateMyPendingOrgInvitesRecordMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateMyPendingOrgInvitesRecordMutation.ts deleted file mode 100644 index df5f551ac6..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateMyPendingOrgInvitesRecordMutation.ts +++ /dev/null @@ -1,97 +0,0 @@ -/** - * Create mutation hook for MyPendingOrgInvitesRecord - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { myPendingOrgInvitesRecordKeys } from '../query-keys'; -import { myPendingOrgInvitesRecordMutationKeys } from '../mutation-keys'; -import type { - MyPendingOrgInvitesRecordSelect, - MyPendingOrgInvitesRecordWithRelations, - CreateMyPendingOrgInvitesRecordInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - MyPendingOrgInvitesRecordSelect, - MyPendingOrgInvitesRecordWithRelations, - CreateMyPendingOrgInvitesRecordInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a MyPendingOrgInvitesRecord - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateMyPendingOrgInvitesRecordMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateMyPendingOrgInvitesRecordMutation< - S extends MyPendingOrgInvitesRecordSelect, ->( - params: { - selection: { - fields: S & MyPendingOrgInvitesRecordSelect; - } & HookStrictSelect, MyPendingOrgInvitesRecordSelect>; - } & Omit< - UseMutationOptions< - { - createMyPendingOrgInvitesRecord: { - myPendingOrgInvitesRecord: InferSelectResult; - }; - }, - Error, - CreateMyPendingOrgInvitesRecordInput['myPendingOrgInvitesRecord'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createMyPendingOrgInvitesRecord: { - myPendingOrgInvitesRecord: InferSelectResult; - }; - }, - Error, - CreateMyPendingOrgInvitesRecordInput['myPendingOrgInvitesRecord'] ->; -export function useCreateMyPendingOrgInvitesRecordMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - CreateMyPendingOrgInvitesRecordInput['myPendingOrgInvitesRecord'] - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: myPendingOrgInvitesRecordMutationKeys.create(), - mutationFn: (data: CreateMyPendingOrgInvitesRecordInput['myPendingOrgInvitesRecord']) => - getClient() - .myPendingOrgInvitesRecord.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: myPendingOrgInvitesRecordKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgGetManagersRecordMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgGetManagersRecordMutation.ts deleted file mode 100644 index 949ce41041..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgGetManagersRecordMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Create mutation hook for OrgGetManagersRecord - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgGetManagersRecordKeys } from '../query-keys'; -import { orgGetManagersRecordMutationKeys } from '../mutation-keys'; -import type { - OrgGetManagersRecordSelect, - OrgGetManagersRecordWithRelations, - CreateOrgGetManagersRecordInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgGetManagersRecordSelect, - OrgGetManagersRecordWithRelations, - CreateOrgGetManagersRecordInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a OrgGetManagersRecord - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateOrgGetManagersRecordMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateOrgGetManagersRecordMutation( - params: { - selection: { - fields: S & OrgGetManagersRecordSelect; - } & HookStrictSelect, OrgGetManagersRecordSelect>; - } & Omit< - UseMutationOptions< - { - createOrgGetManagersRecord: { - orgGetManagersRecord: InferSelectResult; - }; - }, - Error, - CreateOrgGetManagersRecordInput['orgGetManagersRecord'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createOrgGetManagersRecord: { - orgGetManagersRecord: InferSelectResult; - }; - }, - Error, - CreateOrgGetManagersRecordInput['orgGetManagersRecord'] ->; -export function useCreateOrgGetManagersRecordMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgGetManagersRecordMutationKeys.create(), - mutationFn: (data: CreateOrgGetManagersRecordInput['orgGetManagersRecord']) => - getClient() - .orgGetManagersRecord.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: orgGetManagersRecordKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgGetSubordinatesRecordMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgGetSubordinatesRecordMutation.ts deleted file mode 100644 index 237f47a7e3..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgGetSubordinatesRecordMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Create mutation hook for OrgGetSubordinatesRecord - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgGetSubordinatesRecordKeys } from '../query-keys'; -import { orgGetSubordinatesRecordMutationKeys } from '../mutation-keys'; -import type { - OrgGetSubordinatesRecordSelect, - OrgGetSubordinatesRecordWithRelations, - CreateOrgGetSubordinatesRecordInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgGetSubordinatesRecordSelect, - OrgGetSubordinatesRecordWithRelations, - CreateOrgGetSubordinatesRecordInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a OrgGetSubordinatesRecord - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateOrgGetSubordinatesRecordMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateOrgGetSubordinatesRecordMutation( - params: { - selection: { - fields: S & OrgGetSubordinatesRecordSelect; - } & HookStrictSelect, OrgGetSubordinatesRecordSelect>; - } & Omit< - UseMutationOptions< - { - createOrgGetSubordinatesRecord: { - orgGetSubordinatesRecord: InferSelectResult; - }; - }, - Error, - CreateOrgGetSubordinatesRecordInput['orgGetSubordinatesRecord'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createOrgGetSubordinatesRecord: { - orgGetSubordinatesRecord: InferSelectResult; - }; - }, - Error, - CreateOrgGetSubordinatesRecordInput['orgGetSubordinatesRecord'] ->; -export function useCreateOrgGetSubordinatesRecordMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgGetSubordinatesRecordMutationKeys.create(), - mutationFn: (data: CreateOrgGetSubordinatesRecordInput['orgGetSubordinatesRecord']) => - getClient() - .orgGetSubordinatesRecord.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: orgGetSubordinatesRecordKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/orm/README.md b/sdk/constructive-react/src/admin/orm/README.md index 0a5e8c1664..37cf602ec8 100644 --- a/sdk/constructive-react/src/admin/orm/README.md +++ b/sdk/constructive-react/src/admin/orm/README.md @@ -31,16 +31,16 @@ const db = createClient({ | `appMembershipDefault` | findMany, findOne, create, update, delete | | `appOwnerGrant` | findMany, findOne, create, update, delete | | `membershipType` | findMany, findOne, create, update, delete | -| `myPendingAppInvitesRecord` | findMany, findOne, create, update, delete | -| `myPendingOrgInvitesRecord` | findMany, findOne, create, update, delete | +| `myPendingAppInvitesRecord` | findMany, findOne, update, delete | +| `myPendingOrgInvitesRecord` | findMany, findOne, update, delete | | `orgAdminGrant` | findMany, findOne, create, update, delete | | `orgCapabilityDefaultCapability` | findMany, findOne, create, update, delete | | `orgCapabilityDefaultGrant` | findMany, findOne, create, update, delete | | `orgChartEdge` | findMany, findOne, create, update, delete | | `orgChartEdgeGrant` | findMany, findOne, create, update, delete | | `orgClaimedInvite` | findMany, findOne, create, update, delete | -| `orgGetManagersRecord` | findMany, findOne, create, update, delete | -| `orgGetSubordinatesRecord` | findMany, findOne, create, update, delete | +| `orgGetManagersRecord` | findMany, findOne, update, delete | +| `orgGetSubordinatesRecord` | findMany, findOne, update, delete | | `orgGrant` | findMany, findOne, create, update, delete | | `orgInvite` | findMany, findOne, create, update, delete | | `orgMember` | findMany, findOne, create, update, delete | @@ -438,9 +438,6 @@ const items = await db.myPendingAppInvitesRecord.findMany({ select: { channel: t // Get one by id const item = await db.myPendingAppInvitesRecord.findOne({ id: '', select: { channel: true, createdAt: true, expiresAt: true, id: true, senderId: true } }).execute(); -// Create -const created = await db.myPendingAppInvitesRecord.create({ data: { channel: '', expiresAt: '', senderId: '' }, select: { id: true } }).execute(); - // Update const updated = await db.myPendingAppInvitesRecord.update({ where: { id: '' }, data: { channel: '' }, select: { id: true } }).execute(); @@ -472,9 +469,6 @@ const items = await db.myPendingOrgInvitesRecord.findMany({ select: { channel: t // Get one by id const item = await db.myPendingOrgInvitesRecord.findOne({ id: '', select: { channel: true, createdAt: true, entityId: true, expiresAt: true, id: true, senderId: true } }).execute(); -// Create -const created = await db.myPendingOrgInvitesRecord.create({ data: { channel: '', entityId: '', expiresAt: '', senderId: '' }, select: { id: true } }).execute(); - // Update const updated = await db.myPendingOrgInvitesRecord.update({ where: { id: '' }, data: { channel: '' }, select: { id: true } }).execute(); @@ -713,9 +707,6 @@ const items = await db.orgGetManagersRecord.findMany({ select: { depth: true, us // Get one by id const item = await db.orgGetManagersRecord.findOne({ id: '', select: { depth: true, userId: true } }).execute(); -// Create -const created = await db.orgGetManagersRecord.create({ data: { depth: '', userId: '' }, select: { id: true } }).execute(); - // Update const updated = await db.orgGetManagersRecord.update({ where: { id: '' }, data: { depth: '' }, select: { id: true } }).execute(); @@ -743,9 +734,6 @@ const items = await db.orgGetSubordinatesRecord.findMany({ select: { depth: true // Get one by id const item = await db.orgGetSubordinatesRecord.findOne({ id: '', select: { depth: true, userId: true } }).execute(); -// Create -const created = await db.orgGetSubordinatesRecord.create({ data: { depth: '', userId: '' }, select: { id: true } }).execute(); - // Update const updated = await db.orgGetSubordinatesRecord.update({ where: { id: '' }, data: { depth: '' }, select: { id: true } }).execute(); @@ -884,6 +872,8 @@ CRUD operations for OrgMemberProfile records. | `id` | UUID | No | | `membershipId` | UUID | Yes | | `profilePicture` | ConstructiveInternalTypeImage | Yes | +| `profilePictureUrl` | String | No | +| `profilePictureVersions` | FileVersion | No | | `title` | String | Yes | | `updatedAt` | Datetime | No | diff --git a/sdk/constructive-react/src/admin/orm/input-types.ts b/sdk/constructive-react/src/admin/orm/input-types.ts index 9bc1f6a8e9..03690156c2 100644 --- a/sdk/constructive-react/src/admin/orm/input-types.ts +++ b/sdk/constructive-react/src/admin/orm/input-types.ts @@ -576,6 +576,10 @@ export interface OrgMemberProfile { membershipId?: string | null; /** Profile picture visible to other entity members */ profilePicture?: ConstructiveInternalTypeImage | null; + /** URL to fetch `profilePicture`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + profilePictureUrl?: string | null; + /** The versions rendered beside `profilePicture`, narrowest first, each with a URL. Empty when there are none. */ + profilePictureVersions?: FileVersion[] | null; /** Job title or role description visible to other entity members */ title?: string | null; updatedAt?: string | null; @@ -987,6 +991,15 @@ export type OrgMemberProfileSelect = { id?: boolean; membershipId?: boolean; profilePicture?: boolean; + profilePictureUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + profilePictureVersions?: { + select: FileVersionSelect; + }; title?: boolean; updatedAt?: boolean; membership?: { @@ -2582,14 +2595,6 @@ export interface DeleteMembershipTypeInput { clientMutationId?: string; id: number; } -export interface CreateMyPendingAppInvitesRecordInput { - clientMutationId?: string; - myPendingAppInvitesRecord: { - channel?: string; - expiresAt?: string; - senderId: string; - }; -} export interface MyPendingAppInvitesRecordPatch { channel?: string | null; expiresAt?: string | null; @@ -2604,15 +2609,6 @@ export interface DeleteMyPendingAppInvitesRecordInput { clientMutationId?: string; id: string; } -export interface CreateMyPendingOrgInvitesRecordInput { - clientMutationId?: string; - myPendingOrgInvitesRecord: { - channel?: string; - entityId: string; - expiresAt?: string; - senderId: string; - }; -} export interface MyPendingOrgInvitesRecordPatch { channel?: string | null; entityId?: string | null; @@ -2776,13 +2772,6 @@ export interface DeleteOrgClaimedInviteInput { clientMutationId?: string; id: string; } -export interface CreateOrgGetManagersRecordInput { - clientMutationId?: string; - orgGetManagersRecord: { - depth?: number; - userId: string; - }; -} export interface OrgGetManagersRecordPatch { depth?: number | null; userId?: string | null; @@ -2796,13 +2785,6 @@ export interface DeleteOrgGetManagersRecordInput { clientMutationId?: string; id: string; } -export interface CreateOrgGetSubordinatesRecordInput { - clientMutationId?: string; - orgGetSubordinatesRecord: { - depth?: number; - userId: string; - }; -} export interface OrgGetSubordinatesRecordPatch { depth?: number | null; userId?: string | null; @@ -2931,7 +2913,6 @@ export interface OrgMemberProfilePatch { entityId?: string | null; membershipId?: string | null; profilePicture?: ConstructiveInternalTypeImage | null; - profilePictureUpload?: File | null; title?: string | null; } export interface UpdateOrgMemberProfileInput { @@ -4883,6 +4864,25 @@ export type DeleteOrgOwnerGrantPayloadSelect = { select: OrgOwnerGrantEdgeSelect; }; }; +/** One version rendered beside a file, with a URL to fetch it. */ +export interface FileVersion { + format?: string | null; + height?: number | null; + key: string; + name?: string | null; + size?: number | null; + url: string; + width?: number | null; +} +export type FileVersionSelect = { + format?: boolean; + height?: boolean; + key?: boolean; + name?: boolean; + size?: boolean; + url?: boolean; + width?: boolean; +}; export interface ProvisionAppUserRecord { created?: boolean | null; inviteId?: string | null; diff --git a/sdk/constructive-react/src/admin/orm/models/myPendingAppInvitesRecord.ts b/sdk/constructive-react/src/admin/orm/models/myPendingAppInvitesRecord.ts index 498d67ae85..dc0fa5a44f 100644 --- a/sdk/constructive-react/src/admin/orm/models/myPendingAppInvitesRecord.ts +++ b/sdk/constructive-react/src/admin/orm/models/myPendingAppInvitesRecord.ts @@ -29,7 +29,6 @@ import type { MyPendingAppInvitesRecordSelect, MyPendingAppInvitesRecordFilter, MyPendingAppInvitesRecordsOrderBy, - CreateMyPendingAppInvitesRecordInput, UpdateMyPendingAppInvitesRecordInput, MyPendingAppInvitesRecordPatch, } from '../input-types'; @@ -146,31 +145,4 @@ export class MyPendingAppInvitesRecordModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createMyPendingAppInvitesRecord: { - myPendingAppInvitesRecord: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'MyPendingAppInvitesRecord', - 'createMyPendingAppInvitesRecord', - 'myPendingAppInvitesRecord', - args.select, - args.data, - 'CreateMyPendingAppInvitesRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'MyPendingAppInvitesRecord', - fieldName: 'createMyPendingAppInvitesRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/admin/orm/models/myPendingOrgInvitesRecord.ts b/sdk/constructive-react/src/admin/orm/models/myPendingOrgInvitesRecord.ts index b5913b8869..274dc17d9e 100644 --- a/sdk/constructive-react/src/admin/orm/models/myPendingOrgInvitesRecord.ts +++ b/sdk/constructive-react/src/admin/orm/models/myPendingOrgInvitesRecord.ts @@ -29,7 +29,6 @@ import type { MyPendingOrgInvitesRecordSelect, MyPendingOrgInvitesRecordFilter, MyPendingOrgInvitesRecordsOrderBy, - CreateMyPendingOrgInvitesRecordInput, UpdateMyPendingOrgInvitesRecordInput, MyPendingOrgInvitesRecordPatch, } from '../input-types'; @@ -146,31 +145,4 @@ export class MyPendingOrgInvitesRecordModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createMyPendingOrgInvitesRecord: { - myPendingOrgInvitesRecord: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'MyPendingOrgInvitesRecord', - 'createMyPendingOrgInvitesRecord', - 'myPendingOrgInvitesRecord', - args.select, - args.data, - 'CreateMyPendingOrgInvitesRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'MyPendingOrgInvitesRecord', - fieldName: 'createMyPendingOrgInvitesRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/admin/orm/models/orgGetManagersRecord.ts b/sdk/constructive-react/src/admin/orm/models/orgGetManagersRecord.ts index 7c333b76d3..21f4008311 100644 --- a/sdk/constructive-react/src/admin/orm/models/orgGetManagersRecord.ts +++ b/sdk/constructive-react/src/admin/orm/models/orgGetManagersRecord.ts @@ -29,7 +29,6 @@ import type { OrgGetManagersRecordSelect, OrgGetManagersRecordFilter, OrgGetManagersRecordsOrderBy, - CreateOrgGetManagersRecordInput, UpdateOrgGetManagersRecordInput, OrgGetManagersRecordPatch, } from '../input-types'; @@ -104,31 +103,4 @@ export class OrgGetManagersRecordModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgGetManagersRecord: { - orgGetManagersRecord: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgGetManagersRecord', - 'createOrgGetManagersRecord', - 'orgGetManagersRecord', - args.select, - args.data, - 'CreateOrgGetManagersRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgGetManagersRecord', - fieldName: 'createOrgGetManagersRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/admin/orm/models/orgGetSubordinatesRecord.ts b/sdk/constructive-react/src/admin/orm/models/orgGetSubordinatesRecord.ts index f259e10434..a5b89052df 100644 --- a/sdk/constructive-react/src/admin/orm/models/orgGetSubordinatesRecord.ts +++ b/sdk/constructive-react/src/admin/orm/models/orgGetSubordinatesRecord.ts @@ -29,7 +29,6 @@ import type { OrgGetSubordinatesRecordSelect, OrgGetSubordinatesRecordFilter, OrgGetSubordinatesRecordsOrderBy, - CreateOrgGetSubordinatesRecordInput, UpdateOrgGetSubordinatesRecordInput, OrgGetSubordinatesRecordPatch, } from '../input-types'; @@ -106,31 +105,4 @@ export class OrgGetSubordinatesRecordModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgGetSubordinatesRecord: { - orgGetSubordinatesRecord: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgGetSubordinatesRecord', - 'createOrgGetSubordinatesRecord', - 'orgGetSubordinatesRecord', - args.select, - args.data, - 'CreateOrgGetSubordinatesRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgGetSubordinatesRecord', - fieldName: 'createOrgGetSubordinatesRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/admin/orm/query-builder.ts b/sdk/constructive-react/src/admin/orm/query-builder.ts index fd785bbae6..d6c981907f 100644 --- a/sdk/constructive-react/src/admin/orm/query-builder.ts +++ b/sdk/constructive-react/src/admin/orm/query-builder.ts @@ -140,9 +140,7 @@ export function buildSelections( ); const nestedSelect = nested.select; if (nestedSelect && typeof nestedSelect === 'object') { - const subSelections = Object.entries(nestedSelect) - .filter(([, v]) => v) - .map(([name]) => t.field({ name })); + const subSelections = buildSelections(nestedSelect, connectionFieldsMap); fields.push( t.field({ name: key, diff --git a/sdk/constructive-react/src/admin/orm/select-types.ts b/sdk/constructive-react/src/admin/orm/select-types.ts index 4b39d7e820..783c4603df 100644 --- a/sdk/constructive-react/src/admin/orm/select-types.ts +++ b/sdk/constructive-react/src/admin/orm/select-types.ts @@ -159,9 +159,13 @@ export type InferSelectResult = TSelect extends undefined ? K extends keyof TEntity ? NonNullable extends ConnectionResult ? ConnectionResult> - : - | InferSelectResult, NestedSelect> - | (null extends TEntity[K] ? null : never) + : NonNullable extends readonly (infer Item)[] + ? + | InferSelectResult, NestedSelect>[] + | (null extends TEntity[K] ? null : never) + : + | InferSelectResult, NestedSelect> + | (null extends TEntity[K] ? null : never) : never : K extends keyof TEntity ? TEntity[K] diff --git a/sdk/constructive-react/src/admin/schema-types.ts b/sdk/constructive-react/src/admin/schema-types.ts index eb45142cdc..b422caee79 100644 --- a/sdk/constructive-react/src/admin/schema-types.ts +++ b/sdk/constructive-react/src/admin/schema-types.ts @@ -2146,8 +2146,6 @@ export interface OrgMemberProfilePatch { membershipId?: string; /** Profile picture visible to other entity members */ profilePicture?: ConstructiveInternalTypeImage; - /** Upload for Profile picture visible to other entity members */ - profilePictureUpload?: File; /** Job title or role description visible to other entity members */ title?: string; updatedAt?: string; @@ -3349,21 +3347,27 @@ export interface UpdateOrgOwnerGrantPayload { /** Information about a database table */ export interface MetaTable { constraints: MetaConstraints; + /** Description written for this table, or null */ + description?: string | null; fields: MetaField[]; foreignKeyConstraints: MetaForeignKeyConstraint[]; - /** i18n metadata (null if no @i18n tag) */ + /** i18n metadata (null if the table is not translatable) */ i18n?: MetaI18n | null; indexes: MetaIndex[]; inflection: MetaInflection; + /** Whether this table only links rows of two other tables; the link appears in their manyToMany relations */ + isJunction: boolean; + /** 'table' when rows are stored in this table, 'view' when they come from a view of other tables */ + kind: string; /** Final GraphQL output type name */ name: string; primaryKeyConstraints: MetaPrimaryKeyConstraint[]; query: MetaQuery; - /** Realtime metadata (null if no @realtime tag) */ + /** Realtime metadata (null if the table has no change subscriptions) */ realtime?: MetaRealtime | null; relations: MetaRelations; schemaName: string; - /** Provisioning scope metadata (null if no @scope tag) */ + /** Provisioning scope metadata (null if the table has no scope) */ scope?: MetaScope | null; /** Search metadata (null if no search configured) */ search?: MetaSearch | null; @@ -3588,15 +3592,27 @@ export interface MetaConstraints { } /** Information about a table field/column */ export interface MetaField { + /** Values this field accepts, when the set is fixed; null otherwise. Set on a table's own fields only. */ + allowedValues?: string[] | null; /** PostgreSQL column name */ columnName: string; description?: string | null; /** Enum metadata if this field has an enum type */ enumValues?: MetaEnum | null; + /** Set when the field holds files; null otherwise. Set on a table's own fields only. */ + file?: MetaFileField | null; hasDefault: boolean; + /** Whether the value is always computed and cannot be written, even when a create or update input offers the field. Set on a table's own fields only. */ + isComputed?: boolean | null; isForeignKey: boolean; isNotNull: boolean; isPrimaryKey: boolean; + /** Whether a create must provide this field. Set on a table's own fields only. */ + isRequiredOnCreate?: boolean | null; + /** Whether a create may set this field. Set on a table's own fields only. */ + isWritableOnCreate?: boolean | null; + /** Whether an update may change this field. Set on a table's own fields only. */ + isWritableOnUpdate?: boolean | null; /** Final GraphQL field name */ name: string; type: MetaType; @@ -3610,7 +3626,7 @@ export interface MetaForeignKeyConstraint { referencedFields: string[]; referencedTable: string; } -/** i18n metadata for a table with @i18n tag */ +/** i18n metadata for a translatable table */ export interface MetaI18n { /** Fields that are translatable */ translatableFields: MetaI18nField[]; @@ -3625,7 +3641,7 @@ export interface MetaIndex { isUnique: boolean; name: string; } -/** Table inflection names */ +/** Type and field names generated for this table */ export interface MetaInflection { allRows: string; conditionType: string; @@ -3653,7 +3669,7 @@ export interface MetaQuery { one?: string | null; update?: string | null; } -/** Realtime metadata for a table with @realtime tag */ +/** Realtime metadata for a table with change subscriptions */ export interface MetaRealtime { /** The generated subscription field name (e.g. onPostChanged) */ subscriptionFieldName: string; @@ -3668,13 +3684,13 @@ export interface MetaRelations { } /** Provisioning scope metadata for a table */ export interface MetaScope { - /** SQL name of the entity table for entity scopes, else null */ + /** Name of the entity table for entity scopes, else null */ entityTable?: string | null; - /** Inflected scope key column (e.g. databaseId, orgId), null for global tiers */ + /** Field name of the scope key (e.g. databaseId, orgId), null for global tiers */ keyColumn?: string | null; /** Provisioning scope: 'platform', 'app', 'database', or an entity scope (e.g. 'org') */ scope: string; - /** Provenance of the scope metadata (always 'smartTag') */ + /** Where this scope metadata comes from */ source: string; /** Coarse bucket: 'global', 'database', or 'entity' */ tier: string; @@ -3692,17 +3708,17 @@ export interface MetaSearch { } /** Storage metadata for a table */ export interface MetaStorage { - /** GraphQL type name of the plane's buckets table */ + /** GraphQL type name of the paired buckets table */ bucketsType: string; /** Computed download-URL field on the files type; null on the buckets side */ downloadUrlField?: string | null; - /** GraphQL type name of the plane's files table */ + /** GraphQL type name of the paired files table */ filesType: string; /** Whether this table is a storage buckets table */ isBucketsTable: boolean; /** Whether this table is a storage files table */ isFilesTable: boolean; - /** The plane's GraphQL upload surface */ + /** Upload mutations and types for this storage */ upload: MetaStorageUpload; } /** Information about a unique constraint */ @@ -3717,6 +3733,15 @@ export interface MetaEnum { /** Allowed values for this enum */ values: string[]; } +/** How a field holds files */ +export interface MetaFileField { + /** GraphQL type name of the files table uploads are recorded in, when this API has exactly one; null otherwise */ + filesType?: string | null; + /** Whether the field holds a list of files */ + isMultiple: boolean; + /** image, upload, or attachment. An image or upload holds a file document; an attachment holds a link to a file. */ + kind: string; +} /** Information about a PostgreSQL type */ export interface MetaType { /** Scalar serialization contract (null for plain scalars) */ @@ -3725,7 +3750,13 @@ export interface MetaType { hasDefault?: boolean | null; isArray: boolean; isNotNull?: boolean | null; + /** Most characters a text value may hold, or most bits a bit string may hold; for a list, each item. Null when unbounded. */ + maxLength?: number | null; pgType: string; + /** Most significant digits a decimal number may hold. Null when unbounded. */ + precision?: number | null; + /** Digits a decimal number keeps after the decimal point. Null when unbounded. */ + scale?: number | null; subtype?: string | null; } /** Reference to a related table */ @@ -3744,6 +3775,8 @@ export interface MetaBelongsToRelation { fieldName?: string | null; isUnique: boolean; keys: MetaField[]; + /** Fields on the referenced table that keys point at, in the same order as keys */ + refKeys: MetaField[]; references: MetaRefTable; type?: string | null; } @@ -3753,6 +3786,8 @@ export interface MetaHasRelation { isUnique: boolean; keys: MetaField[]; referencedBy: MetaRefTable; + /** Fields on the related table that point at this table, in the same order as keys */ + remoteKeys: MetaField[]; type?: string | null; } /** A many-to-many relation via junction table */ @@ -3775,7 +3810,7 @@ export interface MetaSearchColumn { /** Column name (camelCase) */ name: string; } -/** Per-table search configuration from @searchConfig smart tag */ +/** Per-table search configuration */ export interface MetaSearchConfig { /** Exponential decay factor per day */ boostRecencyDecay?: number | null; @@ -3786,7 +3821,7 @@ export interface MetaSearchConfig { /** JSON-encoded per-adapter score weights */ weights?: string | null; } -/** The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from */ +/** The upload mutations and types for a storage table pair */ export interface MetaStorageUpload { /** Per-file input type inside the bulk input */ bulkFileInputType: string; @@ -3804,14 +3839,14 @@ export interface MetaStorageUpload { mutation: string; /** Payload type of the single upload mutation */ payloadType: string; - /** Whether the upload input requires ownerId (entity-keyed plane) */ + /** Whether the upload input requires ownerId */ requiresOwnerId: boolean; } -/** How a client must serialize/parse a scalar — the one field-type detail standard GraphQL introspection cannot describe. Null for plain scalars whose wire format is obvious from gqlType. */ +/** How a client must serialize and parse a scalar whose wire format gqlType alone does not settle. Null for plain scalars whose wire format is obvious from gqlType. */ export interface MetaScalarEncoding { /** For 'vector': declared length, else null. */ dimensions?: number | null; - /** For 'ltree': values are dot-separated path strings. */ + /** For 'ltree': true when values are dot-separated paths ('a.b.c'), false when they are slash-separated paths ('/a/b/c'). */ dotPath?: boolean | null; /** For 'vector': element scalar (e.g. 'float'). */ elementType?: string | null; diff --git a/sdk/constructive-react/src/admin/types.ts b/sdk/constructive-react/src/admin/types.ts index 732ffd45fd..bcf013a6d4 100644 --- a/sdk/constructive-react/src/admin/types.ts +++ b/sdk/constructive-react/src/admin/types.ts @@ -5,6 +5,7 @@ */ export type ConstructiveInternalTypeEmail = unknown; export type ConstructiveInternalTypeImage = unknown; +export type FileVersion = unknown; export interface AppAdminGrant { actorId: string | null; createdAt: string | null; @@ -232,6 +233,8 @@ export interface OrgMemberProfile { id: string | null; membershipId: string | null; profilePicture: ConstructiveInternalTypeImage | null; + profilePictureUrl: string | null; + profilePictureVersions: FileVersion[] | null; title: string | null; updatedAt: string | null; } diff --git a/sdk/constructive-react/src/agent/hooks/README.md b/sdk/constructive-react/src/agent/hooks/README.md index d6393fc930..e3eafb12a7 100644 --- a/sdk/constructive-react/src/agent/hooks/README.md +++ b/sdk/constructive-react/src/agent/hooks/README.md @@ -305,7 +305,7 @@ const { data: item } = useAgentResourceChunkQuery({ const { mutate: create } = useCreateAgentResourceChunkMutation({ selection: { fields: { id: true } }, }); -create({ agentResourceId: '', body: '', chunkIndex: '', databaseId: '', embedding: '', embeddingVectorDistance: '', metadata: '', searchScore: '' }); +create({ agentResourceId: '', body: '', chunkIndex: '', databaseId: '', embedding: '', metadata: '' }); ``` ### AgentResource @@ -313,20 +313,20 @@ create({ agentResourceId: '', body: '', chunkIndex: '', datab ```typescript // List all agentResources const { data, isLoading } = useAgentResourcesQuery({ - selection: { fields: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, + selection: { fields: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); // Get one agentResource const { data: item } = useAgentResourceQuery({ id: '', - selection: { fields: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, + selection: { fields: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); // Create a agentResource const { mutate: create } = useCreateAgentResourceMutation({ selection: { fields: { id: true } }, }); -create({ archivedAt: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', isActive: '', isArchived: '', keywords: '', kind: '', kindTrgmSimilarity: '', metadata: '', search: '', searchScore: '', searchTsvRank: '', slug: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }); +create({ archivedAt: '', body: '', createdBy: '', createdByPrincipal: '', databaseId: '', description: '', embedding: '', isActive: '', isArchived: '', keywords: '', kind: '', metadata: '', slug: '', title: '', updatedBy: '', updatedByPrincipal: '' }); ``` ### AgentRun @@ -557,7 +557,7 @@ const { data: item } = usePlatformAgentResourceChunkQuery({ const { mutate: create } = useCreatePlatformAgentResourceChunkMutation({ selection: { fields: { id: true } }, }); -create({ body: '', chunkIndex: '', embedding: '', embeddingVectorDistance: '', metadata: '', platformAgentResourceId: '', searchScore: '' }); +create({ body: '', chunkIndex: '', embedding: '', metadata: '', platformAgentResourceId: '' }); ``` ### PlatformAgentResource @@ -565,20 +565,20 @@ create({ body: '', chunkIndex: '', embedding: '', embedding ```typescript // List all platformAgentResources const { data, isLoading } = usePlatformAgentResourcesQuery({ - selection: { fields: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, + selection: { fields: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); // Get one platformAgentResource const { data: item } = usePlatformAgentResourceQuery({ id: '', - selection: { fields: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, + selection: { fields: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); // Create a platformAgentResource const { mutate: create } = useCreatePlatformAgentResourceMutation({ selection: { fields: { id: true } }, }); -create({ archivedAt: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', isActive: '', isArchived: '', keywords: '', kind: '', kindTrgmSimilarity: '', metadata: '', search: '', searchScore: '', searchTsvRank: '', slug: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }); +create({ archivedAt: '', body: '', createdBy: '', createdByPrincipal: '', description: '', embedding: '', isActive: '', isArchived: '', keywords: '', kind: '', metadata: '', slug: '', title: '', updatedBy: '', updatedByPrincipal: '' }); ``` ### PlatformAgentRun diff --git a/sdk/constructive-react/src/agent/orm/README.md b/sdk/constructive-react/src/agent/orm/README.md index a201a35f2d..7e92ad0fca 100644 --- a/sdk/constructive-react/src/agent/orm/README.md +++ b/sdk/constructive-react/src/agent/orm/README.md @@ -305,10 +305,10 @@ CRUD operations for AgentResourceChunk records. | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | | `embedding` | Vector | Yes | -| `embeddingVectorDistance` | Float | Yes | +| `embeddingVectorDistance` | Float | No | | `id` | UUID | No | | `metadata` | JSON | Yes | -| `searchScore` | Float | Yes | +| `searchScore` | Float | No | | `updatedAt` | Datetime | No | **Operations:** @@ -321,7 +321,7 @@ const items = await db.agentResourceChunk.findMany({ select: { agentResourceId: const item = await db.agentResourceChunk.findOne({ id: '', select: { agentResourceId: true, body: true, chunkIndex: true, createdAt: true, databaseId: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, searchScore: true, updatedAt: true } }).execute(); // Create -const created = await db.agentResourceChunk.create({ data: { agentResourceId: '', body: '', chunkIndex: '', databaseId: '', embedding: '', embeddingVectorDistance: '', metadata: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.agentResourceChunk.create({ data: { agentResourceId: '', body: '', chunkIndex: '', databaseId: '', embedding: '', metadata: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentResourceChunk.update({ where: { id: '' }, data: { agentResourceId: '' }, select: { id: true } }).execute(); @@ -343,29 +343,31 @@ CRUD operations for AgentResource records. |-------|------|----------| | `archivedAt` | Datetime | Yes | | `body` | String | Yes | -| `bodyTrgmSimilarity` | Float | Yes | +| `bodyTrgmSimilarity` | Float | No | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | | `createdByPrincipal` | UUID | Yes | | `databaseId` | UUID | Yes | | `description` | String | Yes | -| `descriptionTrgmSimilarity` | Float | Yes | +| `descriptionTrgmSimilarity` | Float | No | | `embedding` | Vector | Yes | -| `embeddingUpdatedAt` | Datetime | Yes | -| `embeddingVectorDistance` | Float | Yes | +| `embeddingModel` | String | No | +| `embeddingModelTrgmSimilarity` | Float | No | +| `embeddingUpdatedAt` | Datetime | No | +| `embeddingVectorDistance` | Float | No | | `id` | UUID | No | | `isActive` | Boolean | Yes | | `isArchived` | Boolean | Yes | | `keywords` | String | Yes | | `kind` | String | Yes | -| `kindTrgmSimilarity` | Float | Yes | +| `kindTrgmSimilarity` | Float | No | | `metadata` | JSON | Yes | -| `search` | FullText | Yes | -| `searchScore` | Float | Yes | -| `searchTsvRank` | Float | Yes | +| `search` | FullText | No | +| `searchScore` | Float | No | +| `searchTsvRank` | Float | No | | `slug` | String | Yes | | `title` | String | Yes | -| `titleTrgmSimilarity` | Float | Yes | +| `titleTrgmSimilarity` | Float | No | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | | `updatedByPrincipal` | UUID | Yes | @@ -374,13 +376,13 @@ CRUD operations for AgentResource records. ```typescript // List all agentResource records -const items = await db.agentResource.findMany({ select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const items = await db.agentResource.findMany({ select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.agentResource.findOne({ id: '', select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const item = await db.agentResource.findOne({ id: '', select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.agentResource.create({ data: { archivedAt: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', isActive: '', isArchived: '', keywords: '', kind: '', kindTrgmSimilarity: '', metadata: '', search: '', searchScore: '', searchTsvRank: '', slug: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); +const created = await db.agentResource.create({ data: { archivedAt: '', body: '', createdBy: '', createdByPrincipal: '', databaseId: '', description: '', embedding: '', isActive: '', isArchived: '', keywords: '', kind: '', metadata: '', slug: '', title: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentResource.update({ where: { id: '' }, data: { archivedAt: '' }, select: { id: true } }).execute(); @@ -836,11 +838,11 @@ CRUD operations for PlatformAgentResourceChunk records. | `chunkIndex` | Int | Yes | | `createdAt` | Datetime | No | | `embedding` | Vector | Yes | -| `embeddingVectorDistance` | Float | Yes | +| `embeddingVectorDistance` | Float | No | | `id` | UUID | No | | `metadata` | JSON | Yes | | `platformAgentResourceId` | UUID | Yes | -| `searchScore` | Float | Yes | +| `searchScore` | Float | No | | `updatedAt` | Datetime | No | **Operations:** @@ -853,7 +855,7 @@ const items = await db.platformAgentResourceChunk.findMany({ select: { body: tru const item = await db.platformAgentResourceChunk.findOne({ id: '', select: { body: true, chunkIndex: true, createdAt: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, platformAgentResourceId: true, searchScore: true, updatedAt: true } }).execute(); // Create -const created = await db.platformAgentResourceChunk.create({ data: { body: '', chunkIndex: '', embedding: '', embeddingVectorDistance: '', metadata: '', platformAgentResourceId: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.platformAgentResourceChunk.create({ data: { body: '', chunkIndex: '', embedding: '', metadata: '', platformAgentResourceId: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformAgentResourceChunk.update({ where: { id: '' }, data: { body: '' }, select: { id: true } }).execute(); @@ -875,28 +877,30 @@ CRUD operations for PlatformAgentResource records. |-------|------|----------| | `archivedAt` | Datetime | Yes | | `body` | String | Yes | -| `bodyTrgmSimilarity` | Float | Yes | +| `bodyTrgmSimilarity` | Float | No | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | | `createdByPrincipal` | UUID | Yes | | `description` | String | Yes | -| `descriptionTrgmSimilarity` | Float | Yes | +| `descriptionTrgmSimilarity` | Float | No | | `embedding` | Vector | Yes | -| `embeddingUpdatedAt` | Datetime | Yes | -| `embeddingVectorDistance` | Float | Yes | +| `embeddingModel` | String | No | +| `embeddingModelTrgmSimilarity` | Float | No | +| `embeddingUpdatedAt` | Datetime | No | +| `embeddingVectorDistance` | Float | No | | `id` | UUID | No | | `isActive` | Boolean | Yes | | `isArchived` | Boolean | Yes | | `keywords` | String | Yes | | `kind` | String | Yes | -| `kindTrgmSimilarity` | Float | Yes | +| `kindTrgmSimilarity` | Float | No | | `metadata` | JSON | Yes | -| `search` | FullText | Yes | -| `searchScore` | Float | Yes | -| `searchTsvRank` | Float | Yes | +| `search` | FullText | No | +| `searchScore` | Float | No | +| `searchTsvRank` | Float | No | | `slug` | String | Yes | | `title` | String | Yes | -| `titleTrgmSimilarity` | Float | Yes | +| `titleTrgmSimilarity` | Float | No | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | | `updatedByPrincipal` | UUID | Yes | @@ -905,13 +909,13 @@ CRUD operations for PlatformAgentResource records. ```typescript // List all platformAgentResource records -const items = await db.platformAgentResource.findMany({ select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const items = await db.platformAgentResource.findMany({ select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.platformAgentResource.findOne({ id: '', select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const item = await db.platformAgentResource.findOne({ id: '', select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.platformAgentResource.create({ data: { archivedAt: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', isActive: '', isArchived: '', keywords: '', kind: '', kindTrgmSimilarity: '', metadata: '', search: '', searchScore: '', searchTsvRank: '', slug: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); +const created = await db.platformAgentResource.create({ data: { archivedAt: '', body: '', createdBy: '', createdByPrincipal: '', description: '', embedding: '', isActive: '', isArchived: '', keywords: '', kind: '', metadata: '', slug: '', title: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformAgentResource.update({ where: { id: '' }, data: { archivedAt: '' }, select: { id: true } }).execute(); diff --git a/sdk/constructive-react/src/agent/orm/input-types.ts b/sdk/constructive-react/src/agent/orm/input-types.ts index 203bbeda25..fc4524c9f2 100644 --- a/sdk/constructive-react/src/agent/orm/input-types.ts +++ b/sdk/constructive-react/src/agent/orm/input-types.ts @@ -407,6 +407,9 @@ export interface AgentResource { /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ descriptionTrgmSimilarity?: number | null; embedding?: number[] | null; + embeddingModel?: string | null; + /** TRGM similarity when searching `embeddingModel`. Returns null when no trgm search filter is active. */ + embeddingModelTrgmSimilarity?: number | null; embeddingUpdatedAt?: string | null; /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ embeddingVectorDistance?: number | null; @@ -758,6 +761,9 @@ export interface PlatformAgentResource { /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ descriptionTrgmSimilarity?: number | null; embedding?: number[] | null; + embeddingModel?: string | null; + /** TRGM similarity when searching `embeddingModel`. Returns null when no trgm search filter is active. */ + embeddingModelTrgmSimilarity?: number | null; embeddingUpdatedAt?: string | null; /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ embeddingVectorDistance?: number | null; @@ -1262,6 +1268,8 @@ export type AgentResourceSelect = { description?: boolean; descriptionTrgmSimilarity?: boolean; embedding?: boolean; + embeddingModel?: boolean; + embeddingModelTrgmSimilarity?: boolean; embeddingUpdatedAt?: boolean; embeddingVectorDistance?: boolean; id?: boolean; @@ -1598,6 +1606,8 @@ export type PlatformAgentResourceSelect = { description?: boolean; descriptionTrgmSimilarity?: boolean; embedding?: boolean; + embeddingModel?: boolean; + embeddingModelTrgmSimilarity?: boolean; embeddingUpdatedAt?: boolean; embeddingVectorDistance?: boolean; id?: boolean; @@ -2066,6 +2076,8 @@ export interface AgentResourceFilter { description?: StringTrgmFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -2094,6 +2106,8 @@ export interface AgentResourceFilter { trgmBody?: TrgmSearchInput; /** TRGM search on the `description` column. */ trgmDescription?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `kind` column. */ trgmKind?: TrgmSearchInput; /** TRGM search on the `title` column. */ @@ -2632,6 +2646,8 @@ export interface PlatformAgentResourceFilter { description?: StringTrgmFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -2664,6 +2680,8 @@ export interface PlatformAgentResourceFilter { trgmBody?: TrgmSearchInput; /** TRGM search on the `description` column. */ trgmDescription?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `kind` column. */ trgmKind?: TrgmSearchInput; /** TRGM search on the `title` column. */ @@ -3141,6 +3159,10 @@ export type AgentResourceOrderBy = | 'DESCRIPTION_TRGM_SIMILARITY_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_ASC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' @@ -3561,6 +3583,10 @@ export type PlatformAgentResourceOrderBy = | 'DESCRIPTION_TRGM_SIMILARITY_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_ASC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' @@ -4838,10 +4864,12 @@ export interface VectorNearbyInput { includeChunks?: boolean; /** Similarity metric to use (default: COSINE). */ metric?: VectorMetric; - /** Natural language text to embed server-side for similarity search. Mutually exclusive with `vector` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** The model that produced `vector`. On a column that records the model of each row's vector, only rows embedded with this model are compared; vectors of two models are not comparable. Filled in server-side when `text` is embedded. */ + model?: string; + /** Natural language text to embed server-side for similarity search. Provide exactly one of `text` or `vector`; sending both or neither is an error. Blank text on its own counts as not given. Requires the LLM plugin to be configured with an embedding provider. */ text?: string; /** Query vector for similarity search. */ - vector: number[]; + vector?: number[]; } /** A filter to be used against many `AgentResourceChunk` object types. All fields are combined with a logical ‘and.’ */ export interface AgentResourceToManyAgentResourceChunkFilter { @@ -5266,7 +5294,7 @@ export interface AgentResourceChunkInput { /** Policy-required field derived from source table (used by AuthzRelatedEntityMembership) */ databaseId?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; metadata?: Record; @@ -5286,7 +5314,7 @@ export interface AgentResourceInput { /** Brief description of this resource */ description?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; /** Whether this resource is active and retrievable */ @@ -5581,7 +5609,7 @@ export interface PlatformAgentResourceChunkInput { chunkIndex?: number; createdAt?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; metadata?: Record; @@ -5600,7 +5628,7 @@ export interface PlatformAgentResourceInput { /** Brief description of this resource */ description?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; /** Whether this resource is active and retrievable */ @@ -6992,6 +7020,8 @@ export interface AgentResourceFilter { description?: StringTrgmFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -7020,6 +7050,8 @@ export interface AgentResourceFilter { trgmBody?: TrgmSearchInput; /** TRGM search on the `description` column. */ trgmDescription?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `kind` column. */ trgmKind?: TrgmSearchInput; /** TRGM search on the `title` column. */ @@ -7181,6 +7213,8 @@ export interface PlatformAgentResourceFilter { description?: StringTrgmFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -7213,6 +7247,8 @@ export interface PlatformAgentResourceFilter { trgmBody?: TrgmSearchInput; /** TRGM search on the `description` column. */ trgmDescription?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `kind` column. */ trgmKind?: TrgmSearchInput; /** TRGM search on the `title` column. */ diff --git a/sdk/constructive-react/src/agent/orm/query-builder.ts b/sdk/constructive-react/src/agent/orm/query-builder.ts index fd785bbae6..d6c981907f 100644 --- a/sdk/constructive-react/src/agent/orm/query-builder.ts +++ b/sdk/constructive-react/src/agent/orm/query-builder.ts @@ -140,9 +140,7 @@ export function buildSelections( ); const nestedSelect = nested.select; if (nestedSelect && typeof nestedSelect === 'object') { - const subSelections = Object.entries(nestedSelect) - .filter(([, v]) => v) - .map(([name]) => t.field({ name })); + const subSelections = buildSelections(nestedSelect, connectionFieldsMap); fields.push( t.field({ name: key, diff --git a/sdk/constructive-react/src/agent/orm/select-types.ts b/sdk/constructive-react/src/agent/orm/select-types.ts index 4b39d7e820..783c4603df 100644 --- a/sdk/constructive-react/src/agent/orm/select-types.ts +++ b/sdk/constructive-react/src/agent/orm/select-types.ts @@ -159,9 +159,13 @@ export type InferSelectResult = TSelect extends undefined ? K extends keyof TEntity ? NonNullable extends ConnectionResult ? ConnectionResult> - : - | InferSelectResult, NestedSelect> - | (null extends TEntity[K] ? null : never) + : NonNullable extends readonly (infer Item)[] + ? + | InferSelectResult, NestedSelect>[] + | (null extends TEntity[K] ? null : never) + : + | InferSelectResult, NestedSelect> + | (null extends TEntity[K] ? null : never) : never : K extends keyof TEntity ? TEntity[K] diff --git a/sdk/constructive-react/src/agent/schema-types.ts b/sdk/constructive-react/src/agent/schema-types.ts index 11db8cff08..71132d9d91 100644 --- a/sdk/constructive-react/src/agent/schema-types.ts +++ b/sdk/constructive-react/src/agent/schema-types.ts @@ -276,6 +276,10 @@ export type AgentResourceOrderBy = | 'DESCRIPTION_TRGM_SIMILARITY_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_ASC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' @@ -708,6 +712,10 @@ export type PlatformAgentResourceOrderBy = | 'DESCRIPTION_TRGM_SIMILARITY_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_ASC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' @@ -1510,7 +1518,7 @@ export interface AgentResourceChunkInput { /** Policy-required field derived from source table (used by AuthzRelatedEntityMembership) */ databaseId?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; metadata?: unknown; @@ -1525,7 +1533,7 @@ export interface AgentResourceChunkPatch { /** Policy-required field derived from source table (used by AuthzRelatedEntityMembership) */ databaseId?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; metadata?: unknown; @@ -1555,6 +1563,8 @@ export interface AgentResourceFilter { description?: StringTrgmFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -1583,6 +1593,8 @@ export interface AgentResourceFilter { trgmBody?: TrgmSearchInput; /** TRGM search on the `description` column. */ trgmDescription?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `kind` column. */ trgmKind?: TrgmSearchInput; /** TRGM search on the `title` column. */ @@ -1620,7 +1632,7 @@ export interface AgentResourceInput { /** Brief description of this resource */ description?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; /** Whether this resource is active and retrievable */ @@ -1655,7 +1667,7 @@ export interface AgentResourcePatch { /** Brief description of this resource */ description?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; /** Whether this resource is active and retrievable */ @@ -3091,7 +3103,7 @@ export interface PlatformAgentResourceChunkInput { chunkIndex?: number; createdAt?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; metadata?: unknown; @@ -3104,7 +3116,7 @@ export interface PlatformAgentResourceChunkPatch { chunkIndex?: number; createdAt?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; metadata?: unknown; @@ -3129,6 +3141,8 @@ export interface PlatformAgentResourceFilter { description?: StringTrgmFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -3161,6 +3175,8 @@ export interface PlatformAgentResourceFilter { trgmBody?: TrgmSearchInput; /** TRGM search on the `description` column. */ trgmDescription?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `kind` column. */ trgmKind?: TrgmSearchInput; /** TRGM search on the `title` column. */ @@ -3196,7 +3212,7 @@ export interface PlatformAgentResourceInput { /** Brief description of this resource */ description?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; /** Whether this resource is active and retrievable */ @@ -3229,7 +3245,7 @@ export interface PlatformAgentResourcePatch { /** Brief description of this resource */ description?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; /** Whether this resource is active and retrievable */ @@ -4134,10 +4150,12 @@ export interface VectorNearbyInput { includeChunks?: boolean; /** Similarity metric to use (default: COSINE). */ metric?: VectorMetric; - /** Natural language text to embed server-side for similarity search. Mutually exclusive with `vector` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** The model that produced `vector`. On a column that records the model of each row's vector, only rows embedded with this model are compared; vectors of two models are not comparable. Filled in server-side when `text` is embedded. */ + model?: string; + /** Natural language text to embed server-side for similarity search. Provide exactly one of `text` or `vector`; sending both or neither is an error. Blank text on its own counts as not given. Requires the LLM plugin to be configured with an embedding provider. */ text?: string; /** Query vector for similarity search. */ - vector: number[]; + vector?: number[]; } /** Root meta schema type */ export interface MetaSchema { @@ -4755,21 +4773,27 @@ export interface UpdatePlatformAgentThreadPayload { /** Information about a database table */ export interface MetaTable { constraints: MetaConstraints; + /** Description written for this table, or null */ + description?: string | null; fields: MetaField[]; foreignKeyConstraints: MetaForeignKeyConstraint[]; - /** i18n metadata (null if no @i18n tag) */ + /** i18n metadata (null if the table is not translatable) */ i18n?: MetaI18n | null; indexes: MetaIndex[]; inflection: MetaInflection; + /** Whether this table only links rows of two other tables; the link appears in their manyToMany relations */ + isJunction: boolean; + /** 'table' when rows are stored in this table, 'view' when they come from a view of other tables */ + kind: string; /** Final GraphQL output type name */ name: string; primaryKeyConstraints: MetaPrimaryKeyConstraint[]; query: MetaQuery; - /** Realtime metadata (null if no @realtime tag) */ + /** Realtime metadata (null if the table has no change subscriptions) */ realtime?: MetaRealtime | null; relations: MetaRelations; schemaName: string; - /** Provisioning scope metadata (null if no @scope tag) */ + /** Provisioning scope metadata (null if the table has no scope) */ scope?: MetaScope | null; /** Search metadata (null if no search configured) */ search?: MetaSearch | null; @@ -4942,15 +4966,27 @@ export interface MetaConstraints { } /** Information about a table field/column */ export interface MetaField { + /** Values this field accepts, when the set is fixed; null otherwise. Set on a table's own fields only. */ + allowedValues?: string[] | null; /** PostgreSQL column name */ columnName: string; description?: string | null; /** Enum metadata if this field has an enum type */ enumValues?: MetaEnum | null; + /** Set when the field holds files; null otherwise. Set on a table's own fields only. */ + file?: MetaFileField | null; hasDefault: boolean; + /** Whether the value is always computed and cannot be written, even when a create or update input offers the field. Set on a table's own fields only. */ + isComputed?: boolean | null; isForeignKey: boolean; isNotNull: boolean; isPrimaryKey: boolean; + /** Whether a create must provide this field. Set on a table's own fields only. */ + isRequiredOnCreate?: boolean | null; + /** Whether a create may set this field. Set on a table's own fields only. */ + isWritableOnCreate?: boolean | null; + /** Whether an update may change this field. Set on a table's own fields only. */ + isWritableOnUpdate?: boolean | null; /** Final GraphQL field name */ name: string; type: MetaType; @@ -4964,7 +5000,7 @@ export interface MetaForeignKeyConstraint { referencedFields: string[]; referencedTable: string; } -/** i18n metadata for a table with @i18n tag */ +/** i18n metadata for a translatable table */ export interface MetaI18n { /** Fields that are translatable */ translatableFields: MetaI18nField[]; @@ -4979,7 +5015,7 @@ export interface MetaIndex { isUnique: boolean; name: string; } -/** Table inflection names */ +/** Type and field names generated for this table */ export interface MetaInflection { allRows: string; conditionType: string; @@ -5007,7 +5043,7 @@ export interface MetaQuery { one?: string | null; update?: string | null; } -/** Realtime metadata for a table with @realtime tag */ +/** Realtime metadata for a table with change subscriptions */ export interface MetaRealtime { /** The generated subscription field name (e.g. onPostChanged) */ subscriptionFieldName: string; @@ -5022,13 +5058,13 @@ export interface MetaRelations { } /** Provisioning scope metadata for a table */ export interface MetaScope { - /** SQL name of the entity table for entity scopes, else null */ + /** Name of the entity table for entity scopes, else null */ entityTable?: string | null; - /** Inflected scope key column (e.g. databaseId, orgId), null for global tiers */ + /** Field name of the scope key (e.g. databaseId, orgId), null for global tiers */ keyColumn?: string | null; /** Provisioning scope: 'platform', 'app', 'database', or an entity scope (e.g. 'org') */ scope: string; - /** Provenance of the scope metadata (always 'smartTag') */ + /** Where this scope metadata comes from */ source: string; /** Coarse bucket: 'global', 'database', or 'entity' */ tier: string; @@ -5046,17 +5082,17 @@ export interface MetaSearch { } /** Storage metadata for a table */ export interface MetaStorage { - /** GraphQL type name of the plane's buckets table */ + /** GraphQL type name of the paired buckets table */ bucketsType: string; /** Computed download-URL field on the files type; null on the buckets side */ downloadUrlField?: string | null; - /** GraphQL type name of the plane's files table */ + /** GraphQL type name of the paired files table */ filesType: string; /** Whether this table is a storage buckets table */ isBucketsTable: boolean; /** Whether this table is a storage files table */ isFilesTable: boolean; - /** The plane's GraphQL upload surface */ + /** Upload mutations and types for this storage */ upload: MetaStorageUpload; } /** Information about a unique constraint */ @@ -5071,6 +5107,15 @@ export interface MetaEnum { /** Allowed values for this enum */ values: string[]; } +/** How a field holds files */ +export interface MetaFileField { + /** GraphQL type name of the files table uploads are recorded in, when this API has exactly one; null otherwise */ + filesType?: string | null; + /** Whether the field holds a list of files */ + isMultiple: boolean; + /** image, upload, or attachment. An image or upload holds a file document; an attachment holds a link to a file. */ + kind: string; +} /** Information about a PostgreSQL type */ export interface MetaType { /** Scalar serialization contract (null for plain scalars) */ @@ -5079,7 +5124,13 @@ export interface MetaType { hasDefault?: boolean | null; isArray: boolean; isNotNull?: boolean | null; + /** Most characters a text value may hold, or most bits a bit string may hold; for a list, each item. Null when unbounded. */ + maxLength?: number | null; pgType: string; + /** Most significant digits a decimal number may hold. Null when unbounded. */ + precision?: number | null; + /** Digits a decimal number keeps after the decimal point. Null when unbounded. */ + scale?: number | null; subtype?: string | null; } /** Reference to a related table */ @@ -5098,6 +5149,8 @@ export interface MetaBelongsToRelation { fieldName?: string | null; isUnique: boolean; keys: MetaField[]; + /** Fields on the referenced table that keys point at, in the same order as keys */ + refKeys: MetaField[]; references: MetaRefTable; type?: string | null; } @@ -5107,6 +5160,8 @@ export interface MetaHasRelation { isUnique: boolean; keys: MetaField[]; referencedBy: MetaRefTable; + /** Fields on the related table that point at this table, in the same order as keys */ + remoteKeys: MetaField[]; type?: string | null; } /** A many-to-many relation via junction table */ @@ -5129,7 +5184,7 @@ export interface MetaSearchColumn { /** Column name (camelCase) */ name: string; } -/** Per-table search configuration from @searchConfig smart tag */ +/** Per-table search configuration */ export interface MetaSearchConfig { /** Exponential decay factor per day */ boostRecencyDecay?: number | null; @@ -5140,7 +5195,7 @@ export interface MetaSearchConfig { /** JSON-encoded per-adapter score weights */ weights?: string | null; } -/** The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from */ +/** The upload mutations and types for a storage table pair */ export interface MetaStorageUpload { /** Per-file input type inside the bulk input */ bulkFileInputType: string; @@ -5158,14 +5213,14 @@ export interface MetaStorageUpload { mutation: string; /** Payload type of the single upload mutation */ payloadType: string; - /** Whether the upload input requires ownerId (entity-keyed plane) */ + /** Whether the upload input requires ownerId */ requiresOwnerId: boolean; } -/** How a client must serialize/parse a scalar — the one field-type detail standard GraphQL introspection cannot describe. Null for plain scalars whose wire format is obvious from gqlType. */ +/** How a client must serialize and parse a scalar whose wire format gqlType alone does not settle. Null for plain scalars whose wire format is obvious from gqlType. */ export interface MetaScalarEncoding { /** For 'vector': declared length, else null. */ dimensions?: number | null; - /** For 'ltree': values are dot-separated path strings. */ + /** For 'ltree': true when values are dot-separated paths ('a.b.c'), false when they are slash-separated paths ('/a/b/c'). */ dotPath?: boolean | null; /** For 'vector': element scalar (e.g. 'float'). */ elementType?: string | null; diff --git a/sdk/constructive-react/src/agent/types.ts b/sdk/constructive-react/src/agent/types.ts index 9ace562097..26f58492f5 100644 --- a/sdk/constructive-react/src/agent/types.ts +++ b/sdk/constructive-react/src/agent/types.ts @@ -114,6 +114,8 @@ export interface AgentResource { description: string | null; descriptionTrgmSimilarity: number | null; embedding: number[] | null; + embeddingModel: string | null; + embeddingModelTrgmSimilarity: number | null; embeddingUpdatedAt: string | null; embeddingVectorDistance: number | null; id: string | null; @@ -324,6 +326,8 @@ export interface PlatformAgentResource { description: string | null; descriptionTrgmSimilarity: number | null; embedding: number[] | null; + embeddingModel: string | null; + embeddingModelTrgmSimilarity: number | null; embeddingUpdatedAt: string | null; embeddingVectorDistance: number | null; id: string | null; diff --git a/sdk/constructive-react/src/api/README.md b/sdk/constructive-react/src/api/README.md index ed648007ba..f7bbb8d3e0 100644 --- a/sdk/constructive-react/src/api/README.md +++ b/sdk/constructive-react/src/api/README.md @@ -8,8 +8,8 @@ ## Overview -- **Tables:** 90 -- **Custom queries:** 18 +- **Tables:** 91 +- **Custom queries:** 14 - **Custom mutations:** 31 **Generators:** ORM, React Query diff --git a/sdk/constructive-react/src/api/hooks/README.md b/sdk/constructive-react/src/api/hooks/README.md index b723c91d0a..3336664345 100644 --- a/sdk/constructive-react/src/api/hooks/README.md +++ b/sdk/constructive-react/src/api/hooks/README.md @@ -49,7 +49,6 @@ function App() { | `useDeleteApiSettingMutation` | Mutation | Per-API feature flag overrides; NULL columns inherit from database_settings | | `useAstMigrationsQuery` | Query | List all astMigrations | | `useAstMigrationQuery` | Query | Get one astMigration | -| `useCreateAstMigrationMutation` | Mutation | Create a astMigration | | `useUpdateAstMigrationMutation` | Mutation | Update a astMigration | | `useDeleteAstMigrationMutation` | Mutation | Delete a astMigration | | `useCheckConstraintsQuery` | Query | List all checkConstraints | @@ -173,7 +172,6 @@ function App() { | `useUpdateFunctionMutation` | Mutation | Update a function | | `useDeleteFunctionMutation` | Mutation | Delete a function | | `useGetSitePreviewsQuery` | Query | List all getSitePreviews | -| `useCreateGetSitePreviewsRecordMutation` | Mutation | Create a getSitePreviewsRecord | | `useIdentityProviderRegistriesQuery` | Query | List all identityProviderRegistries | | `useIdentityProviderRegistryQuery` | Query | Get one identityProviderRegistry | | `useCreateIdentityProviderRegistryMutation` | Mutation | Create a identityProviderRegistry | @@ -186,7 +184,6 @@ function App() { | `useDeleteIndexMutation` | Mutation | Delete a index | | `useListSuspendedDatabasesQuery` | Query | List all listSuspendedDatabases | | `useListSuspendedDatabasesRecordQuery` | Query | Get one listSuspendedDatabasesRecord | -| `useCreateListSuspendedDatabasesRecordMutation` | Mutation | Create a listSuspendedDatabasesRecord | | `useUpdateListSuspendedDatabasesRecordMutation` | Mutation | Update a listSuspendedDatabasesRecord | | `useDeleteListSuspendedDatabasesRecordMutation` | Mutation | Delete a listSuspendedDatabasesRecord | | `useManagedDomainsQuery` | Query | Platform-operated hostnames whose DNS and certificate lifecycle the platform drives | @@ -260,7 +257,6 @@ function App() { | `useUpdatePlatformEmailSiteIdentityMutation` | Mutation | Binds a site to the identity it sends as. Unique on site_id: one identity per site, but many sites may share an identity. | | `useDeletePlatformEmailSiteIdentityMutation` | Mutation | Binds a site to the identity it sends as. Unique on site_id: one identity per site, but many sites may share an identity. | | `usePlatformGetSitePreviewsQuery` | Query | List all platformGetSitePreviews | -| `useCreatePlatformGetSitePreviewsRecordMutation` | Mutation | Create a platformGetSitePreviewsRecord | | `usePlatformManagedDomainsQuery` | Query | Platform-operated hostnames whose DNS and certificate lifecycle the platform drives | | `usePlatformManagedDomainQuery` | Query | Platform-operated hostnames whose DNS and certificate lifecycle the platform drives | | `useCreatePlatformManagedDomainMutation` | Mutation | Platform-operated hostnames whose DNS and certificate lifecycle the platform drives | @@ -271,6 +267,11 @@ function App() { | `useCreatePlatformPageMutation` | Mutation | Site-owned page content — merkle-versioned head over the infra store; never a routing surface | | `useUpdatePlatformPageMutation` | Mutation | Site-owned page content — merkle-versioned head over the infra store; never a routing surface | | `useDeletePlatformPageMutation` | Mutation | Site-owned page content — merkle-versioned head over the infra store; never a routing surface | +| `usePlatformReservedSubdomainsQuery` | Query | Subdomain labels no tenant may claim under a platform apex | +| `usePlatformReservedSubdomainQuery` | Query | Subdomain labels no tenant may claim under a platform apex | +| `useCreatePlatformReservedSubdomainMutation` | Mutation | Subdomain labels no tenant may claim under a platform apex | +| `useUpdatePlatformReservedSubdomainMutation` | Mutation | Subdomain labels no tenant may claim under a platform apex | +| `useDeletePlatformReservedSubdomainMutation` | Mutation | Subdomain labels no tenant may claim under a platform apex | | `usePlatformSiteAppLinksQuery` | Query | Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) | | `usePlatformSiteAppLinkQuery` | Query | Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) | | `useCreatePlatformSiteAppLinkMutation` | Mutation | Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) | @@ -408,7 +409,6 @@ function App() { | `useDeleteSpatialRelationMutation` | Mutation | Delete a spatialRelation | | `useSqlActionsQuery` | Query | List all sqlActions | | `useSqlActionQuery` | Query | Get one sqlAction | -| `useCreateSqlActionMutation` | Mutation | Create a sqlAction | | `useUpdateSqlActionMutation` | Mutation | Update a sqlAction | | `useDeleteSqlActionMutation` | Mutation | Delete a sqlAction | | `useTableBehaviorsQuery` | Query | List all tableBehaviors | @@ -476,7 +476,6 @@ function App() { | `useCreateWebauthnSettingMutation` | Mutation | WebAuthn/passkey runtime configuration; relying party options and typed references to the credential/session storage | | `useUpdateWebauthnSettingMutation` | Mutation | WebAuthn/passkey runtime configuration; relying party options and typed references to the credential/session storage | | `useDeleteWebauthnSettingMutation` | Mutation | WebAuthn/passkey runtime configuration; relying party options and typed references to the credential/session storage | -| `useApiSchemaNamesQuery` | Query | apiSchemaNames | | `useApplyRegistryDefaultsQuery` | Query | applyRegistryDefaults | | `useEmailSharedAccountQuery` | Query | emailSharedAccount | | `useGetSitePreviewCommitQuery` | Query | getSitePreviewCommit | @@ -488,9 +487,6 @@ function App() { | `usePlatformSitesDeepLinkUrlQuery` | Query | platformSitesDeepLinkUrl | | `usePlatformSitesSiteOriginQuery` | Query | platformSitesSiteOrigin | | `usePlatformVerifySitePreviewTokenQuery` | Query | platformVerifySitePreviewToken | -| `useResolveDeepLinkQuery` | Query | resolveDeepLink | -| `useResolveRouteQuery` | Query | resolveRoute | -| `useResolveSiteAppLinksQuery` | Query | resolveSiteAppLinks | | `useSitesDeepLinkUrlQuery` | Query | sitesDeepLinkUrl | | `useSitesSiteOriginQuery` | Query | sitesSiteOrigin | | `useVerifySitePreviewTokenQuery` | Query | verifySitePreviewToken | @@ -545,20 +541,20 @@ Example usage: ```typescript // List all apis const { data, isLoading } = useApisQuery({ - selection: { fields: { anonRole: true, config: true, createdAt: true, databaseId: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }, + selection: { fields: { anonRole: true, config: true, createdAt: true, databaseId: true, id: true, isPublished: true, name: true, roleName: true, serviceHostname: true, updatedAt: true } }, }); // Get one api const { data: item } = useApiQuery({ id: '', - selection: { fields: { anonRole: true, config: true, createdAt: true, databaseId: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }, + selection: { fields: { anonRole: true, config: true, createdAt: true, databaseId: true, id: true, isPublished: true, name: true, roleName: true, serviceHostname: true, updatedAt: true } }, }); // Create a api const { mutate: create } = useCreateApiMutation({ selection: { fields: { id: true } }, }); -create({ anonRole: '', config: '', databaseId: '', dbname: '', isPublished: '', name: '', roleName: '' }); +create({ anonRole: '', config: '', databaseId: '', isPublished: '', name: '', roleName: '' }); ``` ### ApiSchema @@ -587,20 +583,20 @@ create({ apiId: '', databaseId: '', schemaId: '' }); ```typescript // List all apiSettings const { data, isLoading } = useApiSettingsQuery({ - selection: { fields: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }, + selection: { fields: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }, }); // Get one apiSetting const { data: item } = useApiSettingQuery({ id: '', - selection: { fields: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }, + selection: { fields: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }, }); // Create a apiSetting const { mutate: create } = useCreateApiSettingMutation({ selection: { fields: { id: true } }, }); -create({ apiId: '', databaseId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }); +create({ apiId: '', databaseId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }); ``` ### AstMigration @@ -617,11 +613,6 @@ const { data: item } = useAstMigrationQuery({ selection: { fields: { actionId: true, actionName: true, actorId: true, createdAt: true, databaseId: true, deploy: true, deploys: true, id: true, name: true, payload: true, requires: true, revert: true, verify: true } }, }); -// Create a astMigration -const { mutate: create } = useCreateAstMigrationMutation({ - selection: { fields: { id: true } }, -}); -create({ actionId: '', actionName: '', actorId: '', databaseId: '', deploy: '', deploys: '', name: '', payload: '', requires: '', revert: '', verify: '' }); ``` ### CheckConstraint @@ -705,7 +696,7 @@ const { data: item } = useDatabaseQuery({ const { mutate: create } = useCreateDatabaseMutation({ selection: { fields: { id: true } }, }); -create({ hash: '', label: '', name: '', ownerId: '', platform: '', suspendedAt: '', suspendedReason: '' }); +create({ hash: '', label: '', name: '', ownerId: '', platform: '' }); ``` ### DatabaseSetting @@ -713,20 +704,20 @@ create({ hash: '', label: '', name: '', ownerId: '', ```typescript // List all databaseSettings const { data, isLoading } = useDatabaseSettingsQuery({ - selection: { fields: { annotations: true, createdAt: true, creditsPerCent: true, databaseId: true, enableAggregates: true, enableBilling: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, labels: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }, + selection: { fields: { annotations: true, createdAt: true, creditsPerCent: true, databaseId: true, enableAggregates: true, enableBilling: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, labels: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }, }); // Get one databaseSetting const { data: item } = useDatabaseSettingQuery({ id: '', - selection: { fields: { annotations: true, createdAt: true, creditsPerCent: true, databaseId: true, enableAggregates: true, enableBilling: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, labels: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }, + selection: { fields: { annotations: true, createdAt: true, creditsPerCent: true, databaseId: true, enableAggregates: true, enableBilling: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, labels: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }, }); // Create a databaseSetting const { mutate: create } = useCreateDatabaseSettingMutation({ selection: { fields: { id: true } }, }); -create({ annotations: '', creditsPerCent: '', databaseId: '', enableAggregates: '', enableBilling: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', labels: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }); +create({ annotations: '', creditsPerCent: '', databaseId: '', enableAggregates: '', enableBilling: '', enableBulk: '', enableConnectionFilter: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', labels: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }); ``` ### DatabaseTransfer @@ -1136,11 +1127,6 @@ const { data, isLoading } = useGetSitePreviewsQuery({ selection: { fields: { commitId: true, name: true } }, }); -// Create a getSitePreviewsRecord -const { mutate: create } = useCreateGetSitePreviewsRecordMutation({ - selection: { fields: { id: true } }, -}); -create({ commitId: '', name: '' }); ``` ### IdentityProviderRegistry @@ -1199,11 +1185,6 @@ const { data: item } = useListSuspendedDatabasesRecordQuery({ selection: { fields: { id: true, name: true, ownerId: true, suspendedAt: true, suspendedReason: true } }, }); -// Create a listSuspendedDatabasesRecord -const { mutate: create } = useCreateListSuspendedDatabasesRecordMutation({ - selection: { fields: { id: true } }, -}); -create({ name: '', ownerId: '', suspendedAt: '', suspendedReason: '' }); ``` ### ManagedDomain @@ -1295,20 +1276,20 @@ create({ databaseId: '', interval: '', isParented: '', na ```typescript // List all platformApis const { data, isLoading } = usePlatformApisQuery({ - selection: { fields: { anonRole: true, config: true, createdAt: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }, + selection: { fields: { anonRole: true, config: true, createdAt: true, id: true, isPublished: true, name: true, roleName: true, serviceHostname: true, updatedAt: true } }, }); // Get one platformApi const { data: item } = usePlatformApiQuery({ id: '', - selection: { fields: { anonRole: true, config: true, createdAt: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }, + selection: { fields: { anonRole: true, config: true, createdAt: true, id: true, isPublished: true, name: true, roleName: true, serviceHostname: true, updatedAt: true } }, }); // Create a platformApi const { mutate: create } = useCreatePlatformApiMutation({ selection: { fields: { id: true } }, }); -create({ anonRole: '', config: '', dbname: '', isPublished: '', name: '', roleName: '' }); +create({ anonRole: '', config: '', isPublished: '', name: '', roleName: '' }); ``` ### PlatformApiSchema @@ -1337,20 +1318,20 @@ create({ apiId: '', schemaId: '' }); ```typescript // List all platformApiSettings const { data, isLoading } = usePlatformApiSettingsQuery({ - selection: { fields: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }, + selection: { fields: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }, }); // Get one platformApiSetting const { data: item } = usePlatformApiSettingQuery({ id: '', - selection: { fields: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }, + selection: { fields: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }, }); // Create a platformApiSetting const { mutate: create } = useCreatePlatformApiSettingMutation({ selection: { fields: { id: true } }, }); -create({ apiId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }); +create({ apiId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }); ``` ### PlatformCorsSetting @@ -1508,11 +1489,6 @@ const { data, isLoading } = usePlatformGetSitePreviewsQuery({ selection: { fields: { commitId: true, name: true } }, }); -// Create a platformGetSitePreviewsRecord -const { mutate: create } = useCreatePlatformGetSitePreviewsRecordMutation({ - selection: { fields: { id: true } }, -}); -create({ commitId: '', name: '' }); ``` ### PlatformManagedDomain @@ -1557,6 +1533,27 @@ const { mutate: create } = useCreatePlatformPageMutation({ create({ commitId: '', content: '', seededFrom: '', siteId: '', slug: '', storeId: '' }); ``` +### PlatformReservedSubdomain + +```typescript +// List all platformReservedSubdomains +const { data, isLoading } = usePlatformReservedSubdomainsQuery({ + selection: { fields: { createdAt: true, createdByPrincipal: true, id: true, label: true, match: true, reason: true, updatedAt: true, updatedByPrincipal: true } }, +}); + +// Get one platformReservedSubdomain +const { data: item } = usePlatformReservedSubdomainQuery({ + id: '', + selection: { fields: { createdAt: true, createdByPrincipal: true, id: true, label: true, match: true, reason: true, updatedAt: true, updatedByPrincipal: true } }, +}); + +// Create a platformReservedSubdomain +const { mutate: create } = useCreatePlatformReservedSubdomainMutation({ + selection: { fields: { id: true } }, +}); +create({ createdByPrincipal: '', label: '', match: '', reason: '', updatedByPrincipal: '' }); +``` + ### PlatformSiteAppLink ```typescript @@ -2138,11 +2135,6 @@ const { data: item } = useSqlActionQuery({ selection: { fields: { actionId: true, actionName: true, actorId: true, content: true, createdAt: true, databaseId: true, deploy: true, deps: true, id: true, name: true, payload: true, revert: true, verify: true } }, }); -// Create a sqlAction -const { mutate: create } = useCreateSqlActionMutation({ - selection: { fields: { id: true } }, -}); -create({ actionId: '', actionName: '', actorId: '', content: '', databaseId: '', deploy: '', deps: '', name: '', payload: '', revert: '', verify: '' }); ``` ### TableBehavior @@ -2420,17 +2412,6 @@ create({ attestationType: '', challengeExpirySeconds: '', creden ## Custom Operation Hooks -### `useApiSchemaNamesQuery` - -apiSchemaNames - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `targetApiId` | UUID | - ### `useApplyRegistryDefaultsQuery` applyRegistryDefaults @@ -2557,42 +2538,6 @@ platformVerifySitePreviewToken | `siteId` | UUID | | `token` | String | -### `useResolveDeepLinkQuery` - -resolveDeepLink - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `linkSlug` | String | - | `targetSiteId` | UUID | - -### `useResolveRouteQuery` - -resolveRoute - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `requestHost` | String | - | `requestMethod` | String | - | `requestPath` | String | - -### `useResolveSiteAppLinksQuery` - -resolveSiteAppLinks - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `targetSiteId` | UUID | - ### `useSitesDeepLinkUrlQuery` sitesDeepLinkUrl diff --git a/sdk/constructive-react/src/api/hooks/index.ts b/sdk/constructive-react/src/api/hooks/index.ts index e69ef19c9e..71e1007a30 100644 --- a/sdk/constructive-react/src/api/hooks/index.ts +++ b/sdk/constructive-react/src/api/hooks/index.ts @@ -2,7 +2,7 @@ * GraphQL SDK * @generated by @constructive-io/graphql-codegen * - * Tables: Api, ApiSchema, ApiSetting, AstMigration, CheckConstraint, CompositeType, CorsSetting, Database, DatabaseSetting, DatabaseTransfer, DefaultPrivilege, Derive, Domain, DomainEvent, DomainType, DomainVerification, EmailIdentity, EmailProviderAccount, EmailSiteIdentity, EmbeddingChunk, Enum, ExclusionConstraint, FieldBehavior, Field, ForeignKeyConstraintBehavior, ForeignKeyConstraint, FullTextSearch, Function, GetSitePreviewsRecord, IdentityProviderRegistry, Index, ListSuspendedDatabasesRecord, ManagedDomain, NodeTypeRegistry, Page, Partition, PlatformApi, PlatformApiSchema, PlatformApiSetting, PlatformCorsSetting, PlatformDomain, PlatformDomainEvent, PlatformDomainVerification, PlatformEmailIdentity, PlatformEmailProviderAccount, PlatformEmailSiteIdentity, PlatformGetSitePreviewsRecord, PlatformManagedDomain, PlatformPage, PlatformSiteAppLink, PlatformSite, PlatformSiteDeepLink, PlatformSiteErrorPage, PlatformSiteMetadatum, PlatformSiteModule, PlatformSiteRelease, PlatformSiteTheme, PlatformSiteWebConfig, Policy, PrimaryKeyConstraint, PubkeySetting, Redirect, RlsSetting, Route, Schema, SchemaGrant, SiteAppLink, Site, SiteDeepLink, SiteErrorPage, SiteMetadatum, SiteModule, SiteRelease, SiteTheme, SiteWebConfig, SpatialRelation, SqlAction, TableBehavior, Table, TableGrant, Trigger, TriggerFunction, UniqueConstraintBehavior, UniqueConstraint, ViewBehavior, View, ViewGrant, ViewRule, ViewTable, WebauthnSetting + * Tables: Api, ApiSchema, ApiSetting, AstMigration, CheckConstraint, CompositeType, CorsSetting, Database, DatabaseSetting, DatabaseTransfer, DefaultPrivilege, Derive, Domain, DomainEvent, DomainType, DomainVerification, EmailIdentity, EmailProviderAccount, EmailSiteIdentity, EmbeddingChunk, Enum, ExclusionConstraint, FieldBehavior, Field, ForeignKeyConstraintBehavior, ForeignKeyConstraint, FullTextSearch, Function, GetSitePreviewsRecord, IdentityProviderRegistry, Index, ListSuspendedDatabasesRecord, ManagedDomain, NodeTypeRegistry, Page, Partition, PlatformApi, PlatformApiSchema, PlatformApiSetting, PlatformCorsSetting, PlatformDomain, PlatformDomainEvent, PlatformDomainVerification, PlatformEmailIdentity, PlatformEmailProviderAccount, PlatformEmailSiteIdentity, PlatformGetSitePreviewsRecord, PlatformManagedDomain, PlatformPage, PlatformReservedSubdomain, PlatformSiteAppLink, PlatformSite, PlatformSiteDeepLink, PlatformSiteErrorPage, PlatformSiteMetadatum, PlatformSiteModule, PlatformSiteRelease, PlatformSiteTheme, PlatformSiteWebConfig, Policy, PrimaryKeyConstraint, PubkeySetting, Redirect, RlsSetting, Route, Schema, SchemaGrant, SiteAppLink, Site, SiteDeepLink, SiteErrorPage, SiteMetadatum, SiteModule, SiteRelease, SiteTheme, SiteWebConfig, SpatialRelation, SqlAction, TableBehavior, Table, TableGrant, Trigger, TriggerFunction, UniqueConstraintBehavior, UniqueConstraint, ViewBehavior, View, ViewGrant, ViewRule, ViewTable, WebauthnSetting * * Usage: * diff --git a/sdk/constructive-react/src/api/hooks/invalidation.ts b/sdk/constructive-react/src/api/hooks/invalidation.ts index 64a35bc6ca..37608f665a 100644 --- a/sdk/constructive-react/src/api/hooks/invalidation.ts +++ b/sdk/constructive-react/src/api/hooks/invalidation.ts @@ -64,6 +64,7 @@ import { platformGetSitePreviewsRecordKeys, platformManagedDomainKeys, platformPageKeys, + platformReservedSubdomainKeys, platformSiteAppLinkKeys, platformSiteKeys, platformSiteDeepLinkKeys, @@ -934,6 +935,23 @@ export const invalidate = { queryKey: platformPageKeys.detail(id), }), }, + /** Invalidate platformReservedSubdomain queries */ platformReservedSubdomain: { + /** Invalidate all platformReservedSubdomain queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformReservedSubdomainKeys.all, + }), + /** Invalidate platformReservedSubdomain list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformReservedSubdomainKeys.lists(), + }), + /** Invalidate a specific platformReservedSubdomain */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: platformReservedSubdomainKeys.detail(id), + }), + }, /** Invalidate platformSiteAppLink queries */ platformSiteAppLink: { /** Invalidate all platformSiteAppLink queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -1976,6 +1994,14 @@ export const remove = { queryKey: platformPageKeys.detail(id), }); }, + /** Remove platformReservedSubdomain from cache */ platformReservedSubdomain: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: platformReservedSubdomainKeys.detail(id), + }); + }, /** Remove platformSiteAppLink from cache */ platformSiteAppLink: ( queryClient: QueryClient, id: string | number diff --git a/sdk/constructive-react/src/api/hooks/mutation-keys.ts b/sdk/constructive-react/src/api/hooks/mutation-keys.ts index 8f71c0e390..f856c54a5f 100644 --- a/sdk/constructive-react/src/api/hooks/mutation-keys.ts +++ b/sdk/constructive-react/src/api/hooks/mutation-keys.ts @@ -476,6 +476,18 @@ export const platformPageMutationKeys = { /** Delete platformPage mutation key */ delete: (id: string | number) => ['mutation', 'platformpage', 'delete', id] as const, } as const; +export const platformReservedSubdomainMutationKeys = { + /** All platformReservedSubdomain mutation keys */ all: [ + 'mutation', + 'platformreservedsubdomain', + ] as const, + /** Create platformReservedSubdomain mutation key */ create: () => + ['mutation', 'platformreservedsubdomain', 'create'] as const, + /** Update platformReservedSubdomain mutation key */ update: (id: string | number) => + ['mutation', 'platformreservedsubdomain', 'update', id] as const, + /** Delete platformReservedSubdomain mutation key */ delete: (id: string | number) => + ['mutation', 'platformreservedsubdomain', 'delete', id] as const, +} as const; export const platformSiteAppLinkMutationKeys = { /** All platformSiteAppLink mutation keys */ all: ['mutation', 'platformsiteapplink'] as const, /** Create platformSiteAppLink mutation key */ create: () => @@ -1072,6 +1084,7 @@ export const mutationKeys = { platformGetSitePreviewsRecord: platformGetSitePreviewsRecordMutationKeys, platformManagedDomain: platformManagedDomainMutationKeys, platformPage: platformPageMutationKeys, + platformReservedSubdomain: platformReservedSubdomainMutationKeys, platformSiteAppLink: platformSiteAppLinkMutationKeys, platformSite: platformSiteMutationKeys, platformSiteDeepLink: platformSiteDeepLinkMutationKeys, diff --git a/sdk/constructive-react/src/api/hooks/mutations/index.ts b/sdk/constructive-react/src/api/hooks/mutations/index.ts index 213cbbadd2..f98b70db38 100644 --- a/sdk/constructive-react/src/api/hooks/mutations/index.ts +++ b/sdk/constructive-react/src/api/hooks/mutations/index.ts @@ -12,7 +12,6 @@ export * from './useDeleteApiSchemaMutation'; export * from './useCreateApiSettingMutation'; export * from './useUpdateApiSettingMutation'; export * from './useDeleteApiSettingMutation'; -export * from './useCreateAstMigrationMutation'; export * from './useCreateCheckConstraintMutation'; export * from './useUpdateCheckConstraintMutation'; export * from './useDeleteCheckConstraintMutation'; @@ -85,14 +84,12 @@ export * from './useDeleteFullTextSearchMutation'; export * from './useCreateFunctionMutation'; export * from './useUpdateFunctionMutation'; export * from './useDeleteFunctionMutation'; -export * from './useCreateGetSitePreviewsRecordMutation'; export * from './useCreateIdentityProviderRegistryMutation'; export * from './useUpdateIdentityProviderRegistryMutation'; export * from './useDeleteIdentityProviderRegistryMutation'; export * from './useCreateIndexMutation'; export * from './useUpdateIndexMutation'; export * from './useDeleteIndexMutation'; -export * from './useCreateListSuspendedDatabasesRecordMutation'; export * from './useCreateManagedDomainMutation'; export * from './useUpdateManagedDomainMutation'; export * from './useDeleteManagedDomainMutation'; @@ -135,13 +132,15 @@ export * from './useDeletePlatformEmailProviderAccountMutation'; export * from './useCreatePlatformEmailSiteIdentityMutation'; export * from './useUpdatePlatformEmailSiteIdentityMutation'; export * from './useDeletePlatformEmailSiteIdentityMutation'; -export * from './useCreatePlatformGetSitePreviewsRecordMutation'; export * from './useCreatePlatformManagedDomainMutation'; export * from './useUpdatePlatformManagedDomainMutation'; export * from './useDeletePlatformManagedDomainMutation'; export * from './useCreatePlatformPageMutation'; export * from './useUpdatePlatformPageMutation'; export * from './useDeletePlatformPageMutation'; +export * from './useCreatePlatformReservedSubdomainMutation'; +export * from './useUpdatePlatformReservedSubdomainMutation'; +export * from './useDeletePlatformReservedSubdomainMutation'; export * from './useCreatePlatformSiteAppLinkMutation'; export * from './useUpdatePlatformSiteAppLinkMutation'; export * from './useDeletePlatformSiteAppLinkMutation'; @@ -223,7 +222,6 @@ export * from './useDeleteSiteWebConfigMutation'; export * from './useCreateSpatialRelationMutation'; export * from './useUpdateSpatialRelationMutation'; export * from './useDeleteSpatialRelationMutation'; -export * from './useCreateSqlActionMutation'; export * from './useCreateTableBehaviorMutation'; export * from './useUpdateTableBehaviorMutation'; export * from './useDeleteTableBehaviorMutation'; diff --git a/sdk/constructive-react/src/api/hooks/mutations/useCreateAstMigrationMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateAstMigrationMutation.ts deleted file mode 100644 index 7f9caacb12..0000000000 --- a/sdk/constructive-react/src/api/hooks/mutations/useCreateAstMigrationMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Create mutation hook for AstMigration - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { astMigrationKeys } from '../query-keys'; -import { astMigrationMutationKeys } from '../mutation-keys'; -import type { - AstMigrationSelect, - AstMigrationWithRelations, - CreateAstMigrationInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AstMigrationSelect, - AstMigrationWithRelations, - CreateAstMigrationInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a AstMigration - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateAstMigrationMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateAstMigrationMutation( - params: { - selection: { - fields: S & AstMigrationSelect; - } & HookStrictSelect, AstMigrationSelect>; - } & Omit< - UseMutationOptions< - { - createAstMigration: { - astMigration: InferSelectResult; - }; - }, - Error, - CreateAstMigrationInput['astMigration'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createAstMigration: { - astMigration: InferSelectResult; - }; - }, - Error, - CreateAstMigrationInput['astMigration'] ->; -export function useCreateAstMigrationMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: astMigrationMutationKeys.create(), - mutationFn: (data: CreateAstMigrationInput['astMigration']) => - getClient() - .astMigration.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: astMigrationKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useCreateGetSitePreviewsRecordMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateGetSitePreviewsRecordMutation.ts deleted file mode 100644 index a4db420795..0000000000 --- a/sdk/constructive-react/src/api/hooks/mutations/useCreateGetSitePreviewsRecordMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Create mutation hook for GetSitePreviewsRecord - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { getSitePreviewsRecordKeys } from '../query-keys'; -import { getSitePreviewsRecordMutationKeys } from '../mutation-keys'; -import type { - GetSitePreviewsRecordSelect, - GetSitePreviewsRecordWithRelations, - CreateGetSitePreviewsRecordInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - GetSitePreviewsRecordSelect, - GetSitePreviewsRecordWithRelations, - CreateGetSitePreviewsRecordInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a GetSitePreviewsRecord - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateGetSitePreviewsRecordMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateGetSitePreviewsRecordMutation( - params: { - selection: { - fields: S & GetSitePreviewsRecordSelect; - } & HookStrictSelect, GetSitePreviewsRecordSelect>; - } & Omit< - UseMutationOptions< - { - createGetSitePreviewsRecord: { - getSitePreviewsRecord: InferSelectResult; - }; - }, - Error, - CreateGetSitePreviewsRecordInput['getSitePreviewsRecord'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createGetSitePreviewsRecord: { - getSitePreviewsRecord: InferSelectResult; - }; - }, - Error, - CreateGetSitePreviewsRecordInput['getSitePreviewsRecord'] ->; -export function useCreateGetSitePreviewsRecordMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: getSitePreviewsRecordMutationKeys.create(), - mutationFn: (data: CreateGetSitePreviewsRecordInput['getSitePreviewsRecord']) => - getClient() - .getSitePreviewsRecord.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: getSitePreviewsRecordKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useCreateListSuspendedDatabasesRecordMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateListSuspendedDatabasesRecordMutation.ts deleted file mode 100644 index c8eb955473..0000000000 --- a/sdk/constructive-react/src/api/hooks/mutations/useCreateListSuspendedDatabasesRecordMutation.ts +++ /dev/null @@ -1,100 +0,0 @@ -/** - * Create mutation hook for ListSuspendedDatabasesRecord - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { listSuspendedDatabasesRecordKeys } from '../query-keys'; -import { listSuspendedDatabasesRecordMutationKeys } from '../mutation-keys'; -import type { - ListSuspendedDatabasesRecordSelect, - ListSuspendedDatabasesRecordWithRelations, - CreateListSuspendedDatabasesRecordInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - ListSuspendedDatabasesRecordSelect, - ListSuspendedDatabasesRecordWithRelations, - CreateListSuspendedDatabasesRecordInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a ListSuspendedDatabasesRecord - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateListSuspendedDatabasesRecordMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateListSuspendedDatabasesRecordMutation< - S extends ListSuspendedDatabasesRecordSelect, ->( - params: { - selection: { - fields: S & ListSuspendedDatabasesRecordSelect; - } & HookStrictSelect, ListSuspendedDatabasesRecordSelect>; - } & Omit< - UseMutationOptions< - { - createListSuspendedDatabasesRecord: { - listSuspendedDatabasesRecord: InferSelectResult< - ListSuspendedDatabasesRecordWithRelations, - S - >; - }; - }, - Error, - CreateListSuspendedDatabasesRecordInput['listSuspendedDatabasesRecord'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createListSuspendedDatabasesRecord: { - listSuspendedDatabasesRecord: InferSelectResult; - }; - }, - Error, - CreateListSuspendedDatabasesRecordInput['listSuspendedDatabasesRecord'] ->; -export function useCreateListSuspendedDatabasesRecordMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - CreateListSuspendedDatabasesRecordInput['listSuspendedDatabasesRecord'] - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: listSuspendedDatabasesRecordMutationKeys.create(), - mutationFn: (data: CreateListSuspendedDatabasesRecordInput['listSuspendedDatabasesRecord']) => - getClient() - .listSuspendedDatabasesRecord.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: listSuspendedDatabasesRecordKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useCreatePlatformGetSitePreviewsRecordMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreatePlatformGetSitePreviewsRecordMutation.ts deleted file mode 100644 index c2f3e8c5c5..0000000000 --- a/sdk/constructive-react/src/api/hooks/mutations/useCreatePlatformGetSitePreviewsRecordMutation.ts +++ /dev/null @@ -1,103 +0,0 @@ -/** - * Create mutation hook for PlatformGetSitePreviewsRecord - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformGetSitePreviewsRecordKeys } from '../query-keys'; -import { platformGetSitePreviewsRecordMutationKeys } from '../mutation-keys'; -import type { - PlatformGetSitePreviewsRecordSelect, - PlatformGetSitePreviewsRecordWithRelations, - CreatePlatformGetSitePreviewsRecordInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - PlatformGetSitePreviewsRecordSelect, - PlatformGetSitePreviewsRecordWithRelations, - CreatePlatformGetSitePreviewsRecordInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a PlatformGetSitePreviewsRecord - * - * @example - * ```tsx - * const { mutate, isPending } = useCreatePlatformGetSitePreviewsRecordMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreatePlatformGetSitePreviewsRecordMutation< - S extends PlatformGetSitePreviewsRecordSelect, ->( - params: { - selection: { - fields: S & PlatformGetSitePreviewsRecordSelect; - } & HookStrictSelect, PlatformGetSitePreviewsRecordSelect>; - } & Omit< - UseMutationOptions< - { - createPlatformGetSitePreviewsRecord: { - platformGetSitePreviewsRecord: InferSelectResult< - PlatformGetSitePreviewsRecordWithRelations, - S - >; - }; - }, - Error, - CreatePlatformGetSitePreviewsRecordInput['platformGetSitePreviewsRecord'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createPlatformGetSitePreviewsRecord: { - platformGetSitePreviewsRecord: InferSelectResult< - PlatformGetSitePreviewsRecordWithRelations, - S - >; - }; - }, - Error, - CreatePlatformGetSitePreviewsRecordInput['platformGetSitePreviewsRecord'] ->; -export function useCreatePlatformGetSitePreviewsRecordMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - CreatePlatformGetSitePreviewsRecordInput['platformGetSitePreviewsRecord'] - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: platformGetSitePreviewsRecordMutationKeys.create(), - mutationFn: (data: CreatePlatformGetSitePreviewsRecordInput['platformGetSitePreviewsRecord']) => - getClient() - .platformGetSitePreviewsRecord.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: platformGetSitePreviewsRecordKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useCreatePlatformReservedSubdomainMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreatePlatformReservedSubdomainMutation.ts new file mode 100644 index 0000000000..0f4e41e3bc --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/mutations/useCreatePlatformReservedSubdomainMutation.ts @@ -0,0 +1,97 @@ +/** + * Subdomain labels no tenant may claim under a platform apex + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { platformReservedSubdomainKeys } from '../query-keys'; +import { platformReservedSubdomainMutationKeys } from '../mutation-keys'; +import type { + PlatformReservedSubdomainSelect, + PlatformReservedSubdomainWithRelations, + CreatePlatformReservedSubdomainInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformReservedSubdomainSelect, + PlatformReservedSubdomainWithRelations, + CreatePlatformReservedSubdomainInput, +} from '../../orm/input-types'; +/** + * Subdomain labels no tenant may claim under a platform apex + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePlatformReservedSubdomainMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePlatformReservedSubdomainMutation< + S extends PlatformReservedSubdomainSelect, +>( + params: { + selection: { + fields: S & PlatformReservedSubdomainSelect; + } & HookStrictSelect, PlatformReservedSubdomainSelect>; + } & Omit< + UseMutationOptions< + { + createPlatformReservedSubdomain: { + platformReservedSubdomain: InferSelectResult; + }; + }, + Error, + CreatePlatformReservedSubdomainInput['platformReservedSubdomain'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPlatformReservedSubdomain: { + platformReservedSubdomain: InferSelectResult; + }; + }, + Error, + CreatePlatformReservedSubdomainInput['platformReservedSubdomain'] +>; +export function useCreatePlatformReservedSubdomainMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + CreatePlatformReservedSubdomainInput['platformReservedSubdomain'] + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformReservedSubdomainMutationKeys.create(), + mutationFn: (data: CreatePlatformReservedSubdomainInput['platformReservedSubdomain']) => + getClient() + .platformReservedSubdomain.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: platformReservedSubdomainKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useCreateSqlActionMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateSqlActionMutation.ts deleted file mode 100644 index d8eaa7564f..0000000000 --- a/sdk/constructive-react/src/api/hooks/mutations/useCreateSqlActionMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Create mutation hook for SqlAction - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { sqlActionKeys } from '../query-keys'; -import { sqlActionMutationKeys } from '../mutation-keys'; -import type { - SqlActionSelect, - SqlActionWithRelations, - CreateSqlActionInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - SqlActionSelect, - SqlActionWithRelations, - CreateSqlActionInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a SqlAction - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateSqlActionMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateSqlActionMutation( - params: { - selection: { - fields: S & SqlActionSelect; - } & HookStrictSelect, SqlActionSelect>; - } & Omit< - UseMutationOptions< - { - createSqlAction: { - sqlAction: InferSelectResult; - }; - }, - Error, - CreateSqlActionInput['sqlAction'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createSqlAction: { - sqlAction: InferSelectResult; - }; - }, - Error, - CreateSqlActionInput['sqlAction'] ->; -export function useCreateSqlActionMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: sqlActionMutationKeys.create(), - mutationFn: (data: CreateSqlActionInput['sqlAction']) => - getClient() - .sqlAction.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: sqlActionKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useDeletePlatformReservedSubdomainMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useDeletePlatformReservedSubdomainMutation.ts new file mode 100644 index 0000000000..7926f92d95 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/mutations/useDeletePlatformReservedSubdomainMutation.ts @@ -0,0 +1,106 @@ +/** + * Subdomain labels no tenant may claim under a platform apex + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { platformReservedSubdomainKeys } from '../query-keys'; +import { platformReservedSubdomainMutationKeys } from '../mutation-keys'; +import type { + PlatformReservedSubdomainSelect, + PlatformReservedSubdomainWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformReservedSubdomainSelect, + PlatformReservedSubdomainWithRelations, +} from '../../orm/input-types'; +/** + * Subdomain labels no tenant may claim under a platform apex + * + * @example + * ```tsx + * const { mutate, isPending } = useDeletePlatformReservedSubdomainMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeletePlatformReservedSubdomainMutation< + S extends PlatformReservedSubdomainSelect, +>( + params: { + selection: { + fields: S & PlatformReservedSubdomainSelect; + } & HookStrictSelect, PlatformReservedSubdomainSelect>; + } & Omit< + UseMutationOptions< + { + deletePlatformReservedSubdomain: { + platformReservedSubdomain: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deletePlatformReservedSubdomain: { + platformReservedSubdomain: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeletePlatformReservedSubdomainMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformReservedSubdomainMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .platformReservedSubdomain.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: platformReservedSubdomainKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformReservedSubdomainKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useUpdatePlatformReservedSubdomainMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useUpdatePlatformReservedSubdomainMutation.ts new file mode 100644 index 0000000000..117598d865 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/mutations/useUpdatePlatformReservedSubdomainMutation.ts @@ -0,0 +1,118 @@ +/** + * Subdomain labels no tenant may claim under a platform apex + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { platformReservedSubdomainKeys } from '../query-keys'; +import { platformReservedSubdomainMutationKeys } from '../mutation-keys'; +import type { + PlatformReservedSubdomainSelect, + PlatformReservedSubdomainWithRelations, + PlatformReservedSubdomainPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformReservedSubdomainSelect, + PlatformReservedSubdomainWithRelations, + PlatformReservedSubdomainPatch, +} from '../../orm/input-types'; +/** + * Subdomain labels no tenant may claim under a platform apex + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdatePlatformReservedSubdomainMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', platformReservedSubdomainPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdatePlatformReservedSubdomainMutation< + S extends PlatformReservedSubdomainSelect, +>( + params: { + selection: { + fields: S & PlatformReservedSubdomainSelect; + } & HookStrictSelect, PlatformReservedSubdomainSelect>; + } & Omit< + UseMutationOptions< + { + updatePlatformReservedSubdomain: { + platformReservedSubdomain: InferSelectResult; + }; + }, + Error, + { + id: string; + platformReservedSubdomainPatch: PlatformReservedSubdomainPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updatePlatformReservedSubdomain: { + platformReservedSubdomain: InferSelectResult; + }; + }, + Error, + { + id: string; + platformReservedSubdomainPatch: PlatformReservedSubdomainPatch; + } +>; +export function useUpdatePlatformReservedSubdomainMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + platformReservedSubdomainPatch: PlatformReservedSubdomainPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformReservedSubdomainMutationKeys.all, + mutationFn: ({ + id, + platformReservedSubdomainPatch, + }: { + id: string; + platformReservedSubdomainPatch: PlatformReservedSubdomainPatch; + }) => + getClient() + .platformReservedSubdomain.update({ + where: { + id, + }, + data: platformReservedSubdomainPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: platformReservedSubdomainKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformReservedSubdomainKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/api/hooks/queries/index.ts b/sdk/constructive-react/src/api/hooks/queries/index.ts index b57ad83438..0afaf213b5 100644 --- a/sdk/constructive-react/src/api/hooks/queries/index.ts +++ b/sdk/constructive-react/src/api/hooks/queries/index.ts @@ -99,6 +99,8 @@ export * from './usePlatformManagedDomainsQuery'; export * from './usePlatformManagedDomainQuery'; export * from './usePlatformPagesQuery'; export * from './usePlatformPageQuery'; +export * from './usePlatformReservedSubdomainsQuery'; +export * from './usePlatformReservedSubdomainQuery'; export * from './usePlatformSiteAppLinksQuery'; export * from './usePlatformSiteAppLinkQuery'; export * from './usePlatformSitesQuery'; @@ -181,7 +183,6 @@ export * from './useViewTablesQuery'; export * from './useViewTableQuery'; export * from './useWebauthnSettingsQuery'; export * from './useWebauthnSettingQuery'; -export * from './useApiSchemaNamesQuery'; export * from './useApplyRegistryDefaultsQuery'; export * from './useEmailSharedAccountQuery'; export * from './useGetSitePreviewCommitQuery'; @@ -193,9 +194,6 @@ export * from './usePlatformPagePublishedQuery'; export * from './usePlatformSitesDeepLinkUrlQuery'; export * from './usePlatformSitesSiteOriginQuery'; export * from './usePlatformVerifySitePreviewTokenQuery'; -export * from './useResolveDeepLinkQuery'; -export * from './useResolveRouteQuery'; -export * from './useResolveSiteAppLinksQuery'; export * from './useSitesDeepLinkUrlQuery'; export * from './useSitesSiteOriginQuery'; export * from './useVerifySitePreviewTokenQuery'; diff --git a/sdk/constructive-react/src/api/hooks/queries/useApiSchemaNamesQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useApiSchemaNamesQuery.ts deleted file mode 100644 index 1d45b38894..0000000000 --- a/sdk/constructive-react/src/api/hooks/queries/useApiSchemaNamesQuery.ts +++ /dev/null @@ -1,105 +0,0 @@ -/** - * Custom query hook for apiSchemaNames - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { customQueryKeys } from '../query-keys'; -import type { ApiSchemaNamesVariables } from '../../orm/query'; -export type { ApiSchemaNamesVariables } from '../../orm/query'; -/** Query key factory - re-exported from query-keys.ts */ -export const apiSchemaNamesQueryKey = customQueryKeys.apiSchemaNames; -/** - * Query hook for apiSchemaNames - * - * @example - * ```tsx - * const { data, isLoading } = useApiSchemaNamesQuery({ variables: { targetApiId } }); - * - * if (data?.apiSchemaNames) { - * console.log(data.apiSchemaNames); - * } - * ``` - */ -export function useApiSchemaNamesQuery< - TData = { - apiSchemaNames: unknown | null; - }, ->( - params?: { - variables?: ApiSchemaNamesVariables; - } & Omit< - UseQueryOptions< - { - apiSchemaNames: unknown | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useApiSchemaNamesQuery< - TData = { - apiSchemaNames: unknown | null; - }, ->( - params?: { - variables?: ApiSchemaNamesVariables; - } & Omit< - UseQueryOptions< - { - apiSchemaNames: unknown | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult { - const variables = params?.variables ?? {}; - const { variables: _variables, ...queryOptions } = params ?? {}; - void _variables; - return useQuery({ - queryKey: apiSchemaNamesQueryKey(variables), - queryFn: () => getClient().query.apiSchemaNames(variables).unwrap(), - ...queryOptions, - }); -} -/** - * Fetch apiSchemaNames without React hooks - * - * @example - * ```ts - * const data = await fetchApiSchemaNamesQuery({ variables: { targetApiId } }); - * ``` - */ -export async function fetchApiSchemaNamesQuery(params?: { variables?: ApiSchemaNamesVariables }) { - const variables = params?.variables ?? {}; - return getClient().query.apiSchemaNames(variables).unwrap(); -} -/** - * Prefetch apiSchemaNames for SSR or cache warming - * - * @example - * ```ts - * await prefetchApiSchemaNamesQuery(queryClient, { variables: { targetApiId } }); - * ``` - */ -export async function prefetchApiSchemaNamesQuery( - queryClient: QueryClient, - params?: { - variables?: ApiSchemaNamesVariables; - } -): Promise { - const variables = params?.variables ?? {}; - await queryClient.prefetchQuery({ - queryKey: apiSchemaNamesQueryKey(variables), - queryFn: () => getClient().query.apiSchemaNames(variables).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/api/hooks/queries/usePlatformReservedSubdomainQuery.ts b/sdk/constructive-react/src/api/hooks/queries/usePlatformReservedSubdomainQuery.ts new file mode 100644 index 0000000000..20cb32de19 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/queries/usePlatformReservedSubdomainQuery.ts @@ -0,0 +1,151 @@ +/** + * Subdomain labels no tenant may claim under a platform apex + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { platformReservedSubdomainKeys } from '../query-keys'; +import type { + PlatformReservedSubdomainSelect, + PlatformReservedSubdomainWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformReservedSubdomainSelect, + PlatformReservedSubdomainWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformReservedSubdomainQueryKey = platformReservedSubdomainKeys.detail; +/** + * Subdomain labels no tenant may claim under a platform apex + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformReservedSubdomainQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function usePlatformReservedSubdomainQuery< + S extends PlatformReservedSubdomainSelect, + TData = { + platformReservedSubdomain: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformReservedSubdomainSelect>; + } & Omit< + UseQueryOptions< + { + platformReservedSubdomain: InferSelectResult< + PlatformReservedSubdomainWithRelations, + S + > | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformReservedSubdomainQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformReservedSubdomainKeys.detail(params.id), + queryFn: () => + getClient() + .platformReservedSubdomain.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Subdomain labels no tenant may claim under a platform apex + * + * @example + * ```ts + * const data = await fetchPlatformReservedSubdomainQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchPlatformReservedSubdomainQuery< + S extends PlatformReservedSubdomainSelect, +>(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformReservedSubdomainSelect>; +}): Promise<{ + platformReservedSubdomain: InferSelectResult | null; +}>; +export async function fetchPlatformReservedSubdomainQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .platformReservedSubdomain.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Subdomain labels no tenant may claim under a platform apex + * + * @example + * ```ts + * await prefetchPlatformReservedSubdomainQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchPlatformReservedSubdomainQuery< + S extends PlatformReservedSubdomainSelect, +>( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformReservedSubdomainSelect>; + } +): Promise; +export async function prefetchPlatformReservedSubdomainQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformReservedSubdomainKeys.detail(params.id), + queryFn: () => + getClient() + .platformReservedSubdomain.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/api/hooks/queries/usePlatformReservedSubdomainsQuery.ts b/sdk/constructive-react/src/api/hooks/queries/usePlatformReservedSubdomainsQuery.ts new file mode 100644 index 0000000000..6f7cea223d --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/queries/usePlatformReservedSubdomainsQuery.ts @@ -0,0 +1,182 @@ +/** + * Subdomain labels no tenant may claim under a platform apex + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { platformReservedSubdomainKeys } from '../query-keys'; +import type { + PlatformReservedSubdomainSelect, + PlatformReservedSubdomainWithRelations, + PlatformReservedSubdomainFilter, + PlatformReservedSubdomainOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PlatformReservedSubdomainSelect, + PlatformReservedSubdomainWithRelations, + PlatformReservedSubdomainFilter, + PlatformReservedSubdomainOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformReservedSubdomainsQueryKey = platformReservedSubdomainKeys.list; +/** + * Subdomain labels no tenant may claim under a platform apex + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformReservedSubdomainsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePlatformReservedSubdomainsQuery< + S extends PlatformReservedSubdomainSelect, + TData = { + platformReservedSubdomains: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformReservedSubdomainSelect>; + } & Omit< + UseQueryOptions< + { + platformReservedSubdomains: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformReservedSubdomainsQuery( + params: { + selection: ListSelectionConfig< + PlatformReservedSubdomainSelect, + PlatformReservedSubdomainFilter, + PlatformReservedSubdomainOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + PlatformReservedSubdomainSelect, + PlatformReservedSubdomainFilter, + PlatformReservedSubdomainOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformReservedSubdomainKeys.list(args), + queryFn: () => getClient().platformReservedSubdomain.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Subdomain labels no tenant may claim under a platform apex + * + * @example + * ```ts + * const data = await fetchPlatformReservedSubdomainsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPlatformReservedSubdomainsQuery< + S extends PlatformReservedSubdomainSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformReservedSubdomainSelect>; +}): Promise<{ + platformReservedSubdomains: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchPlatformReservedSubdomainsQuery(params: { + selection: ListSelectionConfig< + PlatformReservedSubdomainSelect, + PlatformReservedSubdomainFilter, + PlatformReservedSubdomainOrderBy + >; +}) { + const args = buildListSelectionArgs< + PlatformReservedSubdomainSelect, + PlatformReservedSubdomainFilter, + PlatformReservedSubdomainOrderBy + >(params.selection); + return getClient().platformReservedSubdomain.findMany(args).unwrap(); +} +/** + * Subdomain labels no tenant may claim under a platform apex + * + * @example + * ```ts + * await prefetchPlatformReservedSubdomainsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPlatformReservedSubdomainsQuery< + S extends PlatformReservedSubdomainSelect, +>( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformReservedSubdomainSelect>; + } +): Promise; +export async function prefetchPlatformReservedSubdomainsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + PlatformReservedSubdomainSelect, + PlatformReservedSubdomainFilter, + PlatformReservedSubdomainOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + PlatformReservedSubdomainSelect, + PlatformReservedSubdomainFilter, + PlatformReservedSubdomainOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformReservedSubdomainKeys.list(args), + queryFn: () => getClient().platformReservedSubdomain.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/api/hooks/queries/useResolveDeepLinkQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useResolveDeepLinkQuery.ts deleted file mode 100644 index 61add404ea..0000000000 --- a/sdk/constructive-react/src/api/hooks/queries/useResolveDeepLinkQuery.ts +++ /dev/null @@ -1,105 +0,0 @@ -/** - * Custom query hook for resolveDeepLink - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { customQueryKeys } from '../query-keys'; -import type { ResolveDeepLinkVariables } from '../../orm/query'; -export type { ResolveDeepLinkVariables } from '../../orm/query'; -/** Query key factory - re-exported from query-keys.ts */ -export const resolveDeepLinkQueryKey = customQueryKeys.resolveDeepLink; -/** - * Query hook for resolveDeepLink - * - * @example - * ```tsx - * const { data, isLoading } = useResolveDeepLinkQuery({ variables: { linkSlug, targetSiteId } }); - * - * if (data?.resolveDeepLink) { - * console.log(data.resolveDeepLink); - * } - * ``` - */ -export function useResolveDeepLinkQuery< - TData = { - resolveDeepLink: unknown | null; - }, ->( - params?: { - variables?: ResolveDeepLinkVariables; - } & Omit< - UseQueryOptions< - { - resolveDeepLink: unknown | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useResolveDeepLinkQuery< - TData = { - resolveDeepLink: unknown | null; - }, ->( - params?: { - variables?: ResolveDeepLinkVariables; - } & Omit< - UseQueryOptions< - { - resolveDeepLink: unknown | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult { - const variables = params?.variables ?? {}; - const { variables: _variables, ...queryOptions } = params ?? {}; - void _variables; - return useQuery({ - queryKey: resolveDeepLinkQueryKey(variables), - queryFn: () => getClient().query.resolveDeepLink(variables).unwrap(), - ...queryOptions, - }); -} -/** - * Fetch resolveDeepLink without React hooks - * - * @example - * ```ts - * const data = await fetchResolveDeepLinkQuery({ variables: { linkSlug, targetSiteId } }); - * ``` - */ -export async function fetchResolveDeepLinkQuery(params?: { variables?: ResolveDeepLinkVariables }) { - const variables = params?.variables ?? {}; - return getClient().query.resolveDeepLink(variables).unwrap(); -} -/** - * Prefetch resolveDeepLink for SSR or cache warming - * - * @example - * ```ts - * await prefetchResolveDeepLinkQuery(queryClient, { variables: { linkSlug, targetSiteId } }); - * ``` - */ -export async function prefetchResolveDeepLinkQuery( - queryClient: QueryClient, - params?: { - variables?: ResolveDeepLinkVariables; - } -): Promise { - const variables = params?.variables ?? {}; - await queryClient.prefetchQuery({ - queryKey: resolveDeepLinkQueryKey(variables), - queryFn: () => getClient().query.resolveDeepLink(variables).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/api/hooks/queries/useResolveRouteQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useResolveRouteQuery.ts deleted file mode 100644 index 6986d75350..0000000000 --- a/sdk/constructive-react/src/api/hooks/queries/useResolveRouteQuery.ts +++ /dev/null @@ -1,139 +0,0 @@ -/** - * Custom query hook for resolveRoute - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { customQueryKeys } from '../query-keys'; -import type { ResolveRouteVariables } from '../../orm/query'; -import type { ResolveRouteRecordSelect, ResolveRouteRecord } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { ResolveRouteVariables } from '../../orm/query'; -export type { ResolveRouteRecordSelect } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const resolveRouteQueryKey = customQueryKeys.resolveRoute; -/** - * Query hook for resolveRoute - * - * @example - * ```tsx - * const { data, isLoading } = useResolveRouteQuery({ variables: { requestHost, requestMethod, requestPath }, selection: { fields: { id: true } } }); - * - * if (data?.resolveRoute) { - * console.log(data.resolveRoute); - * } - * ``` - */ -export function useResolveRouteQuery< - S extends ResolveRouteRecordSelect, - TData = { - resolveRoute: InferSelectResult | null; - }, ->( - params: { - variables?: ResolveRouteVariables; - selection: { - fields: S & ResolveRouteRecordSelect; - } & HookStrictSelect, ResolveRouteRecordSelect>; - } & Omit< - UseQueryOptions< - { - resolveRoute: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useResolveRouteQuery( - params: { - variables?: ResolveRouteVariables; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const variables = params.variables ?? {}; - const args = buildSelectionArgs(params.selection); - const { variables: _variables, selection: _selection, ...queryOptions } = params ?? {}; - void _variables; - void _selection; - return useQuery({ - queryKey: resolveRouteQueryKey(variables), - queryFn: () => - getClient() - .query.resolveRoute(variables, { - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Fetch resolveRoute without React hooks - * - * @example - * ```ts - * const data = await fetchResolveRouteQuery({ variables: { requestHost, requestMethod, requestPath }, selection: { fields: { id: true } } }); - * ``` - */ -export async function fetchResolveRouteQuery(params: { - variables?: ResolveRouteVariables; - selection: { - fields: S & ResolveRouteRecordSelect; - } & HookStrictSelect, ResolveRouteRecordSelect>; -}): Promise<{ - resolveRoute: InferSelectResult | null; -}>; -export async function fetchResolveRouteQuery(params: { - variables?: ResolveRouteVariables; - selection: SelectionConfig; -}) { - const variables = params.variables ?? {}; - const args = buildSelectionArgs(params.selection); - return getClient() - .query.resolveRoute(variables, { - select: args.select, - }) - .unwrap(); -} -/** - * Prefetch resolveRoute for SSR or cache warming - * - * @example - * ```ts - * await prefetchResolveRouteQuery(queryClient, { variables: { requestHost, requestMethod, requestPath }, selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchResolveRouteQuery( - queryClient: QueryClient, - params: { - variables?: ResolveRouteVariables; - selection: { - fields: S & ResolveRouteRecordSelect; - } & HookStrictSelect, ResolveRouteRecordSelect>; - } -): Promise; -export async function prefetchResolveRouteQuery( - queryClient: QueryClient, - params: { - variables?: ResolveRouteVariables; - selection: SelectionConfig; - } -): Promise { - const variables = params.variables ?? {}; - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: resolveRouteQueryKey(variables), - queryFn: () => - getClient() - .query.resolveRoute(variables, { - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/api/hooks/queries/useResolveSiteAppLinksQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useResolveSiteAppLinksQuery.ts deleted file mode 100644 index 0accd74a08..0000000000 --- a/sdk/constructive-react/src/api/hooks/queries/useResolveSiteAppLinksQuery.ts +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Custom query hook for resolveSiteAppLinks - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { customQueryKeys } from '../query-keys'; -import type { ResolveSiteAppLinksVariables } from '../../orm/query'; -export type { ResolveSiteAppLinksVariables } from '../../orm/query'; -/** Query key factory - re-exported from query-keys.ts */ -export const resolveSiteAppLinksQueryKey = customQueryKeys.resolveSiteAppLinks; -/** - * Query hook for resolveSiteAppLinks - * - * @example - * ```tsx - * const { data, isLoading } = useResolveSiteAppLinksQuery({ variables: { targetSiteId } }); - * - * if (data?.resolveSiteAppLinks) { - * console.log(data.resolveSiteAppLinks); - * } - * ``` - */ -export function useResolveSiteAppLinksQuery< - TData = { - resolveSiteAppLinks: unknown | null; - }, ->( - params?: { - variables?: ResolveSiteAppLinksVariables; - } & Omit< - UseQueryOptions< - { - resolveSiteAppLinks: unknown | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useResolveSiteAppLinksQuery< - TData = { - resolveSiteAppLinks: unknown | null; - }, ->( - params?: { - variables?: ResolveSiteAppLinksVariables; - } & Omit< - UseQueryOptions< - { - resolveSiteAppLinks: unknown | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult { - const variables = params?.variables ?? {}; - const { variables: _variables, ...queryOptions } = params ?? {}; - void _variables; - return useQuery({ - queryKey: resolveSiteAppLinksQueryKey(variables), - queryFn: () => getClient().query.resolveSiteAppLinks(variables).unwrap(), - ...queryOptions, - }); -} -/** - * Fetch resolveSiteAppLinks without React hooks - * - * @example - * ```ts - * const data = await fetchResolveSiteAppLinksQuery({ variables: { targetSiteId } }); - * ``` - */ -export async function fetchResolveSiteAppLinksQuery(params?: { - variables?: ResolveSiteAppLinksVariables; -}) { - const variables = params?.variables ?? {}; - return getClient().query.resolveSiteAppLinks(variables).unwrap(); -} -/** - * Prefetch resolveSiteAppLinks for SSR or cache warming - * - * @example - * ```ts - * await prefetchResolveSiteAppLinksQuery(queryClient, { variables: { targetSiteId } }); - * ``` - */ -export async function prefetchResolveSiteAppLinksQuery( - queryClient: QueryClient, - params?: { - variables?: ResolveSiteAppLinksVariables; - } -): Promise { - const variables = params?.variables ?? {}; - await queryClient.prefetchQuery({ - queryKey: resolveSiteAppLinksQueryKey(variables), - queryFn: () => getClient().query.resolveSiteAppLinks(variables).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/api/hooks/query-keys.ts b/sdk/constructive-react/src/api/hooks/query-keys.ts index c534c4c09a..d63b5908f6 100644 --- a/sdk/constructive-react/src/api/hooks/query-keys.ts +++ b/sdk/constructive-react/src/api/hooks/query-keys.ts @@ -465,6 +465,15 @@ export const platformPageKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...platformPageKeys.details(), id] as const, } as const; +export const platformReservedSubdomainKeys = { + /** All platformReservedSubdomain queries */ all: ['platformreservedsubdomain'] as const, + /** List query keys */ lists: () => [...platformReservedSubdomainKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...platformReservedSubdomainKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...platformReservedSubdomainKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...platformReservedSubdomainKeys.details(), id] as const, +} as const; export const platformSiteAppLinkKeys = { /** All platformSiteAppLink queries */ all: ['platformsiteapplink'] as const, /** List query keys */ lists: () => [...platformSiteAppLinkKeys.all, 'list'] as const, @@ -840,8 +849,6 @@ export const webauthnSettingKeys = { // ============================================================================ export const customQueryKeys = { - /** Query key for apiSchemaNames */ apiSchemaNames: (variables?: object) => - ['apiSchemaNames', variables] as const, /** Query key for applyRegistryDefaults */ applyRegistryDefaults: (variables?: object) => ['applyRegistryDefaults', variables] as const, /** Query key for emailSharedAccount */ emailSharedAccount: () => ['emailSharedAccount'] as const, @@ -866,12 +873,6 @@ export const customQueryKeys = { /** Query key for platformVerifySitePreviewToken */ platformVerifySitePreviewToken: ( variables?: object ) => ['platformVerifySitePreviewToken', variables] as const, - /** Query key for resolveDeepLink */ resolveDeepLink: (variables?: object) => - ['resolveDeepLink', variables] as const, - /** Query key for resolveRoute */ resolveRoute: (variables?: object) => - ['resolveRoute', variables] as const, - /** Query key for resolveSiteAppLinks */ resolveSiteAppLinks: (variables?: object) => - ['resolveSiteAppLinks', variables] as const, /** Query key for sitesDeepLinkUrl */ sitesDeepLinkUrl: (variables?: object) => ['sitesDeepLinkUrl', variables] as const, /** Query key for sitesSiteOrigin */ sitesSiteOrigin: (variables?: object) => @@ -951,6 +952,7 @@ export const queryKeys = { platformGetSitePreviewsRecord: platformGetSitePreviewsRecordKeys, platformManagedDomain: platformManagedDomainKeys, platformPage: platformPageKeys, + platformReservedSubdomain: platformReservedSubdomainKeys, platformSiteAppLink: platformSiteAppLinkKeys, platformSite: platformSiteKeys, platformSiteDeepLink: platformSiteDeepLinkKeys, diff --git a/sdk/constructive-react/src/api/orm/README.md b/sdk/constructive-react/src/api/orm/README.md index 02e465c85e..7b224670e8 100644 --- a/sdk/constructive-react/src/api/orm/README.md +++ b/sdk/constructive-react/src/api/orm/README.md @@ -24,7 +24,7 @@ const db = createClient({ | `api` | findMany, findOne, create, update, delete | | `apiSchema` | findMany, findOne, create, update, delete | | `apiSetting` | findMany, findOne, create, update, delete | -| `astMigration` | findMany, findOne, create, update, delete | +| `astMigration` | findMany, findOne, update, delete | | `checkConstraint` | findMany, findOne, create, update, delete | | `compositeType` | findMany, findOne, create, update, delete | | `corsSetting` | findMany, findOne, create, update, delete | @@ -49,10 +49,10 @@ const db = createClient({ | `foreignKeyConstraint` | findMany, findOne, create, update, delete | | `fullTextSearch` | findMany, findOne, create, update, delete | | `function` | findMany, findOne, create, update, delete | -| `getSitePreviewsRecord` | findMany, findOne, create, update, delete | +| `getSitePreviewsRecord` | findMany, findOne, update, delete | | `identityProviderRegistry` | findMany, findOne, create, update, delete | | `index` | findMany, findOne, create, update, delete | -| `listSuspendedDatabasesRecord` | findMany, findOne, create, update, delete | +| `listSuspendedDatabasesRecord` | findMany, findOne, update, delete | | `managedDomain` | findMany, findOne, create, update, delete | | `nodeTypeRegistry` | findMany, findOne, create, update, delete | | `page` | findMany, findOne, create, update, delete | @@ -67,9 +67,10 @@ const db = createClient({ | `platformEmailIdentity` | findMany, findOne, create, update, delete | | `platformEmailProviderAccount` | findMany, findOne, create, update, delete | | `platformEmailSiteIdentity` | findMany, findOne, create, update, delete | -| `platformGetSitePreviewsRecord` | findMany, findOne, create, update, delete | +| `platformGetSitePreviewsRecord` | findMany, findOne, update, delete | | `platformManagedDomain` | findMany, findOne, create, update, delete | | `platformPage` | findMany, findOne, create, update, delete | +| `platformReservedSubdomain` | findMany, findOne, create, update, delete | | `platformSiteAppLink` | findMany, findOne, create, update, delete | | `platformSite` | findMany, findOne, create, update, delete | | `platformSiteDeepLink` | findMany, findOne, create, update, delete | @@ -97,7 +98,7 @@ const db = createClient({ | `siteTheme` | findMany, findOne, create, update, delete | | `siteWebConfig` | findMany, findOne, create, update, delete | | `spatialRelation` | findMany, findOne, create, update, delete | -| `sqlAction` | findMany, findOne, create, update, delete | +| `sqlAction` | findMany, findOne, update, delete | | `tableBehavior` | findMany, findOne, create, update, delete | | `table` | findMany, findOne, create, update, delete | | `tableGrant` | findMany, findOne, create, update, delete | @@ -126,24 +127,24 @@ CRUD operations for Api records. | `config` | JSON | Yes | | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | -| `dbname` | String | Yes | | `id` | UUID | No | | `isPublished` | Boolean | Yes | | `name` | String | Yes | | `roleName` | String | Yes | +| `serviceHostname` | String | No | | `updatedAt` | Datetime | No | **Operations:** ```typescript // List all api records -const items = await db.api.findMany({ select: { anonRole: true, config: true, createdAt: true, databaseId: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }).execute(); +const items = await db.api.findMany({ select: { anonRole: true, config: true, createdAt: true, databaseId: true, id: true, isPublished: true, name: true, roleName: true, serviceHostname: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.api.findOne({ id: '', select: { anonRole: true, config: true, createdAt: true, databaseId: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }).execute(); +const item = await db.api.findOne({ id: '', select: { anonRole: true, config: true, createdAt: true, databaseId: true, id: true, isPublished: true, name: true, roleName: true, serviceHostname: true, updatedAt: true } }).execute(); // Create -const created = await db.api.create({ data: { anonRole: '', config: '', databaseId: '', dbname: '', isPublished: '', name: '', roleName: '' }, select: { id: true } }).execute(); +const created = await db.api.create({ data: { anonRole: '', config: '', databaseId: '', isPublished: '', name: '', roleName: '' }, select: { id: true } }).execute(); // Update const updated = await db.api.update({ where: { id: '' }, data: { anonRole: '' }, select: { id: true } }).execute(); @@ -200,7 +201,6 @@ CRUD operations for ApiSetting records. | `enableAggregates` | Boolean | Yes | | `enableBulk` | Boolean | Yes | | `enableConnectionFilter` | Boolean | Yes | -| `enableDirectUploads` | Boolean | Yes | | `enableI18N` | Boolean | Yes | | `enableIntrospection` | Boolean | Yes | | `enableLlm` | Boolean | Yes | @@ -229,13 +229,13 @@ CRUD operations for ApiSetting records. ```typescript // List all apiSetting records -const items = await db.apiSetting.findMany({ select: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); +const items = await db.apiSetting.findMany({ select: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.apiSetting.findOne({ id: '', select: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); +const item = await db.apiSetting.findOne({ id: '', select: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); // Create -const created = await db.apiSetting.create({ data: { apiId: '', databaseId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute(); +const created = await db.apiSetting.create({ data: { apiId: '', databaseId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute(); // Update const updated = await db.apiSetting.update({ where: { id: '' }, data: { apiId: '' }, select: { id: true } }).execute(); @@ -275,9 +275,6 @@ const items = await db.astMigration.findMany({ select: { actionId: true, actionN // Get one by id const item = await db.astMigration.findOne({ id: '', select: { actionId: true, actionName: true, actorId: true, createdAt: true, databaseId: true, deploy: true, deploys: true, id: true, name: true, payload: true, requires: true, revert: true, verify: true } }).execute(); -// Create -const created = await db.astMigration.create({ data: { actionId: '', actionName: '', actorId: '', databaseId: '', deploy: '', deploys: '', name: '', payload: '', requires: '', revert: '', verify: '' }, select: { id: true } }).execute(); - // Update const updated = await db.astMigration.update({ where: { id: '' }, data: { actionId: '' }, select: { id: true } }).execute(); @@ -414,8 +411,8 @@ CRUD operations for Database records. | `name` | String | Yes | | `ownerId` | UUID | Yes | | `platform` | Boolean | Yes | -| `suspendedAt` | Datetime | Yes | -| `suspendedReason` | String | Yes | +| `suspendedAt` | Datetime | No | +| `suspendedReason` | String | No | | `updatedAt` | Datetime | No | **Operations:** @@ -428,7 +425,7 @@ const items = await db.database.findMany({ select: { createdAt: true, hash: true const item = await db.database.findOne({ id: '', select: { createdAt: true, hash: true, id: true, label: true, name: true, ownerId: true, platform: true, suspendedAt: true, suspendedReason: true, updatedAt: true } }).execute(); // Create -const created = await db.database.create({ data: { hash: '', label: '', name: '', ownerId: '', platform: '', suspendedAt: '', suspendedReason: '' }, select: { id: true } }).execute(); +const created = await db.database.create({ data: { hash: '', label: '', name: '', ownerId: '', platform: '' }, select: { id: true } }).execute(); // Update const updated = await db.database.update({ where: { id: '' }, data: { hash: '' }, select: { id: true } }).execute(); @@ -453,7 +450,6 @@ CRUD operations for DatabaseSetting records. | `enableBilling` | Boolean | Yes | | `enableBulk` | Boolean | Yes | | `enableConnectionFilter` | Boolean | Yes | -| `enableDirectUploads` | Boolean | Yes | | `enableI18N` | Boolean | Yes | | `enableIntrospection` | Boolean | Yes | | `enableLlm` | Boolean | Yes | @@ -483,13 +479,13 @@ CRUD operations for DatabaseSetting records. ```typescript // List all databaseSetting records -const items = await db.databaseSetting.findMany({ select: { annotations: true, createdAt: true, creditsPerCent: true, databaseId: true, enableAggregates: true, enableBilling: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, labels: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); +const items = await db.databaseSetting.findMany({ select: { annotations: true, createdAt: true, creditsPerCent: true, databaseId: true, enableAggregates: true, enableBilling: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, labels: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.databaseSetting.findOne({ id: '', select: { annotations: true, createdAt: true, creditsPerCent: true, databaseId: true, enableAggregates: true, enableBilling: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, labels: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); +const item = await db.databaseSetting.findOne({ id: '', select: { annotations: true, createdAt: true, creditsPerCent: true, databaseId: true, enableAggregates: true, enableBilling: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, labels: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); // Create -const created = await db.databaseSetting.create({ data: { annotations: '', creditsPerCent: '', databaseId: '', enableAggregates: '', enableBilling: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', labels: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute(); +const created = await db.databaseSetting.create({ data: { annotations: '', creditsPerCent: '', databaseId: '', enableAggregates: '', enableBilling: '', enableBulk: '', enableConnectionFilter: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', labels: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute(); // Update const updated = await db.databaseSetting.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -1307,9 +1303,6 @@ const items = await db.getSitePreviewsRecord.findMany({ select: { commitId: true // Get one by id const item = await db.getSitePreviewsRecord.findOne({ id: '', select: { commitId: true, name: true } }).execute(); -// Create -const created = await db.getSitePreviewsRecord.create({ data: { commitId: '', name: '' }, select: { id: true } }).execute(); - // Update const updated = await db.getSitePreviewsRecord.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); @@ -1422,9 +1415,6 @@ const items = await db.listSuspendedDatabasesRecord.findMany({ select: { id: tru // Get one by id const item = await db.listSuspendedDatabasesRecord.findOne({ id: '', select: { id: true, name: true, ownerId: true, suspendedAt: true, suspendedReason: true } }).execute(); -// Create -const created = await db.listSuspendedDatabasesRecord.create({ data: { name: '', ownerId: '', suspendedAt: '', suspendedReason: '' }, select: { id: true } }).execute(); - // Update const updated = await db.listSuspendedDatabasesRecord.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); @@ -1601,24 +1591,24 @@ CRUD operations for PlatformApi records. | `anonRole` | String | Yes | | `config` | JSON | Yes | | `createdAt` | Datetime | No | -| `dbname` | String | Yes | | `id` | UUID | No | | `isPublished` | Boolean | Yes | | `name` | String | Yes | | `roleName` | String | Yes | +| `serviceHostname` | String | No | | `updatedAt` | Datetime | No | **Operations:** ```typescript // List all platformApi records -const items = await db.platformApi.findMany({ select: { anonRole: true, config: true, createdAt: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }).execute(); +const items = await db.platformApi.findMany({ select: { anonRole: true, config: true, createdAt: true, id: true, isPublished: true, name: true, roleName: true, serviceHostname: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.platformApi.findOne({ id: '', select: { anonRole: true, config: true, createdAt: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }).execute(); +const item = await db.platformApi.findOne({ id: '', select: { anonRole: true, config: true, createdAt: true, id: true, isPublished: true, name: true, roleName: true, serviceHostname: true, updatedAt: true } }).execute(); // Create -const created = await db.platformApi.create({ data: { anonRole: '', config: '', dbname: '', isPublished: '', name: '', roleName: '' }, select: { id: true } }).execute(); +const created = await db.platformApi.create({ data: { anonRole: '', config: '', isPublished: '', name: '', roleName: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformApi.update({ where: { id: '' }, data: { anonRole: '' }, select: { id: true } }).execute(); @@ -1673,7 +1663,6 @@ CRUD operations for PlatformApiSetting records. | `enableAggregates` | Boolean | Yes | | `enableBulk` | Boolean | Yes | | `enableConnectionFilter` | Boolean | Yes | -| `enableDirectUploads` | Boolean | Yes | | `enableI18N` | Boolean | Yes | | `enableIntrospection` | Boolean | Yes | | `enableLlm` | Boolean | Yes | @@ -1702,13 +1691,13 @@ CRUD operations for PlatformApiSetting records. ```typescript // List all platformApiSetting records -const items = await db.platformApiSetting.findMany({ select: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); +const items = await db.platformApiSetting.findMany({ select: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.platformApiSetting.findOne({ id: '', select: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); +const item = await db.platformApiSetting.findOne({ id: '', select: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); // Create -const created = await db.platformApiSetting.create({ data: { apiId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute(); +const created = await db.platformApiSetting.create({ data: { apiId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformApiSetting.update({ where: { id: '' }, data: { apiId: '' }, select: { id: true } }).execute(); @@ -2010,9 +1999,6 @@ const items = await db.platformGetSitePreviewsRecord.findMany({ select: { commit // Get one by id const item = await db.platformGetSitePreviewsRecord.findOne({ id: '', select: { commitId: true, name: true } }).execute(); -// Create -const created = await db.platformGetSitePreviewsRecord.create({ data: { commitId: '', name: '' }, select: { id: true } }).execute(); - // Update const updated = await db.platformGetSitePreviewsRecord.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); @@ -2100,6 +2086,42 @@ const updated = await db.platformPage.update({ where: { id: '' }, data: { const deleted = await db.platformPage.delete({ where: { id: '' } }).execute(); ``` +### `db.platformReservedSubdomain` + +CRUD operations for PlatformReservedSubdomain records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | +| `id` | UUID | No | +| `label` | String | Yes | +| `match` | String | Yes | +| `reason` | String | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformReservedSubdomain records +const items = await db.platformReservedSubdomain.findMany({ select: { createdAt: true, createdByPrincipal: true, id: true, label: true, match: true, reason: true, updatedAt: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.platformReservedSubdomain.findOne({ id: '', select: { createdAt: true, createdByPrincipal: true, id: true, label: true, match: true, reason: true, updatedAt: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.platformReservedSubdomain.create({ data: { createdByPrincipal: '', label: '', match: '', reason: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformReservedSubdomain.update({ where: { id: '' }, data: { createdByPrincipal: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformReservedSubdomain.delete({ where: { id: '' } }).execute(); +``` + ### `db.platformSiteAppLink` CRUD operations for PlatformSiteAppLink records. @@ -2258,14 +2280,22 @@ CRUD operations for PlatformSiteMetadatum records. | Field | Type | Editable | |-------|------|----------| | `appleTouchIcon` | ConstructiveInternalTypeImage | Yes | +| `appleTouchIconUrl` | String | No | +| `appleTouchIconVersions` | FileVersion | No | | `canonicalUrl` | String | Yes | | `commitId` | UUID | Yes | | `createdAt` | Datetime | No | | `description` | String | Yes | | `favicon` | ConstructiveInternalTypeImage | Yes | +| `faviconUrl` | String | No | +| `faviconVersions` | FileVersion | No | | `id` | UUID | No | | `logo` | ConstructiveInternalTypeImage | Yes | +| `logoUrl` | String | No | +| `logoVersions` | FileVersion | No | | `ogImage` | ConstructiveInternalTypeImage | Yes | +| `ogImageUrl` | String | No | +| `ogImageVersions` | FileVersion | No | | `robots` | String | Yes | | `robotsSeededFrom` | JSON | Yes | | `siteId` | UUID | Yes | @@ -2926,15 +2956,23 @@ CRUD operations for SiteMetadatum records. | Field | Type | Editable | |-------|------|----------| | `appleTouchIcon` | ConstructiveInternalTypeImage | Yes | +| `appleTouchIconUrl` | String | No | +| `appleTouchIconVersions` | FileVersion | No | | `canonicalUrl` | String | Yes | | `commitId` | UUID | Yes | | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | | `description` | String | Yes | | `favicon` | ConstructiveInternalTypeImage | Yes | +| `faviconUrl` | String | No | +| `faviconVersions` | FileVersion | No | | `id` | UUID | No | | `logo` | ConstructiveInternalTypeImage | Yes | +| `logoUrl` | String | No | +| `logoVersions` | FileVersion | No | | `ogImage` | ConstructiveInternalTypeImage | Yes | +| `ogImageUrl` | String | No | +| `ogImageVersions` | FileVersion | No | | `robots` | String | Yes | | `robotsSeededFrom` | JSON | Yes | | `siteId` | UUID | Yes | @@ -3181,9 +3219,6 @@ const items = await db.sqlAction.findMany({ select: { actionId: true, actionName // Get one by id const item = await db.sqlAction.findOne({ id: '', select: { actionId: true, actionName: true, actorId: true, content: true, createdAt: true, databaseId: true, deploy: true, deps: true, id: true, name: true, payload: true, revert: true, verify: true } }).execute(); -// Create -const created = await db.sqlAction.create({ data: { actionId: '', actionName: '', actorId: '', content: '', databaseId: '', deploy: '', deps: '', name: '', payload: '', revert: '', verify: '' }, select: { id: true } }).execute(); - // Update const updated = await db.sqlAction.update({ where: { id: '' }, data: { actionId: '' }, select: { id: true } }).execute(); @@ -3706,21 +3741,6 @@ const deleted = await db.webauthnSetting.delete({ where: { id: '' } }).exe ## Custom Operations -### `db.query.apiSchemaNames` - -apiSchemaNames - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `targetApiId` | UUID | - -```typescript -const result = await db.query.apiSchemaNames({ targetApiId: '' }).execute(); -``` - ### `db.query.applyRegistryDefaults` applyRegistryDefaults @@ -3891,54 +3911,6 @@ platformVerifySitePreviewToken const result = await db.query.platformVerifySitePreviewToken({ siteId: '', token: '' }).execute(); ``` -### `db.query.resolveDeepLink` - -resolveDeepLink - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `linkSlug` | String | - | `targetSiteId` | UUID | - -```typescript -const result = await db.query.resolveDeepLink({ linkSlug: '', targetSiteId: '' }).execute(); -``` - -### `db.query.resolveRoute` - -resolveRoute - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `requestHost` | String | - | `requestMethod` | String | - | `requestPath` | String | - -```typescript -const result = await db.query.resolveRoute({ requestHost: '', requestMethod: '', requestPath: '' }).execute(); -``` - -### `db.query.resolveSiteAppLinks` - -resolveSiteAppLinks - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `targetSiteId` | UUID | - -```typescript -const result = await db.query.resolveSiteAppLinks({ targetSiteId: '' }).execute(); -``` - ### `db.query.sitesDeepLinkUrl` sitesDeepLinkUrl diff --git a/sdk/constructive-react/src/api/orm/index.ts b/sdk/constructive-react/src/api/orm/index.ts index 038b8785ac..eb190bc93d 100644 --- a/sdk/constructive-react/src/api/orm/index.ts +++ b/sdk/constructive-react/src/api/orm/index.ts @@ -54,6 +54,7 @@ import { PlatformEmailSiteIdentityModel } from './models/platformEmailSiteIdenti import { PlatformGetSitePreviewsRecordModel } from './models/platformGetSitePreviewsRecord'; import { PlatformManagedDomainModel } from './models/platformManagedDomain'; import { PlatformPageModel } from './models/platformPage'; +import { PlatformReservedSubdomainModel } from './models/platformReservedSubdomain'; import { PlatformSiteAppLinkModel } from './models/platformSiteAppLink'; import { PlatformSiteModel } from './models/platformSite'; import { PlatformSiteDeepLinkModel } from './models/platformSiteDeepLink'; @@ -179,6 +180,7 @@ export function createClient(config: OrmClientConfig) { platformGetSitePreviewsRecord: new PlatformGetSitePreviewsRecordModel(client), platformManagedDomain: new PlatformManagedDomainModel(client), platformPage: new PlatformPageModel(client), + platformReservedSubdomain: new PlatformReservedSubdomainModel(client), platformSiteAppLink: new PlatformSiteAppLinkModel(client), platformSite: new PlatformSiteModel(client), platformSiteDeepLink: new PlatformSiteDeepLinkModel(client), diff --git a/sdk/constructive-react/src/api/orm/input-types.ts b/sdk/constructive-react/src/api/orm/input-types.ts index f4e5da7908..3484199372 100644 --- a/sdk/constructive-react/src/api/orm/input-types.ts +++ b/sdk/constructive-react/src/api/orm/input-types.ts @@ -245,8 +245,6 @@ export interface Api { createdAt?: string | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; - /** Database this API surface serves */ - dbname?: string | null; id: string; /** Whether other scopes may see and route to this API surface */ isPublished?: boolean | null; @@ -254,6 +252,7 @@ export interface Api { name?: string | null; /** Authenticated role the API executes as */ roleName?: string | null; + serviceHostname?: string | null; updatedAt?: string | null; } /** Join table linking API surfaces to the metaschema schemas they expose */ @@ -281,8 +280,6 @@ export interface ApiSetting { enableBulk?: boolean | null; /** Override: enable connection filter (NULL = inherit from database_settings) */ enableConnectionFilter?: boolean | null; - /** Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) */ - enableDirectUploads?: boolean | null; /** Override: enable internationalization plugin (NULL = inherit from database_settings) */ enableI18N?: boolean | null; /** Override: enable GraphQL schema introspection queries (NULL = inherit from database_settings) */ @@ -412,8 +409,6 @@ export interface DatabaseSetting { enableBulk?: boolean | null; /** Enable connection filter (where argument) in the GraphQL API */ enableConnectionFilter?: boolean | null; - /** Enable direct (multipart) file upload mutations in the GraphQL API */ - enableDirectUploads?: boolean | null; /** Enable internationalization plugin (localeStrings field, translation table discovery) in the GraphQL API */ enableI18N?: boolean | null; /** Enable GraphQL schema introspection queries in the GraphQL API. A tenant may only ever lower a bound, so the stored default is the permissive end: turning introspection off is the opt-in. */ @@ -945,8 +940,6 @@ export interface PlatformApi { /** Module-specific configuration for this API surface */ config?: Record | null; createdAt?: string | null; - /** Database this API surface serves */ - dbname?: string | null; id: string; /** Whether other scopes may see and route to this API surface */ isPublished?: boolean | null; @@ -954,6 +947,7 @@ export interface PlatformApi { name?: string | null; /** Authenticated role the API executes as */ roleName?: string | null; + serviceHostname?: string | null; updatedAt?: string | null; } /** Join table linking API surfaces to the metaschema schemas they expose */ @@ -977,8 +971,6 @@ export interface PlatformApiSetting { enableBulk?: boolean | null; /** Override: enable connection filter (NULL = inherit from database_settings) */ enableConnectionFilter?: boolean | null; - /** Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) */ - enableDirectUploads?: boolean | null; /** Override: enable internationalization plugin (NULL = inherit from database_settings) */ enableI18N?: boolean | null; /** Override: enable GraphQL schema introspection queries (NULL = inherit from database_settings) */ @@ -1229,6 +1221,20 @@ export interface PlatformPage { /** Timestamp of last modification */ updatedAt?: string | null; } +/** Subdomain labels no tenant may claim under a platform apex */ +export interface PlatformReservedSubdomain { + createdAt?: string | null; + createdByPrincipal?: string | null; + id: string; + /** Lowercase subdomain label, or the label prefix/suffix the match names */ + label?: string | null; + /** How the label matches a claimed label: exact, prefix or suffix */ + match?: string | null; + /** Why the label is reserved (free text, e.g. platform, brand, lookalike) */ + reason?: string | null; + updatedAt?: string | null; + updatedByPrincipal?: string | null; +} /** Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) */ export interface PlatformSiteAppLink { /** App-owned store identity this association serves (app_store_identities row in this scope's app plane; the association carries no store facts of its own) */ @@ -1305,6 +1311,10 @@ export interface PlatformSiteErrorPage { export interface PlatformSiteMetadatum { /** Apple touch icon image (home-screen bookmark) */ appleTouchIcon?: ConstructiveInternalTypeImage | null; + /** URL to fetch `appleTouchIcon`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + appleTouchIconUrl?: string | null; + /** The versions rendered beside `appleTouchIcon`, narrowest first, each with a URL. Empty when there are none. */ + appleTouchIconVersions?: FileVersion[] | null; /** Canonical URL emitted in for this site */ canonicalUrl?: string | null; /** Infra store commit for the current content (stamped by the versioned trigger on every write) */ @@ -1314,11 +1324,23 @@ export interface PlatformSiteMetadatum { description?: string | null; /** Site favicon image */ favicon?: ConstructiveInternalTypeImage | null; + /** URL to fetch `favicon`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + faviconUrl?: string | null; + /** The versions rendered beside `favicon`, narrowest first, each with a URL. Empty when there are none. */ + faviconVersions?: FileVersion[] | null; id: string; /** Primary site logo image */ logo?: ConstructiveInternalTypeImage | null; + /** URL to fetch `logo`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + logoUrl?: string | null; + /** The versions rendered beside `logo`, narrowest first, each with a URL. Empty when there are none. */ + logoVersions?: FileVersion[] | null; /** Open Graph image used when sharing site links */ ogImage?: ConstructiveInternalTypeImage | null; + /** URL to fetch `ogImage`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + ogImageUrl?: string | null; + /** The versions rendered beside `ogImage`, narrowest first, each with a URL. Empty when there are none. */ + ogImageVersions?: FileVersion[] | null; /** robots meta directive (e.g. index,follow / noindex,nofollow) */ robots?: string | null; /** Provenance of the robots value: the content preset (kind, slug, catalog commit_id) an install applied, or NULL when it was authored directly */ @@ -1645,6 +1667,10 @@ export interface SiteErrorPage { export interface SiteMetadatum { /** Apple touch icon image (home-screen bookmark) */ appleTouchIcon?: ConstructiveInternalTypeImage | null; + /** URL to fetch `appleTouchIcon`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + appleTouchIconUrl?: string | null; + /** The versions rendered beside `appleTouchIcon`, narrowest first, each with a URL. Empty when there are none. */ + appleTouchIconVersions?: FileVersion[] | null; /** Canonical URL emitted in for this site */ canonicalUrl?: string | null; /** Infra store commit for the current content (stamped by the versioned trigger on every write) */ @@ -1656,11 +1682,23 @@ export interface SiteMetadatum { description?: string | null; /** Site favicon image */ favicon?: ConstructiveInternalTypeImage | null; + /** URL to fetch `favicon`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + faviconUrl?: string | null; + /** The versions rendered beside `favicon`, narrowest first, each with a URL. Empty when there are none. */ + faviconVersions?: FileVersion[] | null; id: string; /** Primary site logo image */ logo?: ConstructiveInternalTypeImage | null; + /** URL to fetch `logo`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + logoUrl?: string | null; + /** The versions rendered beside `logo`, narrowest first, each with a URL. Empty when there are none. */ + logoVersions?: FileVersion[] | null; /** Open Graph image used when sharing site links */ ogImage?: ConstructiveInternalTypeImage | null; + /** URL to fetch `ogImage`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + ogImageUrl?: string | null; + /** The versions rendered beside `ogImage`, narrowest first, each with a URL. Empty when there are none. */ + ogImageVersions?: FileVersion[] | null; /** robots meta directive (e.g. index,follow / noindex,nofollow) */ robots?: string | null; /** Provenance of the robots value: the content preset (kind, slug, catalog commit_id) an install applied, or NULL when it was authored directly */ @@ -2203,6 +2241,7 @@ export interface PlatformManagedDomainRelations { export interface PlatformPageRelations { site?: PlatformSite | null; } +export interface PlatformReservedSubdomainRelations {} export interface PlatformSiteAppLinkRelations { site?: PlatformSite | null; } @@ -2490,6 +2529,8 @@ export type PlatformGetSitePreviewsRecordWithRelations = PlatformGetSitePreviews export type PlatformManagedDomainWithRelations = PlatformManagedDomain & PlatformManagedDomainRelations; export type PlatformPageWithRelations = PlatformPage & PlatformPageRelations; +export type PlatformReservedSubdomainWithRelations = PlatformReservedSubdomain & + PlatformReservedSubdomainRelations; export type PlatformSiteAppLinkWithRelations = PlatformSiteAppLink & PlatformSiteAppLinkRelations; export type PlatformSiteWithRelations = PlatformSite & PlatformSiteRelations; export type PlatformSiteDeepLinkWithRelations = PlatformSiteDeepLink & @@ -2543,11 +2584,11 @@ export type ApiSelect = { config?: boolean; createdAt?: boolean; databaseId?: boolean; - dbname?: boolean; id?: boolean; isPublished?: boolean; name?: boolean; roleName?: boolean; + serviceHostname?: boolean; updatedAt?: boolean; apiSetting?: { select: ApiSettingSelect; @@ -2586,7 +2627,6 @@ export type ApiSettingSelect = { enableAggregates?: boolean; enableBulk?: boolean; enableConnectionFilter?: boolean; - enableDirectUploads?: boolean; enableI18N?: boolean; enableIntrospection?: boolean; enableLlm?: boolean; @@ -2905,7 +2945,6 @@ export type DatabaseSettingSelect = { enableBilling?: boolean; enableBulk?: boolean; enableConnectionFilter?: boolean; - enableDirectUploads?: boolean; enableI18N?: boolean; enableIntrospection?: boolean; enableLlm?: boolean; @@ -3547,11 +3586,11 @@ export type PlatformApiSelect = { anonRole?: boolean; config?: boolean; createdAt?: boolean; - dbname?: boolean; id?: boolean; isPublished?: boolean; name?: boolean; roleName?: boolean; + serviceHostname?: boolean; updatedAt?: boolean; platformApiSettingByApiId?: { select: PlatformApiSettingSelect; @@ -3585,7 +3624,6 @@ export type PlatformApiSettingSelect = { enableAggregates?: boolean; enableBulk?: boolean; enableConnectionFilter?: boolean; - enableDirectUploads?: boolean; enableI18N?: boolean; enableIntrospection?: boolean; enableLlm?: boolean; @@ -3802,6 +3840,16 @@ export type PlatformPageSelect = { select: PlatformSiteSelect; }; }; +export type PlatformReservedSubdomainSelect = { + createdAt?: boolean; + createdByPrincipal?: boolean; + id?: boolean; + label?: boolean; + match?: boolean; + reason?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; +}; export type PlatformSiteAppLinkSelect = { appStoreIdentityId?: boolean; createdAt?: boolean; @@ -3906,14 +3954,50 @@ export type PlatformSiteErrorPageSelect = { }; export type PlatformSiteMetadatumSelect = { appleTouchIcon?: boolean; + appleTouchIconUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + appleTouchIconVersions?: { + select: FileVersionSelect; + }; canonicalUrl?: boolean; commitId?: boolean; createdAt?: boolean; description?: boolean; favicon?: boolean; + faviconUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + faviconVersions?: { + select: FileVersionSelect; + }; id?: boolean; logo?: boolean; + logoUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + logoVersions?: { + select: FileVersionSelect; + }; ogImage?: boolean; + ogImageUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + ogImageVersions?: { + select: FileVersionSelect; + }; robots?: boolean; robotsSeededFrom?: boolean; siteId?: boolean; @@ -4357,15 +4441,51 @@ export type SiteErrorPageSelect = { }; export type SiteMetadatumSelect = { appleTouchIcon?: boolean; + appleTouchIconUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + appleTouchIconVersions?: { + select: FileVersionSelect; + }; canonicalUrl?: boolean; commitId?: boolean; createdAt?: boolean; databaseId?: boolean; description?: boolean; favicon?: boolean; + faviconUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + faviconVersions?: { + select: FileVersionSelect; + }; id?: boolean; logo?: boolean; + logoUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + logoVersions?: { + select: FileVersionSelect; + }; ogImage?: boolean; + ogImageUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + ogImageVersions?: { + select: FileVersionSelect; + }; robots?: boolean; robotsSeededFrom?: boolean; siteId?: boolean; @@ -4949,8 +5069,6 @@ export interface ApiFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `dbname` field. */ - dbname?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isPublished` field. */ @@ -5007,8 +5125,6 @@ export interface ApiSettingFilter { enableBulk?: BooleanFilter; /** Filter by the object’s `enableConnectionFilter` field. */ enableConnectionFilter?: BooleanFilter; - /** Filter by the object’s `enableDirectUploads` field. */ - enableDirectUploads?: BooleanFilter; /** Filter by the object’s `enableI18N` field. */ enableI18N?: BooleanFilter; /** Filter by the object’s `enableIntrospection` field. */ @@ -5373,8 +5489,6 @@ export interface DatabaseSettingFilter { enableBulk?: BooleanFilter; /** Filter by the object’s `enableConnectionFilter` field. */ enableConnectionFilter?: BooleanFilter; - /** Filter by the object’s `enableDirectUploads` field. */ - enableDirectUploads?: BooleanFilter; /** Filter by the object’s `enableI18N` field. */ enableI18N?: BooleanFilter; /** Filter by the object’s `enableIntrospection` field. */ @@ -6478,8 +6592,6 @@ export interface PlatformApiFilter { config?: JSONFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `dbname` field. */ - dbname?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isPublished` field. */ @@ -6544,8 +6656,6 @@ export interface PlatformApiSettingFilter { enableBulk?: BooleanFilter; /** Filter by the object’s `enableConnectionFilter` field. */ enableConnectionFilter?: BooleanFilter; - /** Filter by the object’s `enableDirectUploads` field. */ - enableDirectUploads?: BooleanFilter; /** Filter by the object’s `enableI18N` field. */ enableI18N?: BooleanFilter; /** Filter by the object’s `enableIntrospection` field. */ @@ -6936,6 +7046,30 @@ export interface PlatformPageFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } +export interface PlatformReservedSubdomainFilter { + /** Checks for all expressions in this list. */ + and?: PlatformReservedSubdomainFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Filter by the object’s `match` field. */ + match?: StringFilter; + /** Negates the expression. */ + not?: PlatformReservedSubdomainFilter; + /** Checks for any expressions in this list. */ + or?: PlatformReservedSubdomainFilter[]; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} export interface PlatformSiteAppLinkFilter { /** Checks for all expressions in this list. */ and?: PlatformSiteAppLinkFilter[]; @@ -8650,8 +8784,6 @@ export type ApiOrderBy = | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DBNAME_ASC' - | 'DBNAME_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_PUBLISHED_ASC' @@ -8694,8 +8826,6 @@ export type ApiSettingOrderBy = | 'ENABLE_BULK_DESC' | 'ENABLE_CONNECTION_FILTER_ASC' | 'ENABLE_CONNECTION_FILTER_DESC' - | 'ENABLE_DIRECT_UPLOADS_ASC' - | 'ENABLE_DIRECT_UPLOADS_DESC' | 'ENABLE_I18N_ASC' | 'ENABLE_I18N_DESC' | 'ENABLE_INTROSPECTION_ASC' @@ -8886,8 +9016,6 @@ export type DatabaseSettingOrderBy = | 'ENABLE_BULK_DESC' | 'ENABLE_CONNECTION_FILTER_ASC' | 'ENABLE_CONNECTION_FILTER_DESC' - | 'ENABLE_DIRECT_UPLOADS_ASC' - | 'ENABLE_DIRECT_UPLOADS_DESC' | 'ENABLE_I18N_ASC' | 'ENABLE_I18N_DESC' | 'ENABLE_INTROSPECTION_ASC' @@ -9726,8 +9854,6 @@ export type PlatformApiOrderBy = | 'CONFIG_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'DBNAME_ASC' - | 'DBNAME_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_PUBLISHED_ASC' @@ -9766,8 +9892,6 @@ export type PlatformApiSettingOrderBy = | 'ENABLE_BULK_DESC' | 'ENABLE_CONNECTION_FILTER_ASC' | 'ENABLE_CONNECTION_FILTER_DESC' - | 'ENABLE_DIRECT_UPLOADS_ASC' - | 'ENABLE_DIRECT_UPLOADS_DESC' | 'ENABLE_I18N_ASC' | 'ENABLE_I18N_DESC' | 'ENABLE_INTROSPECTION_ASC' @@ -10063,6 +10187,26 @@ export type PlatformPageOrderBy = | 'STORE_ID_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +export type PlatformReservedSubdomainOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'LABEL_ASC' + | 'LABEL_DESC' + | 'MATCH_ASC' + | 'MATCH_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REASON_ASC' + | 'REASON_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type PlatformSiteAppLinkOrderBy = | 'APP_STORE_IDENTITY_ID_ASC' | 'APP_STORE_IDENTITY_ID_DESC' @@ -11144,7 +11288,6 @@ export interface CreateApiInput { anonRole?: string; config?: Record; databaseId: string; - dbname?: string; isPublished?: boolean; name: string; roleName?: string; @@ -11154,7 +11297,6 @@ export interface ApiPatch { anonRole?: string | null; config?: Record | null; databaseId?: string | null; - dbname?: string | null; isPublished?: boolean | null; name?: string | null; roleName?: string | null; @@ -11198,7 +11340,6 @@ export interface CreateApiSettingInput { enableAggregates?: boolean; enableBulk?: boolean; enableConnectionFilter?: boolean; - enableDirectUploads?: boolean; enableI18N?: boolean; enableIntrospection?: boolean; enableLlm?: boolean; @@ -11228,7 +11369,6 @@ export interface ApiSettingPatch { enableAggregates?: boolean | null; enableBulk?: boolean | null; enableConnectionFilter?: boolean | null; - enableDirectUploads?: boolean | null; enableI18N?: boolean | null; enableIntrospection?: boolean | null; enableLlm?: boolean | null; @@ -11260,22 +11400,6 @@ export interface DeleteApiSettingInput { clientMutationId?: string; id: string; } -export interface CreateAstMigrationInput { - clientMutationId?: string; - astMigration: { - actionId: string; - actionName?: string; - actorId: string; - databaseId: string; - deploy?: Record; - deploys?: string; - name?: string; - payload?: Record; - requires?: string[]; - revert?: Record; - verify?: Record; - }; -} export interface AstMigrationPatch { actionId?: string | null; actionName?: string | null; @@ -11428,7 +11552,6 @@ export interface CreateDatabaseSettingInput { enableBilling?: boolean; enableBulk?: boolean; enableConnectionFilter?: boolean; - enableDirectUploads?: boolean; enableI18N?: boolean; enableIntrospection?: boolean; enableLlm?: boolean; @@ -11461,7 +11584,6 @@ export interface DatabaseSettingPatch { enableBilling?: boolean | null; enableBulk?: boolean | null; enableConnectionFilter?: boolean | null; - enableDirectUploads?: boolean | null; enableI18N?: boolean | null; enableIntrospection?: boolean | null; enableLlm?: boolean | null; @@ -12214,13 +12336,6 @@ export interface DeleteFunctionInput { clientMutationId?: string; id: string; } -export interface CreateGetSitePreviewsRecordInput { - clientMutationId?: string; - getSitePreviewsRecord: { - commitId: string; - name?: string; - }; -} export interface GetSitePreviewsRecordPatch { commitId?: string | null; name?: string | null; @@ -12312,15 +12427,6 @@ export interface DeleteIndexInput { clientMutationId?: string; id: string; } -export interface CreateListSuspendedDatabasesRecordInput { - clientMutationId?: string; - listSuspendedDatabasesRecord: { - name?: string; - ownerId: string; - suspendedAt?: string; - suspendedReason?: string; - }; -} export interface ListSuspendedDatabasesRecordPatch { name?: string | null; ownerId?: string | null; @@ -12479,7 +12585,6 @@ export interface CreatePlatformApiInput { platformApi: { anonRole?: string; config?: Record; - dbname?: string; isPublished?: boolean; name: string; roleName?: string; @@ -12488,7 +12593,6 @@ export interface CreatePlatformApiInput { export interface PlatformApiPatch { anonRole?: string | null; config?: Record | null; - dbname?: string | null; isPublished?: boolean | null; name?: string | null; roleName?: string | null; @@ -12529,7 +12633,6 @@ export interface CreatePlatformApiSettingInput { enableAggregates?: boolean; enableBulk?: boolean; enableConnectionFilter?: boolean; - enableDirectUploads?: boolean; enableI18N?: boolean; enableIntrospection?: boolean; enableLlm?: boolean; @@ -12558,7 +12661,6 @@ export interface PlatformApiSettingPatch { enableAggregates?: boolean | null; enableBulk?: boolean | null; enableConnectionFilter?: boolean | null; - enableDirectUploads?: boolean | null; enableI18N?: boolean | null; enableIntrospection?: boolean | null; enableLlm?: boolean | null; @@ -12814,13 +12916,6 @@ export interface DeletePlatformEmailSiteIdentityInput { clientMutationId?: string; id: string; } -export interface CreatePlatformGetSitePreviewsRecordInput { - clientMutationId?: string; - platformGetSitePreviewsRecord: { - commitId: string; - name?: string; - }; -} export interface PlatformGetSitePreviewsRecordPatch { commitId?: string | null; name?: string | null; @@ -12902,6 +12997,32 @@ export interface DeletePlatformPageInput { clientMutationId?: string; id: string; } +export interface CreatePlatformReservedSubdomainInput { + clientMutationId?: string; + platformReservedSubdomain: { + createdByPrincipal?: string; + label: string; + match?: string; + reason?: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformReservedSubdomainPatch { + createdByPrincipal?: string | null; + label?: string | null; + match?: string | null; + reason?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformReservedSubdomainInput { + clientMutationId?: string; + id: string; + platformReservedSubdomainPatch: PlatformReservedSubdomainPatch; +} +export interface DeletePlatformReservedSubdomainInput { + clientMutationId?: string; + id: string; +} export interface CreatePlatformSiteAppLinkInput { clientMutationId?: string; platformSiteAppLink: { @@ -13035,16 +13156,12 @@ export interface CreatePlatformSiteMetadatumInput { } export interface PlatformSiteMetadatumPatch { appleTouchIcon?: ConstructiveInternalTypeImage | null; - appleTouchIconUpload?: File | null; canonicalUrl?: string | null; commitId?: string | null; description?: string | null; favicon?: ConstructiveInternalTypeImage | null; - faviconUpload?: File | null; logo?: ConstructiveInternalTypeImage | null; - logoUpload?: File | null; ogImage?: ConstructiveInternalTypeImage | null; - ogImageUpload?: File | null; robots?: string | null; robotsSeededFrom?: Record | null; siteId?: string | null; @@ -13594,17 +13711,13 @@ export interface CreateSiteMetadatumInput { } export interface SiteMetadatumPatch { appleTouchIcon?: ConstructiveInternalTypeImage | null; - appleTouchIconUpload?: File | null; canonicalUrl?: string | null; commitId?: string | null; databaseId?: string | null; description?: string | null; favicon?: ConstructiveInternalTypeImage | null; - faviconUpload?: File | null; logo?: ConstructiveInternalTypeImage | null; - logoUpload?: File | null; ogImage?: ConstructiveInternalTypeImage | null; - ogImageUpload?: File | null; robots?: string | null; robotsSeededFrom?: Record | null; siteId?: string | null; @@ -13768,22 +13881,6 @@ export interface DeleteSpatialRelationInput { clientMutationId?: string; id: string; } -export interface CreateSqlActionInput { - clientMutationId?: string; - sqlAction: { - actionId: string; - actionName?: string; - actorId: string; - content?: string; - databaseId: string; - deploy?: string; - deps?: string[]; - name?: string; - payload?: Record; - revert?: string; - verify?: string; - }; -} export interface SqlActionPatch { actionId?: string | null; actionName?: string | null; @@ -15627,8 +15724,6 @@ export interface ApiInput { createdAt?: string; /** Database that owns this resource (database-scoped isolation) */ databaseId: string; - /** Database this API surface serves */ - dbname?: string; id?: string; /** Whether other scopes may see and route to this API surface */ isPublished?: boolean; @@ -15663,8 +15758,6 @@ export interface ApiSettingInput { enableBulk?: boolean; /** Override: enable connection filter (NULL = inherit from database_settings) */ enableConnectionFilter?: boolean; - /** Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) */ - enableDirectUploads?: boolean; /** Override: enable internationalization plugin (NULL = inherit from database_settings) */ enableI18N?: boolean; /** Override: enable GraphQL schema introspection queries (NULL = inherit from database_settings) */ @@ -15780,8 +15873,6 @@ export interface DatabaseSettingInput { enableBulk?: boolean; /** Enable connection filter (where argument) in the GraphQL API */ enableConnectionFilter?: boolean; - /** Enable direct (multipart) file upload mutations in the GraphQL API */ - enableDirectUploads?: boolean; /** Enable internationalization plugin (localeStrings field, translation table discovery) in the GraphQL API */ enableI18N?: boolean; /** Enable GraphQL schema introspection queries in the GraphQL API. A tenant may only ever lower a bound, so the stored default is the permissive end: turning introspection off is the opt-in. */ @@ -16319,8 +16410,6 @@ export interface PlatformApiInput { /** Module-specific configuration for this API surface */ config?: Record; createdAt?: string; - /** Database this API surface serves */ - dbname?: string; id?: string; /** Whether other scopes may see and route to this API surface */ isPublished?: boolean; @@ -16351,8 +16440,6 @@ export interface PlatformApiSettingInput { enableBulk?: boolean; /** Override: enable connection filter (NULL = inherit from database_settings) */ enableConnectionFilter?: boolean; - /** Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) */ - enableDirectUploads?: boolean; /** Override: enable internationalization plugin (NULL = inherit from database_settings) */ enableI18N?: boolean; /** Override: enable GraphQL schema introspection queries (NULL = inherit from database_settings) */ @@ -16599,6 +16686,20 @@ export interface PlatformPageInput { /** Timestamp of last modification */ updatedAt?: string; } +/** An input for mutations affecting `PlatformReservedSubdomain` */ +export interface PlatformReservedSubdomainInput { + createdAt?: string; + createdByPrincipal?: string; + id?: string; + /** Lowercase subdomain label, or the label prefix/suffix the match names */ + label: string; + /** How the label matches a claimed label: exact, prefix or suffix */ + match?: string; + /** Why the label is reserved (free text, e.g. platform, brand, lookalike) */ + reason?: string; + updatedAt?: string; + updatedByPrincipal?: string; +} /** An input for mutations affecting `PlatformSiteAppLink` */ export interface PlatformSiteAppLinkInput { /** App-owned store identity this association serves (app_store_identities row in this scope's app plane; the association carries no store facts of its own) */ @@ -19675,8 +19776,6 @@ export interface ApiFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `dbname` field. */ - dbname?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isPublished` field. */ @@ -20445,8 +20544,6 @@ export interface PlatformApiFilter { config?: JSONFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `dbname` field. */ - dbname?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isPublished` field. */ @@ -20706,8 +20803,6 @@ export interface ApiSettingFilter { enableBulk?: BooleanFilter; /** Filter by the object’s `enableConnectionFilter` field. */ enableConnectionFilter?: BooleanFilter; - /** Filter by the object’s `enableDirectUploads` field. */ - enableDirectUploads?: BooleanFilter; /** Filter by the object’s `enableI18N` field. */ enableI18N?: BooleanFilter; /** Filter by the object’s `enableIntrospection` field. */ @@ -20874,8 +20969,6 @@ export interface PlatformApiSettingFilter { enableBulk?: BooleanFilter; /** Filter by the object’s `enableConnectionFilter` field. */ enableConnectionFilter?: BooleanFilter; - /** Filter by the object’s `enableDirectUploads` field. */ - enableDirectUploads?: BooleanFilter; /** Filter by the object’s `enableI18N` field. */ enableI18N?: BooleanFilter; /** Filter by the object’s `enableIntrospection` field. */ @@ -21069,44 +21162,6 @@ export interface BigIntFilter { notIn?: string[]; } // ============ Payload/Return Types (for custom operations) ============ -export interface ResolveRouteRecord { - domainId?: string | null; - hostname?: string | null; - matchedPath?: string | null; - matchedWildcard?: boolean | null; - method?: string | null; - priority?: number | null; - resolvedConfig?: Record | null; - routeBindingId?: string | null; - servingLane?: string | null; - targetCatalogId?: string | null; - targetModule?: string | null; - targetOwnerKey?: string | null; - targetOwnerScope?: string | null; - targetSourceId?: string | null; - tlsSecretName?: string | null; - tlsStatus?: string | null; - verificationStatus?: string | null; -} -export type ResolveRouteRecordSelect = { - domainId?: boolean; - hostname?: boolean; - matchedPath?: boolean; - matchedWildcard?: boolean; - method?: boolean; - priority?: boolean; - resolvedConfig?: boolean; - routeBindingId?: boolean; - servingLane?: boolean; - targetCatalogId?: boolean; - targetModule?: boolean; - targetOwnerKey?: boolean; - targetOwnerScope?: boolean; - targetSourceId?: boolean; - tlsSecretName?: boolean; - tlsStatus?: boolean; - verificationStatus?: boolean; -}; export interface AcceptDatabaseTransferPayload { clientMutationId?: string | null; result?: boolean | null; @@ -23421,6 +23476,51 @@ export type DeletePlatformPagePayloadSelect = { select: PlatformPageEdgeSelect; }; }; +export interface CreatePlatformReservedSubdomainPayload { + clientMutationId?: string | null; + /** The `PlatformReservedSubdomain` that was created by this mutation. */ + platformReservedSubdomain?: PlatformReservedSubdomain | null; + platformReservedSubdomainEdge?: PlatformReservedSubdomainEdge | null; +} +export type CreatePlatformReservedSubdomainPayloadSelect = { + clientMutationId?: boolean; + platformReservedSubdomain?: { + select: PlatformReservedSubdomainSelect; + }; + platformReservedSubdomainEdge?: { + select: PlatformReservedSubdomainEdgeSelect; + }; +}; +export interface UpdatePlatformReservedSubdomainPayload { + clientMutationId?: string | null; + /** The `PlatformReservedSubdomain` that was updated by this mutation. */ + platformReservedSubdomain?: PlatformReservedSubdomain | null; + platformReservedSubdomainEdge?: PlatformReservedSubdomainEdge | null; +} +export type UpdatePlatformReservedSubdomainPayloadSelect = { + clientMutationId?: boolean; + platformReservedSubdomain?: { + select: PlatformReservedSubdomainSelect; + }; + platformReservedSubdomainEdge?: { + select: PlatformReservedSubdomainEdgeSelect; + }; +}; +export interface DeletePlatformReservedSubdomainPayload { + clientMutationId?: string | null; + /** The `PlatformReservedSubdomain` that was deleted by this mutation. */ + platformReservedSubdomain?: PlatformReservedSubdomain | null; + platformReservedSubdomainEdge?: PlatformReservedSubdomainEdge | null; +} +export type DeletePlatformReservedSubdomainPayloadSelect = { + clientMutationId?: boolean; + platformReservedSubdomain?: { + select: PlatformReservedSubdomainSelect; + }; + platformReservedSubdomainEdge?: { + select: PlatformReservedSubdomainEdgeSelect; + }; +}; export interface CreatePlatformSiteAppLinkPayload { clientMutationId?: string | null; /** The `PlatformSiteAppLink` that was created by this mutation. */ @@ -25221,6 +25321,25 @@ export type DeleteWebauthnSettingPayloadSelect = { select: WebauthnSettingEdgeSelect; }; }; +/** One version rendered beside a file, with a URL to fetch it. */ +export interface FileVersion { + format?: string | null; + height?: number | null; + key: string; + name?: string | null; + size?: number | null; + url: string; + width?: number | null; +} +export type FileVersionSelect = { + format?: boolean; + height?: boolean; + key?: boolean; + name?: boolean; + size?: boolean; + url?: boolean; + width?: boolean; +}; /** A `Function` edge in the connection. */ export interface FunctionEdge { cursor?: string | null; @@ -25929,6 +26048,18 @@ export type PlatformPageEdgeSelect = { select: PlatformPageSelect; }; }; +/** A `PlatformReservedSubdomain` edge in the connection. */ +export interface PlatformReservedSubdomainEdge { + cursor?: string | null; + /** The `PlatformReservedSubdomain` at the end of the edge. */ + node?: PlatformReservedSubdomain | null; +} +export type PlatformReservedSubdomainEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformReservedSubdomainSelect; + }; +}; /** A `PlatformSiteAppLink` edge in the connection. */ export interface PlatformSiteAppLinkEdge { cursor?: string | null; diff --git a/sdk/constructive-react/src/api/orm/models/astMigration.ts b/sdk/constructive-react/src/api/orm/models/astMigration.ts index bfcc5f455a..ca429d54b2 100644 --- a/sdk/constructive-react/src/api/orm/models/astMigration.ts +++ b/sdk/constructive-react/src/api/orm/models/astMigration.ts @@ -29,7 +29,6 @@ import type { AstMigrationSelect, AstMigrationFilter, AstMigrationOrderBy, - CreateAstMigrationInput, UpdateAstMigrationInput, AstMigrationPatch, } from '../input-types'; @@ -144,31 +143,4 @@ export class AstMigrationModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAstMigration: { - astMigration: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AstMigration', - 'createAstMigration', - 'astMigration', - args.select, - args.data, - 'CreateAstMigrationInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AstMigration', - fieldName: 'createAstMigration', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/api/orm/models/getSitePreviewsRecord.ts b/sdk/constructive-react/src/api/orm/models/getSitePreviewsRecord.ts index dc2c778221..9c58fd8f10 100644 --- a/sdk/constructive-react/src/api/orm/models/getSitePreviewsRecord.ts +++ b/sdk/constructive-react/src/api/orm/models/getSitePreviewsRecord.ts @@ -29,7 +29,6 @@ import type { GetSitePreviewsRecordSelect, GetSitePreviewsRecordFilter, GetSitePreviewsRecordsOrderBy, - CreateGetSitePreviewsRecordInput, UpdateGetSitePreviewsRecordInput, GetSitePreviewsRecordPatch, } from '../input-types'; @@ -104,31 +103,4 @@ export class GetSitePreviewsRecordModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createGetSitePreviewsRecord: { - getSitePreviewsRecord: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'GetSitePreviewsRecord', - 'createGetSitePreviewsRecord', - 'getSitePreviewsRecord', - args.select, - args.data, - 'CreateGetSitePreviewsRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'GetSitePreviewsRecord', - fieldName: 'createGetSitePreviewsRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/api/orm/models/index.ts b/sdk/constructive-react/src/api/orm/models/index.ts index 207f507c84..3cd2ba5b52 100644 --- a/sdk/constructive-react/src/api/orm/models/index.ts +++ b/sdk/constructive-react/src/api/orm/models/index.ts @@ -52,6 +52,7 @@ export { PlatformEmailSiteIdentityModel } from './platformEmailSiteIdentity'; export { PlatformGetSitePreviewsRecordModel } from './platformGetSitePreviewsRecord'; export { PlatformManagedDomainModel } from './platformManagedDomain'; export { PlatformPageModel } from './platformPage'; +export { PlatformReservedSubdomainModel } from './platformReservedSubdomain'; export { PlatformSiteAppLinkModel } from './platformSiteAppLink'; export { PlatformSiteModel } from './platformSite'; export { PlatformSiteDeepLinkModel } from './platformSiteDeepLink'; diff --git a/sdk/constructive-react/src/api/orm/models/listSuspendedDatabasesRecord.ts b/sdk/constructive-react/src/api/orm/models/listSuspendedDatabasesRecord.ts index d479aad622..49858b365a 100644 --- a/sdk/constructive-react/src/api/orm/models/listSuspendedDatabasesRecord.ts +++ b/sdk/constructive-react/src/api/orm/models/listSuspendedDatabasesRecord.ts @@ -29,7 +29,6 @@ import type { ListSuspendedDatabasesRecordSelect, ListSuspendedDatabasesRecordFilter, ListSuspendedDatabasesRecordsOrderBy, - CreateListSuspendedDatabasesRecordInput, UpdateListSuspendedDatabasesRecordInput, ListSuspendedDatabasesRecordPatch, } from '../input-types'; @@ -160,31 +159,4 @@ export class ListSuspendedDatabasesRecordModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createListSuspendedDatabasesRecord: { - listSuspendedDatabasesRecord: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'ListSuspendedDatabasesRecord', - 'createListSuspendedDatabasesRecord', - 'listSuspendedDatabasesRecord', - args.select, - args.data, - 'CreateListSuspendedDatabasesRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'ListSuspendedDatabasesRecord', - fieldName: 'createListSuspendedDatabasesRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/api/orm/models/platformGetSitePreviewsRecord.ts b/sdk/constructive-react/src/api/orm/models/platformGetSitePreviewsRecord.ts index b2282eaa16..e037d0890f 100644 --- a/sdk/constructive-react/src/api/orm/models/platformGetSitePreviewsRecord.ts +++ b/sdk/constructive-react/src/api/orm/models/platformGetSitePreviewsRecord.ts @@ -29,7 +29,6 @@ import type { PlatformGetSitePreviewsRecordSelect, PlatformGetSitePreviewsRecordFilter, PlatformGetSitePreviewsRecordsOrderBy, - CreatePlatformGetSitePreviewsRecordInput, UpdatePlatformGetSitePreviewsRecordInput, PlatformGetSitePreviewsRecordPatch, } from '../input-types'; @@ -117,37 +116,4 @@ export class PlatformGetSitePreviewsRecordModel { }), }); } - create( - args: CreateArgs< - S, - CreatePlatformGetSitePreviewsRecordInput['platformGetSitePreviewsRecord'] - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformGetSitePreviewsRecord: { - platformGetSitePreviewsRecord: InferSelectResult< - PlatformGetSitePreviewsRecordWithRelations, - S - >; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformGetSitePreviewsRecord', - 'createPlatformGetSitePreviewsRecord', - 'platformGetSitePreviewsRecord', - args.select, - args.data, - 'CreatePlatformGetSitePreviewsRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformGetSitePreviewsRecord', - fieldName: 'createPlatformGetSitePreviewsRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/api/orm/models/platformReservedSubdomain.ts b/sdk/constructive-react/src/api/orm/models/platformReservedSubdomain.ts new file mode 100644 index 0000000000..ab3f3b97e5 --- /dev/null +++ b/sdk/constructive-react/src/api/orm/models/platformReservedSubdomain.ts @@ -0,0 +1,247 @@ +/** + * PlatformReservedSubdomain model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + PlatformReservedSubdomain, + PlatformReservedSubdomainWithRelations, + PlatformReservedSubdomainSelect, + PlatformReservedSubdomainFilter, + PlatformReservedSubdomainOrderBy, + CreatePlatformReservedSubdomainInput, + UpdatePlatformReservedSubdomainInput, + PlatformReservedSubdomainPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformReservedSubdomainModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformReservedSubdomains: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformReservedSubdomain', + 'platformReservedSubdomains', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'PlatformReservedSubdomainFilter', + 'PlatformReservedSubdomainOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformReservedSubdomain', + fieldName: 'platformReservedSubdomains', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformReservedSubdomain: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformReservedSubdomain', + 'platformReservedSubdomains', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformReservedSubdomainFilter', + 'PlatformReservedSubdomainOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformReservedSubdomain', + fieldName: 'platformReservedSubdomain', + document, + variables, + transform: (data: { + platformReservedSubdomains?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformReservedSubdomain: data.platformReservedSubdomains?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformReservedSubdomain: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformReservedSubdomain', + 'platformReservedSubdomains', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformReservedSubdomainFilter', + 'PlatformReservedSubdomainOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformReservedSubdomain', + fieldName: 'platformReservedSubdomain', + document, + variables, + transform: (data: { + platformReservedSubdomains?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformReservedSubdomain: data.platformReservedSubdomains?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformReservedSubdomain: { + platformReservedSubdomain: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformReservedSubdomain', + 'createPlatformReservedSubdomain', + 'platformReservedSubdomain', + args.select, + args.data, + 'CreatePlatformReservedSubdomainInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformReservedSubdomain', + fieldName: 'createPlatformReservedSubdomain', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformReservedSubdomainPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformReservedSubdomain: { + platformReservedSubdomain: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformReservedSubdomain', + 'updatePlatformReservedSubdomain', + 'platformReservedSubdomain', + args.select, + args.where.id, + args.data, + 'UpdatePlatformReservedSubdomainInput', + 'id', + 'platformReservedSubdomainPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformReservedSubdomain', + fieldName: 'updatePlatformReservedSubdomain', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformReservedSubdomain: { + platformReservedSubdomain: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformReservedSubdomain', + 'deletePlatformReservedSubdomain', + 'platformReservedSubdomain', + { + id: args.where.id, + }, + 'DeletePlatformReservedSubdomainInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformReservedSubdomain', + fieldName: 'deletePlatformReservedSubdomain', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/api/orm/models/sqlAction.ts b/sdk/constructive-react/src/api/orm/models/sqlAction.ts index 74b4418688..d9b77d8c06 100644 --- a/sdk/constructive-react/src/api/orm/models/sqlAction.ts +++ b/sdk/constructive-react/src/api/orm/models/sqlAction.ts @@ -29,7 +29,6 @@ import type { SqlActionSelect, SqlActionFilter, SqlActionOrderBy, - CreateSqlActionInput, UpdateSqlActionInput, SqlActionPatch, } from '../input-types'; @@ -144,31 +143,4 @@ export class SqlActionModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createSqlAction: { - sqlAction: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'SqlAction', - 'createSqlAction', - 'sqlAction', - args.select, - args.data, - 'CreateSqlActionInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'SqlAction', - fieldName: 'createSqlAction', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/api/orm/query-builder.ts b/sdk/constructive-react/src/api/orm/query-builder.ts index fd785bbae6..d6c981907f 100644 --- a/sdk/constructive-react/src/api/orm/query-builder.ts +++ b/sdk/constructive-react/src/api/orm/query-builder.ts @@ -140,9 +140,7 @@ export function buildSelections( ); const nestedSelect = nested.select; if (nestedSelect && typeof nestedSelect === 'object') { - const subSelections = Object.entries(nestedSelect) - .filter(([, v]) => v) - .map(([name]) => t.field({ name })); + const subSelections = buildSelections(nestedSelect, connectionFieldsMap); fields.push( t.field({ name: key, diff --git a/sdk/constructive-react/src/api/orm/query/index.ts b/sdk/constructive-react/src/api/orm/query/index.ts index 12ea7b4e72..cfae605185 100644 --- a/sdk/constructive-react/src/api/orm/query/index.ts +++ b/sdk/constructive-react/src/api/orm/query/index.ts @@ -6,11 +6,7 @@ import { OrmClient } from '../client'; import { QueryBuilder, buildCustomDocument } from '../query-builder'; import type { InferSelectResult, StrictSelect } from '../select-types'; -import type { ResolveRouteRecord, ResolveRouteRecordSelect } from '../input-types'; import { connectionFieldsMap } from '../input-types'; -export interface ApiSchemaNamesVariables { - targetApiId?: string; -} export interface ApplyRegistryDefaultsVariables { data?: unknown; nodeType?: string; @@ -50,18 +46,6 @@ export interface PlatformVerifySitePreviewTokenVariables { siteId?: string; token?: string; } -export interface ResolveDeepLinkVariables { - linkSlug?: string; - targetSiteId?: string; -} -export interface ResolveRouteVariables { - requestHost?: string; - requestMethod?: string; - requestPath?: string; -} -export interface ResolveSiteAppLinksVariables { - targetSiteId?: string; -} export interface SitesDeepLinkUrlVariables { linkSlug?: string; targetSiteId?: string; @@ -75,35 +59,6 @@ export interface VerifySitePreviewTokenVariables { } export function createQueryOperations(client: OrmClient) { return { - apiSchemaNames: ( - args: ApiSchemaNamesVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - apiSchemaNames: unknown | null; - }>({ - client, - operation: 'query', - operationName: 'ApiSchemaNames', - fieldName: 'apiSchemaNames', - ...buildCustomDocument( - 'query', - 'ApiSchemaNames', - 'apiSchemaNames', - options?.select, - args, - [ - { - name: 'targetApiId', - type: 'UUID', - }, - ], - connectionFieldsMap, - undefined - ), - }), applyRegistryDefaults: ( args: ApplyRegistryDefaultsVariables, options?: { @@ -449,105 +404,6 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), - resolveDeepLink: ( - args: ResolveDeepLinkVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - resolveDeepLink: unknown | null; - }>({ - client, - operation: 'query', - operationName: 'ResolveDeepLink', - fieldName: 'resolveDeepLink', - ...buildCustomDocument( - 'query', - 'ResolveDeepLink', - 'resolveDeepLink', - options?.select, - args, - [ - { - name: 'linkSlug', - type: 'String', - }, - { - name: 'targetSiteId', - type: 'UUID', - }, - ], - connectionFieldsMap, - undefined - ), - }), - resolveRoute: ( - args: ResolveRouteVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - resolveRoute: InferSelectResult | null; - }>({ - client, - operation: 'query', - operationName: 'ResolveRoute', - fieldName: 'resolveRoute', - ...buildCustomDocument( - 'query', - 'ResolveRoute', - 'resolveRoute', - options.select, - args, - [ - { - name: 'requestHost', - type: 'String', - }, - { - name: 'requestMethod', - type: 'String', - }, - { - name: 'requestPath', - type: 'String', - }, - ], - connectionFieldsMap, - 'ResolveRouteRecord' - ), - }), - resolveSiteAppLinks: ( - args: ResolveSiteAppLinksVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - resolveSiteAppLinks: unknown | null; - }>({ - client, - operation: 'query', - operationName: 'ResolveSiteAppLinks', - fieldName: 'resolveSiteAppLinks', - ...buildCustomDocument( - 'query', - 'ResolveSiteAppLinks', - 'resolveSiteAppLinks', - options?.select, - args, - [ - { - name: 'targetSiteId', - type: 'UUID', - }, - ], - connectionFieldsMap, - undefined - ), - }), sitesDeepLinkUrl: ( args: SitesDeepLinkUrlVariables, options?: { diff --git a/sdk/constructive-react/src/api/orm/select-types.ts b/sdk/constructive-react/src/api/orm/select-types.ts index 4b39d7e820..783c4603df 100644 --- a/sdk/constructive-react/src/api/orm/select-types.ts +++ b/sdk/constructive-react/src/api/orm/select-types.ts @@ -159,9 +159,13 @@ export type InferSelectResult = TSelect extends undefined ? K extends keyof TEntity ? NonNullable extends ConnectionResult ? ConnectionResult> - : - | InferSelectResult, NestedSelect> - | (null extends TEntity[K] ? null : never) + : NonNullable extends readonly (infer Item)[] + ? + | InferSelectResult, NestedSelect>[] + | (null extends TEntity[K] ? null : never) + : + | InferSelectResult, NestedSelect> + | (null extends TEntity[K] ? null : never) : never : K extends keyof TEntity ? TEntity[K] diff --git a/sdk/constructive-react/src/api/schema-types.ts b/sdk/constructive-react/src/api/schema-types.ts index eb20b05828..9afba4a2a1 100644 --- a/sdk/constructive-react/src/api/schema-types.ts +++ b/sdk/constructive-react/src/api/schema-types.ts @@ -54,6 +54,7 @@ import type { PlatformGetSitePreviewsRecord, PlatformManagedDomain, PlatformPage, + PlatformReservedSubdomain, PlatformSite, PlatformSiteAppLink, PlatformSiteDeepLink, @@ -125,8 +126,6 @@ export type ApiOrderBy = | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DBNAME_ASC' - | 'DBNAME_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_PUBLISHED_ASC' @@ -171,8 +170,6 @@ export type ApiSettingOrderBy = | 'ENABLE_BULK_DESC' | 'ENABLE_CONNECTION_FILTER_ASC' | 'ENABLE_CONNECTION_FILTER_DESC' - | 'ENABLE_DIRECT_UPLOADS_ASC' - | 'ENABLE_DIRECT_UPLOADS_DESC' | 'ENABLE_I18N_ASC' | 'ENABLE_I18N_DESC' | 'ENABLE_INTROSPECTION_ASC' @@ -369,8 +366,6 @@ export type DatabaseSettingOrderBy = | 'ENABLE_BULK_DESC' | 'ENABLE_CONNECTION_FILTER_ASC' | 'ENABLE_CONNECTION_FILTER_DESC' - | 'ENABLE_DIRECT_UPLOADS_ASC' - | 'ENABLE_DIRECT_UPLOADS_DESC' | 'ENABLE_I18N_ASC' | 'ENABLE_I18N_DESC' | 'ENABLE_INTROSPECTION_ASC' @@ -1214,8 +1209,6 @@ export type PlatformApiOrderBy = | 'CONFIG_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'DBNAME_ASC' - | 'DBNAME_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_PUBLISHED_ASC' @@ -1256,8 +1249,6 @@ export type PlatformApiSettingOrderBy = | 'ENABLE_BULK_DESC' | 'ENABLE_CONNECTION_FILTER_ASC' | 'ENABLE_CONNECTION_FILTER_DESC' - | 'ENABLE_DIRECT_UPLOADS_ASC' - | 'ENABLE_DIRECT_UPLOADS_DESC' | 'ENABLE_I18N_ASC' | 'ENABLE_I18N_DESC' | 'ENABLE_INTROSPECTION_ASC' @@ -1554,6 +1545,27 @@ export type PlatformPageOrderBy = | 'STORE_ID_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `PlatformReservedSubdomain`. */ +export type PlatformReservedSubdomainOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'LABEL_ASC' + | 'LABEL_DESC' + | 'MATCH_ASC' + | 'MATCH_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REASON_ASC' + | 'REASON_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; /** Methods to use when ordering `PlatformSiteAppLink`. */ export type PlatformSiteAppLinkOrderBy = | 'APP_STORE_IDENTITY_ID_ASC' @@ -2722,8 +2734,6 @@ export interface ApiFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `dbname` field. */ - dbname?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isPublished` field. */ @@ -2748,8 +2758,6 @@ export interface ApiInput { createdAt?: string; /** Database that owns this resource (database-scoped isolation) */ databaseId: string; - /** Database this API surface serves */ - dbname?: string; id?: string; /** Whether other scopes may see and route to this API surface */ isPublished?: boolean; @@ -2768,8 +2776,6 @@ export interface ApiPatch { createdAt?: string; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string; - /** Database this API surface serves */ - dbname?: string; id?: string; /** Whether other scopes may see and route to this API surface */ isPublished?: boolean; @@ -2846,8 +2852,6 @@ export interface ApiSettingFilter { enableBulk?: BooleanFilter; /** Filter by the object’s `enableConnectionFilter` field. */ enableConnectionFilter?: BooleanFilter; - /** Filter by the object’s `enableDirectUploads` field. */ - enableDirectUploads?: BooleanFilter; /** Filter by the object’s `enableI18N` field. */ enableI18N?: BooleanFilter; /** Filter by the object’s `enableIntrospection` field. */ @@ -2912,8 +2916,6 @@ export interface ApiSettingInput { enableBulk?: boolean; /** Override: enable connection filter (NULL = inherit from database_settings) */ enableConnectionFilter?: boolean; - /** Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) */ - enableDirectUploads?: boolean; /** Override: enable internationalization plugin (NULL = inherit from database_settings) */ enableI18N?: boolean; /** Override: enable GraphQL schema introspection queries (NULL = inherit from database_settings) */ @@ -2972,8 +2974,6 @@ export interface ApiSettingPatch { enableBulk?: boolean; /** Override: enable connection filter (NULL = inherit from database_settings) */ enableConnectionFilter?: boolean; - /** Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) */ - enableDirectUploads?: boolean; /** Override: enable internationalization plugin (NULL = inherit from database_settings) */ enableI18N?: boolean; /** Override: enable GraphQL schema introspection queries (NULL = inherit from database_settings) */ @@ -3538,6 +3538,11 @@ export interface CreatePlatformPageInput { /** The `PlatformPage` to be created by this mutation. */ platformPage: PlatformPageInput; } +export interface CreatePlatformReservedSubdomainInput { + clientMutationId?: string; + /** The `PlatformReservedSubdomain` to be created by this mutation. */ + platformReservedSubdomain: PlatformReservedSubdomainInput; +} export interface CreatePlatformSiteAppLinkInput { clientMutationId?: string; /** The `PlatformSiteAppLink` to be created by this mutation. */ @@ -3945,8 +3950,6 @@ export interface DatabaseSettingFilter { enableBulk?: BooleanFilter; /** Filter by the object’s `enableConnectionFilter` field. */ enableConnectionFilter?: BooleanFilter; - /** Filter by the object’s `enableDirectUploads` field. */ - enableDirectUploads?: BooleanFilter; /** Filter by the object’s `enableI18N` field. */ enableI18N?: BooleanFilter; /** Filter by the object’s `enableIntrospection` field. */ @@ -4017,8 +4020,6 @@ export interface DatabaseSettingInput { enableBulk?: boolean; /** Enable connection filter (where argument) in the GraphQL API */ enableConnectionFilter?: boolean; - /** Enable direct (multipart) file upload mutations in the GraphQL API */ - enableDirectUploads?: boolean; /** Enable internationalization plugin (localeStrings field, translation table discovery) in the GraphQL API */ enableI18N?: boolean; /** Enable GraphQL schema introspection queries in the GraphQL API. A tenant may only ever lower a bound, so the stored default is the permissive end: turning introspection off is the opt-in. */ @@ -4083,8 +4084,6 @@ export interface DatabaseSettingPatch { enableBulk?: boolean; /** Enable connection filter (where argument) in the GraphQL API */ enableConnectionFilter?: boolean; - /** Enable direct (multipart) file upload mutations in the GraphQL API */ - enableDirectUploads?: boolean; /** Enable internationalization plugin (localeStrings field, translation table discovery) in the GraphQL API */ enableI18N?: boolean; /** Enable GraphQL schema introspection queries in the GraphQL API. A tenant may only ever lower a bound, so the stored default is the permissive end: turning introspection off is the opt-in. */ @@ -4740,6 +4739,10 @@ export interface DeletePlatformPageInput { /** Unique page identifier */ id: string; } +export interface DeletePlatformReservedSubdomainInput { + clientMutationId?: string; + id: string; +} export interface DeletePlatformSiteAppLinkInput { clientMutationId?: string; id: string; @@ -6971,8 +6974,6 @@ export interface PlatformApiFilter { config?: JSONFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `dbname` field. */ - dbname?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isPublished` field. */ @@ -7007,8 +7008,6 @@ export interface PlatformApiInput { /** Module-specific configuration for this API surface */ config?: unknown; createdAt?: string; - /** Database this API surface serves */ - dbname?: string; id?: string; /** Whether other scopes may see and route to this API surface */ isPublished?: boolean; @@ -7025,8 +7024,6 @@ export interface PlatformApiPatch { /** Module-specific configuration for this API surface */ config?: unknown; createdAt?: string; - /** Database this API surface serves */ - dbname?: string; id?: string; /** Whether other scopes may see and route to this API surface */ isPublished?: boolean; @@ -7095,8 +7092,6 @@ export interface PlatformApiSettingFilter { enableBulk?: BooleanFilter; /** Filter by the object’s `enableConnectionFilter` field. */ enableConnectionFilter?: BooleanFilter; - /** Filter by the object’s `enableDirectUploads` field. */ - enableDirectUploads?: BooleanFilter; /** Filter by the object’s `enableI18N` field. */ enableI18N?: BooleanFilter; /** Filter by the object’s `enableIntrospection` field. */ @@ -7159,8 +7154,6 @@ export interface PlatformApiSettingInput { enableBulk?: boolean; /** Override: enable connection filter (NULL = inherit from database_settings) */ enableConnectionFilter?: boolean; - /** Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) */ - enableDirectUploads?: boolean; /** Override: enable internationalization plugin (NULL = inherit from database_settings) */ enableI18N?: boolean; /** Override: enable GraphQL schema introspection queries (NULL = inherit from database_settings) */ @@ -7217,8 +7210,6 @@ export interface PlatformApiSettingPatch { enableBulk?: boolean; /** Override: enable connection filter (NULL = inherit from database_settings) */ enableConnectionFilter?: boolean; - /** Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) */ - enableDirectUploads?: boolean; /** Override: enable internationalization plugin (NULL = inherit from database_settings) */ enableI18N?: boolean; /** Override: enable GraphQL schema introspection queries (NULL = inherit from database_settings) */ @@ -8101,6 +8092,59 @@ export interface PlatformProvisionSitePreviewInput { name?: string; siteId?: string; } +/** A filter to be used against `PlatformReservedSubdomain` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformReservedSubdomainFilter { + /** Checks for all expressions in this list. */ + and?: PlatformReservedSubdomainFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Filter by the object’s `match` field. */ + match?: StringFilter; + /** Negates the expression. */ + not?: PlatformReservedSubdomainFilter; + /** Checks for any expressions in this list. */ + or?: PlatformReservedSubdomainFilter[]; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +/** An input for mutations affecting `PlatformReservedSubdomain` */ +export interface PlatformReservedSubdomainInput { + createdAt?: string; + createdByPrincipal?: string; + id?: string; + /** Lowercase subdomain label, or the label prefix/suffix the match names */ + label: string; + /** How the label matches a claimed label: exact, prefix or suffix */ + match?: string; + /** Why the label is reserved (free text, e.g. platform, brand, lookalike) */ + reason?: string; + updatedAt?: string; + updatedByPrincipal?: string; +} +/** Represents an update to a `PlatformReservedSubdomain`. Fields that are set will be updated. */ +export interface PlatformReservedSubdomainPatch { + createdAt?: string; + createdByPrincipal?: string; + id?: string; + /** Lowercase subdomain label, or the label prefix/suffix the match names */ + label?: string; + /** How the label matches a claimed label: exact, prefix or suffix */ + match?: string; + /** Why the label is reserved (free text, e.g. platform, brand, lookalike) */ + reason?: string; + updatedAt?: string; + updatedByPrincipal?: string; +} export interface PlatformSetSitePreviewInput { clientMutationId?: string; targetCommitId?: string; @@ -8462,8 +8506,6 @@ export interface PlatformSiteMetadatumInput { export interface PlatformSiteMetadatumPatch { /** Apple touch icon image (home-screen bookmark) */ appleTouchIcon?: ConstructiveInternalTypeImage; - /** Upload for Apple touch icon image (home-screen bookmark) */ - appleTouchIconUpload?: File; /** Canonical URL emitted in for this site */ canonicalUrl?: string; /** Infra store commit for the current content (stamped by the versioned trigger on every write) */ @@ -8473,17 +8515,11 @@ export interface PlatformSiteMetadatumPatch { description?: string; /** Site favicon image */ favicon?: ConstructiveInternalTypeImage; - /** Upload for Site favicon image */ - faviconUpload?: File; id?: string; /** Primary site logo image */ logo?: ConstructiveInternalTypeImage; - /** Upload for Primary site logo image */ - logoUpload?: File; /** Open Graph image used when sharing site links */ ogImage?: ConstructiveInternalTypeImage; - /** Upload for Open Graph image used when sharing site links */ - ogImageUpload?: File; /** robots meta directive (e.g. index,follow / noindex,nofollow) */ robots?: string; /** Provenance of the robots value: the content preset (kind, slug, catalog commit_id) an install applied, or NULL when it was authored directly */ @@ -10112,8 +10148,6 @@ export interface SiteMetadatumInput { export interface SiteMetadatumPatch { /** Apple touch icon image (home-screen bookmark) */ appleTouchIcon?: ConstructiveInternalTypeImage; - /** Upload for Apple touch icon image (home-screen bookmark) */ - appleTouchIconUpload?: File; /** Canonical URL emitted in for this site */ canonicalUrl?: string; /** Infra store commit for the current content (stamped by the versioned trigger on every write) */ @@ -10125,17 +10159,11 @@ export interface SiteMetadatumPatch { description?: string; /** Site favicon image */ favicon?: ConstructiveInternalTypeImage; - /** Upload for Site favicon image */ - faviconUpload?: File; id?: string; /** Primary site logo image */ logo?: ConstructiveInternalTypeImage; - /** Upload for Primary site logo image */ - logoUpload?: File; /** Open Graph image used when sharing site links */ ogImage?: ConstructiveInternalTypeImage; - /** Upload for Open Graph image used when sharing site links */ - ogImageUpload?: File; /** robots meta directive (e.g. index,follow / noindex,nofollow) */ robots?: string; /** Provenance of the robots value: the content preset (kind, slug, catalog commit_id) an install applied, or NULL when it was authored directly */ @@ -11674,6 +11702,12 @@ export interface UpdatePlatformPageInput { /** An object where the defined keys will be set on the `PlatformPage` being updated. */ platformPagePatch: PlatformPagePatch; } +export interface UpdatePlatformReservedSubdomainInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `PlatformReservedSubdomain` being updated. */ + platformReservedSubdomainPatch: PlatformReservedSubdomainPatch; +} export interface UpdatePlatformSiteAppLinkInput { clientMutationId?: string; id: string; @@ -12751,6 +12785,13 @@ export interface PlatformPageConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `PlatformReservedSubdomain` values. */ +export interface PlatformReservedSubdomainConnection { + edges: PlatformReservedSubdomainEdge[]; + nodes: PlatformReservedSubdomain[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `PlatformSiteAppLink` values. */ export interface PlatformSiteAppLinkConnection { edges: PlatformSiteAppLinkEdge[]; @@ -12842,25 +12883,6 @@ export interface RedirectConnection { pageInfo: PageInfo; totalCount: number; } -export interface ResolveRouteRecord { - domainId?: string | null; - hostname?: string | null; - matchedPath?: string | null; - matchedWildcard?: boolean | null; - method?: string | null; - priority?: number | null; - resolvedConfig?: unknown | null; - routeBindingId?: string | null; - servingLane?: string | null; - targetCatalogId?: string | null; - targetModule?: string | null; - targetOwnerKey?: string | null; - targetOwnerScope?: string | null; - targetSourceId?: string | null; - tlsSecretName?: string | null; - tlsStatus?: string | null; - verificationStatus?: string | null; -} /** A connection to a list of `RlsSetting` values. */ export interface RlsSettingConnection { edges: RlsSettingEdge[]; @@ -13338,6 +13360,12 @@ export interface CreatePlatformPagePayload { platformPage?: PlatformPage | null; platformPageEdge?: PlatformPageEdge | null; } +export interface CreatePlatformReservedSubdomainPayload { + clientMutationId?: string | null; + /** The `PlatformReservedSubdomain` that was created by this mutation. */ + platformReservedSubdomain?: PlatformReservedSubdomain | null; + platformReservedSubdomainEdge?: PlatformReservedSubdomainEdge | null; +} export interface CreatePlatformSitePayload { clientMutationId?: string | null; /** The `PlatformSite` that was created by this mutation. */ @@ -13848,6 +13876,12 @@ export interface DeletePlatformPagePayload { platformPage?: PlatformPage | null; platformPageEdge?: PlatformPageEdge | null; } +export interface DeletePlatformReservedSubdomainPayload { + clientMutationId?: string | null; + /** The `PlatformReservedSubdomain` that was deleted by this mutation. */ + platformReservedSubdomain?: PlatformReservedSubdomain | null; + platformReservedSubdomainEdge?: PlatformReservedSubdomainEdge | null; +} export interface DeletePlatformSitePayload { clientMutationId?: string | null; /** The `PlatformSite` that was deleted by this mutation. */ @@ -14472,6 +14506,12 @@ export interface UpdatePlatformPagePayload { platformPage?: PlatformPage | null; platformPageEdge?: PlatformPageEdge | null; } +export interface UpdatePlatformReservedSubdomainPayload { + clientMutationId?: string | null; + /** The `PlatformReservedSubdomain` that was updated by this mutation. */ + platformReservedSubdomain?: PlatformReservedSubdomain | null; + platformReservedSubdomainEdge?: PlatformReservedSubdomainEdge | null; +} export interface UpdatePlatformSitePayload { clientMutationId?: string | null; /** The `PlatformSite` that was updated by this mutation. */ @@ -14715,21 +14755,27 @@ export interface UpdateWebauthnSettingPayload { /** Information about a database table */ export interface MetaTable { constraints: MetaConstraints; + /** Description written for this table, or null */ + description?: string | null; fields: MetaField[]; foreignKeyConstraints: MetaForeignKeyConstraint[]; - /** i18n metadata (null if no @i18n tag) */ + /** i18n metadata (null if the table is not translatable) */ i18n?: MetaI18n | null; indexes: MetaIndex[]; inflection: MetaInflection; + /** Whether this table only links rows of two other tables; the link appears in their manyToMany relations */ + isJunction: boolean; + /** 'table' when rows are stored in this table, 'view' when they come from a view of other tables */ + kind: string; /** Final GraphQL output type name */ name: string; primaryKeyConstraints: MetaPrimaryKeyConstraint[]; query: MetaQuery; - /** Realtime metadata (null if no @realtime tag) */ + /** Realtime metadata (null if the table has no change subscriptions) */ realtime?: MetaRealtime | null; relations: MetaRelations; schemaName: string; - /** Provisioning scope metadata (null if no @scope tag) */ + /** Provisioning scope metadata (null if the table has no scope) */ scope?: MetaScope | null; /** Search metadata (null if no search configured) */ search?: MetaSearch | null; @@ -15044,6 +15090,12 @@ export interface PlatformPageEdge { /** The `PlatformPage` at the end of the edge. */ node?: PlatformPage | null; } +/** A `PlatformReservedSubdomain` edge in the connection. */ +export interface PlatformReservedSubdomainEdge { + cursor?: string | null; + /** The `PlatformReservedSubdomain` at the end of the edge. */ + node?: PlatformReservedSubdomain | null; +} /** A `PlatformSiteAppLink` edge in the connection. */ export interface PlatformSiteAppLinkEdge { cursor?: string | null; @@ -15380,15 +15432,27 @@ export interface MetaConstraints { } /** Information about a table field/column */ export interface MetaField { + /** Values this field accepts, when the set is fixed; null otherwise. Set on a table's own fields only. */ + allowedValues?: string[] | null; /** PostgreSQL column name */ columnName: string; description?: string | null; /** Enum metadata if this field has an enum type */ enumValues?: MetaEnum | null; + /** Set when the field holds files; null otherwise. Set on a table's own fields only. */ + file?: MetaFileField | null; hasDefault: boolean; + /** Whether the value is always computed and cannot be written, even when a create or update input offers the field. Set on a table's own fields only. */ + isComputed?: boolean | null; isForeignKey: boolean; isNotNull: boolean; isPrimaryKey: boolean; + /** Whether a create must provide this field. Set on a table's own fields only. */ + isRequiredOnCreate?: boolean | null; + /** Whether a create may set this field. Set on a table's own fields only. */ + isWritableOnCreate?: boolean | null; + /** Whether an update may change this field. Set on a table's own fields only. */ + isWritableOnUpdate?: boolean | null; /** Final GraphQL field name */ name: string; type: MetaType; @@ -15402,7 +15466,7 @@ export interface MetaForeignKeyConstraint { referencedFields: string[]; referencedTable: string; } -/** i18n metadata for a table with @i18n tag */ +/** i18n metadata for a translatable table */ export interface MetaI18n { /** Fields that are translatable */ translatableFields: MetaI18nField[]; @@ -15417,7 +15481,7 @@ export interface MetaIndex { isUnique: boolean; name: string; } -/** Table inflection names */ +/** Type and field names generated for this table */ export interface MetaInflection { allRows: string; conditionType: string; @@ -15445,7 +15509,7 @@ export interface MetaQuery { one?: string | null; update?: string | null; } -/** Realtime metadata for a table with @realtime tag */ +/** Realtime metadata for a table with change subscriptions */ export interface MetaRealtime { /** The generated subscription field name (e.g. onPostChanged) */ subscriptionFieldName: string; @@ -15460,13 +15524,13 @@ export interface MetaRelations { } /** Provisioning scope metadata for a table */ export interface MetaScope { - /** SQL name of the entity table for entity scopes, else null */ + /** Name of the entity table for entity scopes, else null */ entityTable?: string | null; - /** Inflected scope key column (e.g. databaseId, orgId), null for global tiers */ + /** Field name of the scope key (e.g. databaseId, orgId), null for global tiers */ keyColumn?: string | null; /** Provisioning scope: 'platform', 'app', 'database', or an entity scope (e.g. 'org') */ scope: string; - /** Provenance of the scope metadata (always 'smartTag') */ + /** Where this scope metadata comes from */ source: string; /** Coarse bucket: 'global', 'database', or 'entity' */ tier: string; @@ -15484,17 +15548,17 @@ export interface MetaSearch { } /** Storage metadata for a table */ export interface MetaStorage { - /** GraphQL type name of the plane's buckets table */ + /** GraphQL type name of the paired buckets table */ bucketsType: string; /** Computed download-URL field on the files type; null on the buckets side */ downloadUrlField?: string | null; - /** GraphQL type name of the plane's files table */ + /** GraphQL type name of the paired files table */ filesType: string; /** Whether this table is a storage buckets table */ isBucketsTable: boolean; /** Whether this table is a storage files table */ isFilesTable: boolean; - /** The plane's GraphQL upload surface */ + /** Upload mutations and types for this storage */ upload: MetaStorageUpload; } /** Information about a unique constraint */ @@ -15509,6 +15573,15 @@ export interface MetaEnum { /** Allowed values for this enum */ values: string[]; } +/** How a field holds files */ +export interface MetaFileField { + /** GraphQL type name of the files table uploads are recorded in, when this API has exactly one; null otherwise */ + filesType?: string | null; + /** Whether the field holds a list of files */ + isMultiple: boolean; + /** image, upload, or attachment. An image or upload holds a file document; an attachment holds a link to a file. */ + kind: string; +} /** Information about a PostgreSQL type */ export interface MetaType { /** Scalar serialization contract (null for plain scalars) */ @@ -15517,7 +15590,13 @@ export interface MetaType { hasDefault?: boolean | null; isArray: boolean; isNotNull?: boolean | null; + /** Most characters a text value may hold, or most bits a bit string may hold; for a list, each item. Null when unbounded. */ + maxLength?: number | null; pgType: string; + /** Most significant digits a decimal number may hold. Null when unbounded. */ + precision?: number | null; + /** Digits a decimal number keeps after the decimal point. Null when unbounded. */ + scale?: number | null; subtype?: string | null; } /** Reference to a related table */ @@ -15536,6 +15615,8 @@ export interface MetaBelongsToRelation { fieldName?: string | null; isUnique: boolean; keys: MetaField[]; + /** Fields on the referenced table that keys point at, in the same order as keys */ + refKeys: MetaField[]; references: MetaRefTable; type?: string | null; } @@ -15545,6 +15626,8 @@ export interface MetaHasRelation { isUnique: boolean; keys: MetaField[]; referencedBy: MetaRefTable; + /** Fields on the related table that point at this table, in the same order as keys */ + remoteKeys: MetaField[]; type?: string | null; } /** A many-to-many relation via junction table */ @@ -15567,7 +15650,7 @@ export interface MetaSearchColumn { /** Column name (camelCase) */ name: string; } -/** Per-table search configuration from @searchConfig smart tag */ +/** Per-table search configuration */ export interface MetaSearchConfig { /** Exponential decay factor per day */ boostRecencyDecay?: number | null; @@ -15578,7 +15661,7 @@ export interface MetaSearchConfig { /** JSON-encoded per-adapter score weights */ weights?: string | null; } -/** The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from */ +/** The upload mutations and types for a storage table pair */ export interface MetaStorageUpload { /** Per-file input type inside the bulk input */ bulkFileInputType: string; @@ -15596,14 +15679,14 @@ export interface MetaStorageUpload { mutation: string; /** Payload type of the single upload mutation */ payloadType: string; - /** Whether the upload input requires ownerId (entity-keyed plane) */ + /** Whether the upload input requires ownerId */ requiresOwnerId: boolean; } -/** How a client must serialize/parse a scalar — the one field-type detail standard GraphQL introspection cannot describe. Null for plain scalars whose wire format is obvious from gqlType. */ +/** How a client must serialize and parse a scalar whose wire format gqlType alone does not settle. Null for plain scalars whose wire format is obvious from gqlType. */ export interface MetaScalarEncoding { /** For 'vector': declared length, else null. */ dimensions?: number | null; - /** For 'ltree': values are dot-separated path strings. */ + /** For 'ltree': true when values are dot-separated paths ('a.b.c'), false when they are slash-separated paths ('/a/b/c'). */ dotPath?: boolean | null; /** For 'vector': element scalar (e.g. 'float'). */ elementType?: string | null; diff --git a/sdk/constructive-react/src/api/types.ts b/sdk/constructive-react/src/api/types.ts index 89bc1cf1c7..6ebe299e4c 100644 --- a/sdk/constructive-react/src/api/types.ts +++ b/sdk/constructive-react/src/api/types.ts @@ -5,16 +5,17 @@ */ import type { ApiExposureLevel, ObjectCategory } from './schema-types'; export type ConstructiveInternalTypeImage = unknown; +export type FileVersion = unknown; export interface Api { anonRole: string | null; config: unknown | null; createdAt: string | null; databaseId: string | null; - dbname: string | null; id: string | null; isPublished: boolean | null; name: string | null; roleName: string | null; + serviceHostname: string | null; updatedAt: string | null; } export interface ApiSchema { @@ -32,7 +33,6 @@ export interface ApiSetting { enableAggregates: boolean | null; enableBulk: boolean | null; enableConnectionFilter: boolean | null; - enableDirectUploads: boolean | null; enableI18N: boolean | null; enableIntrospection: boolean | null; enableLlm: boolean | null; @@ -129,7 +129,6 @@ export interface DatabaseSetting { enableBilling: boolean | null; enableBulk: boolean | null; enableConnectionFilter: boolean | null; - enableDirectUploads: boolean | null; enableI18N: boolean | null; enableIntrospection: boolean | null; enableLlm: boolean | null; @@ -549,11 +548,11 @@ export interface PlatformApi { anonRole: string | null; config: unknown | null; createdAt: string | null; - dbname: string | null; id: string | null; isPublished: boolean | null; name: string | null; roleName: string | null; + serviceHostname: string | null; updatedAt: string | null; } export interface PlatformApiSchema { @@ -569,7 +568,6 @@ export interface PlatformApiSetting { enableAggregates: boolean | null; enableBulk: boolean | null; enableConnectionFilter: boolean | null; - enableDirectUploads: boolean | null; enableI18N: boolean | null; enableIntrospection: boolean | null; enableLlm: boolean | null; @@ -717,6 +715,16 @@ export interface PlatformPage { storeId: string | null; updatedAt: string | null; } +export interface PlatformReservedSubdomain { + createdAt: string | null; + createdByPrincipal: string | null; + id: string | null; + label: string | null; + match: string | null; + reason: string | null; + updatedAt: string | null; + updatedByPrincipal: string | null; +} export interface PlatformSiteAppLink { appStoreIdentityId: string | null; createdAt: string | null; @@ -764,14 +772,22 @@ export interface PlatformSiteErrorPage { } export interface PlatformSiteMetadatum { appleTouchIcon: ConstructiveInternalTypeImage | null; + appleTouchIconUrl: string | null; + appleTouchIconVersions: FileVersion[] | null; canonicalUrl: string | null; commitId: string | null; createdAt: string | null; description: string | null; favicon: ConstructiveInternalTypeImage | null; + faviconUrl: string | null; + faviconVersions: FileVersion[] | null; id: string | null; logo: ConstructiveInternalTypeImage | null; + logoUrl: string | null; + logoVersions: FileVersion[] | null; ogImage: ConstructiveInternalTypeImage | null; + ogImageUrl: string | null; + ogImageVersions: FileVersion[] | null; robots: string | null; robotsSeededFrom: unknown | null; siteId: string | null; @@ -990,15 +1006,23 @@ export interface SiteErrorPage { } export interface SiteMetadatum { appleTouchIcon: ConstructiveInternalTypeImage | null; + appleTouchIconUrl: string | null; + appleTouchIconVersions: FileVersion[] | null; canonicalUrl: string | null; commitId: string | null; createdAt: string | null; databaseId: string | null; description: string | null; favicon: ConstructiveInternalTypeImage | null; + faviconUrl: string | null; + faviconVersions: FileVersion[] | null; id: string | null; logo: ConstructiveInternalTypeImage | null; + logoUrl: string | null; + logoVersions: FileVersion[] | null; ogImage: ConstructiveInternalTypeImage | null; + ogImageUrl: string | null; + ogImageVersions: FileVersion[] | null; robots: string | null; robotsSeededFrom: unknown | null; siteId: string | null; diff --git a/sdk/constructive-react/src/auth/README.md b/sdk/constructive-react/src/auth/README.md index c4ed001355..344572674b 100644 --- a/sdk/constructive-react/src/auth/README.md +++ b/sdk/constructive-react/src/auth/README.md @@ -9,8 +9,8 @@ ## Overview - **Tables:** 15 -- **Custom queries:** 6 -- **Custom mutations:** 55 +- **Custom queries:** 7 +- **Custom mutations:** 59 **Generators:** ORM, React Query diff --git a/sdk/constructive-react/src/auth/hooks/README.md b/sdk/constructive-react/src/auth/hooks/README.md index 5cf4da76c9..e2ea9f9d7d 100644 --- a/sdk/constructive-react/src/auth/hooks/README.md +++ b/sdk/constructive-react/src/auth/hooks/README.md @@ -48,10 +48,8 @@ function App() { | `useUpdateEmailMutation` | Mutation | User email addresses with verification and primary-email management | | `useDeleteEmailMutation` | Mutation | User email addresses with verification and primary-email management | | `useIdentityProvidersQuery` | Query | List all identityProviders | -| `useCreateIdentityProviderMutation` | Mutation | Create a identityProvider | | `useOrgApiKeyListsQuery` | Query | List all orgApiKeyLists | | `useOrgApiKeyListQuery` | Query | Get one orgApiKeyList | -| `useCreateOrgApiKeyListMutation` | Mutation | Create a orgApiKeyList | | `useUpdateOrgApiKeyListMutation` | Mutation | Update a orgApiKeyList | | `useDeleteOrgApiKeyListMutation` | Mutation | Delete a orgApiKeyList | | `usePhoneNumbersQuery` | Query | User phone numbers with country code, verification, and primary-number management | @@ -61,17 +59,14 @@ function App() { | `useDeletePhoneNumberMutation` | Mutation | User phone numbers with country code, verification, and primary-number management | | `usePrincipalsQuery` | Query | Scoped sub-identities (API keys and agents) with precomputed SPRT | | `usePrincipalQuery` | Query | Scoped sub-identities (API keys and agents) with precomputed SPRT | -| `useCreatePrincipalMutation` | Mutation | Scoped sub-identities (API keys and agents) with precomputed SPRT | | `useUpdatePrincipalMutation` | Mutation | Scoped sub-identities (API keys and agents) with precomputed SPRT | | `useDeletePrincipalMutation` | Mutation | Scoped sub-identities (API keys and agents) with precomputed SPRT | | `usePrincipalEntitiesQuery` | Query | Association table scoping principals to specific organizations | | `usePrincipalEntityQuery` | Query | Association table scoping principals to specific organizations | -| `useCreatePrincipalEntityMutation` | Mutation | Association table scoping principals to specific organizations | | `useUpdatePrincipalEntityMutation` | Mutation | Association table scoping principals to specific organizations | | `useDeletePrincipalEntityMutation` | Mutation | Association table scoping principals to specific organizations | | `usePrincipalScopeOverridesQuery` | Query | Per-scope capability overrides for principals. No row = full access; row exists = apply restrictions. | | `usePrincipalScopeOverrideQuery` | Query | Per-scope capability overrides for principals. No row = full access; row exists = apply restrictions. | -| `useCreatePrincipalScopeOverrideMutation` | Mutation | Per-scope capability overrides for principals. No row = full access; row exists = apply restrictions. | | `useUpdatePrincipalScopeOverrideMutation` | Mutation | Per-scope capability overrides for principals. No row = full access; row exists = apply restrictions. | | `useDeletePrincipalScopeOverrideMutation` | Mutation | Per-scope capability overrides for principals. No row = full access; row exists = apply restrictions. | | `useRoleTypesQuery` | Query | List all roleTypes | @@ -81,7 +76,6 @@ function App() { | `useDeleteRoleTypeMutation` | Mutation | Delete a roleType | | `useUserConnectedAccountsQuery` | Query | List all userConnectedAccounts | | `useUserConnectedAccountQuery` | Query | Get one userConnectedAccount | -| `useCreateUserConnectedAccountMutation` | Mutation | Create a userConnectedAccount | | `useUpdateUserConnectedAccountMutation` | Mutation | Update a userConnectedAccount | | `useDeleteUserConnectedAccountMutation` | Mutation | Delete a userConnectedAccount | | `useUsersQuery` | Query | List all users | @@ -110,15 +104,17 @@ function App() { | `useCurrentUserIdQuery` | Query | currentUserId | | `useGetMfaStatusQuery` | Query | getMfaStatus | | `useRequireStepUpQuery` | Query | requireStepUp | +| `useSignInOptionsQuery` | Query | signInOptions | | `useApproveDeviceMutation` | Mutation | approveDevice | | `useCheckPasswordMutation` | Mutation | checkPassword | | `useCompleteMfaChallengeMutation` | Mutation | completeMfaChallenge | | `useConfirmDeleteAccountMutation` | Mutation | confirmDeleteAccount | | `useConfirmTotpSetupMutation` | Mutation | confirmTotpSetup | -| `useCreateApiKeyMutation` | Mutation | createApiKey | +| `useCreateApiKeyMutation` | Mutation | Mint an API key for the current user; the plaintext key is returned once. access_level: full_access (default) or read_only. mfa_level: none (default) or verified; verified needs a fresh MFA proof on the calling session. A key minted while authenticated by another API key never outlives that key. | | `useCreateChildPrincipalMutation` | Mutation | createChildPrincipal | | `useCreateOrgApiKeyMutation` | Mutation | createOrgApiKey | | `useCreateOrgPrincipalMutation` | Mutation | createOrgPrincipal | +| `useCreatePrincipalMutation` | Mutation | createPrincipal | | `useCreatePrincipalFromPresetMutation` | Mutation | createPrincipalFromPreset | | `useDeleteOrgPrincipalMutation` | Mutation | deleteOrgPrincipal | | `useDeletePrincipalMutation` | Mutation | deletePrincipal | @@ -129,6 +125,8 @@ function App() { | `useEnableEmailMfaMutation` | Mutation | enableEmailMfa | | `useEnableSmsMfaMutation` | Mutation | enableSmsMfa | | `useEnableTotpMutation` | Mutation | enableTotp | +| `useEnsureAuthCsrfMutation` | Mutation | ensureAuthCsrf | +| `useExchangeNativeHandoffMutation` | Mutation | exchangeNativeHandoff | | `useExtendTokenExpiresMutation` | Mutation | extendTokenExpires | | `useForgotPasswordMutation` | Mutation | forgotPassword | | `useGenerateBackupCodesMutation` | Mutation | generateBackupCodes | @@ -142,6 +140,7 @@ idempotent for an already-reconciled bucket; failures become GraphQL errors. | | `useRefreshAccessTokenMutation` | Mutation | refreshAccessToken | | `useRequestCrossOriginTokenMutation` | Mutation | requestCrossOriginToken | +| `useRequestDeviceApprovalMutation` | Mutation | requestDeviceApproval | | `useRequestMagicLinkMutation` | Mutation | requestMagicLink | | `useResetPasswordMutation` | Mutation | resetPassword | | `useRevokeApiKeyMutation` | Mutation | revokeApiKey | @@ -244,11 +243,6 @@ const { data, isLoading } = useIdentityProvidersQuery({ selection: { fields: { displayName: true, enabled: true, kind: true, slug: true } }, }); -// Create a identityProvider -const { mutate: create } = useCreateIdentityProviderMutation({ - selection: { fields: { id: true } }, -}); -create({ displayName: '', enabled: '', kind: '', slug: '' }); ``` ### OrgApiKeyList @@ -265,11 +259,6 @@ const { data: item } = useOrgApiKeyListQuery({ selection: { fields: { accessLevel: true, createdAt: true, expiresAt: true, id: true, keyId: true, lastUsedAt: true, mfaLevel: true, name: true, orgId: true, principalId: true, revokedAt: true, updatedAt: true } }, }); -// Create a orgApiKeyList -const { mutate: create } = useCreateOrgApiKeyListMutation({ - selection: { fields: { id: true } }, -}); -create({ accessLevel: '', expiresAt: '', keyId: '', lastUsedAt: '', mfaLevel: '', name: '', orgId: '', principalId: '', revokedAt: '' }); ``` ### PhoneNumber @@ -307,11 +296,6 @@ const { data: item } = usePrincipalQuery({ selection: { fields: { apiKeyMaxDuration: true, bypassStepUp: true, createdAt: true, createdBySessionId: true, depth: true, expiresAt: true, id: true, isReadOnly: true, name: true, ownerId: true, parentPrincipalId: true, updatedAt: true, useAdminOwner: true, userId: true } }, }); -// Create a principal -const { mutate: create } = useCreatePrincipalMutation({ - selection: { fields: { principalId: true } }, -}); -create({ apiKeyMaxDuration: '', bypassStepUp: '', createdBySessionId: '', depth: '', expiresAt: '', id: '', isReadOnly: '', name: '', ownerId: '', parentPrincipalId: '', useAdminOwner: '', userId: '' }); ``` ### PrincipalEntity @@ -328,11 +312,6 @@ const { data: item } = usePrincipalEntityQuery({ selection: { fields: { createdAt: true, entityId: true, id: true, ownerId: true, principalId: true, updatedAt: true } }, }); -// Create a principalEntity -const { mutate: create } = useCreatePrincipalEntityMutation({ - selection: { fields: { id: true } }, -}); -create({ entityId: '', ownerId: '', principalId: '' }); ``` ### PrincipalScopeOverride @@ -349,11 +328,6 @@ const { data: item } = usePrincipalScopeOverrideQuery({ selection: { fields: { allowedMask: true, createdAt: true, id: true, isActive: true, isReadOnly: true, membershipType: true, principalId: true, updatedAt: true, useAdminOwner: true } }, }); -// Create a principalScopeOverride -const { mutate: create } = useCreatePrincipalScopeOverrideMutation({ - selection: { fields: { id: true } }, -}); -create({ allowedMask: '', isActive: '', isReadOnly: '', membershipType: '', principalId: '', useAdminOwner: '' }); ``` ### RoleType @@ -391,11 +365,6 @@ const { data: item } = useUserConnectedAccountQuery({ selection: { fields: { createdAt: true, details: true, id: true, identifier: true, isVerified: true, ownerId: true, service: true, updatedAt: true } }, }); -// Create a userConnectedAccount -const { mutate: create } = useCreateUserConnectedAccountMutation({ - selection: { fields: { id: true } }, -}); -create({ details: '', identifier: '', isVerified: '', ownerId: '', service: '' }); ``` ### User @@ -416,7 +385,7 @@ const { data: item } = useUserQuery({ const { mutate: create } = useCreateUserMutation({ selection: { fields: { id: true } }, }); -create({ displayName: '', displayNameTrgmSimilarity: '', profilePicture: '', searchScore: '', searchTsv: '', searchTsvRank: '', type: '', username: '' }); +create({ displayName: '', profilePicture: '', type: '', username: '' }); ``` ### UserSetting @@ -530,6 +499,13 @@ requireStepUp |----------|------| | `stepUpType` | String | +### `useSignInOptionsQuery` + +signInOptions + +- **Type:** query +- **Arguments:** none + ### `useApproveDeviceMutation` approveDevice @@ -587,7 +563,7 @@ confirmTotpSetup ### `useCreateApiKeyMutation` -createApiKey +Mint an API key for the current user; the plaintext key is returned once. access_level: full_access (default) or read_only. mfa_level: none (default) or verified; verified needs a fresh MFA proof on the calling session. A key minted while authenticated by another API key never outlives that key. - **Type:** mutation - **Arguments:** @@ -629,6 +605,17 @@ createOrgPrincipal |----------|------| | `input` | CreateOrgPrincipalInput (required) | +### `useCreatePrincipalMutation` + +createPrincipal + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | CreatePrincipalInput (required) | + ### `useCreatePrincipalFromPresetMutation` createPrincipalFromPreset @@ -739,6 +726,28 @@ enableTotp |----------|------| | `input` | EnableTotpInput (required) | +### `useEnsureAuthCsrfMutation` + +ensureAuthCsrf + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | EnsureAuthCsrfInput (required) | + +### `useExchangeNativeHandoffMutation` + +exchangeNativeHandoff + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ExchangeNativeHandoffInput (required) | + ### `useExtendTokenExpiresMutation` extendTokenExpires @@ -832,6 +841,17 @@ requestCrossOriginToken |----------|------| | `input` | RequestCrossOriginTokenInput (required) | +### `useRequestDeviceApprovalMutation` + +requestDeviceApproval + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | RequestDeviceApprovalInput (required) | + ### `useRequestMagicLinkMutation` requestMagicLink diff --git a/sdk/constructive-react/src/auth/hooks/mutation-keys.ts b/sdk/constructive-react/src/auth/hooks/mutation-keys.ts index ea11abc608..0c60b69197 100644 --- a/sdk/constructive-react/src/auth/hooks/mutation-keys.ts +++ b/sdk/constructive-react/src/auth/hooks/mutation-keys.ts @@ -194,6 +194,10 @@ export const customMutationKeys = { identifier ? (['mutation', 'createOrgPrincipal', identifier] as const) : (['mutation', 'createOrgPrincipal'] as const), + /** Mutation key for createPrincipal */ createPrincipal: (identifier?: string) => + identifier + ? (['mutation', 'createPrincipal', identifier] as const) + : (['mutation', 'createPrincipal'] as const), /** Mutation key for createPrincipalFromPreset */ createPrincipalFromPreset: ( identifier?: string ) => @@ -236,6 +240,14 @@ export const customMutationKeys = { identifier ? (['mutation', 'enableTotp', identifier] as const) : (['mutation', 'enableTotp'] as const), + /** Mutation key for ensureAuthCsrf */ ensureAuthCsrf: (identifier?: string) => + identifier + ? (['mutation', 'ensureAuthCsrf', identifier] as const) + : (['mutation', 'ensureAuthCsrf'] as const), + /** Mutation key for exchangeNativeHandoff */ exchangeNativeHandoff: (identifier?: string) => + identifier + ? (['mutation', 'exchangeNativeHandoff', identifier] as const) + : (['mutation', 'exchangeNativeHandoff'] as const), /** Mutation key for extendTokenExpires */ extendTokenExpires: (identifier?: string) => identifier ? (['mutation', 'extendTokenExpires', identifier] as const) @@ -268,6 +280,10 @@ export const customMutationKeys = { identifier ? (['mutation', 'requestCrossOriginToken', identifier] as const) : (['mutation', 'requestCrossOriginToken'] as const), + /** Mutation key for requestDeviceApproval */ requestDeviceApproval: (identifier?: string) => + identifier + ? (['mutation', 'requestDeviceApproval', identifier] as const) + : (['mutation', 'requestDeviceApproval'] as const), /** Mutation key for requestMagicLink */ requestMagicLink: (identifier?: string) => identifier ? (['mutation', 'requestMagicLink', identifier] as const) diff --git a/sdk/constructive-react/src/auth/hooks/mutations/index.ts b/sdk/constructive-react/src/auth/hooks/mutations/index.ts index ef74460847..aa70ee66e5 100644 --- a/sdk/constructive-react/src/auth/hooks/mutations/index.ts +++ b/sdk/constructive-react/src/auth/hooks/mutations/index.ts @@ -12,18 +12,12 @@ export * from './useDeleteCryptoAddressMutation'; export * from './useCreateEmailMutation'; export * from './useUpdateEmailMutation'; export * from './useDeleteEmailMutation'; -export * from './useCreateIdentityProviderMutation'; -export * from './useCreateOrgApiKeyListMutation'; export * from './useCreatePhoneNumberMutation'; export * from './useUpdatePhoneNumberMutation'; export * from './useDeletePhoneNumberMutation'; -export * from './useCreatePrincipalMutation'; -export * from './useCreatePrincipalEntityMutation'; -export * from './useCreatePrincipalScopeOverrideMutation'; export * from './useCreateRoleTypeMutation'; export * from './useUpdateRoleTypeMutation'; export * from './useDeleteRoleTypeMutation'; -export * from './useCreateUserConnectedAccountMutation'; export * from './useCreateUserMutation'; export * from './useUpdateUserMutation'; export * from './useDeleteUserMutation'; @@ -45,6 +39,7 @@ export * from './useCreateApiKeyMutation'; export * from './useCreateChildPrincipalMutation'; export * from './useCreateOrgApiKeyMutation'; export * from './useCreateOrgPrincipalMutation'; +export * from './useCreatePrincipalMutation'; export * from './useCreatePrincipalFromPresetMutation'; export * from './useDeleteOrgPrincipalMutation'; export * from './useDeletePrincipalMutation'; @@ -55,6 +50,8 @@ export * from './useDisconnectAccountMutation'; export * from './useEnableEmailMfaMutation'; export * from './useEnableSmsMfaMutation'; export * from './useEnableTotpMutation'; +export * from './useEnsureAuthCsrfMutation'; +export * from './useExchangeNativeHandoffMutation'; export * from './useExtendTokenExpiresMutation'; export * from './useForgotPasswordMutation'; export * from './useGenerateBackupCodesMutation'; @@ -63,6 +60,7 @@ export * from './useMintAccessTokenMutation'; export * from './useProvisionBucketMutation'; export * from './useRefreshAccessTokenMutation'; export * from './useRequestCrossOriginTokenMutation'; +export * from './useRequestDeviceApprovalMutation'; export * from './useRequestMagicLinkMutation'; export * from './useResetPasswordMutation'; export * from './useRevokeApiKeyMutation'; diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useCreateIdentityProviderMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useCreateIdentityProviderMutation.ts deleted file mode 100644 index 157d07d899..0000000000 --- a/sdk/constructive-react/src/auth/hooks/mutations/useCreateIdentityProviderMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Create mutation hook for IdentityProvider - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { identityProviderKeys } from '../query-keys'; -import { identityProviderMutationKeys } from '../mutation-keys'; -import type { - IdentityProviderSelect, - IdentityProviderWithRelations, - CreateIdentityProviderInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - IdentityProviderSelect, - IdentityProviderWithRelations, - CreateIdentityProviderInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a IdentityProvider - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateIdentityProviderMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateIdentityProviderMutation( - params: { - selection: { - fields: S & IdentityProviderSelect; - } & HookStrictSelect, IdentityProviderSelect>; - } & Omit< - UseMutationOptions< - { - createIdentityProvider: { - identityProvider: InferSelectResult; - }; - }, - Error, - CreateIdentityProviderInput['identityProvider'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createIdentityProvider: { - identityProvider: InferSelectResult; - }; - }, - Error, - CreateIdentityProviderInput['identityProvider'] ->; -export function useCreateIdentityProviderMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: identityProviderMutationKeys.create(), - mutationFn: (data: CreateIdentityProviderInput['identityProvider']) => - getClient() - .identityProvider.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: identityProviderKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useCreateOrgApiKeyListMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useCreateOrgApiKeyListMutation.ts deleted file mode 100644 index 8ee7097912..0000000000 --- a/sdk/constructive-react/src/auth/hooks/mutations/useCreateOrgApiKeyListMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Create mutation hook for OrgApiKeyList - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgApiKeyListKeys } from '../query-keys'; -import { orgApiKeyListMutationKeys } from '../mutation-keys'; -import type { - OrgApiKeyListSelect, - OrgApiKeyListWithRelations, - CreateOrgApiKeyListInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgApiKeyListSelect, - OrgApiKeyListWithRelations, - CreateOrgApiKeyListInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a OrgApiKeyList - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateOrgApiKeyListMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateOrgApiKeyListMutation( - params: { - selection: { - fields: S & OrgApiKeyListSelect; - } & HookStrictSelect, OrgApiKeyListSelect>; - } & Omit< - UseMutationOptions< - { - createOrgApiKeyList: { - orgApiKeyList: InferSelectResult; - }; - }, - Error, - CreateOrgApiKeyListInput['orgApiKeyList'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createOrgApiKeyList: { - orgApiKeyList: InferSelectResult; - }; - }, - Error, - CreateOrgApiKeyListInput['orgApiKeyList'] ->; -export function useCreateOrgApiKeyListMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgApiKeyListMutationKeys.create(), - mutationFn: (data: CreateOrgApiKeyListInput['orgApiKeyList']) => - getClient() - .orgApiKeyList.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: orgApiKeyListKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useCreatePrincipalEntityMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useCreatePrincipalEntityMutation.ts deleted file mode 100644 index 16edd29ff9..0000000000 --- a/sdk/constructive-react/src/auth/hooks/mutations/useCreatePrincipalEntityMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Association table scoping principals to specific organizations - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { principalEntityKeys } from '../query-keys'; -import { principalEntityMutationKeys } from '../mutation-keys'; -import type { - PrincipalEntitySelect, - PrincipalEntityWithRelations, - CreatePrincipalEntityInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - PrincipalEntitySelect, - PrincipalEntityWithRelations, - CreatePrincipalEntityInput, -} from '../../orm/input-types'; -/** - * Association table scoping principals to specific organizations - * - * @example - * ```tsx - * const { mutate, isPending } = useCreatePrincipalEntityMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreatePrincipalEntityMutation( - params: { - selection: { - fields: S & PrincipalEntitySelect; - } & HookStrictSelect, PrincipalEntitySelect>; - } & Omit< - UseMutationOptions< - { - createPrincipalEntity: { - principalEntity: InferSelectResult; - }; - }, - Error, - CreatePrincipalEntityInput['principalEntity'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createPrincipalEntity: { - principalEntity: InferSelectResult; - }; - }, - Error, - CreatePrincipalEntityInput['principalEntity'] ->; -export function useCreatePrincipalEntityMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: principalEntityMutationKeys.create(), - mutationFn: (data: CreatePrincipalEntityInput['principalEntity']) => - getClient() - .principalEntity.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: principalEntityKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useCreatePrincipalMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useCreatePrincipalMutation.ts index 6b805d782c..17061d7b9a 100644 --- a/sdk/constructive-react/src/auth/hooks/mutations/useCreatePrincipalMutation.ts +++ b/sdk/constructive-react/src/auth/hooks/mutations/useCreatePrincipalMutation.ts @@ -1,88 +1,55 @@ /** - * Scoped sub-identities (API keys and agents) with precomputed SPRT + * Custom mutation hook for createPrincipal * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; +import { useMutation } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; import { getClient } from '../client'; import { buildSelectionArgs } from '../selection'; import type { SelectionConfig } from '../selection'; -import { principalKeys } from '../query-keys'; -import { principalMutationKeys } from '../mutation-keys'; -import type { - PrincipalSelect, - PrincipalWithRelations, - CreatePrincipalInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - PrincipalSelect, - PrincipalWithRelations, - CreatePrincipalInput, -} from '../../orm/input-types'; -/** - * Scoped sub-identities (API keys and agents) with precomputed SPRT - * - * @example - * ```tsx - * const { mutate, isPending } = useCreatePrincipalMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreatePrincipalMutation( +import { customMutationKeys } from '../mutation-keys'; +import type { CreatePrincipalVariables } from '../../orm/mutation'; +import type { CreatePrincipalPayloadSelect, CreatePrincipalPayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { CreatePrincipalVariables } from '../../orm/mutation'; +export type { CreatePrincipalPayloadSelect } from '../../orm/input-types'; +export function useCreatePrincipalMutation( params: { selection: { - fields: S & PrincipalSelect; - } & HookStrictSelect, PrincipalSelect>; + fields: S & CreatePrincipalPayloadSelect; + } & HookStrictSelect, CreatePrincipalPayloadSelect>; } & Omit< UseMutationOptions< { - createPrincipal: { - principal: InferSelectResult; - }; + createPrincipal: InferSelectResult | null; }, Error, - CreatePrincipalInput['principal'] + CreatePrincipalVariables >, 'mutationFn' > ): UseMutationResult< { - createPrincipal: { - principal: InferSelectResult; - }; + createPrincipal: InferSelectResult | null; }, Error, - CreatePrincipalInput['principal'] ->; -export function useCreatePrincipalMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); + CreatePrincipalVariables +> { + const args = buildSelectionArgs(params.selection); const { selection: _selection, ...mutationOptions } = params ?? {}; void _selection; - const queryClient = useQueryClient(); return useMutation({ - mutationKey: principalMutationKeys.create(), - mutationFn: (data: CreatePrincipalInput['principal']) => + mutationKey: customMutationKeys.createPrincipal(), + mutationFn: (variables: CreatePrincipalVariables) => getClient() - .principal.create({ - data, + .mutation.createPrincipal(variables, { select: args.select, - }) + } as { + select: S; + } & StrictSelect) .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: principalKeys.lists(), - }); - }, ...mutationOptions, }); } diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useCreatePrincipalScopeOverrideMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useCreatePrincipalScopeOverrideMutation.ts deleted file mode 100644 index 9d93c21aef..0000000000 --- a/sdk/constructive-react/src/auth/hooks/mutations/useCreatePrincipalScopeOverrideMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Per-scope capability overrides for principals. No row = full access; row exists = apply restrictions. - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { principalScopeOverrideKeys } from '../query-keys'; -import { principalScopeOverrideMutationKeys } from '../mutation-keys'; -import type { - PrincipalScopeOverrideSelect, - PrincipalScopeOverrideWithRelations, - CreatePrincipalScopeOverrideInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - PrincipalScopeOverrideSelect, - PrincipalScopeOverrideWithRelations, - CreatePrincipalScopeOverrideInput, -} from '../../orm/input-types'; -/** - * Per-scope capability overrides for principals. No row = full access; row exists = apply restrictions. - * - * @example - * ```tsx - * const { mutate, isPending } = useCreatePrincipalScopeOverrideMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreatePrincipalScopeOverrideMutation( - params: { - selection: { - fields: S & PrincipalScopeOverrideSelect; - } & HookStrictSelect, PrincipalScopeOverrideSelect>; - } & Omit< - UseMutationOptions< - { - createPrincipalScopeOverride: { - principalScopeOverride: InferSelectResult; - }; - }, - Error, - CreatePrincipalScopeOverrideInput['principalScopeOverride'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createPrincipalScopeOverride: { - principalScopeOverride: InferSelectResult; - }; - }, - Error, - CreatePrincipalScopeOverrideInput['principalScopeOverride'] ->; -export function useCreatePrincipalScopeOverrideMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: principalScopeOverrideMutationKeys.create(), - mutationFn: (data: CreatePrincipalScopeOverrideInput['principalScopeOverride']) => - getClient() - .principalScopeOverride.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: principalScopeOverrideKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useCreateUserConnectedAccountMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useCreateUserConnectedAccountMutation.ts deleted file mode 100644 index 6c0f3a5194..0000000000 --- a/sdk/constructive-react/src/auth/hooks/mutations/useCreateUserConnectedAccountMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Create mutation hook for UserConnectedAccount - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { userConnectedAccountKeys } from '../query-keys'; -import { userConnectedAccountMutationKeys } from '../mutation-keys'; -import type { - UserConnectedAccountSelect, - UserConnectedAccountWithRelations, - CreateUserConnectedAccountInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - UserConnectedAccountSelect, - UserConnectedAccountWithRelations, - CreateUserConnectedAccountInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a UserConnectedAccount - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateUserConnectedAccountMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateUserConnectedAccountMutation( - params: { - selection: { - fields: S & UserConnectedAccountSelect; - } & HookStrictSelect, UserConnectedAccountSelect>; - } & Omit< - UseMutationOptions< - { - createUserConnectedAccount: { - userConnectedAccount: InferSelectResult; - }; - }, - Error, - CreateUserConnectedAccountInput['userConnectedAccount'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createUserConnectedAccount: { - userConnectedAccount: InferSelectResult; - }; - }, - Error, - CreateUserConnectedAccountInput['userConnectedAccount'] ->; -export function useCreateUserConnectedAccountMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: userConnectedAccountMutationKeys.create(), - mutationFn: (data: CreateUserConnectedAccountInput['userConnectedAccount']) => - getClient() - .userConnectedAccount.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: userConnectedAccountKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useEnsureAuthCsrfMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useEnsureAuthCsrfMutation.ts new file mode 100644 index 0000000000..1d9693d499 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useEnsureAuthCsrfMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for ensureAuthCsrf + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { customMutationKeys } from '../mutation-keys'; +import type { EnsureAuthCsrfVariables } from '../../orm/mutation'; +import type { EnsureAuthCsrfPayloadSelect, EnsureAuthCsrfPayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { EnsureAuthCsrfVariables } from '../../orm/mutation'; +export type { EnsureAuthCsrfPayloadSelect } from '../../orm/input-types'; +export function useEnsureAuthCsrfMutation( + params: { + selection: { + fields: S & EnsureAuthCsrfPayloadSelect; + } & HookStrictSelect, EnsureAuthCsrfPayloadSelect>; + } & Omit< + UseMutationOptions< + { + ensureAuthCsrf: InferSelectResult | null; + }, + Error, + EnsureAuthCsrfVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + ensureAuthCsrf: InferSelectResult | null; + }, + Error, + EnsureAuthCsrfVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.ensureAuthCsrf(), + mutationFn: (variables: EnsureAuthCsrfVariables) => + getClient() + .mutation.ensureAuthCsrf(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useExchangeNativeHandoffMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useExchangeNativeHandoffMutation.ts new file mode 100644 index 0000000000..6eec737c16 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useExchangeNativeHandoffMutation.ts @@ -0,0 +1,58 @@ +/** + * Custom mutation hook for exchangeNativeHandoff + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { customMutationKeys } from '../mutation-keys'; +import type { ExchangeNativeHandoffVariables } from '../../orm/mutation'; +import type { + ExchangeNativeHandoffPayloadSelect, + ExchangeNativeHandoffPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { ExchangeNativeHandoffVariables } from '../../orm/mutation'; +export type { ExchangeNativeHandoffPayloadSelect } from '../../orm/input-types'; +export function useExchangeNativeHandoffMutation( + params: { + selection: { + fields: S & ExchangeNativeHandoffPayloadSelect; + } & HookStrictSelect, ExchangeNativeHandoffPayloadSelect>; + } & Omit< + UseMutationOptions< + { + exchangeNativeHandoff: InferSelectResult | null; + }, + Error, + ExchangeNativeHandoffVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + exchangeNativeHandoff: InferSelectResult | null; + }, + Error, + ExchangeNativeHandoffVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.exchangeNativeHandoff(), + mutationFn: (variables: ExchangeNativeHandoffVariables) => + getClient() + .mutation.exchangeNativeHandoff(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useRequestDeviceApprovalMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useRequestDeviceApprovalMutation.ts new file mode 100644 index 0000000000..f6c28723c4 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useRequestDeviceApprovalMutation.ts @@ -0,0 +1,58 @@ +/** + * Custom mutation hook for requestDeviceApproval + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { customMutationKeys } from '../mutation-keys'; +import type { RequestDeviceApprovalVariables } from '../../orm/mutation'; +import type { + RequestDeviceApprovalPayloadSelect, + RequestDeviceApprovalPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { RequestDeviceApprovalVariables } from '../../orm/mutation'; +export type { RequestDeviceApprovalPayloadSelect } from '../../orm/input-types'; +export function useRequestDeviceApprovalMutation( + params: { + selection: { + fields: S & RequestDeviceApprovalPayloadSelect; + } & HookStrictSelect, RequestDeviceApprovalPayloadSelect>; + } & Omit< + UseMutationOptions< + { + requestDeviceApproval: InferSelectResult | null; + }, + Error, + RequestDeviceApprovalVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + requestDeviceApproval: InferSelectResult | null; + }, + Error, + RequestDeviceApprovalVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.requestDeviceApproval(), + mutationFn: (variables: RequestDeviceApprovalVariables) => + getClient() + .mutation.requestDeviceApproval(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/queries/index.ts b/sdk/constructive-react/src/auth/hooks/queries/index.ts index 0baeef2927..06ae02a663 100644 --- a/sdk/constructive-react/src/auth/hooks/queries/index.ts +++ b/sdk/constructive-react/src/auth/hooks/queries/index.ts @@ -38,3 +38,4 @@ export * from './useCurrentUserAgentQuery'; export * from './useCurrentUserIdQuery'; export * from './useGetMfaStatusQuery'; export * from './useRequireStepUpQuery'; +export * from './useSignInOptionsQuery'; diff --git a/sdk/constructive-react/src/auth/hooks/queries/useSignInOptionsQuery.ts b/sdk/constructive-react/src/auth/hooks/queries/useSignInOptionsQuery.ts new file mode 100644 index 0000000000..f94a924d57 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/queries/useSignInOptionsQuery.ts @@ -0,0 +1,127 @@ +/** + * Custom query hook for signInOptions + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { customQueryKeys } from '../query-keys'; +import type { SignInOptionsRecordSelect, SignInOptionsRecord } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { SignInOptionsRecordSelect } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const signInOptionsQueryKey = customQueryKeys.signInOptions; +/** + * Query hook for signInOptions + * + * @example + * ```tsx + * const { data, isLoading } = useSignInOptionsQuery({ selection: { fields: { id: true } } }); + * + * if (data?.signInOptions) { + * console.log(data.signInOptions); + * } + * ``` + */ +export function useSignInOptionsQuery< + S extends SignInOptionsRecordSelect, + TData = { + signInOptions: InferSelectResult | null; + }, +>( + params: { + selection: { + fields: S & SignInOptionsRecordSelect; + } & HookStrictSelect, SignInOptionsRecordSelect>; + } & Omit< + UseQueryOptions< + { + signInOptions: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useSignInOptionsQuery( + params: { + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: signInOptionsQueryKey(), + queryFn: () => + getClient() + .query.signInOptions({ + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch signInOptions without React hooks + * + * @example + * ```ts + * const data = await fetchSignInOptionsQuery({ selection: { fields: { id: true } } }); + * ``` + */ +export async function fetchSignInOptionsQuery(params: { + selection: { + fields: S & SignInOptionsRecordSelect; + } & HookStrictSelect, SignInOptionsRecordSelect>; +}): Promise<{ + signInOptions: InferSelectResult | null; +}>; +export async function fetchSignInOptionsQuery(params: { + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .query.signInOptions({ + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch signInOptions for SSR or cache warming + * + * @example + * ```ts + * await prefetchSignInOptionsQuery(queryClient, { selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchSignInOptionsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S & SignInOptionsRecordSelect; + } & HookStrictSelect, SignInOptionsRecordSelect>; + } +): Promise; +export async function prefetchSignInOptionsQuery( + queryClient: QueryClient, + params: { + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: signInOptionsQueryKey(), + queryFn: () => + getClient() + .query.signInOptions({ + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/query-keys.ts b/sdk/constructive-react/src/auth/hooks/query-keys.ts index 57cfc97741..5d00c09400 100644 --- a/sdk/constructive-react/src/auth/hooks/query-keys.ts +++ b/sdk/constructive-react/src/auth/hooks/query-keys.ts @@ -167,6 +167,7 @@ export const customQueryKeys = { /** Query key for getMfaStatus */ getMfaStatus: () => ['getMfaStatus'] as const, /** Query key for requireStepUp */ requireStepUp: (variables?: object) => ['requireStepUp', variables] as const, + /** Query key for signInOptions */ signInOptions: () => ['signInOptions'] as const, } as const; /** diff --git a/sdk/constructive-react/src/auth/orm/README.md b/sdk/constructive-react/src/auth/orm/README.md index 954a86ca4c..198bcd777e 100644 --- a/sdk/constructive-react/src/auth/orm/README.md +++ b/sdk/constructive-react/src/auth/orm/README.md @@ -24,14 +24,14 @@ const db = createClient({ | `auditLogAuth` | findMany, findOne, create, update, delete | | `cryptoAddress` | findMany, findOne, create, update, delete | | `email` | findMany, findOne, create, update, delete | -| `identityProvider` | findMany, findOne, create, update, delete | -| `orgApiKeyList` | findMany, findOne, create, update, delete | +| `identityProvider` | findMany, findOne, update, delete | +| `orgApiKeyList` | findMany, findOne, update, delete | | `phoneNumber` | findMany, findOne, create, update, delete | -| `principal` | findMany, findOne, create, update, delete | -| `principalEntity` | findMany, findOne, create, update, delete | -| `principalScopeOverride` | findMany, findOne, create, update, delete | +| `principal` | findMany, findOne, update, delete | +| `principalEntity` | findMany, findOne, update, delete | +| `principalScopeOverride` | findMany, findOne, update, delete | | `roleType` | findMany, findOne, create, update, delete | -| `userConnectedAccount` | findMany, findOne, create, update, delete | +| `userConnectedAccount` | findMany, findOne, update, delete | | `user` | findMany, findOne, create, update, delete | | `userSetting` | findMany, findOne, create, update, delete | | `userSettingsSecurity` | findMany, findOne, create, update, delete | @@ -170,9 +170,6 @@ const items = await db.identityProvider.findMany({ select: { displayName: true, // Get one by id const item = await db.identityProvider.findOne({ id: '', select: { displayName: true, enabled: true, kind: true, slug: true } }).execute(); -// Create -const created = await db.identityProvider.create({ data: { displayName: '', enabled: '', kind: '', slug: '' }, select: { id: true } }).execute(); - // Update const updated = await db.identityProvider.update({ where: { id: '' }, data: { displayName: '' }, select: { id: true } }).execute(); @@ -210,9 +207,6 @@ const items = await db.orgApiKeyList.findMany({ select: { accessLevel: true, cre // Get one by id const item = await db.orgApiKeyList.findOne({ id: '', select: { accessLevel: true, createdAt: true, expiresAt: true, id: true, keyId: true, lastUsedAt: true, mfaLevel: true, name: true, orgId: true, principalId: true, revokedAt: true, updatedAt: true } }).execute(); -// Create -const created = await db.orgApiKeyList.create({ data: { accessLevel: '', expiresAt: '', keyId: '', lastUsedAt: '', mfaLevel: '', name: '', orgId: '', principalId: '', revokedAt: '' }, select: { id: true } }).execute(); - // Update const updated = await db.orgApiKeyList.update({ where: { id: '' }, data: { accessLevel: '' }, select: { id: true } }).execute(); @@ -289,9 +283,6 @@ const items = await db.principal.findMany({ select: { apiKeyMaxDuration: true, b // Get one by principalId const item = await db.principal.findOne({ principalId: '', select: { apiKeyMaxDuration: true, bypassStepUp: true, createdAt: true, createdBySessionId: true, depth: true, expiresAt: true, id: true, isReadOnly: true, name: true, ownerId: true, parentPrincipalId: true, updatedAt: true, useAdminOwner: true, userId: true } }).execute(); -// Create -const created = await db.principal.create({ data: { apiKeyMaxDuration: '', bypassStepUp: '', createdBySessionId: '', depth: '', expiresAt: '', id: '', isReadOnly: '', name: '', ownerId: '', parentPrincipalId: '', useAdminOwner: '', userId: '' }, select: { principalId: true } }).execute(); - // Update const updated = await db.principal.update({ where: { principalId: '' }, data: { apiKeyMaxDuration: '' }, select: { principalId: true } }).execute(); @@ -323,9 +314,6 @@ const items = await db.principalEntity.findMany({ select: { createdAt: true, ent // Get one by id const item = await db.principalEntity.findOne({ id: '', select: { createdAt: true, entityId: true, id: true, ownerId: true, principalId: true, updatedAt: true } }).execute(); -// Create -const created = await db.principalEntity.create({ data: { entityId: '', ownerId: '', principalId: '' }, select: { id: true } }).execute(); - // Update const updated = await db.principalEntity.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); @@ -360,9 +348,6 @@ const items = await db.principalScopeOverride.findMany({ select: { allowedMask: // Get one by id const item = await db.principalScopeOverride.findOne({ id: '', select: { allowedMask: true, createdAt: true, id: true, isActive: true, isReadOnly: true, membershipType: true, principalId: true, updatedAt: true, useAdminOwner: true } }).execute(); -// Create -const created = await db.principalScopeOverride.create({ data: { allowedMask: '', isActive: '', isReadOnly: '', membershipType: '', principalId: '', useAdminOwner: '' }, select: { id: true } }).execute(); - // Update const updated = await db.principalScopeOverride.update({ where: { id: '' }, data: { allowedMask: '' }, select: { id: true } }).execute(); @@ -426,9 +411,6 @@ const items = await db.userConnectedAccount.findMany({ select: { createdAt: true // Get one by id const item = await db.userConnectedAccount.findOne({ id: '', select: { createdAt: true, details: true, id: true, identifier: true, isVerified: true, ownerId: true, service: true, updatedAt: true } }).execute(); -// Create -const created = await db.userConnectedAccount.create({ data: { details: '', identifier: '', isVerified: '', ownerId: '', service: '' }, select: { id: true } }).execute(); - // Update const updated = await db.userConnectedAccount.update({ where: { id: '' }, data: { details: '' }, select: { id: true } }).execute(); @@ -446,12 +428,14 @@ CRUD operations for User records. |-------|------|----------| | `createdAt` | Datetime | No | | `displayName` | String | Yes | -| `displayNameTrgmSimilarity` | Float | Yes | +| `displayNameTrgmSimilarity` | Float | No | | `id` | UUID | No | | `profilePicture` | ConstructiveInternalTypeImage | Yes | -| `searchScore` | Float | Yes | -| `searchTsv` | FullText | Yes | -| `searchTsvRank` | Float | Yes | +| `profilePictureUrl` | String | No | +| `profilePictureVersions` | FileVersion | No | +| `searchScore` | Float | No | +| `searchTsv` | FullText | No | +| `searchTsvRank` | Float | No | | `type` | Int | Yes | | `updatedAt` | Datetime | No | | `username` | String | Yes | @@ -466,7 +450,7 @@ const items = await db.user.findMany({ select: { createdAt: true, displayName: t const item = await db.user.findOne({ id: '', select: { createdAt: true, displayName: true, displayNameTrgmSimilarity: true, id: true, profilePicture: true, searchScore: true, searchTsv: true, searchTsvRank: true, type: true, updatedAt: true, username: true } }).execute(); // Create -const created = await db.user.create({ data: { displayName: '', displayNameTrgmSimilarity: '', profilePicture: '', searchScore: '', searchTsv: '', searchTsvRank: '', type: '', username: '' }, select: { id: true } }).execute(); +const created = await db.user.create({ data: { displayName: '', profilePicture: '', type: '', username: '' }, select: { id: true } }).execute(); // Update const updated = await db.user.update({ where: { id: '' }, data: { displayName: '' }, select: { id: true } }).execute(); @@ -662,6 +646,17 @@ requireStepUp const result = await db.query.requireStepUp({ stepUpType: '' }).execute(); ``` +### `db.query.signInOptions` + +signInOptions + +- **Type:** query +- **Arguments:** none + +```typescript +const result = await db.query.signInOptions().execute(); +``` + ### `db.mutation.approveDevice` approveDevice @@ -739,7 +734,7 @@ const result = await db.mutation.confirmTotpSetup({ input: { totpValue: '', isReadOnly: '', name: '', orgId: '', useAdminOwner: '' } }).execute(); ``` +### `db.mutation.createPrincipal` + +createPrincipal + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | CreatePrincipalInput (required) | + +```typescript +const result = await db.mutation.createPrincipal({ input: { bypassStepUp: '', entityIds: '', isReadOnly: '', name: '', useAdminOwner: '' } }).execute(); +``` + ### `db.mutation.createPrincipalFromPreset` createPrincipalFromPreset @@ -947,6 +957,36 @@ enableTotp const result = await db.mutation.enableTotp({ input: '' }).execute(); ``` +### `db.mutation.ensureAuthCsrf` + +ensureAuthCsrf + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | EnsureAuthCsrfInput (required) | + +```typescript +const result = await db.mutation.ensureAuthCsrf({ input: { existingToken: '' } }).execute(); +``` + +### `db.mutation.exchangeNativeHandoff` + +exchangeNativeHandoff + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ExchangeNativeHandoffInput (required) | + +```typescript +const result = await db.mutation.exchangeNativeHandoff({ input: { code: '', codeVerifier: '', credentialKind: '' } }).execute(); +``` + ### `db.mutation.extendTokenExpires` extendTokenExpires @@ -1072,6 +1112,21 @@ requestCrossOriginToken const result = await db.mutation.requestCrossOriginToken({ input: { email: '', origin: '', password: '', rememberMe: '' } }).execute(); ``` +### `db.mutation.requestDeviceApproval` + +requestDeviceApproval + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | RequestDeviceApprovalInput (required) | + +```typescript +const result = await db.mutation.requestDeviceApproval({ input: { deviceToken: '', next: '', userId: '' } }).execute(); +``` + ### `db.mutation.requestMagicLink` requestMagicLink @@ -1084,7 +1139,7 @@ requestMagicLink | `input` | RequestMagicLinkInput (required) | ```typescript -const result = await db.mutation.requestMagicLink({ input: { email: '', next: '' } }).execute(); +const result = await db.mutation.requestMagicLink({ input: { codeChallenge: '', email: '', nativeRedirectUri: '', next: '' } }).execute(); ``` ### `db.mutation.resetPassword` @@ -1249,7 +1304,7 @@ setPassword | `input` | SetPasswordInput (required) | ```typescript -const result = await db.mutation.setPassword({ input: { currentPassword: '', newPassword: '' } }).execute(); +const result = await db.mutation.setPassword({ input: { currentPassword: '', newPassword: '', signOutOtherSessions: '' } }).execute(); ``` ### `db.mutation.setPrincipalEntities` @@ -1429,7 +1484,7 @@ verifyEmail | `input` | VerifyEmailInput (required) | ```typescript -const result = await db.mutation.verifyEmail({ input: { emailId: '', token: '' } }).execute(); +const result = await db.mutation.verifyEmail({ input: { emailId: '', password: '', token: '' } }).execute(); ``` ### `db.mutation.verifyPassword` diff --git a/sdk/constructive-react/src/auth/orm/input-types.ts b/sdk/constructive-react/src/auth/orm/input-types.ts index f1489beef6..0414925191 100644 --- a/sdk/constructive-react/src/auth/orm/input-types.ts +++ b/sdk/constructive-react/src/auth/orm/input-types.ts @@ -402,6 +402,10 @@ export interface User { displayNameTrgmSimilarity?: number | null; id: string; profilePicture?: ConstructiveInternalTypeImage | null; + /** URL to fetch `profilePicture`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + profilePictureUrl?: string | null; + /** The versions rendered beside `profilePicture`, narrowest first, each with a URL. Empty when there are none. */ + profilePictureVersions?: FileVersion[] | null; /** Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ searchScore?: number | null; searchTsv?: string | null; @@ -718,6 +722,15 @@ export type UserSelect = { displayNameTrgmSimilarity?: boolean; id?: boolean; profilePicture?: boolean; + profilePictureUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + profilePictureVersions?: { + select: FileVersionSelect; + }; searchScore?: boolean; searchTsv?: boolean; searchTsvRank?: boolean; @@ -1678,15 +1691,6 @@ export interface DeleteEmailInput { clientMutationId?: string; id: string; } -export interface CreateIdentityProviderInput { - clientMutationId?: string; - identityProvider: { - displayName?: string; - enabled?: boolean; - kind?: string; - slug?: string; - }; -} export interface IdentityProviderPatch { displayName?: string | null; enabled?: boolean | null; @@ -1702,20 +1706,6 @@ export interface DeleteIdentityProviderInput { clientMutationId?: string; id: string; } -export interface CreateOrgApiKeyListInput { - clientMutationId?: string; - orgApiKeyList: { - accessLevel?: string; - expiresAt?: string; - keyId: string; - lastUsedAt?: string; - mfaLevel?: string; - name?: string; - orgId: string; - principalId: string; - revokedAt?: string; - }; -} export interface OrgApiKeyListPatch { accessLevel?: string | null; expiresAt?: string | null; @@ -1764,22 +1754,6 @@ export interface DeletePhoneNumberInput { clientMutationId?: string; id: string; } -export interface CreatePrincipalInput { - clientMutationId?: string; - principal: { - apiKeyMaxDuration?: string; - bypassStepUp?: boolean; - createdBySessionId: string; - depth?: number; - expiresAt?: string; - isReadOnly?: boolean; - name?: string; - ownerId: string; - parentPrincipalId: string; - useAdminOwner?: boolean; - userId: string; - }; -} export interface PrincipalPatch { apiKeyMaxDuration?: string | null; bypassStepUp?: boolean | null; @@ -1802,14 +1776,6 @@ export interface DeletePrincipalInput { clientMutationId?: string; principalId: string; } -export interface CreatePrincipalEntityInput { - clientMutationId?: string; - principalEntity: { - entityId: string; - ownerId: string; - principalId: string; - }; -} export interface PrincipalEntityPatch { entityId?: string | null; ownerId?: string | null; @@ -1824,17 +1790,6 @@ export interface DeletePrincipalEntityInput { clientMutationId?: string; id: string; } -export interface CreatePrincipalScopeOverrideInput { - clientMutationId?: string; - principalScopeOverride: { - allowedMask?: string; - isActive?: boolean; - isReadOnly?: boolean; - membershipType?: number; - principalId: string; - useAdminOwner?: boolean; - }; -} export interface PrincipalScopeOverridePatch { allowedMask?: string | null; isActive?: boolean | null; @@ -1870,16 +1825,6 @@ export interface DeleteRoleTypeInput { clientMutationId?: string; id: number; } -export interface CreateUserConnectedAccountInput { - clientMutationId?: string; - userConnectedAccount: { - details?: Record; - identifier?: string; - isVerified?: boolean; - ownerId: string; - service?: string; - }; -} export interface UserConnectedAccountPatch { details?: Record | null; identifier?: string | null; @@ -1908,7 +1853,6 @@ export interface CreateUserInput { export interface UserPatch { displayName?: string | null; profilePicture?: ConstructiveInternalTypeImage | null; - profilePictureUpload?: File | null; type?: number | null; username?: string | null; } @@ -2088,6 +2032,14 @@ export interface CreateOrgPrincipalInput { orgId?: string; useAdminOwner?: boolean; } +export interface CreatePrincipalInput { + bypassStepUp?: boolean; + clientMutationId?: string; + entityIds?: string[]; + isReadOnly?: boolean; + name?: string; + useAdminOwner?: boolean; +} export interface CreatePrincipalFromPresetInput { clientMutationId?: string; entityIds?: string[]; @@ -2122,6 +2074,16 @@ export interface EnableSmsMfaInput { export interface EnableTotpInput { clientMutationId?: string; } +export interface EnsureAuthCsrfInput { + clientMutationId?: string; + existingToken?: string; +} +export interface ExchangeNativeHandoffInput { + clientMutationId?: string; + code?: string; + codeVerifier?: string; + credentialKind?: string; +} export interface ExtendTokenExpiresInput { amount?: IntervalInput; clientMutationId?: string; @@ -2135,7 +2097,7 @@ export interface GenerateBackupCodesInput { } export interface LinkIdentityInput { clientMutationId?: string; - ticket: string; + ticket?: string; } export interface MintAccessTokenInput { accessTtl?: IntervalInput; @@ -2163,9 +2125,17 @@ export interface RequestCrossOriginTokenInput { password?: string; rememberMe?: boolean; } +export interface RequestDeviceApprovalInput { + clientMutationId?: string; + deviceToken?: string; + next?: string; + userId?: string; +} export interface RequestMagicLinkInput { clientMutationId?: string; + codeChallenge?: string; email?: string; + nativeRedirectUri?: string; next?: string; } export interface ResetPasswordInput { @@ -2216,6 +2186,7 @@ export interface SetPasswordInput { clientMutationId?: string; currentPassword?: string; newPassword?: string; + signOutOtherSessions?: boolean; } export interface SetPrincipalEntitiesInput { clientMutationId?: string; @@ -2290,6 +2261,7 @@ export interface SignUpSmsInput { export interface VerifyEmailInput { clientMutationId?: string; emailId?: string; + password?: string; token?: string; } export interface VerifyPasswordInput { @@ -3644,6 +3616,46 @@ export type GetMfaStatusRecordSelect = { smsMfaEnabled?: boolean; totpEnabled?: boolean; }; +export interface SignInOptionsRecord { + allowAnonymousSessions?: boolean | null; + allowEmailOtpSignIn?: boolean | null; + allowIdentitySignIn?: boolean | null; + allowIdentitySignUp?: boolean | null; + allowMagicLinkSignIn?: boolean | null; + allowMagicLinkSignUp?: boolean | null; + allowPasswordSignIn?: boolean | null; + allowPasswordSignUp?: boolean | null; + allowSignUp?: boolean | null; + allowSmsSignIn?: boolean | null; + allowSmsSignUp?: boolean | null; + allowWebauthnSignIn?: boolean | null; + allowWebauthnSignUp?: boolean | null; + allowWebauthnUsernameless?: boolean | null; + enableCaptcha?: boolean | null; + identityProviders?: Record | null; + requireMfa?: boolean | null; + signUpRequiresInvite?: boolean | null; +} +export type SignInOptionsRecordSelect = { + allowAnonymousSessions?: boolean; + allowEmailOtpSignIn?: boolean; + allowIdentitySignIn?: boolean; + allowIdentitySignUp?: boolean; + allowMagicLinkSignIn?: boolean; + allowMagicLinkSignUp?: boolean; + allowPasswordSignIn?: boolean; + allowPasswordSignUp?: boolean; + allowSignUp?: boolean; + allowSmsSignIn?: boolean; + allowSmsSignUp?: boolean; + allowWebauthnSignIn?: boolean; + allowWebauthnSignUp?: boolean; + allowWebauthnUsernameless?: boolean; + enableCaptcha?: boolean; + identityProviders?: boolean; + requireMfa?: boolean; + signUpRequiresInvite?: boolean; +}; export interface ApproveDevicePayload { clientMutationId?: string | null; result?: boolean | null; @@ -3720,6 +3732,14 @@ export type CreateOrgPrincipalPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface CreatePrincipalPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type CreatePrincipalPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface CreatePrincipalFromPresetPayload { clientMutationId?: string | null; result?: string | null; @@ -3800,6 +3820,24 @@ export type EnableTotpPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface EnsureAuthCsrfPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type EnsureAuthCsrfPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface ExchangeNativeHandoffPayload { + clientMutationId?: string | null; + result?: ExchangeNativeHandoffRecord | null; +} +export type ExchangeNativeHandoffPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: ExchangeNativeHandoffRecordSelect; + }; +}; export interface ExtendTokenExpiresPayload { clientMutationId?: string | null; result?: ExtendTokenExpiresRecord[] | null; @@ -3875,6 +3913,14 @@ export type RequestCrossOriginTokenPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface RequestDeviceApprovalPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type RequestDeviceApprovalPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface RequestMagicLinkPayload { clientMutationId?: string | null; } @@ -4285,14 +4331,6 @@ export type DeletePhoneNumberPayloadSelect = { select: PhoneNumberEdgeSelect; }; }; -export interface CreatePrincipalPayload { - clientMutationId?: string | null; - result?: string | null; -} -export type CreatePrincipalPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; export interface CreateRoleTypePayload { clientMutationId?: string | null; /** The `RoleType` that was created by this mutation. */ @@ -4518,6 +4556,25 @@ export type DeleteWebauthnCredentialPayloadSelect = { select: WebauthnCredentialEdgeSelect; }; }; +/** One version rendered beside a file, with a URL to fetch it. */ +export interface FileVersion { + format?: string | null; + height?: number | null; + key: string; + name?: string | null; + size?: number | null; + url: string; + width?: number | null; +} +export type FileVersionSelect = { + format?: boolean; + height?: boolean; + key?: boolean; + name?: boolean; + size?: boolean; + url?: boolean; + width?: boolean; +}; export interface CompleteMfaChallengeRecord { accessToken?: string | null; accessTokenExpiresAt?: string | null; @@ -4556,6 +4613,22 @@ export type CreateOrgApiKeyRecordSelect = { expiresAt?: boolean; keyId?: boolean; }; +export interface ExchangeNativeHandoffRecord { + accessToken?: string | null; + accessTokenExpiresAt?: string | null; + id?: string | null; + isVerified?: boolean | null; + totpEnabled?: boolean | null; + userId?: string | null; +} +export type ExchangeNativeHandoffRecordSelect = { + accessToken?: boolean; + accessTokenExpiresAt?: boolean; + id?: boolean; + isVerified?: boolean; + totpEnabled?: boolean; + userId?: boolean; +}; export interface ExtendTokenExpiresRecord { expiresAt?: string | null; id?: string | null; @@ -4643,18 +4716,22 @@ export type SignInCrossOriginRecordSelect = { export interface SignInMagicLinkRecord { accessToken?: string | null; accessTokenExpiresAt?: string | null; + codeChallenge?: string | null; deviceApprovalRequired?: boolean | null; mfaChallengeToken?: string | null; mfaRequired?: boolean | null; + nativeRedirectUri?: string | null; outDeviceToken?: string | null; userId?: string | null; } export type SignInMagicLinkRecordSelect = { accessToken?: boolean; accessTokenExpiresAt?: boolean; + codeChallenge?: boolean; deviceApprovalRequired?: boolean; mfaChallengeToken?: boolean; mfaRequired?: boolean; + nativeRedirectUri?: boolean; outDeviceToken?: boolean; userId?: boolean; }; @@ -4679,12 +4756,16 @@ export type SignInSmsOtpRecordSelect = { export interface SignUpMagicLinkRecord { accessToken?: string | null; accessTokenExpiresAt?: string | null; + codeChallenge?: string | null; + nativeRedirectUri?: string | null; outDeviceToken?: string | null; userId?: string | null; } export type SignUpMagicLinkRecordSelect = { accessToken?: boolean; accessTokenExpiresAt?: boolean; + codeChallenge?: boolean; + nativeRedirectUri?: boolean; outDeviceToken?: boolean; userId?: boolean; }; diff --git a/sdk/constructive-react/src/auth/orm/models/identityProvider.ts b/sdk/constructive-react/src/auth/orm/models/identityProvider.ts index cdc672145c..fde90fea4b 100644 --- a/sdk/constructive-react/src/auth/orm/models/identityProvider.ts +++ b/sdk/constructive-react/src/auth/orm/models/identityProvider.ts @@ -29,7 +29,6 @@ import type { IdentityProviderSelect, IdentityProviderFilter, IdentityProviderOrderBy, - CreateIdentityProviderInput, UpdateIdentityProviderInput, IdentityProviderPatch, } from '../input-types'; @@ -104,31 +103,4 @@ export class IdentityProviderModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createIdentityProvider: { - identityProvider: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'IdentityProvider', - 'createIdentityProvider', - 'identityProvider', - args.select, - args.data, - 'CreateIdentityProviderInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'IdentityProvider', - fieldName: 'createIdentityProvider', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/auth/orm/models/orgApiKeyList.ts b/sdk/constructive-react/src/auth/orm/models/orgApiKeyList.ts index fe7120ee8a..4c7c4cee0a 100644 --- a/sdk/constructive-react/src/auth/orm/models/orgApiKeyList.ts +++ b/sdk/constructive-react/src/auth/orm/models/orgApiKeyList.ts @@ -29,7 +29,6 @@ import type { OrgApiKeyListSelect, OrgApiKeyListFilter, OrgApiKeyListOrderBy, - CreateOrgApiKeyListInput, UpdateOrgApiKeyListInput, OrgApiKeyListPatch, } from '../input-types'; @@ -144,31 +143,4 @@ export class OrgApiKeyListModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgApiKeyList: { - orgApiKeyList: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgApiKeyList', - 'createOrgApiKeyList', - 'orgApiKeyList', - args.select, - args.data, - 'CreateOrgApiKeyListInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgApiKeyList', - fieldName: 'createOrgApiKeyList', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/auth/orm/models/principal.ts b/sdk/constructive-react/src/auth/orm/models/principal.ts index 05e5aa400c..ff1e4994ed 100644 --- a/sdk/constructive-react/src/auth/orm/models/principal.ts +++ b/sdk/constructive-react/src/auth/orm/models/principal.ts @@ -29,7 +29,6 @@ import type { PrincipalSelect, PrincipalFilter, PrincipalOrderBy, - CreatePrincipalInput, UpdatePrincipalInput, PrincipalPatch, } from '../input-types'; @@ -144,31 +143,4 @@ export class PrincipalModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPrincipal: { - principal: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'Principal', - 'createPrincipal', - 'principal', - args.select, - args.data, - 'CreatePrincipalInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'Principal', - fieldName: 'createPrincipal', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/auth/orm/models/principalEntity.ts b/sdk/constructive-react/src/auth/orm/models/principalEntity.ts index 516e110743..580fbe4f6f 100644 --- a/sdk/constructive-react/src/auth/orm/models/principalEntity.ts +++ b/sdk/constructive-react/src/auth/orm/models/principalEntity.ts @@ -29,7 +29,6 @@ import type { PrincipalEntitySelect, PrincipalEntityFilter, PrincipalEntityOrderBy, - CreatePrincipalEntityInput, UpdatePrincipalEntityInput, PrincipalEntityPatch, } from '../input-types'; @@ -144,31 +143,4 @@ export class PrincipalEntityModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPrincipalEntity: { - principalEntity: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PrincipalEntity', - 'createPrincipalEntity', - 'principalEntity', - args.select, - args.data, - 'CreatePrincipalEntityInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PrincipalEntity', - fieldName: 'createPrincipalEntity', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/auth/orm/models/principalScopeOverride.ts b/sdk/constructive-react/src/auth/orm/models/principalScopeOverride.ts index 3d3e7bedd3..fb315ec75c 100644 --- a/sdk/constructive-react/src/auth/orm/models/principalScopeOverride.ts +++ b/sdk/constructive-react/src/auth/orm/models/principalScopeOverride.ts @@ -29,7 +29,6 @@ import type { PrincipalScopeOverrideSelect, PrincipalScopeOverrideFilter, PrincipalScopeOverrideOrderBy, - CreatePrincipalScopeOverrideInput, UpdatePrincipalScopeOverrideInput, PrincipalScopeOverridePatch, } from '../input-types'; @@ -146,31 +145,4 @@ export class PrincipalScopeOverrideModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPrincipalScopeOverride: { - principalScopeOverride: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PrincipalScopeOverride', - 'createPrincipalScopeOverride', - 'principalScopeOverride', - args.select, - args.data, - 'CreatePrincipalScopeOverrideInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PrincipalScopeOverride', - fieldName: 'createPrincipalScopeOverride', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/auth/orm/models/userConnectedAccount.ts b/sdk/constructive-react/src/auth/orm/models/userConnectedAccount.ts index a2344afdf4..8edfaf1d67 100644 --- a/sdk/constructive-react/src/auth/orm/models/userConnectedAccount.ts +++ b/sdk/constructive-react/src/auth/orm/models/userConnectedAccount.ts @@ -29,7 +29,6 @@ import type { UserConnectedAccountSelect, UserConnectedAccountFilter, UserConnectedAccountOrderBy, - CreateUserConnectedAccountInput, UpdateUserConnectedAccountInput, UserConnectedAccountPatch, } from '../input-types'; @@ -146,31 +145,4 @@ export class UserConnectedAccountModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createUserConnectedAccount: { - userConnectedAccount: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'UserConnectedAccount', - 'createUserConnectedAccount', - 'userConnectedAccount', - args.select, - args.data, - 'CreateUserConnectedAccountInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'UserConnectedAccount', - fieldName: 'createUserConnectedAccount', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/auth/orm/mutation/index.ts b/sdk/constructive-react/src/auth/orm/mutation/index.ts index 39394d78e4..eebc1bc3d7 100644 --- a/sdk/constructive-react/src/auth/orm/mutation/index.ts +++ b/sdk/constructive-react/src/auth/orm/mutation/index.ts @@ -16,6 +16,7 @@ import type { CreateChildPrincipalInput, CreateOrgApiKeyInput, CreateOrgPrincipalInput, + CreatePrincipalInput, CreatePrincipalFromPresetInput, DeleteOrgPrincipalInput, DeletePrincipalInput, @@ -26,6 +27,8 @@ import type { EnableEmailMfaInput, EnableSmsMfaInput, EnableTotpInput, + EnsureAuthCsrfInput, + ExchangeNativeHandoffInput, ExtendTokenExpiresInput, ForgotPasswordInput, GenerateBackupCodesInput, @@ -34,6 +37,7 @@ import type { ProvisionBucketInput, RefreshAccessTokenInput, RequestCrossOriginTokenInput, + RequestDeviceApprovalInput, RequestMagicLinkInput, ResetPasswordInput, RevokeApiKeyInput, @@ -71,6 +75,7 @@ import type { CreateChildPrincipalPayload, CreateOrgApiKeyPayload, CreateOrgPrincipalPayload, + CreatePrincipalPayload, CreatePrincipalFromPresetPayload, DeleteOrgPrincipalPayload, DeletePrincipalPayload, @@ -81,6 +86,8 @@ import type { EnableEmailMfaPayload, EnableSmsMfaPayload, EnableTotpPayload, + EnsureAuthCsrfPayload, + ExchangeNativeHandoffPayload, ExtendTokenExpiresPayload, ForgotPasswordPayload, GenerateBackupCodesPayload, @@ -89,6 +96,7 @@ import type { ProvisionBucketPayload, RefreshAccessTokenPayload, RequestCrossOriginTokenPayload, + RequestDeviceApprovalPayload, RequestMagicLinkPayload, ResetPasswordPayload, RevokeApiKeyPayload, @@ -126,6 +134,7 @@ import type { CreateChildPrincipalPayloadSelect, CreateOrgApiKeyPayloadSelect, CreateOrgPrincipalPayloadSelect, + CreatePrincipalPayloadSelect, CreatePrincipalFromPresetPayloadSelect, DeleteOrgPrincipalPayloadSelect, DeletePrincipalPayloadSelect, @@ -136,6 +145,8 @@ import type { EnableEmailMfaPayloadSelect, EnableSmsMfaPayloadSelect, EnableTotpPayloadSelect, + EnsureAuthCsrfPayloadSelect, + ExchangeNativeHandoffPayloadSelect, ExtendTokenExpiresPayloadSelect, ForgotPasswordPayloadSelect, GenerateBackupCodesPayloadSelect, @@ -144,6 +155,7 @@ import type { ProvisionBucketPayloadSelect, RefreshAccessTokenPayloadSelect, RequestCrossOriginTokenPayloadSelect, + RequestDeviceApprovalPayloadSelect, RequestMagicLinkPayloadSelect, ResetPasswordPayloadSelect, RevokeApiKeyPayloadSelect, @@ -189,6 +201,10 @@ export interface ConfirmDeleteAccountVariables { export interface ConfirmTotpSetupVariables { input: ConfirmTotpSetupInput; } +/** + * Variables for createApiKey + * Mint an API key for the current user; the plaintext key is returned once. access_level: full_access (default) or read_only. mfa_level: none (default) or verified; verified needs a fresh MFA proof on the calling session. A key minted while authenticated by another API key never outlives that key. + */ export interface CreateApiKeyVariables { input: CreateApiKeyInput; } @@ -201,6 +217,9 @@ export interface CreateOrgApiKeyVariables { export interface CreateOrgPrincipalVariables { input: CreateOrgPrincipalInput; } +export interface CreatePrincipalVariables { + input: CreatePrincipalInput; +} export interface CreatePrincipalFromPresetVariables { input: CreatePrincipalFromPresetInput; } @@ -231,6 +250,12 @@ export interface EnableSmsMfaVariables { export interface EnableTotpVariables { input: EnableTotpInput; } +export interface EnsureAuthCsrfVariables { + input: EnsureAuthCsrfInput; +} +export interface ExchangeNativeHandoffVariables { + input: ExchangeNativeHandoffInput; +} export interface ExtendTokenExpiresVariables { input: ExtendTokenExpiresInput; } @@ -264,6 +289,9 @@ export interface RefreshAccessTokenVariables { export interface RequestCrossOriginTokenVariables { input: RequestCrossOriginTokenInput; } +export interface RequestDeviceApprovalVariables { + input: RequestDeviceApprovalInput; +} export interface RequestMagicLinkVariables { input: RequestMagicLinkInput; } @@ -611,6 +639,35 @@ export function createMutationOperations(client: OrmClient) { 'CreateOrgPrincipalPayload' ), }), + createPrincipal: ( + args: CreatePrincipalVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + createPrincipal: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'CreatePrincipal', + fieldName: 'createPrincipal', + ...buildCustomDocument( + 'mutation', + 'CreatePrincipal', + 'createPrincipal', + options.select, + args, + [ + { + name: 'input', + type: 'CreatePrincipalInput!', + }, + ], + connectionFieldsMap, + 'CreatePrincipalPayload' + ), + }), createPrincipalFromPreset: ( args: CreatePrincipalFromPresetVariables, options: { @@ -901,6 +958,64 @@ export function createMutationOperations(client: OrmClient) { 'EnableTotpPayload' ), }), + ensureAuthCsrf: ( + args: EnsureAuthCsrfVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + ensureAuthCsrf: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'EnsureAuthCsrf', + fieldName: 'ensureAuthCsrf', + ...buildCustomDocument( + 'mutation', + 'EnsureAuthCsrf', + 'ensureAuthCsrf', + options.select, + args, + [ + { + name: 'input', + type: 'EnsureAuthCsrfInput!', + }, + ], + connectionFieldsMap, + 'EnsureAuthCsrfPayload' + ), + }), + exchangeNativeHandoff: ( + args: ExchangeNativeHandoffVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + exchangeNativeHandoff: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ExchangeNativeHandoff', + fieldName: 'exchangeNativeHandoff', + ...buildCustomDocument( + 'mutation', + 'ExchangeNativeHandoff', + 'exchangeNativeHandoff', + options.select, + args, + [ + { + name: 'input', + type: 'ExchangeNativeHandoffInput!', + }, + ], + connectionFieldsMap, + 'ExchangeNativeHandoffPayload' + ), + }), extendTokenExpires: ( args: ExtendTokenExpiresVariables, options: { @@ -1133,6 +1248,35 @@ export function createMutationOperations(client: OrmClient) { 'RequestCrossOriginTokenPayload' ), }), + requestDeviceApproval: ( + args: RequestDeviceApprovalVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + requestDeviceApproval: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'RequestDeviceApproval', + fieldName: 'requestDeviceApproval', + ...buildCustomDocument( + 'mutation', + 'RequestDeviceApproval', + 'requestDeviceApproval', + options.select, + args, + [ + { + name: 'input', + type: 'RequestDeviceApprovalInput!', + }, + ], + connectionFieldsMap, + 'RequestDeviceApprovalPayload' + ), + }), requestMagicLink: ( args: RequestMagicLinkVariables, options: { diff --git a/sdk/constructive-react/src/auth/orm/query-builder.ts b/sdk/constructive-react/src/auth/orm/query-builder.ts index fd785bbae6..d6c981907f 100644 --- a/sdk/constructive-react/src/auth/orm/query-builder.ts +++ b/sdk/constructive-react/src/auth/orm/query-builder.ts @@ -140,9 +140,7 @@ export function buildSelections( ); const nestedSelect = nested.select; if (nestedSelect && typeof nestedSelect === 'object') { - const subSelections = Object.entries(nestedSelect) - .filter(([, v]) => v) - .map(([name]) => t.field({ name })); + const subSelections = buildSelections(nestedSelect, connectionFieldsMap); fields.push( t.field({ name: key, diff --git a/sdk/constructive-react/src/auth/orm/query/index.ts b/sdk/constructive-react/src/auth/orm/query/index.ts index 671fb80d21..aa77870a50 100644 --- a/sdk/constructive-react/src/auth/orm/query/index.ts +++ b/sdk/constructive-react/src/auth/orm/query/index.ts @@ -9,8 +9,10 @@ import type { InferSelectResult, StrictSelect } from '../select-types'; import type { User, GetMfaStatusRecord, + SignInOptionsRecord, UserSelect, GetMfaStatusRecordSelect, + SignInOptionsRecordSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; export interface RequireStepUpVariables { @@ -150,5 +152,28 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), + signInOptions: ( + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + signInOptions: InferSelectResult | null; + }>({ + client, + operation: 'query', + operationName: 'SignInOptions', + fieldName: 'signInOptions', + ...buildCustomDocument( + 'query', + 'SignInOptions', + 'signInOptions', + options.select, + undefined, + [], + connectionFieldsMap, + 'SignInOptionsRecord' + ), + }), }; } diff --git a/sdk/constructive-react/src/auth/orm/select-types.ts b/sdk/constructive-react/src/auth/orm/select-types.ts index 4b39d7e820..783c4603df 100644 --- a/sdk/constructive-react/src/auth/orm/select-types.ts +++ b/sdk/constructive-react/src/auth/orm/select-types.ts @@ -159,9 +159,13 @@ export type InferSelectResult = TSelect extends undefined ? K extends keyof TEntity ? NonNullable extends ConnectionResult ? ConnectionResult> - : - | InferSelectResult, NestedSelect> - | (null extends TEntity[K] ? null : never) + : NonNullable extends readonly (infer Item)[] + ? + | InferSelectResult, NestedSelect>[] + | (null extends TEntity[K] ? null : never) + : + | InferSelectResult, NestedSelect> + | (null extends TEntity[K] ? null : never) : never : K extends keyof TEntity ? TEntity[K] diff --git a/sdk/constructive-react/src/auth/schema-types.ts b/sdk/constructive-react/src/auth/schema-types.ts index 36a2507f9f..9cdc5f06f3 100644 --- a/sdk/constructive-react/src/auth/schema-types.ts +++ b/sdk/constructive-react/src/auth/schema-types.ts @@ -950,6 +950,16 @@ export interface EnableSmsMfaInput { export interface EnableTotpInput { clientMutationId?: string; } +export interface EnsureAuthCsrfInput { + clientMutationId?: string; + existingToken?: string; +} +export interface ExchangeNativeHandoffInput { + clientMutationId?: string; + code?: string; + codeVerifier?: string; + credentialKind?: string; +} export interface ExtendTokenExpiresInput { amount?: IntervalInput; clientMutationId?: string; @@ -1024,7 +1034,7 @@ export interface IntervalInput { } export interface LinkIdentityInput { clientMutationId?: string; - ticket: string; + ticket?: string; } export interface MintAccessTokenInput { accessTtl?: IntervalInput; @@ -1288,9 +1298,17 @@ export interface RequestCrossOriginTokenInput { password?: string; rememberMe?: boolean; } +export interface RequestDeviceApprovalInput { + clientMutationId?: string; + deviceToken?: string; + next?: string; + userId?: string; +} export interface RequestMagicLinkInput { clientMutationId?: string; + codeChallenge?: string; email?: string; + nativeRedirectUri?: string; next?: string; } export interface ResetPasswordInput { @@ -1364,6 +1382,7 @@ export interface SetPasswordInput { clientMutationId?: string; currentPassword?: string; newPassword?: string; + signOutOtherSessions?: boolean; } export interface SetPrincipalEntitiesInput { clientMutationId?: string; @@ -1704,8 +1723,6 @@ export interface UserPatch { displayName?: string; id?: string; profilePicture?: ConstructiveInternalTypeImage; - /** File upload for the `profilePicture` field. */ - profilePictureUpload?: File; type?: number; updatedAt?: string; username?: string; @@ -1878,6 +1895,7 @@ export interface UserToManyWebauthnCredentialFilter { export interface VerifyEmailInput { clientMutationId?: string; emailId?: string; + password?: string; token?: string; } export interface VerifyPasswordInput { @@ -2070,6 +2088,26 @@ export interface RoleTypeConnection { pageInfo: PageInfo; totalCount: number; } +export interface SignInOptionsRecord { + allowAnonymousSessions?: boolean | null; + allowEmailOtpSignIn?: boolean | null; + allowIdentitySignIn?: boolean | null; + allowIdentitySignUp?: boolean | null; + allowMagicLinkSignIn?: boolean | null; + allowMagicLinkSignUp?: boolean | null; + allowPasswordSignIn?: boolean | null; + allowPasswordSignUp?: boolean | null; + allowSignUp?: boolean | null; + allowSmsSignIn?: boolean | null; + allowSmsSignUp?: boolean | null; + allowWebauthnSignIn?: boolean | null; + allowWebauthnSignUp?: boolean | null; + allowWebauthnUsernameless?: boolean | null; + enableCaptcha?: boolean | null; + identityProviders?: unknown | null; + requireMfa?: boolean | null; + signUpRequiresInvite?: boolean | null; +} /** A connection to a list of `UserConnectedAccount` values. */ export interface UserConnectedAccountConnection { edges: UserConnectedAccountEdge[]; @@ -2292,6 +2330,14 @@ export interface EnableTotpPayload { clientMutationId?: string | null; result?: string | null; } +export interface EnsureAuthCsrfPayload { + clientMutationId?: string | null; + result?: string | null; +} +export interface ExchangeNativeHandoffPayload { + clientMutationId?: string | null; + result?: ExchangeNativeHandoffRecord | null; +} export interface ExtendTokenExpiresPayload { clientMutationId?: string | null; result?: ExtendTokenExpiresRecord[] | null; @@ -2328,6 +2374,10 @@ export interface RequestCrossOriginTokenPayload { clientMutationId?: string | null; result?: string | null; } +export interface RequestDeviceApprovalPayload { + clientMutationId?: string | null; + result?: boolean | null; +} export interface RequestMagicLinkPayload { clientMutationId?: string | null; } @@ -2494,21 +2544,27 @@ export interface VerifyTotpPayload { /** Information about a database table */ export interface MetaTable { constraints: MetaConstraints; + /** Description written for this table, or null */ + description?: string | null; fields: MetaField[]; foreignKeyConstraints: MetaForeignKeyConstraint[]; - /** i18n metadata (null if no @i18n tag) */ + /** i18n metadata (null if the table is not translatable) */ i18n?: MetaI18n | null; indexes: MetaIndex[]; inflection: MetaInflection; + /** Whether this table only links rows of two other tables; the link appears in their manyToMany relations */ + isJunction: boolean; + /** 'table' when rows are stored in this table, 'view' when they come from a view of other tables */ + kind: string; /** Final GraphQL output type name */ name: string; primaryKeyConstraints: MetaPrimaryKeyConstraint[]; query: MetaQuery; - /** Realtime metadata (null if no @realtime tag) */ + /** Realtime metadata (null if the table has no change subscriptions) */ realtime?: MetaRealtime | null; relations: MetaRelations; schemaName: string; - /** Provisioning scope metadata (null if no @scope tag) */ + /** Provisioning scope metadata (null if the table has no scope) */ scope?: MetaScope | null; /** Search metadata (null if no search configured) */ search?: MetaSearch | null; @@ -2638,6 +2694,14 @@ export interface CreateOrgApiKeyRecord { expiresAt?: string | null; keyId?: string | null; } +export interface ExchangeNativeHandoffRecord { + accessToken?: string | null; + accessTokenExpiresAt?: string | null; + id?: string | null; + isVerified?: boolean | null; + totpEnabled?: boolean | null; + userId?: string | null; +} export interface ExtendTokenExpiresRecord { expiresAt?: string | null; id?: string | null; @@ -2683,9 +2747,11 @@ export interface SignInCrossOriginRecord { export interface SignInMagicLinkRecord { accessToken?: string | null; accessTokenExpiresAt?: string | null; + codeChallenge?: string | null; deviceApprovalRequired?: boolean | null; mfaChallengeToken?: string | null; mfaRequired?: boolean | null; + nativeRedirectUri?: string | null; outDeviceToken?: string | null; userId?: string | null; } @@ -2701,6 +2767,8 @@ export interface SignInSmsOtpRecord { export interface SignUpMagicLinkRecord { accessToken?: string | null; accessTokenExpiresAt?: string | null; + codeChallenge?: string | null; + nativeRedirectUri?: string | null; outDeviceToken?: string | null; userId?: string | null; } @@ -2718,15 +2786,27 @@ export interface MetaConstraints { } /** Information about a table field/column */ export interface MetaField { + /** Values this field accepts, when the set is fixed; null otherwise. Set on a table's own fields only. */ + allowedValues?: string[] | null; /** PostgreSQL column name */ columnName: string; description?: string | null; /** Enum metadata if this field has an enum type */ enumValues?: MetaEnum | null; + /** Set when the field holds files; null otherwise. Set on a table's own fields only. */ + file?: MetaFileField | null; hasDefault: boolean; + /** Whether the value is always computed and cannot be written, even when a create or update input offers the field. Set on a table's own fields only. */ + isComputed?: boolean | null; isForeignKey: boolean; isNotNull: boolean; isPrimaryKey: boolean; + /** Whether a create must provide this field. Set on a table's own fields only. */ + isRequiredOnCreate?: boolean | null; + /** Whether a create may set this field. Set on a table's own fields only. */ + isWritableOnCreate?: boolean | null; + /** Whether an update may change this field. Set on a table's own fields only. */ + isWritableOnUpdate?: boolean | null; /** Final GraphQL field name */ name: string; type: MetaType; @@ -2740,7 +2820,7 @@ export interface MetaForeignKeyConstraint { referencedFields: string[]; referencedTable: string; } -/** i18n metadata for a table with @i18n tag */ +/** i18n metadata for a translatable table */ export interface MetaI18n { /** Fields that are translatable */ translatableFields: MetaI18nField[]; @@ -2755,7 +2835,7 @@ export interface MetaIndex { isUnique: boolean; name: string; } -/** Table inflection names */ +/** Type and field names generated for this table */ export interface MetaInflection { allRows: string; conditionType: string; @@ -2783,7 +2863,7 @@ export interface MetaQuery { one?: string | null; update?: string | null; } -/** Realtime metadata for a table with @realtime tag */ +/** Realtime metadata for a table with change subscriptions */ export interface MetaRealtime { /** The generated subscription field name (e.g. onPostChanged) */ subscriptionFieldName: string; @@ -2798,13 +2878,13 @@ export interface MetaRelations { } /** Provisioning scope metadata for a table */ export interface MetaScope { - /** SQL name of the entity table for entity scopes, else null */ + /** Name of the entity table for entity scopes, else null */ entityTable?: string | null; - /** Inflected scope key column (e.g. databaseId, orgId), null for global tiers */ + /** Field name of the scope key (e.g. databaseId, orgId), null for global tiers */ keyColumn?: string | null; /** Provisioning scope: 'platform', 'app', 'database', or an entity scope (e.g. 'org') */ scope: string; - /** Provenance of the scope metadata (always 'smartTag') */ + /** Where this scope metadata comes from */ source: string; /** Coarse bucket: 'global', 'database', or 'entity' */ tier: string; @@ -2822,17 +2902,17 @@ export interface MetaSearch { } /** Storage metadata for a table */ export interface MetaStorage { - /** GraphQL type name of the plane's buckets table */ + /** GraphQL type name of the paired buckets table */ bucketsType: string; /** Computed download-URL field on the files type; null on the buckets side */ downloadUrlField?: string | null; - /** GraphQL type name of the plane's files table */ + /** GraphQL type name of the paired files table */ filesType: string; /** Whether this table is a storage buckets table */ isBucketsTable: boolean; /** Whether this table is a storage files table */ isFilesTable: boolean; - /** The plane's GraphQL upload surface */ + /** Upload mutations and types for this storage */ upload: MetaStorageUpload; } /** Information about a unique constraint */ @@ -2847,6 +2927,15 @@ export interface MetaEnum { /** Allowed values for this enum */ values: string[]; } +/** How a field holds files */ +export interface MetaFileField { + /** GraphQL type name of the files table uploads are recorded in, when this API has exactly one; null otherwise */ + filesType?: string | null; + /** Whether the field holds a list of files */ + isMultiple: boolean; + /** image, upload, or attachment. An image or upload holds a file document; an attachment holds a link to a file. */ + kind: string; +} /** Information about a PostgreSQL type */ export interface MetaType { /** Scalar serialization contract (null for plain scalars) */ @@ -2855,7 +2944,13 @@ export interface MetaType { hasDefault?: boolean | null; isArray: boolean; isNotNull?: boolean | null; + /** Most characters a text value may hold, or most bits a bit string may hold; for a list, each item. Null when unbounded. */ + maxLength?: number | null; pgType: string; + /** Most significant digits a decimal number may hold. Null when unbounded. */ + precision?: number | null; + /** Digits a decimal number keeps after the decimal point. Null when unbounded. */ + scale?: number | null; subtype?: string | null; } /** Reference to a related table */ @@ -2874,6 +2969,8 @@ export interface MetaBelongsToRelation { fieldName?: string | null; isUnique: boolean; keys: MetaField[]; + /** Fields on the referenced table that keys point at, in the same order as keys */ + refKeys: MetaField[]; references: MetaRefTable; type?: string | null; } @@ -2883,6 +2980,8 @@ export interface MetaHasRelation { isUnique: boolean; keys: MetaField[]; referencedBy: MetaRefTable; + /** Fields on the related table that point at this table, in the same order as keys */ + remoteKeys: MetaField[]; type?: string | null; } /** A many-to-many relation via junction table */ @@ -2905,7 +3004,7 @@ export interface MetaSearchColumn { /** Column name (camelCase) */ name: string; } -/** Per-table search configuration from @searchConfig smart tag */ +/** Per-table search configuration */ export interface MetaSearchConfig { /** Exponential decay factor per day */ boostRecencyDecay?: number | null; @@ -2916,7 +3015,7 @@ export interface MetaSearchConfig { /** JSON-encoded per-adapter score weights */ weights?: string | null; } -/** The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from */ +/** The upload mutations and types for a storage table pair */ export interface MetaStorageUpload { /** Per-file input type inside the bulk input */ bulkFileInputType: string; @@ -2934,14 +3033,14 @@ export interface MetaStorageUpload { mutation: string; /** Payload type of the single upload mutation */ payloadType: string; - /** Whether the upload input requires ownerId (entity-keyed plane) */ + /** Whether the upload input requires ownerId */ requiresOwnerId: boolean; } -/** How a client must serialize/parse a scalar — the one field-type detail standard GraphQL introspection cannot describe. Null for plain scalars whose wire format is obvious from gqlType. */ +/** How a client must serialize and parse a scalar whose wire format gqlType alone does not settle. Null for plain scalars whose wire format is obvious from gqlType. */ export interface MetaScalarEncoding { /** For 'vector': declared length, else null. */ dimensions?: number | null; - /** For 'ltree': values are dot-separated path strings. */ + /** For 'ltree': true when values are dot-separated paths ('a.b.c'), false when they are slash-separated paths ('/a/b/c'). */ dotPath?: boolean | null; /** For 'vector': element scalar (e.g. 'float'). */ elementType?: string | null; diff --git a/sdk/constructive-react/src/auth/types.ts b/sdk/constructive-react/src/auth/types.ts index 8660cb4629..8e9a469d74 100644 --- a/sdk/constructive-react/src/auth/types.ts +++ b/sdk/constructive-react/src/auth/types.ts @@ -7,6 +7,7 @@ export type Base64EncodedBinary = unknown; export type ConstructiveInternalTypeEmail = unknown; export type ConstructiveInternalTypeImage = unknown; export type ConstructiveInternalTypeOrigin = unknown; +export type FileVersion = unknown; export interface AuditLogAuth { actorId: string | null; createdAt: string | null; @@ -124,6 +125,8 @@ export interface User { displayNameTrgmSimilarity: number | null; id: string | null; profilePicture: ConstructiveInternalTypeImage | null; + profilePictureUrl: string | null; + profilePictureVersions: FileVersion[] | null; searchScore: number | null; searchTsv: string | null; searchTsvRank: number | null; diff --git a/sdk/constructive-react/src/compute/README.md b/sdk/constructive-react/src/compute/README.md index fb5eba2a8b..6b4ab2a270 100644 --- a/sdk/constructive-react/src/compute/README.md +++ b/sdk/constructive-react/src/compute/README.md @@ -10,7 +10,7 @@ - **Tables:** 123 - **Custom queries:** 2 -- **Custom mutations:** 62 +- **Custom mutations:** 63 **Generators:** ORM, React Query diff --git a/sdk/constructive-react/src/compute/hooks/README.md b/sdk/constructive-react/src/compute/hooks/README.md index f023257150..4e2862220d 100644 --- a/sdk/constructive-react/src/compute/hooks/README.md +++ b/sdk/constructive-react/src/compute/hooks/README.md @@ -42,11 +42,6 @@ function App() { | `useCreateBuildStepMutation` | Mutation | Partitioned append-only step and test results of a build, keyed into its log object | | `useUpdateBuildStepMutation` | Mutation | Partitioned append-only step and test results of a build, keyed into its log object | | `useDeleteBuildStepMutation` | Mutation | Partitioned append-only step and test results of a build, keyed into its log object | -| `useBuilderBindingsQuery` | Query | Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST | -| `useBuilderBindingQuery` | Query | Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST | -| `useCreateBuilderBindingMutation` | Mutation | Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST | -| `useUpdateBuilderBindingMutation` | Mutation | Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST | -| `useDeleteBuilderBindingMutation` | Mutation | Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST | | `useContentPresetsQuery` | Query | Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store | | `useContentPresetQuery` | Query | Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store | | `useCreateContentPresetMutation` | Mutation | Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store | @@ -54,7 +49,6 @@ function App() { | `useDeleteContentPresetMutation` | Mutation | Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store | | `useDatabaseFunctionGraphsQuery` | Query | Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store | | `useDatabaseFunctionGraphQuery` | Query | Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store | -| `useCreateDatabaseFunctionGraphMutation` | Mutation | Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store | | `useUpdateDatabaseFunctionGraphMutation` | Mutation | Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store | | `useDeleteDatabaseFunctionGraphMutation` | Mutation | Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store | | `useDatabaseFunctionGraphExecutionCancelRequestsQuery` | Query | Requests to stop a graph execution; each insert settles it cancelled and tears down the Jobs its nodes dispatched | @@ -83,7 +77,6 @@ function App() { | `useUpdateDatabaseGraphCommitMutation` | Mutation | Commit history — each commit snapshots a tree root for a store | | `useDeleteDatabaseGraphCommitMutation` | Mutation | Commit history — each commit snapshots a tree root for a store | | `useDatabaseGraphGetAllTreeNodesQuery` | Query | List all databaseGraphGetAllTreeNodes | -| `useCreateDatabaseGraphGetAllTreeNodesRecordMutation` | Mutation | Create a databaseGraphGetAllTreeNodesRecord | | `useDatabaseGraphObjectsQuery` | Query | Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children | | `useDatabaseGraphObjectQuery` | Query | Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children | | `useCreateDatabaseGraphObjectMutation` | Mutation | Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children | @@ -141,7 +134,6 @@ function App() { | `useDeleteFunctionGraphCommitMutation` | Mutation | Commit history — each commit snapshots a tree root for a store | | `useFunctionGraphsQuery` | Query | Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store | | `useFunctionGraphQuery` | Query | Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store | -| `useCreateFunctionGraphMutation` | Mutation | Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store | | `useUpdateFunctionGraphMutation` | Mutation | Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store | | `useDeleteFunctionGraphMutation` | Mutation | Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store | | `useFunctionGraphExecutionCancelRequestsQuery` | Query | Requests to stop a graph execution; each insert settles it cancelled and tears down the Jobs its nodes dispatched | @@ -195,7 +187,6 @@ function App() { | `useUpdateFunctionScheduleMutation` | Mutation | Function schedules — user-facing cron schedules synced into the worker scheduler (app_jobs.scheduled_jobs) | | `useDeleteFunctionScheduleMutation` | Mutation | Function schedules — user-facing cron schedules synced into the worker scheduler (app_jobs.scheduled_jobs) | | `useGetAllTreeNodesQuery` | Query | List all getAllTreeNodes | -| `useCreateGetAllTreeNodesRecordMutation` | Mutation | Create a getAllTreeNodesRecord | | `useImagesQuery` | Query | Container image catalog: images available to run as functions, resources, and builds | | `useImageQuery` | Query | Container image catalog: images available to run as functions, resources, and builds | | `useCreateImageMutation` | Mutation | Container image catalog: images available to run as functions, resources, and builds | @@ -212,7 +203,6 @@ function App() { | `useUpdateInfraCommitMutation` | Mutation | Commit history — each commit snapshots a tree root for a store | | `useDeleteInfraCommitMutation` | Mutation | Commit history — each commit snapshots a tree root for a store | | `useInfraGetAllTreeNodesQuery` | Query | List all infraGetAllTreeNodes | -| `useCreateInfraGetAllTreeNodesRecordMutation` | Mutation | Create a infraGetAllTreeNodesRecord | | `useInfraObjectsQuery` | Query | Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children | | `useInfraObjectQuery` | Query | Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children | | `useCreateInfraObjectMutation` | Mutation | Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children | @@ -253,11 +243,6 @@ function App() { | `useCreatePlatformBuildStepMutation` | Mutation | Partitioned append-only step and test results of a build, keyed into its log object | | `useUpdatePlatformBuildStepMutation` | Mutation | Partitioned append-only step and test results of a build, keyed into its log object | | `useDeletePlatformBuildStepMutation` | Mutation | Partitioned append-only step and test results of a build, keyed into its log object | -| `usePlatformBuilderBindingsQuery` | Query | Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST | -| `usePlatformBuilderBindingQuery` | Query | Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST | -| `useCreatePlatformBuilderBindingMutation` | Mutation | Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST | -| `useUpdatePlatformBuilderBindingMutation` | Mutation | Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST | -| `useDeletePlatformBuilderBindingMutation` | Mutation | Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST | | `usePlatformFunctionApiBindingsQuery` | Query | Join table binding function definitions to API endpoints with per-binding alias and config | | `usePlatformFunctionApiBindingQuery` | Query | Join table binding function definitions to API endpoints with per-binding alias and config | | `useCreatePlatformFunctionApiBindingMutation` | Mutation | Join table binding function definitions to API endpoints with per-binding alias and config | @@ -319,7 +304,6 @@ function App() { | `useUpdatePlatformInfraCommitMutation` | Mutation | Commit history — each commit snapshots a tree root for a store | | `useDeletePlatformInfraCommitMutation` | Mutation | Commit history — each commit snapshots a tree root for a store | | `usePlatformInfraGetAllTreeNodesQuery` | Query | List all platformInfraGetAllTreeNodes | -| `useCreatePlatformInfraGetAllTreeNodesRecordMutation` | Mutation | Create a platformInfraGetAllTreeNodesRecord | | `usePlatformInfraObjectsQuery` | Query | Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children | | `usePlatformInfraObjectQuery` | Query | Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children | | `useCreatePlatformInfraObjectMutation` | Mutation | Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children | @@ -426,7 +410,6 @@ function App() { | `useUpdatePlatformResourceMutation` | Mutation | Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace | | `useDeletePlatformResourceMutation` | Mutation | Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace | | `usePlatformResourceDeclaredCapacitiesQuery` | Query | List all platformResourceDeclaredCapacities | -| `useCreatePlatformResourceDeclaredCapacityMutation` | Mutation | Create a platformResourceDeclaredCapacity | | `usePlatformResourceDefinitionsQuery` | Query | Resource definitions — templates for resource kinds declaring default spec and secret/config requirements | | `usePlatformResourceDefinitionQuery` | Query | Resource definitions — templates for resource kinds declaring default spec and secret/config requirements | | `useCreatePlatformResourceDefinitionMutation` | Mutation | Resource definitions — templates for resource kinds declaring default spec and secret/config requirements | @@ -443,7 +426,6 @@ function App() { | `useUpdatePlatformResourceInstallationMutation` | Mutation | Installed resource bundle ("release") — groups a set of resources; params are merkle-versioned in the scope's shared infra store for rollback | | `useDeletePlatformResourceInstallationMutation` | Mutation | Installed resource bundle ("release") — groups a set of resources; params are merkle-versioned in the scope's shared infra store for rollback | | `usePlatformResourceObservedStoragesQuery` | Query | List all platformResourceObservedStorages | -| `useCreatePlatformResourceObservedStorageMutation` | Mutation | Create a platformResourceObservedStorage | | `usePlatformResourceStatusChecksQuery` | Query | On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) | | `usePlatformResourceStatusCheckQuery` | Query | On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) | | `useCreatePlatformResourceStatusCheckMutation` | Mutation | On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) | @@ -460,16 +442,17 @@ function App() { | `useUpdatePlatformResourceUsageSummaryMutation` | Mutation | Resource usage summaries — runtime seconds, GB-seconds, and max gauges per (resource, namespace, day); resource_id-NULL rows are namespace-grain totals | | `useDeletePlatformResourceUsageSummaryMutation` | Mutation | Resource usage summaries — runtime seconds, GB-seconds, and max gauges per (resource, namespace, day); resource_id-NULL rows are namespace-grain totals | | `usePlatformResourceUtilizationsQuery` | Query | List all platformResourceUtilizations | -| `useCreatePlatformResourceUtilizationMutation` | Mutation | Create a platformResourceUtilization | | `usePlatformResourcesHealthsQuery` | Query | List all platformResourcesHealths | | `usePlatformResourcesHealthQuery` | Query | Get one platformResourcesHealth | -| `useCreatePlatformResourcesHealthMutation` | Mutation | Create a platformResourcesHealth | | `useUpdatePlatformResourcesHealthMutation` | Mutation | Update a platformResourcesHealth | | `useDeletePlatformResourcesHealthMutation` | Mutation | Delete a platformResourcesHealth | | `usePlatformResourcesRequirementsStatesQuery` | Query | List all platformResourcesRequirementsStates | -| `useCreatePlatformResourcesRequirementsStateMutation` | Mutation | Create a platformResourcesRequirementsState | | `usePlatformResourcesResolvedRequirementsQuery` | Query | List all platformResourcesResolvedRequirements | -| `useCreatePlatformResourcesResolvedRequirementMutation` | Mutation | Create a platformResourcesResolvedRequirement | +| `usePlatformServiceBindingsQuery` | Query | Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config | +| `usePlatformServiceBindingQuery` | Query | Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config | +| `useCreatePlatformServiceBindingMutation` | Mutation | Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config | +| `useUpdatePlatformServiceBindingMutation` | Mutation | Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config | +| `useDeletePlatformServiceBindingMutation` | Mutation | Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config | | `usePlatformWebhookEndpointsQuery` | Query | Webhook route authority: (host, path) -> function task_identifier invoked through the webhook channel, with provider, signing-secret reference, and replay window | | `usePlatformWebhookEndpointQuery` | Query | Webhook route authority: (host, path) -> function task_identifier invoked through the webhook channel, with provider, signing-secret reference, and replay window | | `useCreatePlatformWebhookEndpointMutation` | Mutation | Webhook route authority: (host, path) -> function task_identifier invoked through the webhook channel, with provider, signing-secret reference, and replay window | @@ -551,7 +534,6 @@ function App() { | `useUpdateResourceMutation` | Mutation | Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace | | `useDeleteResourceMutation` | Mutation | Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace | | `useResourceDeclaredCapacitiesQuery` | Query | List all resourceDeclaredCapacities | -| `useCreateResourceDeclaredCapacityMutation` | Mutation | Create a resourceDeclaredCapacity | | `useResourceDefinitionsQuery` | Query | Resource definitions — templates for resource kinds declaring default spec and secret/config requirements | | `useResourceDefinitionQuery` | Query | Resource definitions — templates for resource kinds declaring default spec and secret/config requirements | | `useCreateResourceDefinitionMutation` | Mutation | Resource definitions — templates for resource kinds declaring default spec and secret/config requirements | @@ -568,7 +550,6 @@ function App() { | `useUpdateResourceInstallationMutation` | Mutation | Installed resource bundle ("release") — groups a set of resources; params are merkle-versioned in the scope's shared infra store for rollback | | `useDeleteResourceInstallationMutation` | Mutation | Installed resource bundle ("release") — groups a set of resources; params are merkle-versioned in the scope's shared infra store for rollback | | `useResourceObservedStoragesQuery` | Query | List all resourceObservedStorages | -| `useCreateResourceObservedStorageMutation` | Mutation | Create a resourceObservedStorage | | `useResourceStatusChecksQuery` | Query | On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) | | `useResourceStatusCheckQuery` | Query | On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) | | `useCreateResourceStatusCheckMutation` | Mutation | On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) | @@ -585,16 +566,17 @@ function App() { | `useUpdateResourceUsageSummaryMutation` | Mutation | Resource usage summaries — runtime seconds, GB-seconds, and max gauges per (resource, namespace, day); resource_id-NULL rows are namespace-grain totals | | `useDeleteResourceUsageSummaryMutation` | Mutation | Resource usage summaries — runtime seconds, GB-seconds, and max gauges per (resource, namespace, day); resource_id-NULL rows are namespace-grain totals | | `useResourceUtilizationsQuery` | Query | List all resourceUtilizations | -| `useCreateResourceUtilizationMutation` | Mutation | Create a resourceUtilization | | `useResourcesHealthsQuery` | Query | List all resourcesHealths | | `useResourcesHealthQuery` | Query | Get one resourcesHealth | -| `useCreateResourcesHealthMutation` | Mutation | Create a resourcesHealth | | `useUpdateResourcesHealthMutation` | Mutation | Update a resourcesHealth | | `useDeleteResourcesHealthMutation` | Mutation | Delete a resourcesHealth | | `useResourcesRequirementsStatesQuery` | Query | List all resourcesRequirementsStates | -| `useCreateResourcesRequirementsStateMutation` | Mutation | Create a resourcesRequirementsState | | `useResourcesResolvedRequirementsQuery` | Query | List all resourcesResolvedRequirements | -| `useCreateResourcesResolvedRequirementMutation` | Mutation | Create a resourcesResolvedRequirement | +| `useServiceBindingsQuery` | Query | Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config | +| `useServiceBindingQuery` | Query | Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config | +| `useCreateServiceBindingMutation` | Mutation | Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config | +| `useUpdateServiceBindingMutation` | Mutation | Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config | +| `useDeleteServiceBindingMutation` | Mutation | Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config | | `useWebhookEndpointsQuery` | Query | Webhook route authority: (host, path) -> function task_identifier invoked through the webhook channel, with provider, signing-secret reference, and replay window | | `useWebhookEndpointQuery` | Query | Webhook route authority: (host, path) -> function task_identifier invoked through the webhook channel, with provider, signing-secret reference, and replay window | | `useCreateWebhookEndpointMutation` | Mutation | Webhook route authority: (host, path) -> function task_identifier invoked through the webhook channel, with provider, signing-secret reference, and replay window | @@ -613,6 +595,7 @@ function App() { | `useAddNodeAndSaveMutation` | Mutation | addNodeAndSave | | `useApproveNodeMutation` | Mutation | approveNode | | `useCopyGraphMutation` | Mutation | copyGraph | +| `useCreateFunctionGraphMutation` | Mutation | createFunctionGraph | | `useDatabaseAddEdgeMutation` | Mutation | databaseAddEdge | | `useDatabaseAddEdgeAndSaveMutation` | Mutation | databaseAddEdgeAndSave | | `useDatabaseAddNodeMutation` | Mutation | databaseAddNode | @@ -719,27 +702,6 @@ const { mutate: create } = useCreateBuildStepMutation({ create({ buildId: '', createdByPrincipal: '', databaseId: '', exitCode: '', finishedAt: '', kind: '', logBytes: '', logOffset: '', name: '', parentSeq: '', recordedAt: '', seq: '', startedAt: '', status: '', summary: '' }); ``` -### BuilderBinding - -```typescript -// List all builderBindings -const { data, isLoading } = useBuilderBindingsQuery({ - selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, installationId: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, -}); - -// Get one builderBinding -const { data: item } = useBuilderBindingQuery({ - id: '', - selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, installationId: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, -}); - -// Create a builderBinding -const { mutate: create } = useCreateBuilderBindingMutation({ - selection: { fields: { id: true } }, -}); -create({ createdBy: '', createdByPrincipal: '', databaseId: '', installationId: '', lastError: '', metadata: '', namespaceId: '', observedHost: '', realm: '', status: '', updatedBy: '', updatedByPrincipal: '' }); -``` - ### ContentPreset ```typescript @@ -775,11 +737,6 @@ const { data: item } = useDatabaseFunctionGraphQuery({ selection: { fields: { context: true, createdAt: true, createdBy: true, databaseId: true, definitionsCommitId: true, description: true, id: true, isValid: true, name: true, storeId: true, updatedAt: true, validationErrors: true } }, }); -// Create a databaseFunctionGraph -const { mutate: create } = useCreateDatabaseFunctionGraphMutation({ - selection: { fields: { id: true } }, -}); -create({ context: '', createdBy: '', databaseId: '', definitionsCommitId: '', description: '', isValid: '', name: '', storeId: '', validationErrors: '' }); ``` ### DatabaseFunctionGraphExecutionCancelRequest @@ -895,11 +852,6 @@ const { data, isLoading } = useDatabaseGraphGetAllTreeNodesQuery({ selection: { fields: { data: true, path: true } }, }); -// Create a databaseGraphGetAllTreeNodesRecord -const { mutate: create } = useCreateDatabaseGraphGetAllTreeNodesRecordMutation({ - selection: { fields: { id: true } }, -}); -create({ data: '', path: '' }); ``` ### DatabaseGraphObject @@ -1033,20 +985,20 @@ create({ bucketId: '', databaseId: '', functionId: '', graphId ```typescript // List all functionDefinitions const { data, isLoading } = useFunctionDefinitionsQuery({ - selection: { fields: { accessChannels: true, anonymousCallable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdByPrincipal: true, databaseId: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredCapabilities: true, requiredConfigs: true, requiredModels: true, requiredModules: true, requiredSecrets: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, updatedByPrincipal: true, volatile: true } }, + selection: { fields: { accessChannels: true, anonymousCallable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdByPrincipal: true, databaseId: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredCapabilities: true, requiredModels: true, requiredModules: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, updatedByPrincipal: true, volatile: true } }, }); // Get one functionDefinition const { data: item } = useFunctionDefinitionQuery({ id: '', - selection: { fields: { accessChannels: true, anonymousCallable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdByPrincipal: true, databaseId: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredCapabilities: true, requiredConfigs: true, requiredModels: true, requiredModules: true, requiredSecrets: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, updatedByPrincipal: true, volatile: true } }, + selection: { fields: { accessChannels: true, anonymousCallable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdByPrincipal: true, databaseId: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredCapabilities: true, requiredModels: true, requiredModules: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, updatedByPrincipal: true, volatile: true } }, }); // Create a functionDefinition const { mutate: create } = useCreateFunctionDefinitionMutation({ selection: { fields: { id: true } }, }); -create({ accessChannels: '', anonymousCallable: '', category: '', concurrency: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdByPrincipal: '', databaseId: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', memoryLimitBytes: '', memoryRequestBytes: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredCapabilities: '', requiredConfigs: '', requiredModels: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', updatedByPrincipal: '', volatile: '' }); +create({ accessChannels: '', anonymousCallable: '', category: '', concurrency: '', createdByPrincipal: '', databaseId: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredCapabilities: '', requiredConfigs: '', requiredModels: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', targetFunction: '', targetSchema: '', timeoutSeconds: '', updatedByPrincipal: '', volatile: '' }); ``` ### FunctionDeployment @@ -1147,11 +1099,6 @@ const { data: item } = useFunctionGraphQuery({ selection: { fields: { context: true, createdAt: true, createdBy: true, definitionsCommitId: true, description: true, id: true, isValid: true, name: true, scopeId: true, storeId: true, updatedAt: true, validationErrors: true } }, }); -// Create a functionGraph -const { mutate: create } = useCreateFunctionGraphMutation({ - selection: { fields: { id: true } }, -}); -create({ context: '', createdBy: '', definitionsCommitId: '', description: '', isValid: '', name: '', scopeId: '', storeId: '', validationErrors: '' }); ``` ### FunctionGraphExecutionCancelRequest @@ -1372,11 +1319,6 @@ const { data, isLoading } = useGetAllTreeNodesQuery({ selection: { fields: { data: true, path: true } }, }); -// Create a getAllTreeNodesRecord -const { mutate: create } = useCreateGetAllTreeNodesRecordMutation({ - selection: { fields: { id: true } }, -}); -create({ data: '', path: '' }); ``` ### Image @@ -1450,11 +1392,6 @@ const { data, isLoading } = useInfraGetAllTreeNodesQuery({ selection: { fields: { data: true, path: true } }, }); -// Create a infraGetAllTreeNodesRecord -const { mutate: create } = useCreateInfraGetAllTreeNodesRecordMutation({ - selection: { fields: { id: true } }, -}); -create({ data: '', path: '' }); ``` ### InfraObject @@ -1525,13 +1462,13 @@ create({ databaseId: '', hash: '', name: '' }); ```typescript // List all integrationProviders const { data, isLoading } = useIntegrationProvidersQuery({ - selection: { fields: { brand: true, category: true, createdAt: true, description: true, icon: true, id: true, logo: true, name: true, requiredConfigs: true, requiredSecrets: true, slug: true, updatedAt: true } }, + selection: { fields: { brand: true, category: true, createdAt: true, description: true, icon: true, id: true, logo: true, name: true, slug: true, updatedAt: true } }, }); // Get one integrationProvider const { data: item } = useIntegrationProviderQuery({ id: '', - selection: { fields: { brand: true, category: true, createdAt: true, description: true, icon: true, id: true, logo: true, name: true, requiredConfigs: true, requiredSecrets: true, slug: true, updatedAt: true } }, + selection: { fields: { brand: true, category: true, createdAt: true, description: true, icon: true, id: true, logo: true, name: true, slug: true, updatedAt: true } }, }); // Create a integrationProvider @@ -1625,27 +1562,6 @@ const { mutate: create } = useCreatePlatformBuildStepMutation({ create({ buildId: '', createdByPrincipal: '', exitCode: '', finishedAt: '', kind: '', logBytes: '', logOffset: '', name: '', parentSeq: '', recordedAt: '', seq: '', startedAt: '', status: '', summary: '' }); ``` -### PlatformBuilderBinding - -```typescript -// List all platformBuilderBindings -const { data, isLoading } = usePlatformBuilderBindingsQuery({ - selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, installationId: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, -}); - -// Get one platformBuilderBinding -const { data: item } = usePlatformBuilderBindingQuery({ - id: '', - selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, installationId: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, -}); - -// Create a platformBuilderBinding -const { mutate: create } = useCreatePlatformBuilderBindingMutation({ - selection: { fields: { id: true } }, -}); -create({ createdBy: '', createdByPrincipal: '', installationId: '', lastError: '', metadata: '', namespaceId: '', observedHost: '', realm: '', status: '', updatedBy: '', updatedByPrincipal: '' }); -``` - ### PlatformFunctionApiBinding ```typescript @@ -1693,20 +1609,20 @@ create({ bucketId: '', functionId: '', graphId: '', key: '', - selection: { fields: { accessChannels: true, anonymousCallable: true, billable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdByPrincipal: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredCapabilities: true, requiredConfigs: true, requiredModels: true, requiredModules: true, requiredSecrets: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, system: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, updatedByPrincipal: true, volatile: true } }, + selection: { fields: { accessChannels: true, anonymousCallable: true, billable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdByPrincipal: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredCapabilities: true, requiredModels: true, requiredModules: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, system: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, updatedByPrincipal: true, volatile: true } }, }); // Create a platformFunctionDefinition const { mutate: create } = useCreatePlatformFunctionDefinitionMutation({ selection: { fields: { id: true } }, }); -create({ accessChannels: '', anonymousCallable: '', billable: '', category: '', concurrency: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdByPrincipal: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', memoryLimitBytes: '', memoryRequestBytes: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredCapabilities: '', requiredConfigs: '', requiredModels: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', system: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', updatedByPrincipal: '', volatile: '' }); +create({ accessChannels: '', anonymousCallable: '', billable: '', category: '', concurrency: '', createdByPrincipal: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredCapabilities: '', requiredConfigs: '', requiredModels: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', system: '', targetFunction: '', targetSchema: '', timeoutSeconds: '', updatedByPrincipal: '', volatile: '' }); ``` ### PlatformFunctionDeployment @@ -1906,11 +1822,6 @@ const { data, isLoading } = usePlatformInfraGetAllTreeNodesQuery({ selection: { fields: { data: true, path: true } }, }); -// Create a platformInfraGetAllTreeNodesRecord -const { mutate: create } = useCreatePlatformInfraGetAllTreeNodesRecordMutation({ - selection: { fields: { id: true } }, -}); -create({ data: '', path: '' }); ``` ### PlatformInfraObject @@ -2065,20 +1976,20 @@ create({ actorId: '', eventType: '', message: '', metadata ```typescript // List all platformProposalComments const { data, isLoading } = usePlatformProposalCommentsQuery({ - selection: { fields: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, + selection: { fields: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); // Get one platformProposalComment const { data: item } = usePlatformProposalCommentQuery({ id: '', - selection: { fields: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, + selection: { fields: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); // Create a platformProposalComment const { mutate: create } = useCreatePlatformProposalCommentMutation({ selection: { fields: { id: true } }, }); -create({ actorId: '', attachments: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', line: '', outdatedAt: '', path: '', pathTrgmSimilarity: '', proposalId: '', resolvedAt: '', search: '', searchScore: '', searchTsvRank: '', updatedBy: '', updatedByPrincipal: '' }); +create({ actorId: '', attachments: '', body: '', createdBy: '', createdByPrincipal: '', embedding: '', line: '', outdatedAt: '', path: '', proposalId: '', resolvedAt: '', updatedBy: '', updatedByPrincipal: '' }); ``` ### PlatformProposal @@ -2086,20 +1997,20 @@ create({ actorId: '', attachments: '', body: '', bodyTrgmS ```typescript // List all platformProposals const { data, isLoading } = usePlatformProposalsQuery({ - selection: { fields: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, + selection: { fields: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, decidedAt: true, dueAt: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); // Get one platformProposal const { data: item } = usePlatformProposalQuery({ id: '', - selection: { fields: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, + selection: { fields: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, decidedAt: true, dueAt: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); // Create a platformProposal const { mutate: create } = useCreatePlatformProposalMutation({ selection: { fields: { id: true } }, }); -create({ actorId: '', body: '', bodyTrgmSimilarity: '', closedReason: '', closedReasonTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', decidedAt: '', dueAt: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', kind: '', kindTrgmSimilarity: '', labels: '', mergeCommit: '', mergeCommitTrgmSimilarity: '', mergeMethod: '', mergeMethodTrgmSimilarity: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', resolutionTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', sourceRef: '', sourceRefTrgmSimilarity: '', status: '', statusTrgmSimilarity: '', targetRef: '', targetRefTrgmSimilarity: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }); +create({ actorId: '', body: '', closedReason: '', createdBy: '', createdByPrincipal: '', decidedAt: '', dueAt: '', embedding: '', kind: '', labels: '', mergeCommit: '', mergeMethod: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', sourceRef: '', status: '', targetRef: '', title: '', updatedBy: '', updatedByPrincipal: '' }); ``` ### PlatformProposalFileView @@ -2162,7 +2073,7 @@ const { data: item } = usePlatformProposalReviewQuery({ const { mutate: create } = useCreatePlatformProposalReviewMutation({ selection: { fields: { id: true } }, }); -create({ body: '', bodyTrgmSimilarity: '', commitSha: '', commitShaTrgmSimilarity: '', createdByPrincipal: '', proposalId: '', reviewerId: '', search: '', searchScore: '', searchTsvRank: '', submittedAt: '', updatedByPrincipal: '', verdict: '', verdictTrgmSimilarity: '' }); +create({ body: '', commitSha: '', createdByPrincipal: '', proposalId: '', reviewerId: '', submittedAt: '', updatedByPrincipal: '', verdict: '' }); ``` ### PlatformProposalsChunk @@ -2183,7 +2094,7 @@ const { data: item } = usePlatformProposalsChunkQuery({ const { mutate: create } = useCreatePlatformProposalsChunkMutation({ selection: { fields: { id: true } }, }); -create({ actorId: '', body: '', chunkIndex: '', embedding: '', embeddingVectorDistance: '', metadata: '', platformProposalsId: '', searchScore: '' }); +create({ actorId: '', body: '', chunkIndex: '', embedding: '', metadata: '', platformProposalsId: '' }); ``` ### PlatformRegistryBinding @@ -2254,20 +2165,20 @@ create({ actions: '', createdByPrincipal: '', expiresAt: '', - selection: { fields: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }, + selection: { fields: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }, }); // Create a platformRepository const { mutate: create } = useCreatePlatformRepositoryMutation({ selection: { fields: { id: true } }, }); -create({ cloneUrl: '', cloneUrlTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', defaultBranch: '', defaultBranchTrgmSimilarity: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', externalId: '', externalIdTrgmSimilarity: '', isArchived: '', metadata: '', name: '', nameTrgmSimilarity: '', ownerId: '', provider: '', providerTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', slug: '', slugTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '', visibility: '', visibilityTrgmSimilarity: '' }); +create({ cloneUrl: '', createdBy: '', createdByPrincipal: '', defaultBranch: '', description: '', embedding: '', externalId: '', isArchived: '', metadata: '', name: '', ownerId: '', provider: '', slug: '', updatedBy: '', updatedByPrincipal: '', visibility: '' }); ``` ### PlatformRepositoryEvent @@ -2338,20 +2249,20 @@ create({ cancelInProgress: '', concurrencyKey: '', createdBy: ' ```typescript // List all platformResources const { data, isLoading } = usePlatformResourcesQuery({ - selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, + selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); // Get one platformResource const { data: item } = usePlatformResourceQuery({ id: '', - selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, + selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); // Create a platformResource const { mutate: create } = useCreatePlatformResourceMutation({ selection: { fields: { id: true } }, }); -create({ annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }); +create({ annotations: '', createdBy: '', createdByPrincipal: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', name: '', namespaceId: '', realm: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', updatedBy: '', updatedByPrincipal: '' }); ``` ### PlatformResourceDeclaredCapacity @@ -2362,11 +2273,6 @@ const { data, isLoading } = usePlatformResourceDeclaredCapacitiesQuery({ selection: { fields: { cpuLimitMillicores: true, cpuRequestMillicores: true, installationId: true, isTransient: true, kind: true, memoryLimitBytes: true, memoryRequestBytes: true, namespaceId: true, podCountMax: true, podCountMin: true, source: true, sourceId: true, storageSizeBytes: true, storageTotalBytes: true } }, }); -// Create a platformResourceDeclaredCapacity -const { mutate: create } = useCreatePlatformResourceDeclaredCapacityMutation({ - selection: { fields: { id: true } }, -}); -create({ cpuLimitMillicores: '', cpuRequestMillicores: '', installationId: '', isTransient: '', kind: '', memoryLimitBytes: '', memoryRequestBytes: '', namespaceId: '', podCountMax: '', podCountMin: '', source: '', sourceId: '', storageSizeBytes: '', storageTotalBytes: '' }); ``` ### PlatformResourceDefinition @@ -2374,13 +2280,13 @@ create({ cpuLimitMillicores: '', cpuRequestMillicores: '', insta ```typescript // List all platformResourceDefinitions const { data, isLoading } = usePlatformResourceDefinitionsQuery({ - selection: { fields: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, + selection: { fields: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); // Get one platformResourceDefinition const { data: item } = usePlatformResourceDefinitionQuery({ id: '', - selection: { fields: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, + selection: { fields: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); // Create a platformResourceDefinition @@ -2440,11 +2346,6 @@ const { data, isLoading } = usePlatformResourceObservedStoragesQuery({ selection: { fields: { capacity: true, capacityBytes: true, claimName: true, declaredStorageClass: true, declaredStorageSizeBytes: true, declaredStorageTotalBytes: true, installationId: true, isBound: true, kind: true, namespaceId: true, phase: true, requested: true, requestedBytes: true, resourceId: true, resourceStatus: true, slug: true, storageClass: true, storageName: true } }, }); -// Create a platformResourceObservedStorage -const { mutate: create } = useCreatePlatformResourceObservedStorageMutation({ - selection: { fields: { id: true } }, -}); -create({ capacity: '', capacityBytes: '', claimName: '', declaredStorageClass: '', declaredStorageSizeBytes: '', declaredStorageTotalBytes: '', installationId: '', isBound: '', kind: '', namespaceId: '', phase: '', requested: '', requestedBytes: '', resourceId: '', resourceStatus: '', slug: '', storageClass: '', storageName: '' }); ``` ### PlatformResourceStatusCheck @@ -2518,11 +2419,6 @@ const { data, isLoading } = usePlatformResourceUtilizationsQuery({ selection: { fields: { avgMemoryBytes: true, cpuLimitMillicores: true, cpuPeakUtilization: true, cpuRequestHeadroomMillicores: true, cpuRequestMillicores: true, date: true, gbSeconds: true, kind: true, maxCpuMillicores: true, maxMemoryBytes: true, memoryLimitBytes: true, memoryPeakUtilization: true, memoryRequestBytes: true, memoryRequestHeadroomBytes: true, namespaceId: true, replicas: true, resourceId: true, runtimeSeconds: true, sampleCount: true } }, }); -// Create a platformResourceUtilization -const { mutate: create } = useCreatePlatformResourceUtilizationMutation({ - selection: { fields: { id: true } }, -}); -create({ avgMemoryBytes: '', cpuLimitMillicores: '', cpuPeakUtilization: '', cpuRequestHeadroomMillicores: '', cpuRequestMillicores: '', date: '', gbSeconds: '', kind: '', maxCpuMillicores: '', maxMemoryBytes: '', memoryLimitBytes: '', memoryPeakUtilization: '', memoryRequestBytes: '', memoryRequestHeadroomBytes: '', namespaceId: '', replicas: '', resourceId: '', runtimeSeconds: '', sampleCount: '' }); ``` ### PlatformResourcesHealth @@ -2530,20 +2426,15 @@ create({ avgMemoryBytes: '', cpuLimitMillicores: '', cpuPeakUtil ```typescript // List all platformResourcesHealths const { data, isLoading } = usePlatformResourcesHealthsQuery({ - selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, + selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); // Get one platformResourcesHealth const { data: item } = usePlatformResourcesHealthQuery({ id: '', - selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, + selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); -// Create a platformResourcesHealth -const { mutate: create } = useCreatePlatformResourcesHealthMutation({ - selection: { fields: { id: true } }, -}); -create({ annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusDetail: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }); ``` ### PlatformResourcesRequirementsState @@ -2554,11 +2445,6 @@ const { data, isLoading } = usePlatformResourcesRequirementsStatesQuery({ selection: { fields: { configHash: true, configObjectName: true, requirementsHash: true, resourceId: true, secretsHash: true, secretsObjectName: true, slug: true } }, }); -// Create a platformResourcesRequirementsState -const { mutate: create } = useCreatePlatformResourcesRequirementsStateMutation({ - selection: { fields: { id: true } }, -}); -create({ configHash: '', configObjectName: '', requirementsHash: '', resourceId: '', secretsHash: '', secretsObjectName: '', slug: '' }); ``` ### PlatformResourcesResolvedRequirement @@ -2569,11 +2455,27 @@ const { data, isLoading } = usePlatformResourcesResolvedRequirementsQuery({ selection: { fields: { atomId: true, configObjectName: true, name: true, namespaceId: true, present: true, realm: true, required: true, requirementKind: true, resourceId: true, secretsObjectName: true, slug: true } }, }); -// Create a platformResourcesResolvedRequirement -const { mutate: create } = useCreatePlatformResourcesResolvedRequirementMutation({ +``` + +### PlatformServiceBinding + +```typescript +// List all platformServiceBindings +const { data, isLoading } = usePlatformServiceBindingsQuery({ + selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, installationId: true, installationScope: true, kind: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, +}); + +// Get one platformServiceBinding +const { data: item } = usePlatformServiceBindingQuery({ + id: '', + selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, installationId: true, installationScope: true, kind: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, +}); + +// Create a platformServiceBinding +const { mutate: create } = useCreatePlatformServiceBindingMutation({ selection: { fields: { id: true } }, }); -create({ atomId: '', configObjectName: '', name: '', namespaceId: '', present: '', realm: '', required: '', requirementKind: '', resourceId: '', secretsObjectName: '', slug: '' }); +create({ createdBy: '', createdByPrincipal: '', installationId: '', installationScope: '', kind: '', lastError: '', metadata: '', namespaceId: '', observedHost: '', realm: '', status: '', updatedBy: '', updatedByPrincipal: '' }); ``` ### PlatformWebhookEndpoint @@ -2623,20 +2525,20 @@ create({ endpointId: '', error: '', externalEventId: '', i ```typescript // List all proposalComments const { data, isLoading } = useProposalCommentsQuery({ - selection: { fields: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, + selection: { fields: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); // Get one proposalComment const { data: item } = useProposalCommentQuery({ id: '', - selection: { fields: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, + selection: { fields: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); // Create a proposalComment const { mutate: create } = useCreateProposalCommentMutation({ selection: { fields: { id: true } }, }); -create({ actorId: '', attachments: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', line: '', outdatedAt: '', path: '', pathTrgmSimilarity: '', proposalId: '', resolvedAt: '', search: '', searchScore: '', searchTsvRank: '', updatedBy: '', updatedByPrincipal: '' }); +create({ actorId: '', attachments: '', body: '', createdBy: '', createdByPrincipal: '', databaseId: '', embedding: '', line: '', outdatedAt: '', path: '', proposalId: '', resolvedAt: '', updatedBy: '', updatedByPrincipal: '' }); ``` ### Proposal @@ -2644,20 +2546,20 @@ create({ actorId: '', attachments: '', body: '', bodyTrgmS ```typescript // List all proposals const { data, isLoading } = useProposalsQuery({ - selection: { fields: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, + selection: { fields: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, decidedAt: true, dueAt: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); // Get one proposal const { data: item } = useProposalQuery({ id: '', - selection: { fields: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, + selection: { fields: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, decidedAt: true, dueAt: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); // Create a proposal const { mutate: create } = useCreateProposalMutation({ selection: { fields: { id: true } }, }); -create({ actorId: '', body: '', bodyTrgmSimilarity: '', closedReason: '', closedReasonTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', decidedAt: '', dueAt: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', kind: '', kindTrgmSimilarity: '', labels: '', mergeCommit: '', mergeCommitTrgmSimilarity: '', mergeMethod: '', mergeMethodTrgmSimilarity: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', resolutionTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', sourceRef: '', sourceRefTrgmSimilarity: '', status: '', statusTrgmSimilarity: '', targetRef: '', targetRefTrgmSimilarity: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }); +create({ actorId: '', body: '', closedReason: '', createdBy: '', createdByPrincipal: '', databaseId: '', decidedAt: '', dueAt: '', embedding: '', kind: '', labels: '', mergeCommit: '', mergeMethod: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', sourceRef: '', status: '', targetRef: '', title: '', updatedBy: '', updatedByPrincipal: '' }); ``` ### ProposalFileView @@ -2720,7 +2622,7 @@ const { data: item } = useProposalReviewQuery({ const { mutate: create } = useCreateProposalReviewMutation({ selection: { fields: { id: true } }, }); -create({ body: '', bodyTrgmSimilarity: '', commitSha: '', commitShaTrgmSimilarity: '', createdByPrincipal: '', databaseId: '', proposalId: '', reviewerId: '', search: '', searchScore: '', searchTsvRank: '', submittedAt: '', updatedByPrincipal: '', verdict: '', verdictTrgmSimilarity: '' }); +create({ body: '', commitSha: '', createdByPrincipal: '', databaseId: '', proposalId: '', reviewerId: '', submittedAt: '', updatedByPrincipal: '', verdict: '' }); ``` ### ProposalsChunk @@ -2741,7 +2643,7 @@ const { data: item } = useProposalsChunkQuery({ const { mutate: create } = useCreateProposalsChunkMutation({ selection: { fields: { id: true } }, }); -create({ actorId: '', body: '', chunkIndex: '', databaseId: '', embedding: '', embeddingVectorDistance: '', metadata: '', proposalsId: '', searchScore: '' }); +create({ actorId: '', body: '', chunkIndex: '', databaseId: '', embedding: '', metadata: '', proposalsId: '' }); ``` ### RegistryBinding @@ -2812,20 +2714,20 @@ create({ actions: '', createdByPrincipal: '', databaseId: '' ```typescript // List all repositories const { data, isLoading } = useRepositoriesQuery({ - selection: { fields: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }, + selection: { fields: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }, }); // Get one repository const { data: item } = useRepositoryQuery({ id: '', - selection: { fields: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }, + selection: { fields: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }, }); // Create a repository const { mutate: create } = useCreateRepositoryMutation({ selection: { fields: { id: true } }, }); -create({ cloneUrl: '', cloneUrlTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', defaultBranch: '', defaultBranchTrgmSimilarity: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', externalId: '', externalIdTrgmSimilarity: '', isArchived: '', metadata: '', name: '', nameTrgmSimilarity: '', ownerId: '', provider: '', providerTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', slug: '', slugTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '', visibility: '', visibilityTrgmSimilarity: '' }); +create({ cloneUrl: '', createdBy: '', createdByPrincipal: '', databaseId: '', defaultBranch: '', description: '', embedding: '', externalId: '', isArchived: '', metadata: '', name: '', ownerId: '', provider: '', slug: '', updatedBy: '', updatedByPrincipal: '', visibility: '' }); ``` ### RepositoryEvent @@ -2896,20 +2798,20 @@ create({ cancelInProgress: '', concurrencyKey: '', createdBy: ' ```typescript // List all resources const { data, isLoading } = useResourcesQuery({ - selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, + selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); // Get one resource const { data: item } = useResourceQuery({ id: '', - selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, + selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); // Create a resource const { mutate: create } = useCreateResourceMutation({ selection: { fields: { id: true } }, }); -create({ annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', databaseId: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }); +create({ annotations: '', createdBy: '', createdByPrincipal: '', databaseId: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', name: '', namespaceId: '', realm: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', updatedBy: '', updatedByPrincipal: '' }); ``` ### ResourceDeclaredCapacity @@ -2920,11 +2822,6 @@ const { data, isLoading } = useResourceDeclaredCapacitiesQuery({ selection: { fields: { cpuLimitMillicores: true, cpuRequestMillicores: true, installationId: true, isTransient: true, kind: true, memoryLimitBytes: true, memoryRequestBytes: true, namespaceId: true, podCountMax: true, podCountMin: true, source: true, sourceId: true, storageSizeBytes: true, storageTotalBytes: true } }, }); -// Create a resourceDeclaredCapacity -const { mutate: create } = useCreateResourceDeclaredCapacityMutation({ - selection: { fields: { id: true } }, -}); -create({ cpuLimitMillicores: '', cpuRequestMillicores: '', installationId: '', isTransient: '', kind: '', memoryLimitBytes: '', memoryRequestBytes: '', namespaceId: '', podCountMax: '', podCountMin: '', source: '', sourceId: '', storageSizeBytes: '', storageTotalBytes: '' }); ``` ### ResourceDefinition @@ -2932,13 +2829,13 @@ create({ cpuLimitMillicores: '', cpuRequestMillicores: '', insta ```typescript // List all resourceDefinitions const { data, isLoading } = useResourceDefinitionsQuery({ - selection: { fields: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, + selection: { fields: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); // Get one resourceDefinition const { data: item } = useResourceDefinitionQuery({ id: '', - selection: { fields: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, + selection: { fields: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); // Create a resourceDefinition @@ -2998,11 +2895,6 @@ const { data, isLoading } = useResourceObservedStoragesQuery({ selection: { fields: { capacity: true, capacityBytes: true, claimName: true, declaredStorageClass: true, declaredStorageSizeBytes: true, declaredStorageTotalBytes: true, installationId: true, isBound: true, kind: true, namespaceId: true, phase: true, requested: true, requestedBytes: true, resourceId: true, resourceStatus: true, slug: true, storageClass: true, storageName: true } }, }); -// Create a resourceObservedStorage -const { mutate: create } = useCreateResourceObservedStorageMutation({ - selection: { fields: { id: true } }, -}); -create({ capacity: '', capacityBytes: '', claimName: '', declaredStorageClass: '', declaredStorageSizeBytes: '', declaredStorageTotalBytes: '', installationId: '', isBound: '', kind: '', namespaceId: '', phase: '', requested: '', requestedBytes: '', resourceId: '', resourceStatus: '', slug: '', storageClass: '', storageName: '' }); ``` ### ResourceStatusCheck @@ -3076,11 +2968,6 @@ const { data, isLoading } = useResourceUtilizationsQuery({ selection: { fields: { avgMemoryBytes: true, cpuLimitMillicores: true, cpuPeakUtilization: true, cpuRequestHeadroomMillicores: true, cpuRequestMillicores: true, date: true, gbSeconds: true, kind: true, maxCpuMillicores: true, maxMemoryBytes: true, memoryLimitBytes: true, memoryPeakUtilization: true, memoryRequestBytes: true, memoryRequestHeadroomBytes: true, namespaceId: true, replicas: true, resourceId: true, runtimeSeconds: true, sampleCount: true } }, }); -// Create a resourceUtilization -const { mutate: create } = useCreateResourceUtilizationMutation({ - selection: { fields: { id: true } }, -}); -create({ avgMemoryBytes: '', cpuLimitMillicores: '', cpuPeakUtilization: '', cpuRequestHeadroomMillicores: '', cpuRequestMillicores: '', date: '', gbSeconds: '', kind: '', maxCpuMillicores: '', maxMemoryBytes: '', memoryLimitBytes: '', memoryPeakUtilization: '', memoryRequestBytes: '', memoryRequestHeadroomBytes: '', namespaceId: '', replicas: '', resourceId: '', runtimeSeconds: '', sampleCount: '' }); ``` ### ResourcesHealth @@ -3088,20 +2975,15 @@ create({ avgMemoryBytes: '', cpuLimitMillicores: '', cpuPeakUtil ```typescript // List all resourcesHealths const { data, isLoading } = useResourcesHealthsQuery({ - selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, + selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); // Get one resourcesHealth const { data: item } = useResourcesHealthQuery({ id: '', - selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, + selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); -// Create a resourcesHealth -const { mutate: create } = useCreateResourcesHealthMutation({ - selection: { fields: { id: true } }, -}); -create({ annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', databaseId: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusDetail: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }); ``` ### ResourcesRequirementsState @@ -3112,11 +2994,6 @@ const { data, isLoading } = useResourcesRequirementsStatesQuery({ selection: { fields: { configHash: true, configObjectName: true, requirementsHash: true, resourceId: true, secretsHash: true, secretsObjectName: true, slug: true } }, }); -// Create a resourcesRequirementsState -const { mutate: create } = useCreateResourcesRequirementsStateMutation({ - selection: { fields: { id: true } }, -}); -create({ configHash: '', configObjectName: '', requirementsHash: '', resourceId: '', secretsHash: '', secretsObjectName: '', slug: '' }); ``` ### ResourcesResolvedRequirement @@ -3127,11 +3004,27 @@ const { data, isLoading } = useResourcesResolvedRequirementsQuery({ selection: { fields: { atomId: true, configObjectName: true, name: true, namespaceId: true, present: true, realm: true, required: true, requirementKind: true, resourceId: true, secretsObjectName: true, slug: true } }, }); -// Create a resourcesResolvedRequirement -const { mutate: create } = useCreateResourcesResolvedRequirementMutation({ +``` + +### ServiceBinding + +```typescript +// List all serviceBindings +const { data, isLoading } = useServiceBindingsQuery({ + selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, installationId: true, installationScope: true, kind: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, +}); + +// Get one serviceBinding +const { data: item } = useServiceBindingQuery({ + id: '', + selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, installationId: true, installationScope: true, kind: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, +}); + +// Create a serviceBinding +const { mutate: create } = useCreateServiceBindingMutation({ selection: { fields: { id: true } }, }); -create({ atomId: '', configObjectName: '', name: '', namespaceId: '', present: '', realm: '', required: '', requirementKind: '', resourceId: '', secretsObjectName: '', slug: '' }); +create({ createdBy: '', createdByPrincipal: '', databaseId: '', installationId: '', installationScope: '', kind: '', lastError: '', metadata: '', namespaceId: '', observedHost: '', realm: '', status: '', updatedBy: '', updatedByPrincipal: '' }); ``` ### WebhookEndpoint @@ -3266,6 +3159,17 @@ copyGraph |----------|------| | `input` | CopyGraphInput (required) | +### `useCreateFunctionGraphMutation` + +createFunctionGraph + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | CreateFunctionGraphInput (required) | + ### `useDatabaseAddEdgeMutation` databaseAddEdge diff --git a/sdk/constructive-react/src/compute/hooks/index.ts b/sdk/constructive-react/src/compute/hooks/index.ts index bf82de3c32..1a18ecdbfd 100644 --- a/sdk/constructive-react/src/compute/hooks/index.ts +++ b/sdk/constructive-react/src/compute/hooks/index.ts @@ -2,7 +2,7 @@ * GraphQL SDK * @generated by @constructive-io/graphql-codegen * - * Tables: Build, BuildStep, BuilderBinding, ContentPreset, DatabaseFunctionGraph, DatabaseFunctionGraphExecutionCancelRequest, DatabaseFunctionGraphExecution, DatabaseFunctionGraphExecutionNodeState, DatabaseFunctionGraphExecutionOutput, DatabaseGraphCommit, DatabaseGraphGetAllTreeNodesRecord, DatabaseGraphObject, DatabaseGraphRef, DatabaseGraphStore, DbPreset, FunctionApiBinding, FunctionCapabilityBinding, FunctionDefinition, FunctionDeployment, FunctionDeploymentEvent, FunctionExecutionLog, FunctionGraphCommit, FunctionGraph, FunctionGraphExecutionCancelRequest, FunctionGraphExecution, FunctionGraphExecutionNodeState, FunctionGraphExecutionOutput, FunctionGraphObject, FunctionGraphRef, FunctionGraphStore, FunctionInvocationAttempt, FunctionInvocation, FunctionSchedule, GetAllTreeNodesRecord, Image, ImageGrant, InfraCommit, InfraGetAllTreeNodesRecord, InfraObject, InfraRef, InfraStore, IntegrationProvider, Namespace, NamespaceEvent, PlatformBuild, PlatformBuildStep, PlatformBuilderBinding, PlatformFunctionApiBinding, PlatformFunctionCapabilityBinding, PlatformFunctionDefinition, PlatformFunctionDeployment, PlatformFunctionDeploymentEvent, PlatformFunctionExecutionLog, PlatformFunctionInvocationAttempt, PlatformFunctionInvocation, PlatformFunctionSchedule, PlatformImage, PlatformImageGrant, PlatformInfraCommit, PlatformInfraGetAllTreeNodesRecord, PlatformInfraObject, PlatformInfraRef, PlatformInfraStore, PlatformK8sResourceKind, PlatformK8sSpecRule, PlatformNamespace, PlatformNamespaceEvent, PlatformProposalComment, PlatformProposal, PlatformProposalFileView, PlatformProposalReaction, PlatformProposalReview, PlatformProposalsChunk, PlatformRegistryBinding, PlatformRegistry, PlatformRegistryGrant, PlatformRepository, PlatformRepositoryEvent, PlatformRepositoryRequiredCheck, PlatformRepositoryWorkflow, PlatformResource, PlatformResourceDeclaredCapacity, PlatformResourceDefinition, PlatformResourceEvent, PlatformResourceInstallation, PlatformResourceObservedStorage, PlatformResourceStatusCheck, PlatformResourceUsageLog, PlatformResourceUsageSummary, PlatformResourceUtilization, PlatformResourcesHealth, PlatformResourcesRequirementsState, PlatformResourcesResolvedRequirement, PlatformWebhookEndpoint, PlatformWebhookEvent, ProposalComment, Proposal, ProposalFileView, ProposalReaction, ProposalReview, ProposalsChunk, RegistryBinding, Registry, RegistryGrant, Repository, RepositoryEvent, RepositoryRequiredCheck, RepositoryWorkflow, Resource, ResourceDeclaredCapacity, ResourceDefinition, ResourceEvent, ResourceInstallation, ResourceObservedStorage, ResourceStatusCheck, ResourceUsageLog, ResourceUsageSummary, ResourceUtilization, ResourcesHealth, ResourcesRequirementsState, ResourcesResolvedRequirement, WebhookEndpoint, WebhookEvent + * Tables: Build, BuildStep, ContentPreset, DatabaseFunctionGraph, DatabaseFunctionGraphExecutionCancelRequest, DatabaseFunctionGraphExecution, DatabaseFunctionGraphExecutionNodeState, DatabaseFunctionGraphExecutionOutput, DatabaseGraphCommit, DatabaseGraphGetAllTreeNodesRecord, DatabaseGraphObject, DatabaseGraphRef, DatabaseGraphStore, DbPreset, FunctionApiBinding, FunctionCapabilityBinding, FunctionDefinition, FunctionDeployment, FunctionDeploymentEvent, FunctionExecutionLog, FunctionGraphCommit, FunctionGraph, FunctionGraphExecutionCancelRequest, FunctionGraphExecution, FunctionGraphExecutionNodeState, FunctionGraphExecutionOutput, FunctionGraphObject, FunctionGraphRef, FunctionGraphStore, FunctionInvocationAttempt, FunctionInvocation, FunctionSchedule, GetAllTreeNodesRecord, Image, ImageGrant, InfraCommit, InfraGetAllTreeNodesRecord, InfraObject, InfraRef, InfraStore, IntegrationProvider, Namespace, NamespaceEvent, PlatformBuild, PlatformBuildStep, PlatformFunctionApiBinding, PlatformFunctionCapabilityBinding, PlatformFunctionDefinition, PlatformFunctionDeployment, PlatformFunctionDeploymentEvent, PlatformFunctionExecutionLog, PlatformFunctionInvocationAttempt, PlatformFunctionInvocation, PlatformFunctionSchedule, PlatformImage, PlatformImageGrant, PlatformInfraCommit, PlatformInfraGetAllTreeNodesRecord, PlatformInfraObject, PlatformInfraRef, PlatformInfraStore, PlatformK8sResourceKind, PlatformK8sSpecRule, PlatformNamespace, PlatformNamespaceEvent, PlatformProposalComment, PlatformProposal, PlatformProposalFileView, PlatformProposalReaction, PlatformProposalReview, PlatformProposalsChunk, PlatformRegistryBinding, PlatformRegistry, PlatformRegistryGrant, PlatformRepository, PlatformRepositoryEvent, PlatformRepositoryRequiredCheck, PlatformRepositoryWorkflow, PlatformResource, PlatformResourceDeclaredCapacity, PlatformResourceDefinition, PlatformResourceEvent, PlatformResourceInstallation, PlatformResourceObservedStorage, PlatformResourceStatusCheck, PlatformResourceUsageLog, PlatformResourceUsageSummary, PlatformResourceUtilization, PlatformResourcesHealth, PlatformResourcesRequirementsState, PlatformResourcesResolvedRequirement, PlatformServiceBinding, PlatformWebhookEndpoint, PlatformWebhookEvent, ProposalComment, Proposal, ProposalFileView, ProposalReaction, ProposalReview, ProposalsChunk, RegistryBinding, Registry, RegistryGrant, Repository, RepositoryEvent, RepositoryRequiredCheck, RepositoryWorkflow, Resource, ResourceDeclaredCapacity, ResourceDefinition, ResourceEvent, ResourceInstallation, ResourceObservedStorage, ResourceStatusCheck, ResourceUsageLog, ResourceUsageSummary, ResourceUtilization, ResourcesHealth, ResourcesRequirementsState, ResourcesResolvedRequirement, ServiceBinding, WebhookEndpoint, WebhookEvent * * Usage: * diff --git a/sdk/constructive-react/src/compute/hooks/invalidation.ts b/sdk/constructive-react/src/compute/hooks/invalidation.ts index f54368135f..8ddf2be8d8 100644 --- a/sdk/constructive-react/src/compute/hooks/invalidation.ts +++ b/sdk/constructive-react/src/compute/hooks/invalidation.ts @@ -17,7 +17,6 @@ import type { QueryClient } from '@tanstack/react-query'; import { buildKeys, buildStepKeys, - builderBindingKeys, contentPresetKeys, databaseFunctionGraphKeys, databaseFunctionGraphExecutionCancelRequestKeys, @@ -61,7 +60,6 @@ import { namespaceEventKeys, platformBuildKeys, platformBuildStepKeys, - platformBuilderBindingKeys, platformFunctionApiBindingKeys, platformFunctionCapabilityBindingKeys, platformFunctionDefinitionKeys, @@ -108,6 +106,7 @@ import { platformResourcesHealthKeys, platformResourcesRequirementsStateKeys, platformResourcesResolvedRequirementKeys, + platformServiceBindingKeys, platformWebhookEndpointKeys, platformWebhookEventKeys, proposalCommentKeys, @@ -136,6 +135,7 @@ import { resourcesHealthKeys, resourcesRequirementsStateKeys, resourcesResolvedRequirementKeys, + serviceBindingKeys, webhookEndpointKeys, webhookEventKeys, } from './query-keys'; @@ -190,23 +190,6 @@ export const invalidate = { queryKey: buildStepKeys.detail(id), }), }, - /** Invalidate builderBinding queries */ builderBinding: { - /** Invalidate all builderBinding queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: builderBindingKeys.all, - }), - /** Invalidate builderBinding list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: builderBindingKeys.lists(), - }), - /** Invalidate a specific builderBinding */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: builderBindingKeys.detail(id), - }), - }, /** Invalidate contentPreset queries */ contentPreset: { /** Invalidate all contentPreset queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -957,23 +940,6 @@ export const invalidate = { queryKey: platformBuildStepKeys.detail(id), }), }, - /** Invalidate platformBuilderBinding queries */ platformBuilderBinding: { - /** Invalidate all platformBuilderBinding queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: platformBuilderBindingKeys.all, - }), - /** Invalidate platformBuilderBinding list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: platformBuilderBindingKeys.lists(), - }), - /** Invalidate a specific platformBuilderBinding */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: platformBuilderBindingKeys.detail(id), - }), - }, /** Invalidate platformFunctionApiBinding queries */ platformFunctionApiBinding: { /** Invalidate all platformFunctionApiBinding queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -1787,6 +1753,23 @@ export const invalidate = { queryKey: platformResourcesResolvedRequirementKeys.detail(id), }), }, + /** Invalidate platformServiceBinding queries */ platformServiceBinding: { + /** Invalidate all platformServiceBinding queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformServiceBindingKeys.all, + }), + /** Invalidate platformServiceBinding list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformServiceBindingKeys.lists(), + }), + /** Invalidate a specific platformServiceBinding */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: platformServiceBindingKeys.detail(id), + }), + }, /** Invalidate platformWebhookEndpoint queries */ platformWebhookEndpoint: { /** Invalidate all platformWebhookEndpoint queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -2254,6 +2237,23 @@ export const invalidate = { queryKey: resourcesResolvedRequirementKeys.detail(id), }), }, + /** Invalidate serviceBinding queries */ serviceBinding: { + /** Invalidate all serviceBinding queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: serviceBindingKeys.all, + }), + /** Invalidate serviceBinding list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: serviceBindingKeys.lists(), + }), + /** Invalidate a specific serviceBinding */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: serviceBindingKeys.detail(id), + }), + }, /** Invalidate webhookEndpoint queries */ webhookEndpoint: { /** Invalidate all webhookEndpoint queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -2311,14 +2311,6 @@ export const remove = { queryKey: buildStepKeys.detail(id), }); }, - /** Remove builderBinding from cache */ builderBinding: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: builderBindingKeys.detail(id), - }); - }, /** Remove contentPreset from cache */ contentPreset: ( queryClient: QueryClient, id: string | number @@ -2643,14 +2635,6 @@ export const remove = { queryKey: platformBuildStepKeys.detail(id), }); }, - /** Remove platformBuilderBinding from cache */ platformBuilderBinding: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: platformBuilderBindingKeys.detail(id), - }); - }, /** Remove platformFunctionApiBinding from cache */ platformFunctionApiBinding: ( queryClient: QueryClient, id: string | number @@ -3017,6 +3001,14 @@ export const remove = { queryKey: platformResourcesResolvedRequirementKeys.detail(id), }); }, + /** Remove platformServiceBinding from cache */ platformServiceBinding: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: platformServiceBindingKeys.detail(id), + }); + }, /** Remove platformWebhookEndpoint from cache */ platformWebhookEndpoint: ( queryClient: QueryClient, id: string | number @@ -3232,6 +3224,14 @@ export const remove = { queryKey: resourcesResolvedRequirementKeys.detail(id), }); }, + /** Remove serviceBinding from cache */ serviceBinding: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: serviceBindingKeys.detail(id), + }); + }, /** Remove webhookEndpoint from cache */ webhookEndpoint: ( queryClient: QueryClient, id: string | number diff --git a/sdk/constructive-react/src/compute/hooks/mutation-keys.ts b/sdk/constructive-react/src/compute/hooks/mutation-keys.ts index 849257673e..1146ef771d 100644 --- a/sdk/constructive-react/src/compute/hooks/mutation-keys.ts +++ b/sdk/constructive-react/src/compute/hooks/mutation-keys.ts @@ -34,15 +34,6 @@ export const buildStepMutationKeys = { /** Delete buildStep mutation key */ delete: (id: string | number) => ['mutation', 'buildstep', 'delete', id] as const, } as const; -export const builderBindingMutationKeys = { - /** All builderBinding mutation keys */ all: ['mutation', 'builderbinding'] as const, - /** Create builderBinding mutation key */ create: () => - ['mutation', 'builderbinding', 'create'] as const, - /** Update builderBinding mutation key */ update: (id: string | number) => - ['mutation', 'builderbinding', 'update', id] as const, - /** Delete builderBinding mutation key */ delete: (id: string | number) => - ['mutation', 'builderbinding', 'delete', id] as const, -} as const; export const contentPresetMutationKeys = { /** All contentPreset mutation keys */ all: ['mutation', 'contentpreset'] as const, /** Create contentPreset mutation key */ create: () => @@ -473,18 +464,6 @@ export const platformBuildStepMutationKeys = { /** Delete platformBuildStep mutation key */ delete: (id: string | number) => ['mutation', 'platformbuildstep', 'delete', id] as const, } as const; -export const platformBuilderBindingMutationKeys = { - /** All platformBuilderBinding mutation keys */ all: [ - 'mutation', - 'platformbuilderbinding', - ] as const, - /** Create platformBuilderBinding mutation key */ create: () => - ['mutation', 'platformbuilderbinding', 'create'] as const, - /** Update platformBuilderBinding mutation key */ update: (id: string | number) => - ['mutation', 'platformbuilderbinding', 'update', id] as const, - /** Delete platformBuilderBinding mutation key */ delete: (id: string | number) => - ['mutation', 'platformbuilderbinding', 'delete', id] as const, -} as const; export const platformFunctionApiBindingMutationKeys = { /** All platformFunctionApiBinding mutation keys */ all: [ 'mutation', @@ -1001,6 +980,18 @@ export const platformResourcesResolvedRequirementMutationKeys = { /** Delete platformResourcesResolvedRequirement mutation key */ delete: (id: string | number) => ['mutation', 'platformresourcesresolvedrequirement', 'delete', id] as const, } as const; +export const platformServiceBindingMutationKeys = { + /** All platformServiceBinding mutation keys */ all: [ + 'mutation', + 'platformservicebinding', + ] as const, + /** Create platformServiceBinding mutation key */ create: () => + ['mutation', 'platformservicebinding', 'create'] as const, + /** Update platformServiceBinding mutation key */ update: (id: string | number) => + ['mutation', 'platformservicebinding', 'update', id] as const, + /** Delete platformServiceBinding mutation key */ delete: (id: string | number) => + ['mutation', 'platformservicebinding', 'delete', id] as const, +} as const; export const platformWebhookEndpointMutationKeys = { /** All platformWebhookEndpoint mutation keys */ all: [ 'mutation', @@ -1267,6 +1258,15 @@ export const resourcesResolvedRequirementMutationKeys = { /** Delete resourcesResolvedRequirement mutation key */ delete: (id: string | number) => ['mutation', 'resourcesresolvedrequirement', 'delete', id] as const, } as const; +export const serviceBindingMutationKeys = { + /** All serviceBinding mutation keys */ all: ['mutation', 'servicebinding'] as const, + /** Create serviceBinding mutation key */ create: () => + ['mutation', 'servicebinding', 'create'] as const, + /** Update serviceBinding mutation key */ update: (id: string | number) => + ['mutation', 'servicebinding', 'update', id] as const, + /** Delete serviceBinding mutation key */ delete: (id: string | number) => + ['mutation', 'servicebinding', 'delete', id] as const, +} as const; export const webhookEndpointMutationKeys = { /** All webhookEndpoint mutation keys */ all: ['mutation', 'webhookendpoint'] as const, /** Create webhookEndpoint mutation key */ create: () => @@ -1315,6 +1315,10 @@ export const customMutationKeys = { identifier ? (['mutation', 'copyGraph', identifier] as const) : (['mutation', 'copyGraph'] as const), + /** Mutation key for createFunctionGraph */ createFunctionGraph: (identifier?: string) => + identifier + ? (['mutation', 'createFunctionGraph', identifier] as const) + : (['mutation', 'createFunctionGraph'] as const), /** Mutation key for databaseAddEdge */ databaseAddEdge: (identifier?: string) => identifier ? (['mutation', 'databaseAddEdge', identifier] as const) @@ -1617,7 +1621,6 @@ export const customMutationKeys = { export const mutationKeys = { build: buildMutationKeys, buildStep: buildStepMutationKeys, - builderBinding: builderBindingMutationKeys, contentPreset: contentPresetMutationKeys, databaseFunctionGraph: databaseFunctionGraphMutationKeys, databaseFunctionGraphExecutionCancelRequest: @@ -1662,7 +1665,6 @@ export const mutationKeys = { namespaceEvent: namespaceEventMutationKeys, platformBuild: platformBuildMutationKeys, platformBuildStep: platformBuildStepMutationKeys, - platformBuilderBinding: platformBuilderBindingMutationKeys, platformFunctionApiBinding: platformFunctionApiBindingMutationKeys, platformFunctionCapabilityBinding: platformFunctionCapabilityBindingMutationKeys, platformFunctionDefinition: platformFunctionDefinitionMutationKeys, @@ -1709,6 +1711,7 @@ export const mutationKeys = { platformResourcesHealth: platformResourcesHealthMutationKeys, platformResourcesRequirementsState: platformResourcesRequirementsStateMutationKeys, platformResourcesResolvedRequirement: platformResourcesResolvedRequirementMutationKeys, + platformServiceBinding: platformServiceBindingMutationKeys, platformWebhookEndpoint: platformWebhookEndpointMutationKeys, platformWebhookEvent: platformWebhookEventMutationKeys, proposalComment: proposalCommentMutationKeys, @@ -1737,6 +1740,7 @@ export const mutationKeys = { resourcesHealth: resourcesHealthMutationKeys, resourcesRequirementsState: resourcesRequirementsStateMutationKeys, resourcesResolvedRequirement: resourcesResolvedRequirementMutationKeys, + serviceBinding: serviceBindingMutationKeys, webhookEndpoint: webhookEndpointMutationKeys, webhookEvent: webhookEventMutationKeys, custom: customMutationKeys, diff --git a/sdk/constructive-react/src/compute/hooks/mutations/index.ts b/sdk/constructive-react/src/compute/hooks/mutations/index.ts index e1eb9a75e4..9ce84db159 100644 --- a/sdk/constructive-react/src/compute/hooks/mutations/index.ts +++ b/sdk/constructive-react/src/compute/hooks/mutations/index.ts @@ -9,13 +9,9 @@ export * from './useDeleteBuildMutation'; export * from './useCreateBuildStepMutation'; export * from './useUpdateBuildStepMutation'; export * from './useDeleteBuildStepMutation'; -export * from './useCreateBuilderBindingMutation'; -export * from './useUpdateBuilderBindingMutation'; -export * from './useDeleteBuilderBindingMutation'; export * from './useCreateContentPresetMutation'; export * from './useUpdateContentPresetMutation'; export * from './useDeleteContentPresetMutation'; -export * from './useCreateDatabaseFunctionGraphMutation'; export * from './useUpdateDatabaseFunctionGraphMutation'; export * from './useDeleteDatabaseFunctionGraphMutation'; export * from './useCreateDatabaseFunctionGraphExecutionCancelRequestMutation'; @@ -33,7 +29,6 @@ export * from './useDeleteDatabaseFunctionGraphExecutionOutputMutation'; export * from './useCreateDatabaseGraphCommitMutation'; export * from './useUpdateDatabaseGraphCommitMutation'; export * from './useDeleteDatabaseGraphCommitMutation'; -export * from './useCreateDatabaseGraphGetAllTreeNodesRecordMutation'; export * from './useCreateDatabaseGraphObjectMutation'; export * from './useUpdateDatabaseGraphObjectMutation'; export * from './useDeleteDatabaseGraphObjectMutation'; @@ -67,7 +62,6 @@ export * from './useDeleteFunctionExecutionLogMutation'; export * from './useCreateFunctionGraphCommitMutation'; export * from './useUpdateFunctionGraphCommitMutation'; export * from './useDeleteFunctionGraphCommitMutation'; -export * from './useCreateFunctionGraphMutation'; export * from './useUpdateFunctionGraphMutation'; export * from './useDeleteFunctionGraphMutation'; export * from './useCreateFunctionGraphExecutionCancelRequestMutation'; @@ -100,7 +94,6 @@ export * from './useDeleteFunctionInvocationMutation'; export * from './useCreateFunctionScheduleMutation'; export * from './useUpdateFunctionScheduleMutation'; export * from './useDeleteFunctionScheduleMutation'; -export * from './useCreateGetAllTreeNodesRecordMutation'; export * from './useCreateImageMutation'; export * from './useUpdateImageMutation'; export * from './useDeleteImageMutation'; @@ -110,7 +103,6 @@ export * from './useDeleteImageGrantMutation'; export * from './useCreateInfraCommitMutation'; export * from './useUpdateInfraCommitMutation'; export * from './useDeleteInfraCommitMutation'; -export * from './useCreateInfraGetAllTreeNodesRecordMutation'; export * from './useCreateInfraObjectMutation'; export * from './useUpdateInfraObjectMutation'; export * from './useDeleteInfraObjectMutation'; @@ -135,9 +127,6 @@ export * from './useDeletePlatformBuildMutation'; export * from './useCreatePlatformBuildStepMutation'; export * from './useUpdatePlatformBuildStepMutation'; export * from './useDeletePlatformBuildStepMutation'; -export * from './useCreatePlatformBuilderBindingMutation'; -export * from './useUpdatePlatformBuilderBindingMutation'; -export * from './useDeletePlatformBuilderBindingMutation'; export * from './useCreatePlatformFunctionApiBindingMutation'; export * from './useUpdatePlatformFunctionApiBindingMutation'; export * from './useDeletePlatformFunctionApiBindingMutation'; @@ -174,7 +163,6 @@ export * from './useDeletePlatformImageGrantMutation'; export * from './useCreatePlatformInfraCommitMutation'; export * from './useUpdatePlatformInfraCommitMutation'; export * from './useDeletePlatformInfraCommitMutation'; -export * from './useCreatePlatformInfraGetAllTreeNodesRecordMutation'; export * from './useCreatePlatformInfraObjectMutation'; export * from './useUpdatePlatformInfraObjectMutation'; export * from './useDeletePlatformInfraObjectMutation'; @@ -238,7 +226,6 @@ export * from './useDeletePlatformRepositoryWorkflowMutation'; export * from './useCreatePlatformResourceMutation'; export * from './useUpdatePlatformResourceMutation'; export * from './useDeletePlatformResourceMutation'; -export * from './useCreatePlatformResourceDeclaredCapacityMutation'; export * from './useCreatePlatformResourceDefinitionMutation'; export * from './useUpdatePlatformResourceDefinitionMutation'; export * from './useDeletePlatformResourceDefinitionMutation'; @@ -248,7 +235,6 @@ export * from './useDeletePlatformResourceEventMutation'; export * from './useCreatePlatformResourceInstallationMutation'; export * from './useUpdatePlatformResourceInstallationMutation'; export * from './useDeletePlatformResourceInstallationMutation'; -export * from './useCreatePlatformResourceObservedStorageMutation'; export * from './useCreatePlatformResourceStatusCheckMutation'; export * from './useUpdatePlatformResourceStatusCheckMutation'; export * from './useDeletePlatformResourceStatusCheckMutation'; @@ -258,10 +244,9 @@ export * from './useDeletePlatformResourceUsageLogMutation'; export * from './useCreatePlatformResourceUsageSummaryMutation'; export * from './useUpdatePlatformResourceUsageSummaryMutation'; export * from './useDeletePlatformResourceUsageSummaryMutation'; -export * from './useCreatePlatformResourceUtilizationMutation'; -export * from './useCreatePlatformResourcesHealthMutation'; -export * from './useCreatePlatformResourcesRequirementsStateMutation'; -export * from './useCreatePlatformResourcesResolvedRequirementMutation'; +export * from './useCreatePlatformServiceBindingMutation'; +export * from './useUpdatePlatformServiceBindingMutation'; +export * from './useDeletePlatformServiceBindingMutation'; export * from './useCreatePlatformWebhookEndpointMutation'; export * from './useUpdatePlatformWebhookEndpointMutation'; export * from './useDeletePlatformWebhookEndpointMutation'; @@ -310,7 +295,6 @@ export * from './useDeleteRepositoryWorkflowMutation'; export * from './useCreateResourceMutation'; export * from './useUpdateResourceMutation'; export * from './useDeleteResourceMutation'; -export * from './useCreateResourceDeclaredCapacityMutation'; export * from './useCreateResourceDefinitionMutation'; export * from './useUpdateResourceDefinitionMutation'; export * from './useDeleteResourceDefinitionMutation'; @@ -320,7 +304,6 @@ export * from './useDeleteResourceEventMutation'; export * from './useCreateResourceInstallationMutation'; export * from './useUpdateResourceInstallationMutation'; export * from './useDeleteResourceInstallationMutation'; -export * from './useCreateResourceObservedStorageMutation'; export * from './useCreateResourceStatusCheckMutation'; export * from './useUpdateResourceStatusCheckMutation'; export * from './useDeleteResourceStatusCheckMutation'; @@ -330,10 +313,9 @@ export * from './useDeleteResourceUsageLogMutation'; export * from './useCreateResourceUsageSummaryMutation'; export * from './useUpdateResourceUsageSummaryMutation'; export * from './useDeleteResourceUsageSummaryMutation'; -export * from './useCreateResourceUtilizationMutation'; -export * from './useCreateResourcesHealthMutation'; -export * from './useCreateResourcesRequirementsStateMutation'; -export * from './useCreateResourcesResolvedRequirementMutation'; +export * from './useCreateServiceBindingMutation'; +export * from './useUpdateServiceBindingMutation'; +export * from './useDeleteServiceBindingMutation'; export * from './useCreateWebhookEndpointMutation'; export * from './useUpdateWebhookEndpointMutation'; export * from './useDeleteWebhookEndpointMutation'; @@ -346,6 +328,7 @@ export * from './useAddNodeMutation'; export * from './useAddNodeAndSaveMutation'; export * from './useApproveNodeMutation'; export * from './useCopyGraphMutation'; +export * from './useCreateFunctionGraphMutation'; export * from './useDatabaseAddEdgeMutation'; export * from './useDatabaseAddEdgeAndSaveMutation'; export * from './useDatabaseAddNodeMutation'; diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateBuilderBindingMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateBuilderBindingMutation.ts deleted file mode 100644 index 4aceb82c89..0000000000 --- a/sdk/constructive-react/src/compute/hooks/mutations/useCreateBuilderBindingMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { builderBindingKeys } from '../query-keys'; -import { builderBindingMutationKeys } from '../mutation-keys'; -import type { - BuilderBindingSelect, - BuilderBindingWithRelations, - CreateBuilderBindingInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - BuilderBindingSelect, - BuilderBindingWithRelations, - CreateBuilderBindingInput, -} from '../../orm/input-types'; -/** - * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateBuilderBindingMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateBuilderBindingMutation( - params: { - selection: { - fields: S & BuilderBindingSelect; - } & HookStrictSelect, BuilderBindingSelect>; - } & Omit< - UseMutationOptions< - { - createBuilderBinding: { - builderBinding: InferSelectResult; - }; - }, - Error, - CreateBuilderBindingInput['builderBinding'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createBuilderBinding: { - builderBinding: InferSelectResult; - }; - }, - Error, - CreateBuilderBindingInput['builderBinding'] ->; -export function useCreateBuilderBindingMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: builderBindingMutationKeys.create(), - mutationFn: (data: CreateBuilderBindingInput['builderBinding']) => - getClient() - .builderBinding.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: builderBindingKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateDatabaseFunctionGraphMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateDatabaseFunctionGraphMutation.ts deleted file mode 100644 index 06acd7ea6f..0000000000 --- a/sdk/constructive-react/src/compute/hooks/mutations/useCreateDatabaseFunctionGraphMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { databaseFunctionGraphKeys } from '../query-keys'; -import { databaseFunctionGraphMutationKeys } from '../mutation-keys'; -import type { - DatabaseFunctionGraphSelect, - DatabaseFunctionGraphWithRelations, - CreateDatabaseFunctionGraphInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - DatabaseFunctionGraphSelect, - DatabaseFunctionGraphWithRelations, - CreateDatabaseFunctionGraphInput, -} from '../../orm/input-types'; -/** - * Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateDatabaseFunctionGraphMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateDatabaseFunctionGraphMutation( - params: { - selection: { - fields: S & DatabaseFunctionGraphSelect; - } & HookStrictSelect, DatabaseFunctionGraphSelect>; - } & Omit< - UseMutationOptions< - { - createDatabaseFunctionGraph: { - databaseFunctionGraph: InferSelectResult; - }; - }, - Error, - CreateDatabaseFunctionGraphInput['databaseFunctionGraph'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createDatabaseFunctionGraph: { - databaseFunctionGraph: InferSelectResult; - }; - }, - Error, - CreateDatabaseFunctionGraphInput['databaseFunctionGraph'] ->; -export function useCreateDatabaseFunctionGraphMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: databaseFunctionGraphMutationKeys.create(), - mutationFn: (data: CreateDatabaseFunctionGraphInput['databaseFunctionGraph']) => - getClient() - .databaseFunctionGraph.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: databaseFunctionGraphKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateDatabaseGraphGetAllTreeNodesRecordMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateDatabaseGraphGetAllTreeNodesRecordMutation.ts deleted file mode 100644 index beed0adea1..0000000000 --- a/sdk/constructive-react/src/compute/hooks/mutations/useCreateDatabaseGraphGetAllTreeNodesRecordMutation.ts +++ /dev/null @@ -1,105 +0,0 @@ -/** - * Create mutation hook for DatabaseGraphGetAllTreeNodesRecord - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { databaseGraphGetAllTreeNodesRecordKeys } from '../query-keys'; -import { databaseGraphGetAllTreeNodesRecordMutationKeys } from '../mutation-keys'; -import type { - DatabaseGraphGetAllTreeNodesRecordSelect, - DatabaseGraphGetAllTreeNodesRecordWithRelations, - CreateDatabaseGraphGetAllTreeNodesRecordInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - DatabaseGraphGetAllTreeNodesRecordSelect, - DatabaseGraphGetAllTreeNodesRecordWithRelations, - CreateDatabaseGraphGetAllTreeNodesRecordInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a DatabaseGraphGetAllTreeNodesRecord - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateDatabaseGraphGetAllTreeNodesRecordMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateDatabaseGraphGetAllTreeNodesRecordMutation< - S extends DatabaseGraphGetAllTreeNodesRecordSelect, ->( - params: { - selection: { - fields: S & DatabaseGraphGetAllTreeNodesRecordSelect; - } & HookStrictSelect, DatabaseGraphGetAllTreeNodesRecordSelect>; - } & Omit< - UseMutationOptions< - { - createDatabaseGraphGetAllTreeNodesRecord: { - databaseGraphGetAllTreeNodesRecord: InferSelectResult< - DatabaseGraphGetAllTreeNodesRecordWithRelations, - S - >; - }; - }, - Error, - CreateDatabaseGraphGetAllTreeNodesRecordInput['databaseGraphGetAllTreeNodesRecord'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createDatabaseGraphGetAllTreeNodesRecord: { - databaseGraphGetAllTreeNodesRecord: InferSelectResult< - DatabaseGraphGetAllTreeNodesRecordWithRelations, - S - >; - }; - }, - Error, - CreateDatabaseGraphGetAllTreeNodesRecordInput['databaseGraphGetAllTreeNodesRecord'] ->; -export function useCreateDatabaseGraphGetAllTreeNodesRecordMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - CreateDatabaseGraphGetAllTreeNodesRecordInput['databaseGraphGetAllTreeNodesRecord'] - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: databaseGraphGetAllTreeNodesRecordMutationKeys.create(), - mutationFn: ( - data: CreateDatabaseGraphGetAllTreeNodesRecordInput['databaseGraphGetAllTreeNodesRecord'] - ) => - getClient() - .databaseGraphGetAllTreeNodesRecord.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: databaseGraphGetAllTreeNodesRecordKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateFunctionGraphMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateFunctionGraphMutation.ts index 63532d7f17..28c4256e0b 100644 --- a/sdk/constructive-react/src/compute/hooks/mutations/useCreateFunctionGraphMutation.ts +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreateFunctionGraphMutation.ts @@ -1,88 +1,58 @@ /** - * Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store + * Custom mutation hook for createFunctionGraph * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; +import { useMutation } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; import { getClient } from '../client'; import { buildSelectionArgs } from '../selection'; import type { SelectionConfig } from '../selection'; -import { functionGraphKeys } from '../query-keys'; -import { functionGraphMutationKeys } from '../mutation-keys'; +import { customMutationKeys } from '../mutation-keys'; +import type { CreateFunctionGraphVariables } from '../../orm/mutation'; import type { - FunctionGraphSelect, - FunctionGraphWithRelations, - CreateFunctionGraphInput, + CreateFunctionGraphPayloadSelect, + CreateFunctionGraphPayload, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - FunctionGraphSelect, - FunctionGraphWithRelations, - CreateFunctionGraphInput, -} from '../../orm/input-types'; -/** - * Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateFunctionGraphMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateFunctionGraphMutation( +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { CreateFunctionGraphVariables } from '../../orm/mutation'; +export type { CreateFunctionGraphPayloadSelect } from '../../orm/input-types'; +export function useCreateFunctionGraphMutation( params: { selection: { - fields: S & FunctionGraphSelect; - } & HookStrictSelect, FunctionGraphSelect>; + fields: S & CreateFunctionGraphPayloadSelect; + } & HookStrictSelect, CreateFunctionGraphPayloadSelect>; } & Omit< UseMutationOptions< { - createFunctionGraph: { - functionGraph: InferSelectResult; - }; + createFunctionGraph: InferSelectResult | null; }, Error, - CreateFunctionGraphInput['functionGraph'] + CreateFunctionGraphVariables >, 'mutationFn' > ): UseMutationResult< { - createFunctionGraph: { - functionGraph: InferSelectResult; - }; + createFunctionGraph: InferSelectResult | null; }, Error, - CreateFunctionGraphInput['functionGraph'] ->; -export function useCreateFunctionGraphMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); + CreateFunctionGraphVariables +> { + const args = buildSelectionArgs(params.selection); const { selection: _selection, ...mutationOptions } = params ?? {}; void _selection; - const queryClient = useQueryClient(); return useMutation({ - mutationKey: functionGraphMutationKeys.create(), - mutationFn: (data: CreateFunctionGraphInput['functionGraph']) => + mutationKey: customMutationKeys.createFunctionGraph(), + mutationFn: (variables: CreateFunctionGraphVariables) => getClient() - .functionGraph.create({ - data, + .mutation.createFunctionGraph(variables, { select: args.select, - }) + } as { + select: S; + } & StrictSelect) .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: functionGraphKeys.lists(), - }); - }, ...mutationOptions, }); } diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateGetAllTreeNodesRecordMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateGetAllTreeNodesRecordMutation.ts deleted file mode 100644 index 5a0447b6b9..0000000000 --- a/sdk/constructive-react/src/compute/hooks/mutations/useCreateGetAllTreeNodesRecordMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Create mutation hook for GetAllTreeNodesRecord - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { getAllTreeNodesRecordKeys } from '../query-keys'; -import { getAllTreeNodesRecordMutationKeys } from '../mutation-keys'; -import type { - GetAllTreeNodesRecordSelect, - GetAllTreeNodesRecordWithRelations, - CreateGetAllTreeNodesRecordInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - GetAllTreeNodesRecordSelect, - GetAllTreeNodesRecordWithRelations, - CreateGetAllTreeNodesRecordInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a GetAllTreeNodesRecord - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateGetAllTreeNodesRecordMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateGetAllTreeNodesRecordMutation( - params: { - selection: { - fields: S & GetAllTreeNodesRecordSelect; - } & HookStrictSelect, GetAllTreeNodesRecordSelect>; - } & Omit< - UseMutationOptions< - { - createGetAllTreeNodesRecord: { - getAllTreeNodesRecord: InferSelectResult; - }; - }, - Error, - CreateGetAllTreeNodesRecordInput['getAllTreeNodesRecord'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createGetAllTreeNodesRecord: { - getAllTreeNodesRecord: InferSelectResult; - }; - }, - Error, - CreateGetAllTreeNodesRecordInput['getAllTreeNodesRecord'] ->; -export function useCreateGetAllTreeNodesRecordMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: getAllTreeNodesRecordMutationKeys.create(), - mutationFn: (data: CreateGetAllTreeNodesRecordInput['getAllTreeNodesRecord']) => - getClient() - .getAllTreeNodesRecord.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: getAllTreeNodesRecordKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateInfraGetAllTreeNodesRecordMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateInfraGetAllTreeNodesRecordMutation.ts deleted file mode 100644 index 18fab59dfb..0000000000 --- a/sdk/constructive-react/src/compute/hooks/mutations/useCreateInfraGetAllTreeNodesRecordMutation.ts +++ /dev/null @@ -1,97 +0,0 @@ -/** - * Create mutation hook for InfraGetAllTreeNodesRecord - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { infraGetAllTreeNodesRecordKeys } from '../query-keys'; -import { infraGetAllTreeNodesRecordMutationKeys } from '../mutation-keys'; -import type { - InfraGetAllTreeNodesRecordSelect, - InfraGetAllTreeNodesRecordWithRelations, - CreateInfraGetAllTreeNodesRecordInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - InfraGetAllTreeNodesRecordSelect, - InfraGetAllTreeNodesRecordWithRelations, - CreateInfraGetAllTreeNodesRecordInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a InfraGetAllTreeNodesRecord - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateInfraGetAllTreeNodesRecordMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateInfraGetAllTreeNodesRecordMutation< - S extends InfraGetAllTreeNodesRecordSelect, ->( - params: { - selection: { - fields: S & InfraGetAllTreeNodesRecordSelect; - } & HookStrictSelect, InfraGetAllTreeNodesRecordSelect>; - } & Omit< - UseMutationOptions< - { - createInfraGetAllTreeNodesRecord: { - infraGetAllTreeNodesRecord: InferSelectResult; - }; - }, - Error, - CreateInfraGetAllTreeNodesRecordInput['infraGetAllTreeNodesRecord'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createInfraGetAllTreeNodesRecord: { - infraGetAllTreeNodesRecord: InferSelectResult; - }; - }, - Error, - CreateInfraGetAllTreeNodesRecordInput['infraGetAllTreeNodesRecord'] ->; -export function useCreateInfraGetAllTreeNodesRecordMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - CreateInfraGetAllTreeNodesRecordInput['infraGetAllTreeNodesRecord'] - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: infraGetAllTreeNodesRecordMutationKeys.create(), - mutationFn: (data: CreateInfraGetAllTreeNodesRecordInput['infraGetAllTreeNodesRecord']) => - getClient() - .infraGetAllTreeNodesRecord.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: infraGetAllTreeNodesRecordKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformBuilderBindingMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformBuilderBindingMutation.ts deleted file mode 100644 index 5bf54919a9..0000000000 --- a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformBuilderBindingMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformBuilderBindingKeys } from '../query-keys'; -import { platformBuilderBindingMutationKeys } from '../mutation-keys'; -import type { - PlatformBuilderBindingSelect, - PlatformBuilderBindingWithRelations, - CreatePlatformBuilderBindingInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - PlatformBuilderBindingSelect, - PlatformBuilderBindingWithRelations, - CreatePlatformBuilderBindingInput, -} from '../../orm/input-types'; -/** - * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST - * - * @example - * ```tsx - * const { mutate, isPending } = useCreatePlatformBuilderBindingMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreatePlatformBuilderBindingMutation( - params: { - selection: { - fields: S & PlatformBuilderBindingSelect; - } & HookStrictSelect, PlatformBuilderBindingSelect>; - } & Omit< - UseMutationOptions< - { - createPlatformBuilderBinding: { - platformBuilderBinding: InferSelectResult; - }; - }, - Error, - CreatePlatformBuilderBindingInput['platformBuilderBinding'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createPlatformBuilderBinding: { - platformBuilderBinding: InferSelectResult; - }; - }, - Error, - CreatePlatformBuilderBindingInput['platformBuilderBinding'] ->; -export function useCreatePlatformBuilderBindingMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: platformBuilderBindingMutationKeys.create(), - mutationFn: (data: CreatePlatformBuilderBindingInput['platformBuilderBinding']) => - getClient() - .platformBuilderBinding.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: platformBuilderBindingKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformInfraGetAllTreeNodesRecordMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformInfraGetAllTreeNodesRecordMutation.ts deleted file mode 100644 index 13b05cd0de..0000000000 --- a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformInfraGetAllTreeNodesRecordMutation.ts +++ /dev/null @@ -1,105 +0,0 @@ -/** - * Create mutation hook for PlatformInfraGetAllTreeNodesRecord - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformInfraGetAllTreeNodesRecordKeys } from '../query-keys'; -import { platformInfraGetAllTreeNodesRecordMutationKeys } from '../mutation-keys'; -import type { - PlatformInfraGetAllTreeNodesRecordSelect, - PlatformInfraGetAllTreeNodesRecordWithRelations, - CreatePlatformInfraGetAllTreeNodesRecordInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - PlatformInfraGetAllTreeNodesRecordSelect, - PlatformInfraGetAllTreeNodesRecordWithRelations, - CreatePlatformInfraGetAllTreeNodesRecordInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a PlatformInfraGetAllTreeNodesRecord - * - * @example - * ```tsx - * const { mutate, isPending } = useCreatePlatformInfraGetAllTreeNodesRecordMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreatePlatformInfraGetAllTreeNodesRecordMutation< - S extends PlatformInfraGetAllTreeNodesRecordSelect, ->( - params: { - selection: { - fields: S & PlatformInfraGetAllTreeNodesRecordSelect; - } & HookStrictSelect, PlatformInfraGetAllTreeNodesRecordSelect>; - } & Omit< - UseMutationOptions< - { - createPlatformInfraGetAllTreeNodesRecord: { - platformInfraGetAllTreeNodesRecord: InferSelectResult< - PlatformInfraGetAllTreeNodesRecordWithRelations, - S - >; - }; - }, - Error, - CreatePlatformInfraGetAllTreeNodesRecordInput['platformInfraGetAllTreeNodesRecord'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createPlatformInfraGetAllTreeNodesRecord: { - platformInfraGetAllTreeNodesRecord: InferSelectResult< - PlatformInfraGetAllTreeNodesRecordWithRelations, - S - >; - }; - }, - Error, - CreatePlatformInfraGetAllTreeNodesRecordInput['platformInfraGetAllTreeNodesRecord'] ->; -export function useCreatePlatformInfraGetAllTreeNodesRecordMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - CreatePlatformInfraGetAllTreeNodesRecordInput['platformInfraGetAllTreeNodesRecord'] - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: platformInfraGetAllTreeNodesRecordMutationKeys.create(), - mutationFn: ( - data: CreatePlatformInfraGetAllTreeNodesRecordInput['platformInfraGetAllTreeNodesRecord'] - ) => - getClient() - .platformInfraGetAllTreeNodesRecord.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: platformInfraGetAllTreeNodesRecordKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformResourceDeclaredCapacityMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformResourceDeclaredCapacityMutation.ts deleted file mode 100644 index 020666b1c4..0000000000 --- a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformResourceDeclaredCapacityMutation.ts +++ /dev/null @@ -1,105 +0,0 @@ -/** - * Create mutation hook for PlatformResourceDeclaredCapacity - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformResourceDeclaredCapacityKeys } from '../query-keys'; -import { platformResourceDeclaredCapacityMutationKeys } from '../mutation-keys'; -import type { - PlatformResourceDeclaredCapacitySelect, - PlatformResourceDeclaredCapacityWithRelations, - CreatePlatformResourceDeclaredCapacityInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - PlatformResourceDeclaredCapacitySelect, - PlatformResourceDeclaredCapacityWithRelations, - CreatePlatformResourceDeclaredCapacityInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a PlatformResourceDeclaredCapacity - * - * @example - * ```tsx - * const { mutate, isPending } = useCreatePlatformResourceDeclaredCapacityMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreatePlatformResourceDeclaredCapacityMutation< - S extends PlatformResourceDeclaredCapacitySelect, ->( - params: { - selection: { - fields: S & PlatformResourceDeclaredCapacitySelect; - } & HookStrictSelect, PlatformResourceDeclaredCapacitySelect>; - } & Omit< - UseMutationOptions< - { - createPlatformResourceDeclaredCapacity: { - platformResourceDeclaredCapacity: InferSelectResult< - PlatformResourceDeclaredCapacityWithRelations, - S - >; - }; - }, - Error, - CreatePlatformResourceDeclaredCapacityInput['platformResourceDeclaredCapacity'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createPlatformResourceDeclaredCapacity: { - platformResourceDeclaredCapacity: InferSelectResult< - PlatformResourceDeclaredCapacityWithRelations, - S - >; - }; - }, - Error, - CreatePlatformResourceDeclaredCapacityInput['platformResourceDeclaredCapacity'] ->; -export function useCreatePlatformResourceDeclaredCapacityMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - CreatePlatformResourceDeclaredCapacityInput['platformResourceDeclaredCapacity'] - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: platformResourceDeclaredCapacityMutationKeys.create(), - mutationFn: ( - data: CreatePlatformResourceDeclaredCapacityInput['platformResourceDeclaredCapacity'] - ) => - getClient() - .platformResourceDeclaredCapacity.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: platformResourceDeclaredCapacityKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformResourceObservedStorageMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformResourceObservedStorageMutation.ts deleted file mode 100644 index 8de6986922..0000000000 --- a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformResourceObservedStorageMutation.ts +++ /dev/null @@ -1,105 +0,0 @@ -/** - * Create mutation hook for PlatformResourceObservedStorage - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformResourceObservedStorageKeys } from '../query-keys'; -import { platformResourceObservedStorageMutationKeys } from '../mutation-keys'; -import type { - PlatformResourceObservedStorageSelect, - PlatformResourceObservedStorageWithRelations, - CreatePlatformResourceObservedStorageInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - PlatformResourceObservedStorageSelect, - PlatformResourceObservedStorageWithRelations, - CreatePlatformResourceObservedStorageInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a PlatformResourceObservedStorage - * - * @example - * ```tsx - * const { mutate, isPending } = useCreatePlatformResourceObservedStorageMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreatePlatformResourceObservedStorageMutation< - S extends PlatformResourceObservedStorageSelect, ->( - params: { - selection: { - fields: S & PlatformResourceObservedStorageSelect; - } & HookStrictSelect, PlatformResourceObservedStorageSelect>; - } & Omit< - UseMutationOptions< - { - createPlatformResourceObservedStorage: { - platformResourceObservedStorage: InferSelectResult< - PlatformResourceObservedStorageWithRelations, - S - >; - }; - }, - Error, - CreatePlatformResourceObservedStorageInput['platformResourceObservedStorage'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createPlatformResourceObservedStorage: { - platformResourceObservedStorage: InferSelectResult< - PlatformResourceObservedStorageWithRelations, - S - >; - }; - }, - Error, - CreatePlatformResourceObservedStorageInput['platformResourceObservedStorage'] ->; -export function useCreatePlatformResourceObservedStorageMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - CreatePlatformResourceObservedStorageInput['platformResourceObservedStorage'] - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: platformResourceObservedStorageMutationKeys.create(), - mutationFn: ( - data: CreatePlatformResourceObservedStorageInput['platformResourceObservedStorage'] - ) => - getClient() - .platformResourceObservedStorage.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: platformResourceObservedStorageKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformResourceUtilizationMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformResourceUtilizationMutation.ts deleted file mode 100644 index c29fc2a562..0000000000 --- a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformResourceUtilizationMutation.ts +++ /dev/null @@ -1,100 +0,0 @@ -/** - * Create mutation hook for PlatformResourceUtilization - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformResourceUtilizationKeys } from '../query-keys'; -import { platformResourceUtilizationMutationKeys } from '../mutation-keys'; -import type { - PlatformResourceUtilizationSelect, - PlatformResourceUtilizationWithRelations, - CreatePlatformResourceUtilizationInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - PlatformResourceUtilizationSelect, - PlatformResourceUtilizationWithRelations, - CreatePlatformResourceUtilizationInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a PlatformResourceUtilization - * - * @example - * ```tsx - * const { mutate, isPending } = useCreatePlatformResourceUtilizationMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreatePlatformResourceUtilizationMutation< - S extends PlatformResourceUtilizationSelect, ->( - params: { - selection: { - fields: S & PlatformResourceUtilizationSelect; - } & HookStrictSelect, PlatformResourceUtilizationSelect>; - } & Omit< - UseMutationOptions< - { - createPlatformResourceUtilization: { - platformResourceUtilization: InferSelectResult< - PlatformResourceUtilizationWithRelations, - S - >; - }; - }, - Error, - CreatePlatformResourceUtilizationInput['platformResourceUtilization'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createPlatformResourceUtilization: { - platformResourceUtilization: InferSelectResult; - }; - }, - Error, - CreatePlatformResourceUtilizationInput['platformResourceUtilization'] ->; -export function useCreatePlatformResourceUtilizationMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - CreatePlatformResourceUtilizationInput['platformResourceUtilization'] - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: platformResourceUtilizationMutationKeys.create(), - mutationFn: (data: CreatePlatformResourceUtilizationInput['platformResourceUtilization']) => - getClient() - .platformResourceUtilization.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: platformResourceUtilizationKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformResourcesHealthMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformResourcesHealthMutation.ts deleted file mode 100644 index f2157eba58..0000000000 --- a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformResourcesHealthMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Create mutation hook for PlatformResourcesHealth - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformResourcesHealthKeys } from '../query-keys'; -import { platformResourcesHealthMutationKeys } from '../mutation-keys'; -import type { - PlatformResourcesHealthSelect, - PlatformResourcesHealthWithRelations, - CreatePlatformResourcesHealthInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - PlatformResourcesHealthSelect, - PlatformResourcesHealthWithRelations, - CreatePlatformResourcesHealthInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a PlatformResourcesHealth - * - * @example - * ```tsx - * const { mutate, isPending } = useCreatePlatformResourcesHealthMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreatePlatformResourcesHealthMutation( - params: { - selection: { - fields: S & PlatformResourcesHealthSelect; - } & HookStrictSelect, PlatformResourcesHealthSelect>; - } & Omit< - UseMutationOptions< - { - createPlatformResourcesHealth: { - platformResourcesHealth: InferSelectResult; - }; - }, - Error, - CreatePlatformResourcesHealthInput['platformResourcesHealth'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createPlatformResourcesHealth: { - platformResourcesHealth: InferSelectResult; - }; - }, - Error, - CreatePlatformResourcesHealthInput['platformResourcesHealth'] ->; -export function useCreatePlatformResourcesHealthMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: platformResourcesHealthMutationKeys.create(), - mutationFn: (data: CreatePlatformResourcesHealthInput['platformResourcesHealth']) => - getClient() - .platformResourcesHealth.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: platformResourcesHealthKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformResourcesRequirementsStateMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformResourcesRequirementsStateMutation.ts deleted file mode 100644 index 57e2f93f58..0000000000 --- a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformResourcesRequirementsStateMutation.ts +++ /dev/null @@ -1,105 +0,0 @@ -/** - * Create mutation hook for PlatformResourcesRequirementsState - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformResourcesRequirementsStateKeys } from '../query-keys'; -import { platformResourcesRequirementsStateMutationKeys } from '../mutation-keys'; -import type { - PlatformResourcesRequirementsStateSelect, - PlatformResourcesRequirementsStateWithRelations, - CreatePlatformResourcesRequirementsStateInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - PlatformResourcesRequirementsStateSelect, - PlatformResourcesRequirementsStateWithRelations, - CreatePlatformResourcesRequirementsStateInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a PlatformResourcesRequirementsState - * - * @example - * ```tsx - * const { mutate, isPending } = useCreatePlatformResourcesRequirementsStateMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreatePlatformResourcesRequirementsStateMutation< - S extends PlatformResourcesRequirementsStateSelect, ->( - params: { - selection: { - fields: S & PlatformResourcesRequirementsStateSelect; - } & HookStrictSelect, PlatformResourcesRequirementsStateSelect>; - } & Omit< - UseMutationOptions< - { - createPlatformResourcesRequirementsState: { - platformResourcesRequirementsState: InferSelectResult< - PlatformResourcesRequirementsStateWithRelations, - S - >; - }; - }, - Error, - CreatePlatformResourcesRequirementsStateInput['platformResourcesRequirementsState'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createPlatformResourcesRequirementsState: { - platformResourcesRequirementsState: InferSelectResult< - PlatformResourcesRequirementsStateWithRelations, - S - >; - }; - }, - Error, - CreatePlatformResourcesRequirementsStateInput['platformResourcesRequirementsState'] ->; -export function useCreatePlatformResourcesRequirementsStateMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - CreatePlatformResourcesRequirementsStateInput['platformResourcesRequirementsState'] - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: platformResourcesRequirementsStateMutationKeys.create(), - mutationFn: ( - data: CreatePlatformResourcesRequirementsStateInput['platformResourcesRequirementsState'] - ) => - getClient() - .platformResourcesRequirementsState.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: platformResourcesRequirementsStateKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformResourcesResolvedRequirementMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformResourcesResolvedRequirementMutation.ts deleted file mode 100644 index 6a037c2326..0000000000 --- a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformResourcesResolvedRequirementMutation.ts +++ /dev/null @@ -1,105 +0,0 @@ -/** - * Create mutation hook for PlatformResourcesResolvedRequirement - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformResourcesResolvedRequirementKeys } from '../query-keys'; -import { platformResourcesResolvedRequirementMutationKeys } from '../mutation-keys'; -import type { - PlatformResourcesResolvedRequirementSelect, - PlatformResourcesResolvedRequirementWithRelations, - CreatePlatformResourcesResolvedRequirementInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - PlatformResourcesResolvedRequirementSelect, - PlatformResourcesResolvedRequirementWithRelations, - CreatePlatformResourcesResolvedRequirementInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a PlatformResourcesResolvedRequirement - * - * @example - * ```tsx - * const { mutate, isPending } = useCreatePlatformResourcesResolvedRequirementMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreatePlatformResourcesResolvedRequirementMutation< - S extends PlatformResourcesResolvedRequirementSelect, ->( - params: { - selection: { - fields: S & PlatformResourcesResolvedRequirementSelect; - } & HookStrictSelect, PlatformResourcesResolvedRequirementSelect>; - } & Omit< - UseMutationOptions< - { - createPlatformResourcesResolvedRequirement: { - platformResourcesResolvedRequirement: InferSelectResult< - PlatformResourcesResolvedRequirementWithRelations, - S - >; - }; - }, - Error, - CreatePlatformResourcesResolvedRequirementInput['platformResourcesResolvedRequirement'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createPlatformResourcesResolvedRequirement: { - platformResourcesResolvedRequirement: InferSelectResult< - PlatformResourcesResolvedRequirementWithRelations, - S - >; - }; - }, - Error, - CreatePlatformResourcesResolvedRequirementInput['platformResourcesResolvedRequirement'] ->; -export function useCreatePlatformResourcesResolvedRequirementMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - CreatePlatformResourcesResolvedRequirementInput['platformResourcesResolvedRequirement'] - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: platformResourcesResolvedRequirementMutationKeys.create(), - mutationFn: ( - data: CreatePlatformResourcesResolvedRequirementInput['platformResourcesResolvedRequirement'] - ) => - getClient() - .platformResourcesResolvedRequirement.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: platformResourcesResolvedRequirementKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformServiceBindingMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformServiceBindingMutation.ts new file mode 100644 index 0000000000..e56418dfe4 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformServiceBindingMutation.ts @@ -0,0 +1,91 @@ +/** + * Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { platformServiceBindingKeys } from '../query-keys'; +import { platformServiceBindingMutationKeys } from '../mutation-keys'; +import type { + PlatformServiceBindingSelect, + PlatformServiceBindingWithRelations, + CreatePlatformServiceBindingInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformServiceBindingSelect, + PlatformServiceBindingWithRelations, + CreatePlatformServiceBindingInput, +} from '../../orm/input-types'; +/** + * Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePlatformServiceBindingMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePlatformServiceBindingMutation( + params: { + selection: { + fields: S & PlatformServiceBindingSelect; + } & HookStrictSelect, PlatformServiceBindingSelect>; + } & Omit< + UseMutationOptions< + { + createPlatformServiceBinding: { + platformServiceBinding: InferSelectResult; + }; + }, + Error, + CreatePlatformServiceBindingInput['platformServiceBinding'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPlatformServiceBinding: { + platformServiceBinding: InferSelectResult; + }; + }, + Error, + CreatePlatformServiceBindingInput['platformServiceBinding'] +>; +export function useCreatePlatformServiceBindingMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformServiceBindingMutationKeys.create(), + mutationFn: (data: CreatePlatformServiceBindingInput['platformServiceBinding']) => + getClient() + .platformServiceBinding.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: platformServiceBindingKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateResourceDeclaredCapacityMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateResourceDeclaredCapacityMutation.ts deleted file mode 100644 index ccb4c7b2c6..0000000000 --- a/sdk/constructive-react/src/compute/hooks/mutations/useCreateResourceDeclaredCapacityMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Create mutation hook for ResourceDeclaredCapacity - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { resourceDeclaredCapacityKeys } from '../query-keys'; -import { resourceDeclaredCapacityMutationKeys } from '../mutation-keys'; -import type { - ResourceDeclaredCapacitySelect, - ResourceDeclaredCapacityWithRelations, - CreateResourceDeclaredCapacityInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - ResourceDeclaredCapacitySelect, - ResourceDeclaredCapacityWithRelations, - CreateResourceDeclaredCapacityInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a ResourceDeclaredCapacity - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateResourceDeclaredCapacityMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateResourceDeclaredCapacityMutation( - params: { - selection: { - fields: S & ResourceDeclaredCapacitySelect; - } & HookStrictSelect, ResourceDeclaredCapacitySelect>; - } & Omit< - UseMutationOptions< - { - createResourceDeclaredCapacity: { - resourceDeclaredCapacity: InferSelectResult; - }; - }, - Error, - CreateResourceDeclaredCapacityInput['resourceDeclaredCapacity'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createResourceDeclaredCapacity: { - resourceDeclaredCapacity: InferSelectResult; - }; - }, - Error, - CreateResourceDeclaredCapacityInput['resourceDeclaredCapacity'] ->; -export function useCreateResourceDeclaredCapacityMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: resourceDeclaredCapacityMutationKeys.create(), - mutationFn: (data: CreateResourceDeclaredCapacityInput['resourceDeclaredCapacity']) => - getClient() - .resourceDeclaredCapacity.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: resourceDeclaredCapacityKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateResourceObservedStorageMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateResourceObservedStorageMutation.ts deleted file mode 100644 index 6a226a4e57..0000000000 --- a/sdk/constructive-react/src/compute/hooks/mutations/useCreateResourceObservedStorageMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Create mutation hook for ResourceObservedStorage - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { resourceObservedStorageKeys } from '../query-keys'; -import { resourceObservedStorageMutationKeys } from '../mutation-keys'; -import type { - ResourceObservedStorageSelect, - ResourceObservedStorageWithRelations, - CreateResourceObservedStorageInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - ResourceObservedStorageSelect, - ResourceObservedStorageWithRelations, - CreateResourceObservedStorageInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a ResourceObservedStorage - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateResourceObservedStorageMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateResourceObservedStorageMutation( - params: { - selection: { - fields: S & ResourceObservedStorageSelect; - } & HookStrictSelect, ResourceObservedStorageSelect>; - } & Omit< - UseMutationOptions< - { - createResourceObservedStorage: { - resourceObservedStorage: InferSelectResult; - }; - }, - Error, - CreateResourceObservedStorageInput['resourceObservedStorage'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createResourceObservedStorage: { - resourceObservedStorage: InferSelectResult; - }; - }, - Error, - CreateResourceObservedStorageInput['resourceObservedStorage'] ->; -export function useCreateResourceObservedStorageMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: resourceObservedStorageMutationKeys.create(), - mutationFn: (data: CreateResourceObservedStorageInput['resourceObservedStorage']) => - getClient() - .resourceObservedStorage.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: resourceObservedStorageKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateResourceUtilizationMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateResourceUtilizationMutation.ts deleted file mode 100644 index 05250fd177..0000000000 --- a/sdk/constructive-react/src/compute/hooks/mutations/useCreateResourceUtilizationMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Create mutation hook for ResourceUtilization - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { resourceUtilizationKeys } from '../query-keys'; -import { resourceUtilizationMutationKeys } from '../mutation-keys'; -import type { - ResourceUtilizationSelect, - ResourceUtilizationWithRelations, - CreateResourceUtilizationInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - ResourceUtilizationSelect, - ResourceUtilizationWithRelations, - CreateResourceUtilizationInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a ResourceUtilization - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateResourceUtilizationMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateResourceUtilizationMutation( - params: { - selection: { - fields: S & ResourceUtilizationSelect; - } & HookStrictSelect, ResourceUtilizationSelect>; - } & Omit< - UseMutationOptions< - { - createResourceUtilization: { - resourceUtilization: InferSelectResult; - }; - }, - Error, - CreateResourceUtilizationInput['resourceUtilization'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createResourceUtilization: { - resourceUtilization: InferSelectResult; - }; - }, - Error, - CreateResourceUtilizationInput['resourceUtilization'] ->; -export function useCreateResourceUtilizationMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: resourceUtilizationMutationKeys.create(), - mutationFn: (data: CreateResourceUtilizationInput['resourceUtilization']) => - getClient() - .resourceUtilization.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: resourceUtilizationKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateResourcesHealthMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateResourcesHealthMutation.ts deleted file mode 100644 index 9ffeb3b510..0000000000 --- a/sdk/constructive-react/src/compute/hooks/mutations/useCreateResourcesHealthMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Create mutation hook for ResourcesHealth - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { resourcesHealthKeys } from '../query-keys'; -import { resourcesHealthMutationKeys } from '../mutation-keys'; -import type { - ResourcesHealthSelect, - ResourcesHealthWithRelations, - CreateResourcesHealthInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - ResourcesHealthSelect, - ResourcesHealthWithRelations, - CreateResourcesHealthInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a ResourcesHealth - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateResourcesHealthMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateResourcesHealthMutation( - params: { - selection: { - fields: S & ResourcesHealthSelect; - } & HookStrictSelect, ResourcesHealthSelect>; - } & Omit< - UseMutationOptions< - { - createResourcesHealth: { - resourcesHealth: InferSelectResult; - }; - }, - Error, - CreateResourcesHealthInput['resourcesHealth'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createResourcesHealth: { - resourcesHealth: InferSelectResult; - }; - }, - Error, - CreateResourcesHealthInput['resourcesHealth'] ->; -export function useCreateResourcesHealthMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: resourcesHealthMutationKeys.create(), - mutationFn: (data: CreateResourcesHealthInput['resourcesHealth']) => - getClient() - .resourcesHealth.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: resourcesHealthKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateResourcesRequirementsStateMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateResourcesRequirementsStateMutation.ts deleted file mode 100644 index 0f2461e6a4..0000000000 --- a/sdk/constructive-react/src/compute/hooks/mutations/useCreateResourcesRequirementsStateMutation.ts +++ /dev/null @@ -1,97 +0,0 @@ -/** - * Create mutation hook for ResourcesRequirementsState - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { resourcesRequirementsStateKeys } from '../query-keys'; -import { resourcesRequirementsStateMutationKeys } from '../mutation-keys'; -import type { - ResourcesRequirementsStateSelect, - ResourcesRequirementsStateWithRelations, - CreateResourcesRequirementsStateInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - ResourcesRequirementsStateSelect, - ResourcesRequirementsStateWithRelations, - CreateResourcesRequirementsStateInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a ResourcesRequirementsState - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateResourcesRequirementsStateMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateResourcesRequirementsStateMutation< - S extends ResourcesRequirementsStateSelect, ->( - params: { - selection: { - fields: S & ResourcesRequirementsStateSelect; - } & HookStrictSelect, ResourcesRequirementsStateSelect>; - } & Omit< - UseMutationOptions< - { - createResourcesRequirementsState: { - resourcesRequirementsState: InferSelectResult; - }; - }, - Error, - CreateResourcesRequirementsStateInput['resourcesRequirementsState'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createResourcesRequirementsState: { - resourcesRequirementsState: InferSelectResult; - }; - }, - Error, - CreateResourcesRequirementsStateInput['resourcesRequirementsState'] ->; -export function useCreateResourcesRequirementsStateMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - CreateResourcesRequirementsStateInput['resourcesRequirementsState'] - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: resourcesRequirementsStateMutationKeys.create(), - mutationFn: (data: CreateResourcesRequirementsStateInput['resourcesRequirementsState']) => - getClient() - .resourcesRequirementsState.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: resourcesRequirementsStateKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateResourcesResolvedRequirementMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateResourcesResolvedRequirementMutation.ts deleted file mode 100644 index 0e6d9c55a7..0000000000 --- a/sdk/constructive-react/src/compute/hooks/mutations/useCreateResourcesResolvedRequirementMutation.ts +++ /dev/null @@ -1,100 +0,0 @@ -/** - * Create mutation hook for ResourcesResolvedRequirement - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { resourcesResolvedRequirementKeys } from '../query-keys'; -import { resourcesResolvedRequirementMutationKeys } from '../mutation-keys'; -import type { - ResourcesResolvedRequirementSelect, - ResourcesResolvedRequirementWithRelations, - CreateResourcesResolvedRequirementInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - ResourcesResolvedRequirementSelect, - ResourcesResolvedRequirementWithRelations, - CreateResourcesResolvedRequirementInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a ResourcesResolvedRequirement - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateResourcesResolvedRequirementMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateResourcesResolvedRequirementMutation< - S extends ResourcesResolvedRequirementSelect, ->( - params: { - selection: { - fields: S & ResourcesResolvedRequirementSelect; - } & HookStrictSelect, ResourcesResolvedRequirementSelect>; - } & Omit< - UseMutationOptions< - { - createResourcesResolvedRequirement: { - resourcesResolvedRequirement: InferSelectResult< - ResourcesResolvedRequirementWithRelations, - S - >; - }; - }, - Error, - CreateResourcesResolvedRequirementInput['resourcesResolvedRequirement'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createResourcesResolvedRequirement: { - resourcesResolvedRequirement: InferSelectResult; - }; - }, - Error, - CreateResourcesResolvedRequirementInput['resourcesResolvedRequirement'] ->; -export function useCreateResourcesResolvedRequirementMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - CreateResourcesResolvedRequirementInput['resourcesResolvedRequirement'] - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: resourcesResolvedRequirementMutationKeys.create(), - mutationFn: (data: CreateResourcesResolvedRequirementInput['resourcesResolvedRequirement']) => - getClient() - .resourcesResolvedRequirement.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: resourcesResolvedRequirementKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateServiceBindingMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateServiceBindingMutation.ts new file mode 100644 index 0000000000..f75bc965d6 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreateServiceBindingMutation.ts @@ -0,0 +1,91 @@ +/** + * Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { serviceBindingKeys } from '../query-keys'; +import { serviceBindingMutationKeys } from '../mutation-keys'; +import type { + ServiceBindingSelect, + ServiceBindingWithRelations, + CreateServiceBindingInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ServiceBindingSelect, + ServiceBindingWithRelations, + CreateServiceBindingInput, +} from '../../orm/input-types'; +/** + * Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateServiceBindingMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateServiceBindingMutation( + params: { + selection: { + fields: S & ServiceBindingSelect; + } & HookStrictSelect, ServiceBindingSelect>; + } & Omit< + UseMutationOptions< + { + createServiceBinding: { + serviceBinding: InferSelectResult; + }; + }, + Error, + CreateServiceBindingInput['serviceBinding'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createServiceBinding: { + serviceBinding: InferSelectResult; + }; + }, + Error, + CreateServiceBindingInput['serviceBinding'] +>; +export function useCreateServiceBindingMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: serviceBindingMutationKeys.create(), + mutationFn: (data: CreateServiceBindingInput['serviceBinding']) => + getClient() + .serviceBinding.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: serviceBindingKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformBuilderBindingMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformServiceBindingMutation.ts similarity index 51% rename from sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformBuilderBindingMutation.ts rename to sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformServiceBindingMutation.ts index df71f1af3f..dd98f4f1d8 100644 --- a/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformBuilderBindingMutation.ts +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformServiceBindingMutation.ts @@ -1,5 +1,5 @@ /** - * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST + * Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -9,39 +9,39 @@ import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-quer import { getClient } from '../client'; import { buildSelectionArgs } from '../selection'; import type { SelectionConfig } from '../selection'; -import { platformBuilderBindingKeys } from '../query-keys'; -import { platformBuilderBindingMutationKeys } from '../mutation-keys'; +import { platformServiceBindingKeys } from '../query-keys'; +import { platformServiceBindingMutationKeys } from '../mutation-keys'; import type { - PlatformBuilderBindingSelect, - PlatformBuilderBindingWithRelations, + PlatformServiceBindingSelect, + PlatformServiceBindingWithRelations, } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { - PlatformBuilderBindingSelect, - PlatformBuilderBindingWithRelations, + PlatformServiceBindingSelect, + PlatformServiceBindingWithRelations, } from '../../orm/input-types'; /** - * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST + * Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config * * @example * ```tsx - * const { mutate, isPending } = useDeletePlatformBuilderBindingMutation({ + * const { mutate, isPending } = useDeletePlatformServiceBindingMutation({ * selection: { fields: { id: true } }, * }); * * mutate({ id: 'value-to-delete' }); * ``` */ -export function useDeletePlatformBuilderBindingMutation( +export function useDeletePlatformServiceBindingMutation( params: { selection: { - fields: S & PlatformBuilderBindingSelect; - } & HookStrictSelect, PlatformBuilderBindingSelect>; + fields: S & PlatformServiceBindingSelect; + } & HookStrictSelect, PlatformServiceBindingSelect>; } & Omit< UseMutationOptions< { - deletePlatformBuilderBinding: { - platformBuilderBinding: InferSelectResult; + deletePlatformServiceBinding: { + platformServiceBinding: InferSelectResult; }; }, Error, @@ -53,8 +53,8 @@ export function useDeletePlatformBuilderBindingMutation ): UseMutationResult< { - deletePlatformBuilderBinding: { - platformBuilderBinding: InferSelectResult; + deletePlatformServiceBinding: { + platformServiceBinding: InferSelectResult; }; }, Error, @@ -62,9 +62,9 @@ export function useDeletePlatformBuilderBindingMutation; -export function useDeletePlatformBuilderBindingMutation( +export function useDeletePlatformServiceBindingMutation( params: { - selection: SelectionConfig; + selection: SelectionConfig; } & Omit< UseMutationOptions< any, @@ -76,15 +76,15 @@ export function useDeletePlatformBuilderBindingMutation( 'mutationFn' > ) { - const args = buildSelectionArgs(params.selection); + const args = buildSelectionArgs(params.selection); const { selection: _selection, ...mutationOptions } = params ?? {}; void _selection; const queryClient = useQueryClient(); return useMutation({ - mutationKey: platformBuilderBindingMutationKeys.all, + mutationKey: platformServiceBindingMutationKeys.all, mutationFn: ({ id }: { id: string }) => getClient() - .platformBuilderBinding.delete({ + .platformServiceBinding.delete({ where: { id, }, @@ -93,10 +93,10 @@ export function useDeletePlatformBuilderBindingMutation( .unwrap(), onSuccess: (_, variables) => { queryClient.removeQueries({ - queryKey: platformBuilderBindingKeys.detail(variables.id), + queryKey: platformServiceBindingKeys.detail(variables.id), }); queryClient.invalidateQueries({ - queryKey: platformBuilderBindingKeys.lists(), + queryKey: platformServiceBindingKeys.lists(), }); }, ...mutationOptions, diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeleteBuilderBindingMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteServiceBindingMutation.ts similarity index 53% rename from sdk/constructive-react/src/compute/hooks/mutations/useDeleteBuilderBindingMutation.ts rename to sdk/constructive-react/src/compute/hooks/mutations/useDeleteServiceBindingMutation.ts index 26004519c8..b6b2c29414 100644 --- a/sdk/constructive-react/src/compute/hooks/mutations/useDeleteBuilderBindingMutation.ts +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteServiceBindingMutation.ts @@ -1,5 +1,5 @@ /** - * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST + * Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -9,33 +9,33 @@ import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-quer import { getClient } from '../client'; import { buildSelectionArgs } from '../selection'; import type { SelectionConfig } from '../selection'; -import { builderBindingKeys } from '../query-keys'; -import { builderBindingMutationKeys } from '../mutation-keys'; -import type { BuilderBindingSelect, BuilderBindingWithRelations } from '../../orm/input-types'; +import { serviceBindingKeys } from '../query-keys'; +import { serviceBindingMutationKeys } from '../mutation-keys'; +import type { ServiceBindingSelect, ServiceBindingWithRelations } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { BuilderBindingSelect, BuilderBindingWithRelations } from '../../orm/input-types'; +export type { ServiceBindingSelect, ServiceBindingWithRelations } from '../../orm/input-types'; /** - * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST + * Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config * * @example * ```tsx - * const { mutate, isPending } = useDeleteBuilderBindingMutation({ + * const { mutate, isPending } = useDeleteServiceBindingMutation({ * selection: { fields: { id: true } }, * }); * * mutate({ id: 'value-to-delete' }); * ``` */ -export function useDeleteBuilderBindingMutation( +export function useDeleteServiceBindingMutation( params: { selection: { - fields: S & BuilderBindingSelect; - } & HookStrictSelect, BuilderBindingSelect>; + fields: S & ServiceBindingSelect; + } & HookStrictSelect, ServiceBindingSelect>; } & Omit< UseMutationOptions< { - deleteBuilderBinding: { - builderBinding: InferSelectResult; + deleteServiceBinding: { + serviceBinding: InferSelectResult; }; }, Error, @@ -47,8 +47,8 @@ export function useDeleteBuilderBindingMutation( > ): UseMutationResult< { - deleteBuilderBinding: { - builderBinding: InferSelectResult; + deleteServiceBinding: { + serviceBinding: InferSelectResult; }; }, Error, @@ -56,9 +56,9 @@ export function useDeleteBuilderBindingMutation( id: string; } >; -export function useDeleteBuilderBindingMutation( +export function useDeleteServiceBindingMutation( params: { - selection: SelectionConfig; + selection: SelectionConfig; } & Omit< UseMutationOptions< any, @@ -70,15 +70,15 @@ export function useDeleteBuilderBindingMutation( 'mutationFn' > ) { - const args = buildSelectionArgs(params.selection); + const args = buildSelectionArgs(params.selection); const { selection: _selection, ...mutationOptions } = params ?? {}; void _selection; const queryClient = useQueryClient(); return useMutation({ - mutationKey: builderBindingMutationKeys.all, + mutationKey: serviceBindingMutationKeys.all, mutationFn: ({ id }: { id: string }) => getClient() - .builderBinding.delete({ + .serviceBinding.delete({ where: { id, }, @@ -87,10 +87,10 @@ export function useDeleteBuilderBindingMutation( .unwrap(), onSuccess: (_, variables) => { queryClient.removeQueries({ - queryKey: builderBindingKeys.detail(variables.id), + queryKey: serviceBindingKeys.detail(variables.id), }); queryClient.invalidateQueries({ - queryKey: builderBindingKeys.lists(), + queryKey: serviceBindingKeys.lists(), }); }, ...mutationOptions, diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdateBuilderBindingMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateBuilderBindingMutation.ts deleted file mode 100644 index 8e095c6826..0000000000 --- a/sdk/constructive-react/src/compute/hooks/mutations/useUpdateBuilderBindingMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { builderBindingKeys } from '../query-keys'; -import { builderBindingMutationKeys } from '../mutation-keys'; -import type { - BuilderBindingSelect, - BuilderBindingWithRelations, - BuilderBindingPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - BuilderBindingSelect, - BuilderBindingWithRelations, - BuilderBindingPatch, -} from '../../orm/input-types'; -/** - * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateBuilderBindingMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', builderBindingPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateBuilderBindingMutation( - params: { - selection: { - fields: S & BuilderBindingSelect; - } & HookStrictSelect, BuilderBindingSelect>; - } & Omit< - UseMutationOptions< - { - updateBuilderBinding: { - builderBinding: InferSelectResult; - }; - }, - Error, - { - id: string; - builderBindingPatch: BuilderBindingPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateBuilderBinding: { - builderBinding: InferSelectResult; - }; - }, - Error, - { - id: string; - builderBindingPatch: BuilderBindingPatch; - } ->; -export function useUpdateBuilderBindingMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - builderBindingPatch: BuilderBindingPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: builderBindingMutationKeys.all, - mutationFn: ({ - id, - builderBindingPatch, - }: { - id: string; - builderBindingPatch: BuilderBindingPatch; - }) => - getClient() - .builderBinding.update({ - where: { - id, - }, - data: builderBindingPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: builderBindingKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: builderBindingKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformBuilderBindingMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformBuilderBindingMutation.ts deleted file mode 100644 index c4bb465f60..0000000000 --- a/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformBuilderBindingMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformBuilderBindingKeys } from '../query-keys'; -import { platformBuilderBindingMutationKeys } from '../mutation-keys'; -import type { - PlatformBuilderBindingSelect, - PlatformBuilderBindingWithRelations, - PlatformBuilderBindingPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - PlatformBuilderBindingSelect, - PlatformBuilderBindingWithRelations, - PlatformBuilderBindingPatch, -} from '../../orm/input-types'; -/** - * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdatePlatformBuilderBindingMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', platformBuilderBindingPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdatePlatformBuilderBindingMutation( - params: { - selection: { - fields: S & PlatformBuilderBindingSelect; - } & HookStrictSelect, PlatformBuilderBindingSelect>; - } & Omit< - UseMutationOptions< - { - updatePlatformBuilderBinding: { - platformBuilderBinding: InferSelectResult; - }; - }, - Error, - { - id: string; - platformBuilderBindingPatch: PlatformBuilderBindingPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updatePlatformBuilderBinding: { - platformBuilderBinding: InferSelectResult; - }; - }, - Error, - { - id: string; - platformBuilderBindingPatch: PlatformBuilderBindingPatch; - } ->; -export function useUpdatePlatformBuilderBindingMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - platformBuilderBindingPatch: PlatformBuilderBindingPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: platformBuilderBindingMutationKeys.all, - mutationFn: ({ - id, - platformBuilderBindingPatch, - }: { - id: string; - platformBuilderBindingPatch: PlatformBuilderBindingPatch; - }) => - getClient() - .platformBuilderBinding.update({ - where: { - id, - }, - data: platformBuilderBindingPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: platformBuilderBindingKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: platformBuilderBindingKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformServiceBindingMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformServiceBindingMutation.ts new file mode 100644 index 0000000000..4a9bf984e1 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformServiceBindingMutation.ts @@ -0,0 +1,116 @@ +/** + * Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { platformServiceBindingKeys } from '../query-keys'; +import { platformServiceBindingMutationKeys } from '../mutation-keys'; +import type { + PlatformServiceBindingSelect, + PlatformServiceBindingWithRelations, + PlatformServiceBindingPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformServiceBindingSelect, + PlatformServiceBindingWithRelations, + PlatformServiceBindingPatch, +} from '../../orm/input-types'; +/** + * Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdatePlatformServiceBindingMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', platformServiceBindingPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdatePlatformServiceBindingMutation( + params: { + selection: { + fields: S & PlatformServiceBindingSelect; + } & HookStrictSelect, PlatformServiceBindingSelect>; + } & Omit< + UseMutationOptions< + { + updatePlatformServiceBinding: { + platformServiceBinding: InferSelectResult; + }; + }, + Error, + { + id: string; + platformServiceBindingPatch: PlatformServiceBindingPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updatePlatformServiceBinding: { + platformServiceBinding: InferSelectResult; + }; + }, + Error, + { + id: string; + platformServiceBindingPatch: PlatformServiceBindingPatch; + } +>; +export function useUpdatePlatformServiceBindingMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + platformServiceBindingPatch: PlatformServiceBindingPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformServiceBindingMutationKeys.all, + mutationFn: ({ + id, + platformServiceBindingPatch, + }: { + id: string; + platformServiceBindingPatch: PlatformServiceBindingPatch; + }) => + getClient() + .platformServiceBinding.update({ + where: { + id, + }, + data: platformServiceBindingPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: platformServiceBindingKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformServiceBindingKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdateServiceBindingMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateServiceBindingMutation.ts new file mode 100644 index 0000000000..5d67543217 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateServiceBindingMutation.ts @@ -0,0 +1,116 @@ +/** + * Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { serviceBindingKeys } from '../query-keys'; +import { serviceBindingMutationKeys } from '../mutation-keys'; +import type { + ServiceBindingSelect, + ServiceBindingWithRelations, + ServiceBindingPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ServiceBindingSelect, + ServiceBindingWithRelations, + ServiceBindingPatch, +} from '../../orm/input-types'; +/** + * Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateServiceBindingMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', serviceBindingPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateServiceBindingMutation( + params: { + selection: { + fields: S & ServiceBindingSelect; + } & HookStrictSelect, ServiceBindingSelect>; + } & Omit< + UseMutationOptions< + { + updateServiceBinding: { + serviceBinding: InferSelectResult; + }; + }, + Error, + { + id: string; + serviceBindingPatch: ServiceBindingPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateServiceBinding: { + serviceBinding: InferSelectResult; + }; + }, + Error, + { + id: string; + serviceBindingPatch: ServiceBindingPatch; + } +>; +export function useUpdateServiceBindingMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + serviceBindingPatch: ServiceBindingPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: serviceBindingMutationKeys.all, + mutationFn: ({ + id, + serviceBindingPatch, + }: { + id: string; + serviceBindingPatch: ServiceBindingPatch; + }) => + getClient() + .serviceBinding.update({ + where: { + id, + }, + data: serviceBindingPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: serviceBindingKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: serviceBindingKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/index.ts b/sdk/constructive-react/src/compute/hooks/queries/index.ts index 8c7e240a7a..6fcae8413e 100644 --- a/sdk/constructive-react/src/compute/hooks/queries/index.ts +++ b/sdk/constructive-react/src/compute/hooks/queries/index.ts @@ -7,8 +7,6 @@ export * from './useBuildsQuery'; export * from './useBuildQuery'; export * from './useBuildStepsQuery'; export * from './useBuildStepQuery'; -export * from './useBuilderBindingsQuery'; -export * from './useBuilderBindingQuery'; export * from './useContentPresetsQuery'; export * from './useContentPresetQuery'; export * from './useDatabaseFunctionGraphsQuery'; @@ -92,8 +90,6 @@ export * from './usePlatformBuildsQuery'; export * from './usePlatformBuildQuery'; export * from './usePlatformBuildStepsQuery'; export * from './usePlatformBuildStepQuery'; -export * from './usePlatformBuilderBindingsQuery'; -export * from './usePlatformBuilderBindingQuery'; export * from './usePlatformFunctionApiBindingsQuery'; export * from './usePlatformFunctionApiBindingQuery'; export * from './usePlatformFunctionCapabilityBindingsQuery'; @@ -180,6 +176,8 @@ export * from './usePlatformResourcesHealthsQuery'; export * from './usePlatformResourcesHealthQuery'; export * from './usePlatformResourcesRequirementsStatesQuery'; export * from './usePlatformResourcesResolvedRequirementsQuery'; +export * from './usePlatformServiceBindingsQuery'; +export * from './usePlatformServiceBindingQuery'; export * from './usePlatformWebhookEndpointsQuery'; export * from './usePlatformWebhookEndpointQuery'; export * from './usePlatformWebhookEventsQuery'; @@ -231,6 +229,8 @@ export * from './useResourcesHealthsQuery'; export * from './useResourcesHealthQuery'; export * from './useResourcesRequirementsStatesQuery'; export * from './useResourcesResolvedRequirementsQuery'; +export * from './useServiceBindingsQuery'; +export * from './useServiceBindingQuery'; export * from './useWebhookEndpointsQuery'; export * from './useWebhookEndpointQuery'; export * from './useWebhookEventsQuery'; diff --git a/sdk/constructive-react/src/compute/hooks/queries/useBuilderBindingQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useBuilderBindingQuery.ts deleted file mode 100644 index 54533ab4ac..0000000000 --- a/sdk/constructive-react/src/compute/hooks/queries/useBuilderBindingQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { builderBindingKeys } from '../query-keys'; -import type { BuilderBindingSelect, BuilderBindingWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { BuilderBindingSelect, BuilderBindingWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const builderBindingQueryKey = builderBindingKeys.detail; -/** - * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST - * - * @example - * ```tsx - * const { data, isLoading } = useBuilderBindingQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useBuilderBindingQuery< - S extends BuilderBindingSelect, - TData = { - builderBinding: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, BuilderBindingSelect>; - } & Omit< - UseQueryOptions< - { - builderBinding: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useBuilderBindingQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: builderBindingKeys.detail(params.id), - queryFn: () => - getClient() - .builderBinding.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST - * - * @example - * ```ts - * const data = await fetchBuilderBindingQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchBuilderBindingQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, BuilderBindingSelect>; -}): Promise<{ - builderBinding: InferSelectResult | null; -}>; -export async function fetchBuilderBindingQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .builderBinding.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST - * - * @example - * ```ts - * await prefetchBuilderBindingQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchBuilderBindingQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, BuilderBindingSelect>; - } -): Promise; -export async function prefetchBuilderBindingQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: builderBindingKeys.detail(params.id), - queryFn: () => - getClient() - .builderBinding.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useBuilderBindingsQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useBuilderBindingsQuery.ts deleted file mode 100644 index dd88c3c42c..0000000000 --- a/sdk/constructive-react/src/compute/hooks/queries/useBuilderBindingsQuery.ts +++ /dev/null @@ -1,159 +0,0 @@ -/** - * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { builderBindingKeys } from '../query-keys'; -import type { - BuilderBindingSelect, - BuilderBindingWithRelations, - BuilderBindingFilter, - BuilderBindingOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - BuilderBindingSelect, - BuilderBindingWithRelations, - BuilderBindingFilter, - BuilderBindingOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const builderBindingsQueryKey = builderBindingKeys.list; -/** - * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST - * - * @example - * ```tsx - * const { data, isLoading } = useBuilderBindingsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useBuilderBindingsQuery< - S extends BuilderBindingSelect, - TData = { - builderBindings: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, BuilderBindingSelect>; - } & Omit< - UseQueryOptions< - { - builderBindings: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useBuilderBindingsQuery( - params: { - selection: ListSelectionConfig< - BuilderBindingSelect, - BuilderBindingFilter, - BuilderBindingOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - BuilderBindingSelect, - BuilderBindingFilter, - BuilderBindingOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: builderBindingKeys.list(args), - queryFn: () => getClient().builderBinding.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST - * - * @example - * ```ts - * const data = await fetchBuilderBindingsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchBuilderBindingsQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, BuilderBindingSelect>; -}): Promise<{ - builderBindings: ConnectionResult>; -}>; -export async function fetchBuilderBindingsQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs< - BuilderBindingSelect, - BuilderBindingFilter, - BuilderBindingOrderBy - >(params.selection); - return getClient().builderBinding.findMany(args).unwrap(); -} -/** - * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST - * - * @example - * ```ts - * await prefetchBuilderBindingsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchBuilderBindingsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, BuilderBindingSelect>; - } -): Promise; -export async function prefetchBuilderBindingsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - BuilderBindingSelect, - BuilderBindingFilter, - BuilderBindingOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - BuilderBindingSelect, - BuilderBindingFilter, - BuilderBindingOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: builderBindingKeys.list(args), - queryFn: () => getClient().builderBinding.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformBuilderBindingQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformBuilderBindingQuery.ts deleted file mode 100644 index 638ca58416..0000000000 --- a/sdk/constructive-react/src/compute/hooks/queries/usePlatformBuilderBindingQuery.ts +++ /dev/null @@ -1,146 +0,0 @@ -/** - * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformBuilderBindingKeys } from '../query-keys'; -import type { - PlatformBuilderBindingSelect, - PlatformBuilderBindingWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - PlatformBuilderBindingSelect, - PlatformBuilderBindingWithRelations, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const platformBuilderBindingQueryKey = platformBuilderBindingKeys.detail; -/** - * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST - * - * @example - * ```tsx - * const { data, isLoading } = usePlatformBuilderBindingQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function usePlatformBuilderBindingQuery< - S extends PlatformBuilderBindingSelect, - TData = { - platformBuilderBinding: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, PlatformBuilderBindingSelect>; - } & Omit< - UseQueryOptions< - { - platformBuilderBinding: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function usePlatformBuilderBindingQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: platformBuilderBindingKeys.detail(params.id), - queryFn: () => - getClient() - .platformBuilderBinding.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST - * - * @example - * ```ts - * const data = await fetchPlatformBuilderBindingQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchPlatformBuilderBindingQuery< - S extends PlatformBuilderBindingSelect, ->(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, PlatformBuilderBindingSelect>; -}): Promise<{ - platformBuilderBinding: InferSelectResult | null; -}>; -export async function fetchPlatformBuilderBindingQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .platformBuilderBinding.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST - * - * @example - * ```ts - * await prefetchPlatformBuilderBindingQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchPlatformBuilderBindingQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, PlatformBuilderBindingSelect>; - } -): Promise; -export async function prefetchPlatformBuilderBindingQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: platformBuilderBindingKeys.detail(params.id), - queryFn: () => - getClient() - .platformBuilderBinding.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformBuilderBindingsQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformBuilderBindingsQuery.ts deleted file mode 100644 index 9071bbe899..0000000000 --- a/sdk/constructive-react/src/compute/hooks/queries/usePlatformBuilderBindingsQuery.ts +++ /dev/null @@ -1,180 +0,0 @@ -/** - * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { platformBuilderBindingKeys } from '../query-keys'; -import type { - PlatformBuilderBindingSelect, - PlatformBuilderBindingWithRelations, - PlatformBuilderBindingFilter, - PlatformBuilderBindingOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - PlatformBuilderBindingSelect, - PlatformBuilderBindingWithRelations, - PlatformBuilderBindingFilter, - PlatformBuilderBindingOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const platformBuilderBindingsQueryKey = platformBuilderBindingKeys.list; -/** - * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST - * - * @example - * ```tsx - * const { data, isLoading } = usePlatformBuilderBindingsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function usePlatformBuilderBindingsQuery< - S extends PlatformBuilderBindingSelect, - TData = { - platformBuilderBindings: ConnectionResult< - InferSelectResult - >; - }, ->( - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, PlatformBuilderBindingSelect>; - } & Omit< - UseQueryOptions< - { - platformBuilderBindings: ConnectionResult< - InferSelectResult - >; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function usePlatformBuilderBindingsQuery( - params: { - selection: ListSelectionConfig< - PlatformBuilderBindingSelect, - PlatformBuilderBindingFilter, - PlatformBuilderBindingOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - PlatformBuilderBindingSelect, - PlatformBuilderBindingFilter, - PlatformBuilderBindingOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: platformBuilderBindingKeys.list(args), - queryFn: () => getClient().platformBuilderBinding.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST - * - * @example - * ```ts - * const data = await fetchPlatformBuilderBindingsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchPlatformBuilderBindingsQuery< - S extends PlatformBuilderBindingSelect, ->(params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, PlatformBuilderBindingSelect>; -}): Promise<{ - platformBuilderBindings: ConnectionResult< - InferSelectResult - >; -}>; -export async function fetchPlatformBuilderBindingsQuery(params: { - selection: ListSelectionConfig< - PlatformBuilderBindingSelect, - PlatformBuilderBindingFilter, - PlatformBuilderBindingOrderBy - >; -}) { - const args = buildListSelectionArgs< - PlatformBuilderBindingSelect, - PlatformBuilderBindingFilter, - PlatformBuilderBindingOrderBy - >(params.selection); - return getClient().platformBuilderBinding.findMany(args).unwrap(); -} -/** - * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST - * - * @example - * ```ts - * await prefetchPlatformBuilderBindingsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchPlatformBuilderBindingsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, PlatformBuilderBindingSelect>; - } -): Promise; -export async function prefetchPlatformBuilderBindingsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - PlatformBuilderBindingSelect, - PlatformBuilderBindingFilter, - PlatformBuilderBindingOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - PlatformBuilderBindingSelect, - PlatformBuilderBindingFilter, - PlatformBuilderBindingOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: platformBuilderBindingKeys.list(args), - queryFn: () => getClient().platformBuilderBinding.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformServiceBindingQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformServiceBindingQuery.ts new file mode 100644 index 0000000000..e644793718 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformServiceBindingQuery.ts @@ -0,0 +1,146 @@ +/** + * Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { platformServiceBindingKeys } from '../query-keys'; +import type { + PlatformServiceBindingSelect, + PlatformServiceBindingWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformServiceBindingSelect, + PlatformServiceBindingWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformServiceBindingQueryKey = platformServiceBindingKeys.detail; +/** + * Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformServiceBindingQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function usePlatformServiceBindingQuery< + S extends PlatformServiceBindingSelect, + TData = { + platformServiceBinding: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformServiceBindingSelect>; + } & Omit< + UseQueryOptions< + { + platformServiceBinding: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformServiceBindingQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformServiceBindingKeys.detail(params.id), + queryFn: () => + getClient() + .platformServiceBinding.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config + * + * @example + * ```ts + * const data = await fetchPlatformServiceBindingQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchPlatformServiceBindingQuery< + S extends PlatformServiceBindingSelect, +>(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformServiceBindingSelect>; +}): Promise<{ + platformServiceBinding: InferSelectResult | null; +}>; +export async function fetchPlatformServiceBindingQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .platformServiceBinding.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config + * + * @example + * ```ts + * await prefetchPlatformServiceBindingQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchPlatformServiceBindingQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformServiceBindingSelect>; + } +): Promise; +export async function prefetchPlatformServiceBindingQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformServiceBindingKeys.detail(params.id), + queryFn: () => + getClient() + .platformServiceBinding.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformServiceBindingsQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformServiceBindingsQuery.ts new file mode 100644 index 0000000000..d3db6328cc --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformServiceBindingsQuery.ts @@ -0,0 +1,180 @@ +/** + * Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { platformServiceBindingKeys } from '../query-keys'; +import type { + PlatformServiceBindingSelect, + PlatformServiceBindingWithRelations, + PlatformServiceBindingFilter, + PlatformServiceBindingOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PlatformServiceBindingSelect, + PlatformServiceBindingWithRelations, + PlatformServiceBindingFilter, + PlatformServiceBindingOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformServiceBindingsQueryKey = platformServiceBindingKeys.list; +/** + * Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformServiceBindingsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePlatformServiceBindingsQuery< + S extends PlatformServiceBindingSelect, + TData = { + platformServiceBindings: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformServiceBindingSelect>; + } & Omit< + UseQueryOptions< + { + platformServiceBindings: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformServiceBindingsQuery( + params: { + selection: ListSelectionConfig< + PlatformServiceBindingSelect, + PlatformServiceBindingFilter, + PlatformServiceBindingOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + PlatformServiceBindingSelect, + PlatformServiceBindingFilter, + PlatformServiceBindingOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformServiceBindingKeys.list(args), + queryFn: () => getClient().platformServiceBinding.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config + * + * @example + * ```ts + * const data = await fetchPlatformServiceBindingsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPlatformServiceBindingsQuery< + S extends PlatformServiceBindingSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformServiceBindingSelect>; +}): Promise<{ + platformServiceBindings: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchPlatformServiceBindingsQuery(params: { + selection: ListSelectionConfig< + PlatformServiceBindingSelect, + PlatformServiceBindingFilter, + PlatformServiceBindingOrderBy + >; +}) { + const args = buildListSelectionArgs< + PlatformServiceBindingSelect, + PlatformServiceBindingFilter, + PlatformServiceBindingOrderBy + >(params.selection); + return getClient().platformServiceBinding.findMany(args).unwrap(); +} +/** + * Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config + * + * @example + * ```ts + * await prefetchPlatformServiceBindingsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPlatformServiceBindingsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformServiceBindingSelect>; + } +): Promise; +export async function prefetchPlatformServiceBindingsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + PlatformServiceBindingSelect, + PlatformServiceBindingFilter, + PlatformServiceBindingOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + PlatformServiceBindingSelect, + PlatformServiceBindingFilter, + PlatformServiceBindingOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformServiceBindingKeys.list(args), + queryFn: () => getClient().platformServiceBinding.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useServiceBindingQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useServiceBindingQuery.ts new file mode 100644 index 0000000000..41206d8a77 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useServiceBindingQuery.ts @@ -0,0 +1,138 @@ +/** + * Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { serviceBindingKeys } from '../query-keys'; +import type { ServiceBindingSelect, ServiceBindingWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ServiceBindingSelect, ServiceBindingWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const serviceBindingQueryKey = serviceBindingKeys.detail; +/** + * Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config + * + * @example + * ```tsx + * const { data, isLoading } = useServiceBindingQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useServiceBindingQuery< + S extends ServiceBindingSelect, + TData = { + serviceBinding: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ServiceBindingSelect>; + } & Omit< + UseQueryOptions< + { + serviceBinding: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useServiceBindingQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: serviceBindingKeys.detail(params.id), + queryFn: () => + getClient() + .serviceBinding.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config + * + * @example + * ```ts + * const data = await fetchServiceBindingQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchServiceBindingQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ServiceBindingSelect>; +}): Promise<{ + serviceBinding: InferSelectResult | null; +}>; +export async function fetchServiceBindingQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .serviceBinding.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config + * + * @example + * ```ts + * await prefetchServiceBindingQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchServiceBindingQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ServiceBindingSelect>; + } +): Promise; +export async function prefetchServiceBindingQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: serviceBindingKeys.detail(params.id), + queryFn: () => + getClient() + .serviceBinding.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useServiceBindingsQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useServiceBindingsQuery.ts new file mode 100644 index 0000000000..17c297adda --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useServiceBindingsQuery.ts @@ -0,0 +1,159 @@ +/** + * Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { serviceBindingKeys } from '../query-keys'; +import type { + ServiceBindingSelect, + ServiceBindingWithRelations, + ServiceBindingFilter, + ServiceBindingOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + ServiceBindingSelect, + ServiceBindingWithRelations, + ServiceBindingFilter, + ServiceBindingOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const serviceBindingsQueryKey = serviceBindingKeys.list; +/** + * Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config + * + * @example + * ```tsx + * const { data, isLoading } = useServiceBindingsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useServiceBindingsQuery< + S extends ServiceBindingSelect, + TData = { + serviceBindings: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ServiceBindingSelect>; + } & Omit< + UseQueryOptions< + { + serviceBindings: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useServiceBindingsQuery( + params: { + selection: ListSelectionConfig< + ServiceBindingSelect, + ServiceBindingFilter, + ServiceBindingOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + ServiceBindingSelect, + ServiceBindingFilter, + ServiceBindingOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: serviceBindingKeys.list(args), + queryFn: () => getClient().serviceBinding.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config + * + * @example + * ```ts + * const data = await fetchServiceBindingsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchServiceBindingsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ServiceBindingSelect>; +}): Promise<{ + serviceBindings: ConnectionResult>; +}>; +export async function fetchServiceBindingsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs< + ServiceBindingSelect, + ServiceBindingFilter, + ServiceBindingOrderBy + >(params.selection); + return getClient().serviceBinding.findMany(args).unwrap(); +} +/** + * Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config + * + * @example + * ```ts + * await prefetchServiceBindingsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchServiceBindingsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ServiceBindingSelect>; + } +): Promise; +export async function prefetchServiceBindingsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + ServiceBindingSelect, + ServiceBindingFilter, + ServiceBindingOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + ServiceBindingSelect, + ServiceBindingFilter, + ServiceBindingOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: serviceBindingKeys.list(args), + queryFn: () => getClient().serviceBinding.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/query-keys.ts b/sdk/constructive-react/src/compute/hooks/query-keys.ts index 47f4410b39..b34c4fbf0e 100644 --- a/sdk/constructive-react/src/compute/hooks/query-keys.ts +++ b/sdk/constructive-react/src/compute/hooks/query-keys.ts @@ -37,15 +37,6 @@ export const buildStepKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...buildStepKeys.details(), id] as const, } as const; -export const builderBindingKeys = { - /** All builderBinding queries */ all: ['builderbinding'] as const, - /** List query keys */ lists: () => [...builderBindingKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...builderBindingKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...builderBindingKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...builderBindingKeys.details(), id] as const, -} as const; export const contentPresetKeys = { /** All contentPreset queries */ all: ['contentpreset'] as const, /** List query keys */ lists: () => [...contentPresetKeys.all, 'list'] as const, @@ -461,15 +452,6 @@ export const platformBuildStepKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...platformBuildStepKeys.details(), id] as const, } as const; -export const platformBuilderBindingKeys = { - /** All platformBuilderBinding queries */ all: ['platformbuilderbinding'] as const, - /** List query keys */ lists: () => [...platformBuilderBindingKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...platformBuilderBindingKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...platformBuilderBindingKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...platformBuilderBindingKeys.details(), id] as const, -} as const; export const platformFunctionApiBindingKeys = { /** All platformFunctionApiBinding queries */ all: ['platformfunctionapibinding'] as const, /** List query keys */ lists: () => [...platformFunctionApiBindingKeys.all, 'list'] as const, @@ -928,6 +910,15 @@ export const platformResourcesResolvedRequirementKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...platformResourcesResolvedRequirementKeys.details(), id] as const, } as const; +export const platformServiceBindingKeys = { + /** All platformServiceBinding queries */ all: ['platformservicebinding'] as const, + /** List query keys */ lists: () => [...platformServiceBindingKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...platformServiceBindingKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...platformServiceBindingKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...platformServiceBindingKeys.details(), id] as const, +} as const; export const platformWebhookEndpointKeys = { /** All platformWebhookEndpoint queries */ all: ['platformwebhookendpoint'] as const, /** List query keys */ lists: () => [...platformWebhookEndpointKeys.all, 'list'] as const, @@ -1182,6 +1173,15 @@ export const resourcesResolvedRequirementKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...resourcesResolvedRequirementKeys.details(), id] as const, } as const; +export const serviceBindingKeys = { + /** All serviceBinding queries */ all: ['servicebinding'] as const, + /** List query keys */ lists: () => [...serviceBindingKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...serviceBindingKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...serviceBindingKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...serviceBindingKeys.details(), id] as const, +} as const; export const webhookEndpointKeys = { /** All webhookEndpoint queries */ all: ['webhookendpoint'] as const, /** List query keys */ lists: () => [...webhookEndpointKeys.all, 'list'] as const, @@ -1236,7 +1236,6 @@ export const customQueryKeys = { export const queryKeys = { build: buildKeys, buildStep: buildStepKeys, - builderBinding: builderBindingKeys, contentPreset: contentPresetKeys, databaseFunctionGraph: databaseFunctionGraphKeys, databaseFunctionGraphExecutionCancelRequest: databaseFunctionGraphExecutionCancelRequestKeys, @@ -1280,7 +1279,6 @@ export const queryKeys = { namespaceEvent: namespaceEventKeys, platformBuild: platformBuildKeys, platformBuildStep: platformBuildStepKeys, - platformBuilderBinding: platformBuilderBindingKeys, platformFunctionApiBinding: platformFunctionApiBindingKeys, platformFunctionCapabilityBinding: platformFunctionCapabilityBindingKeys, platformFunctionDefinition: platformFunctionDefinitionKeys, @@ -1327,6 +1325,7 @@ export const queryKeys = { platformResourcesHealth: platformResourcesHealthKeys, platformResourcesRequirementsState: platformResourcesRequirementsStateKeys, platformResourcesResolvedRequirement: platformResourcesResolvedRequirementKeys, + platformServiceBinding: platformServiceBindingKeys, platformWebhookEndpoint: platformWebhookEndpointKeys, platformWebhookEvent: platformWebhookEventKeys, proposalComment: proposalCommentKeys, @@ -1355,6 +1354,7 @@ export const queryKeys = { resourcesHealth: resourcesHealthKeys, resourcesRequirementsState: resourcesRequirementsStateKeys, resourcesResolvedRequirement: resourcesResolvedRequirementKeys, + serviceBinding: serviceBindingKeys, webhookEndpoint: webhookEndpointKeys, webhookEvent: webhookEventKeys, custom: customQueryKeys, diff --git a/sdk/constructive-react/src/compute/orm/README.md b/sdk/constructive-react/src/compute/orm/README.md index 68d50bcb97..c547b9a097 100644 --- a/sdk/constructive-react/src/compute/orm/README.md +++ b/sdk/constructive-react/src/compute/orm/README.md @@ -23,15 +23,14 @@ const db = createClient({ |-------|------------| | `build` | findMany, findOne, create, update, delete | | `buildStep` | findMany, findOne, create, update, delete | -| `builderBinding` | findMany, findOne, create, update, delete | | `contentPreset` | findMany, findOne, create, update, delete | -| `databaseFunctionGraph` | findMany, findOne, create, update, delete | +| `databaseFunctionGraph` | findMany, findOne, update, delete | | `databaseFunctionGraphExecutionCancelRequest` | findMany, findOne, create, update, delete | | `databaseFunctionGraphExecution` | findMany, findOne, create, update, delete | | `databaseFunctionGraphExecutionNodeState` | findMany, findOne, create, update, delete | | `databaseFunctionGraphExecutionOutput` | findMany, findOne, create, update, delete | | `databaseGraphCommit` | findMany, findOne, create, update, delete | -| `databaseGraphGetAllTreeNodesRecord` | findMany, findOne, create, update, delete | +| `databaseGraphGetAllTreeNodesRecord` | findMany, findOne, update, delete | | `databaseGraphObject` | findMany, findOne, create, update, delete | | `databaseGraphRef` | findMany, findOne, create, update, delete | | `databaseGraphStore` | findMany, findOne, create, update, delete | @@ -43,7 +42,7 @@ const db = createClient({ | `functionDeploymentEvent` | findMany, findOne, create, update, delete | | `functionExecutionLog` | findMany, findOne, create, update, delete | | `functionGraphCommit` | findMany, findOne, create, update, delete | -| `functionGraph` | findMany, findOne, create, update, delete | +| `functionGraph` | findMany, findOne, update, delete | | `functionGraphExecutionCancelRequest` | findMany, findOne, create, update, delete | | `functionGraphExecution` | findMany, findOne, create, update, delete | | `functionGraphExecutionNodeState` | findMany, findOne, create, update, delete | @@ -54,11 +53,11 @@ const db = createClient({ | `functionInvocationAttempt` | findMany, findOne, create, update, delete | | `functionInvocation` | findMany, findOne, create, update, delete | | `functionSchedule` | findMany, findOne, create, update, delete | -| `getAllTreeNodesRecord` | findMany, findOne, create, update, delete | +| `getAllTreeNodesRecord` | findMany, findOne, update, delete | | `image` | findMany, findOne, create, update, delete | | `imageGrant` | findMany, findOne, create, update, delete | | `infraCommit` | findMany, findOne, create, update, delete | -| `infraGetAllTreeNodesRecord` | findMany, findOne, create, update, delete | +| `infraGetAllTreeNodesRecord` | findMany, findOne, update, delete | | `infraObject` | findMany, findOne, create, update, delete | | `infraRef` | findMany, findOne, create, update, delete | | `infraStore` | findMany, findOne, create, update, delete | @@ -67,7 +66,6 @@ const db = createClient({ | `namespaceEvent` | findMany, findOne, create, update, delete | | `platformBuild` | findMany, findOne, create, update, delete | | `platformBuildStep` | findMany, findOne, create, update, delete | -| `platformBuilderBinding` | findMany, findOne, create, update, delete | | `platformFunctionApiBinding` | findMany, findOne, create, update, delete | | `platformFunctionCapabilityBinding` | findMany, findOne, create, update, delete | | `platformFunctionDefinition` | findMany, findOne, create, update, delete | @@ -80,7 +78,7 @@ const db = createClient({ | `platformImage` | findMany, findOne, create, update, delete | | `platformImageGrant` | findMany, findOne, create, update, delete | | `platformInfraCommit` | findMany, findOne, create, update, delete | -| `platformInfraGetAllTreeNodesRecord` | findMany, findOne, create, update, delete | +| `platformInfraGetAllTreeNodesRecord` | findMany, findOne, update, delete | | `platformInfraObject` | findMany, findOne, create, update, delete | | `platformInfraRef` | findMany, findOne, create, update, delete | | `platformInfraStore` | findMany, findOne, create, update, delete | @@ -102,18 +100,19 @@ const db = createClient({ | `platformRepositoryRequiredCheck` | findMany, findOne, create, update, delete | | `platformRepositoryWorkflow` | findMany, findOne, create, update, delete | | `platformResource` | findMany, findOne, create, update, delete | -| `platformResourceDeclaredCapacity` | findMany, findOne, create, update, delete | +| `platformResourceDeclaredCapacity` | findMany, findOne, update, delete | | `platformResourceDefinition` | findMany, findOne, create, update, delete | | `platformResourceEvent` | findMany, findOne, create, update, delete | | `platformResourceInstallation` | findMany, findOne, create, update, delete | -| `platformResourceObservedStorage` | findMany, findOne, create, update, delete | +| `platformResourceObservedStorage` | findMany, findOne, update, delete | | `platformResourceStatusCheck` | findMany, findOne, create, update, delete | | `platformResourceUsageLog` | findMany, findOne, create, update, delete | | `platformResourceUsageSummary` | findMany, findOne, create, update, delete | -| `platformResourceUtilization` | findMany, findOne, create, update, delete | -| `platformResourcesHealth` | findMany, findOne, create, update, delete | -| `platformResourcesRequirementsState` | findMany, findOne, create, update, delete | -| `platformResourcesResolvedRequirement` | findMany, findOne, create, update, delete | +| `platformResourceUtilization` | findMany, findOne, update, delete | +| `platformResourcesHealth` | findMany, findOne, update, delete | +| `platformResourcesRequirementsState` | findMany, findOne, update, delete | +| `platformResourcesResolvedRequirement` | findMany, findOne, update, delete | +| `platformServiceBinding` | findMany, findOne, create, update, delete | | `platformWebhookEndpoint` | findMany, findOne, create, update, delete | | `platformWebhookEvent` | findMany, findOne, create, update, delete | | `proposalComment` | findMany, findOne, create, update, delete | @@ -130,18 +129,19 @@ const db = createClient({ | `repositoryRequiredCheck` | findMany, findOne, create, update, delete | | `repositoryWorkflow` | findMany, findOne, create, update, delete | | `resource` | findMany, findOne, create, update, delete | -| `resourceDeclaredCapacity` | findMany, findOne, create, update, delete | +| `resourceDeclaredCapacity` | findMany, findOne, update, delete | | `resourceDefinition` | findMany, findOne, create, update, delete | | `resourceEvent` | findMany, findOne, create, update, delete | | `resourceInstallation` | findMany, findOne, create, update, delete | -| `resourceObservedStorage` | findMany, findOne, create, update, delete | +| `resourceObservedStorage` | findMany, findOne, update, delete | | `resourceStatusCheck` | findMany, findOne, create, update, delete | | `resourceUsageLog` | findMany, findOne, create, update, delete | | `resourceUsageSummary` | findMany, findOne, create, update, delete | -| `resourceUtilization` | findMany, findOne, create, update, delete | -| `resourcesHealth` | findMany, findOne, create, update, delete | -| `resourcesRequirementsState` | findMany, findOne, create, update, delete | -| `resourcesResolvedRequirement` | findMany, findOne, create, update, delete | +| `resourceUtilization` | findMany, findOne, update, delete | +| `resourcesHealth` | findMany, findOne, update, delete | +| `resourcesRequirementsState` | findMany, findOne, update, delete | +| `resourcesResolvedRequirement` | findMany, findOne, update, delete | +| `serviceBinding` | findMany, findOne, create, update, delete | | `webhookEndpoint` | findMany, findOne, create, update, delete | | `webhookEvent` | findMany, findOne, create, update, delete | @@ -168,6 +168,8 @@ CRUD operations for Build records. | `imageRef` | String | Yes | | `jobId` | BigInt | Yes | | `logs` | ConstructiveInternalTypeUpload | Yes | +| `logsUrl` | String | No | +| `logsVersions` | FileVersion | No | | `matrixKey` | String | Yes | | `metadata` | JSON | Yes | | `proposalId` | UUID | Yes | @@ -242,49 +244,6 @@ const updated = await db.buildStep.update({ where: { id: '' }, data: { bui const deleted = await db.buildStep.delete({ where: { id: '' } }).execute(); ``` -### `db.builderBinding` - -CRUD operations for BuilderBinding records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `createdAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `createdByPrincipal` | UUID | Yes | -| `databaseId` | UUID | Yes | -| `id` | UUID | No | -| `installationId` | UUID | Yes | -| `lastError` | String | Yes | -| `metadata` | JSON | Yes | -| `namespaceId` | UUID | Yes | -| `observedHost` | String | Yes | -| `realm` | String | Yes | -| `status` | String | Yes | -| `updatedAt` | Datetime | No | -| `updatedBy` | UUID | Yes | -| `updatedByPrincipal` | UUID | Yes | - -**Operations:** - -```typescript -// List all builderBinding records -const items = await db.builderBinding.findMany({ select: { createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, installationId: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); - -// Get one by id -const item = await db.builderBinding.findOne({ id: '', select: { createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, installationId: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); - -// Create -const created = await db.builderBinding.create({ data: { createdBy: '', createdByPrincipal: '', databaseId: '', installationId: '', lastError: '', metadata: '', namespaceId: '', observedHost: '', realm: '', status: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.builderBinding.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.builderBinding.delete({ where: { id: '' } }).execute(); -``` - ### `db.contentPreset` CRUD operations for ContentPreset records. @@ -354,9 +313,6 @@ const items = await db.databaseFunctionGraph.findMany({ select: { context: true, // Get one by id const item = await db.databaseFunctionGraph.findOne({ id: '', select: { context: true, createdAt: true, createdBy: true, databaseId: true, definitionsCommitId: true, description: true, id: true, isValid: true, name: true, storeId: true, updatedAt: true, validationErrors: true } }).execute(); -// Create -const created = await db.databaseFunctionGraph.create({ data: { context: '', createdBy: '', databaseId: '', definitionsCommitId: '', description: '', isValid: '', name: '', storeId: '', validationErrors: '' }, select: { id: true } }).execute(); - // Update const updated = await db.databaseFunctionGraph.update({ where: { id: '' }, data: { context: '' }, select: { id: true } }).execute(); @@ -595,9 +551,6 @@ const items = await db.databaseGraphGetAllTreeNodesRecord.findMany({ select: { d // Get one by id const item = await db.databaseGraphGetAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: true } }).execute(); -// Create -const created = await db.databaseGraphGetAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); - // Update const updated = await db.databaseGraphGetAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); @@ -829,8 +782,8 @@ CRUD operations for FunctionDefinition records. | `anonymousCallable` | Boolean | Yes | | `category` | String | Yes | | `concurrency` | Int | Yes | -| `cpuLimitMillicores` | BigInt | Yes | -| `cpuRequestMillicores` | BigInt | Yes | +| `cpuLimitMillicores` | BigInt | No | +| `cpuRequestMillicores` | BigInt | No | | `createdAt` | Datetime | No | | `createdByPrincipal` | UUID | Yes | | `databaseId` | UUID | Yes | @@ -845,8 +798,8 @@ CRUD operations for FunctionDefinition records. | `integrations` | String | Yes | | `isPublished` | Boolean | Yes | | `maxAttempts` | Int | Yes | -| `memoryLimitBytes` | BigInt | Yes | -| `memoryRequestBytes` | BigInt | Yes | +| `memoryLimitBytes` | BigInt | No | +| `memoryRequestBytes` | BigInt | No | | `moduleTable` | String | Yes | | `name` | String | Yes | | `outputs` | JSON | Yes | @@ -868,7 +821,7 @@ CRUD operations for FunctionDefinition records. | `scaleMin` | Int | Yes | | `targetFunction` | String | Yes | | `targetSchema` | String | Yes | -| `taskIdentifier` | String | Yes | +| `taskIdentifier` | String | No | | `timeoutSeconds` | Int | Yes | | `updatedAt` | Datetime | No | | `updatedByPrincipal` | UUID | Yes | @@ -878,13 +831,13 @@ CRUD operations for FunctionDefinition records. ```typescript // List all functionDefinition records -const items = await db.functionDefinition.findMany({ select: { accessChannels: true, anonymousCallable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdByPrincipal: true, databaseId: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredCapabilities: true, requiredConfigs: true, requiredModels: true, requiredModules: true, requiredSecrets: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, updatedByPrincipal: true, volatile: true } }).execute(); +const items = await db.functionDefinition.findMany({ select: { accessChannels: true, anonymousCallable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdByPrincipal: true, databaseId: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredCapabilities: true, requiredModels: true, requiredModules: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, updatedByPrincipal: true, volatile: true } }).execute(); // Get one by id -const item = await db.functionDefinition.findOne({ id: '', select: { accessChannels: true, anonymousCallable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdByPrincipal: true, databaseId: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredCapabilities: true, requiredConfigs: true, requiredModels: true, requiredModules: true, requiredSecrets: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, updatedByPrincipal: true, volatile: true } }).execute(); +const item = await db.functionDefinition.findOne({ id: '', select: { accessChannels: true, anonymousCallable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdByPrincipal: true, databaseId: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredCapabilities: true, requiredModels: true, requiredModules: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, updatedByPrincipal: true, volatile: true } }).execute(); // Create -const created = await db.functionDefinition.create({ data: { accessChannels: '', anonymousCallable: '', category: '', concurrency: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdByPrincipal: '', databaseId: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', memoryLimitBytes: '', memoryRequestBytes: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredCapabilities: '', requiredConfigs: '', requiredModels: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', updatedByPrincipal: '', volatile: '' }, select: { id: true } }).execute(); +const created = await db.functionDefinition.create({ data: { accessChannels: '', anonymousCallable: '', category: '', concurrency: '', createdByPrincipal: '', databaseId: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredCapabilities: '', requiredConfigs: '', requiredModels: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', targetFunction: '', targetSchema: '', timeoutSeconds: '', updatedByPrincipal: '', volatile: '' }, select: { id: true } }).execute(); // Update const updated = await db.functionDefinition.update({ where: { id: '' }, data: { accessChannels: '' }, select: { id: true } }).execute(); @@ -1086,9 +1039,6 @@ const items = await db.functionGraph.findMany({ select: { context: true, created // Get one by id const item = await db.functionGraph.findOne({ id: '', select: { context: true, createdAt: true, createdBy: true, definitionsCommitId: true, description: true, id: true, isValid: true, name: true, scopeId: true, storeId: true, updatedAt: true, validationErrors: true } }).execute(); -// Create -const created = await db.functionGraph.create({ data: { context: '', createdBy: '', definitionsCommitId: '', description: '', isValid: '', name: '', scopeId: '', storeId: '', validationErrors: '' }, select: { id: true } }).execute(); - // Update const updated = await db.functionGraph.update({ where: { id: '' }, data: { context: '' }, select: { id: true } }).execute(); @@ -1527,9 +1477,6 @@ const items = await db.getAllTreeNodesRecord.findMany({ select: { data: true, pa // Get one by id const item = await db.getAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: true } }).execute(); -// Create -const created = await db.getAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); - // Update const updated = await db.getAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); @@ -1681,9 +1628,6 @@ const items = await db.infraGetAllTreeNodesRecord.findMany({ select: { data: tru // Get one by id const item = await db.infraGetAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: true } }).execute(); -// Create -const created = await db.infraGetAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); - // Update const updated = await db.infraGetAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); @@ -1806,6 +1750,8 @@ CRUD operations for IntegrationProvider records. | `icon` | String | Yes | | `id` | UUID | No | | `logo` | ConstructiveInternalTypeImage | Yes | +| `logoUrl` | String | No | +| `logoVersions` | FileVersion | No | | `name` | String | Yes | | `requiredConfigs` | ResourceRequirement | Yes | | `requiredSecrets` | ResourceRequirement | Yes | @@ -1816,10 +1762,10 @@ CRUD operations for IntegrationProvider records. ```typescript // List all integrationProvider records -const items = await db.integrationProvider.findMany({ select: { brand: true, category: true, createdAt: true, description: true, icon: true, id: true, logo: true, name: true, requiredConfigs: true, requiredSecrets: true, slug: true, updatedAt: true } }).execute(); +const items = await db.integrationProvider.findMany({ select: { brand: true, category: true, createdAt: true, description: true, icon: true, id: true, logo: true, name: true, slug: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.integrationProvider.findOne({ id: '', select: { brand: true, category: true, createdAt: true, description: true, icon: true, id: true, logo: true, name: true, requiredConfigs: true, requiredSecrets: true, slug: true, updatedAt: true } }).execute(); +const item = await db.integrationProvider.findOne({ id: '', select: { brand: true, category: true, createdAt: true, description: true, icon: true, id: true, logo: true, name: true, slug: true, updatedAt: true } }).execute(); // Create const created = await db.integrationProvider.create({ data: { brand: '', category: '', description: '', icon: '', logo: '', name: '', requiredConfigs: '', requiredSecrets: '', slug: '' }, select: { id: true } }).execute(); @@ -1929,6 +1875,8 @@ CRUD operations for PlatformBuild records. | `imageRef` | String | Yes | | `jobId` | BigInt | Yes | | `logs` | ConstructiveInternalTypeUpload | Yes | +| `logsUrl` | String | No | +| `logsVersions` | FileVersion | No | | `matrixKey` | String | Yes | | `metadata` | JSON | Yes | | `proposalId` | UUID | Yes | @@ -2002,48 +1950,6 @@ const updated = await db.platformBuildStep.update({ where: { id: '' }, dat const deleted = await db.platformBuildStep.delete({ where: { id: '' } }).execute(); ``` -### `db.platformBuilderBinding` - -CRUD operations for PlatformBuilderBinding records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `createdAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `createdByPrincipal` | UUID | Yes | -| `id` | UUID | No | -| `installationId` | UUID | Yes | -| `lastError` | String | Yes | -| `metadata` | JSON | Yes | -| `namespaceId` | UUID | Yes | -| `observedHost` | String | Yes | -| `realm` | String | Yes | -| `status` | String | Yes | -| `updatedAt` | Datetime | No | -| `updatedBy` | UUID | Yes | -| `updatedByPrincipal` | UUID | Yes | - -**Operations:** - -```typescript -// List all platformBuilderBinding records -const items = await db.platformBuilderBinding.findMany({ select: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, installationId: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); - -// Get one by id -const item = await db.platformBuilderBinding.findOne({ id: '', select: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, installationId: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); - -// Create -const created = await db.platformBuilderBinding.create({ data: { createdBy: '', createdByPrincipal: '', installationId: '', lastError: '', metadata: '', namespaceId: '', observedHost: '', realm: '', status: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.platformBuilderBinding.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.platformBuilderBinding.delete({ where: { id: '' } }).execute(); -``` - ### `db.platformFunctionApiBinding` CRUD operations for PlatformFunctionApiBinding records. @@ -2129,8 +2035,8 @@ CRUD operations for PlatformFunctionDefinition records. | `billable` | Boolean | Yes | | `category` | String | Yes | | `concurrency` | Int | Yes | -| `cpuLimitMillicores` | BigInt | Yes | -| `cpuRequestMillicores` | BigInt | Yes | +| `cpuLimitMillicores` | BigInt | No | +| `cpuRequestMillicores` | BigInt | No | | `createdAt` | Datetime | No | | `createdByPrincipal` | UUID | Yes | | `description` | String | Yes | @@ -2144,8 +2050,8 @@ CRUD operations for PlatformFunctionDefinition records. | `integrations` | String | Yes | | `isPublished` | Boolean | Yes | | `maxAttempts` | Int | Yes | -| `memoryLimitBytes` | BigInt | Yes | -| `memoryRequestBytes` | BigInt | Yes | +| `memoryLimitBytes` | BigInt | No | +| `memoryRequestBytes` | BigInt | No | | `moduleTable` | String | Yes | | `name` | String | Yes | | `outputs` | JSON | Yes | @@ -2168,7 +2074,7 @@ CRUD operations for PlatformFunctionDefinition records. | `system` | Boolean | Yes | | `targetFunction` | String | Yes | | `targetSchema` | String | Yes | -| `taskIdentifier` | String | Yes | +| `taskIdentifier` | String | No | | `timeoutSeconds` | Int | Yes | | `updatedAt` | Datetime | No | | `updatedByPrincipal` | UUID | Yes | @@ -2178,13 +2084,13 @@ CRUD operations for PlatformFunctionDefinition records. ```typescript // List all platformFunctionDefinition records -const items = await db.platformFunctionDefinition.findMany({ select: { accessChannels: true, anonymousCallable: true, billable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdByPrincipal: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredCapabilities: true, requiredConfigs: true, requiredModels: true, requiredModules: true, requiredSecrets: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, system: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, updatedByPrincipal: true, volatile: true } }).execute(); +const items = await db.platformFunctionDefinition.findMany({ select: { accessChannels: true, anonymousCallable: true, billable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdByPrincipal: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredCapabilities: true, requiredModels: true, requiredModules: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, system: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, updatedByPrincipal: true, volatile: true } }).execute(); // Get one by id -const item = await db.platformFunctionDefinition.findOne({ id: '', select: { accessChannels: true, anonymousCallable: true, billable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdByPrincipal: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredCapabilities: true, requiredConfigs: true, requiredModels: true, requiredModules: true, requiredSecrets: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, system: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, updatedByPrincipal: true, volatile: true } }).execute(); +const item = await db.platformFunctionDefinition.findOne({ id: '', select: { accessChannels: true, anonymousCallable: true, billable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdByPrincipal: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredCapabilities: true, requiredModels: true, requiredModules: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, system: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, updatedByPrincipal: true, volatile: true } }).execute(); // Create -const created = await db.platformFunctionDefinition.create({ data: { accessChannels: '', anonymousCallable: '', billable: '', category: '', concurrency: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdByPrincipal: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', memoryLimitBytes: '', memoryRequestBytes: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredCapabilities: '', requiredConfigs: '', requiredModels: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', system: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', updatedByPrincipal: '', volatile: '' }, select: { id: true } }).execute(); +const created = await db.platformFunctionDefinition.create({ data: { accessChannels: '', anonymousCallable: '', billable: '', category: '', concurrency: '', createdByPrincipal: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredCapabilities: '', requiredConfigs: '', requiredModels: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', system: '', targetFunction: '', targetSchema: '', timeoutSeconds: '', updatedByPrincipal: '', volatile: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformFunctionDefinition.update({ where: { id: '' }, data: { accessChannels: '' }, select: { id: true } }).execute(); @@ -2593,9 +2499,6 @@ const items = await db.platformInfraGetAllTreeNodesRecord.findMany({ select: { d // Get one by id const item = await db.platformInfraGetAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: true } }).execute(); -// Create -const created = await db.platformInfraGetAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); - // Update const updated = await db.platformInfraGetAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); @@ -2865,24 +2768,28 @@ CRUD operations for PlatformProposalComment records. |-------|------|----------| | `actorId` | UUID | Yes | | `attachments` | ConstructiveInternalTypeUpload | Yes | +| `attachmentsUrl` | String | No | +| `attachmentsVersions` | FileVersion | No | | `body` | String | Yes | -| `bodyTrgmSimilarity` | Float | Yes | +| `bodyTrgmSimilarity` | Float | No | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | | `createdByPrincipal` | UUID | Yes | | `embedding` | Vector | Yes | -| `embeddingUpdatedAt` | Datetime | Yes | -| `embeddingVectorDistance` | Float | Yes | +| `embeddingModel` | String | No | +| `embeddingModelTrgmSimilarity` | Float | No | +| `embeddingUpdatedAt` | Datetime | No | +| `embeddingVectorDistance` | Float | No | | `id` | UUID | No | | `line` | Int | Yes | | `outdatedAt` | Datetime | Yes | | `path` | String | Yes | -| `pathTrgmSimilarity` | Float | Yes | +| `pathTrgmSimilarity` | Float | No | | `proposalId` | UUID | Yes | | `resolvedAt` | Datetime | Yes | -| `search` | FullText | Yes | -| `searchScore` | Float | Yes | -| `searchTsvRank` | Float | Yes | +| `search` | FullText | No | +| `searchScore` | Float | No | +| `searchTsvRank` | Float | No | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | | `updatedByPrincipal` | UUID | Yes | @@ -2891,13 +2798,13 @@ CRUD operations for PlatformProposalComment records. ```typescript // List all platformProposalComment records -const items = await db.platformProposalComment.findMany({ select: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const items = await db.platformProposalComment.findMany({ select: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.platformProposalComment.findOne({ id: '', select: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const item = await db.platformProposalComment.findOne({ id: '', select: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.platformProposalComment.create({ data: { actorId: '', attachments: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', line: '', outdatedAt: '', path: '', pathTrgmSimilarity: '', proposalId: '', resolvedAt: '', search: '', searchScore: '', searchTsvRank: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); +const created = await db.platformProposalComment.create({ data: { actorId: '', attachments: '', body: '', createdBy: '', createdByPrincipal: '', embedding: '', line: '', outdatedAt: '', path: '', proposalId: '', resolvedAt: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformProposalComment.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -2922,25 +2829,27 @@ CRUD operations for PlatformProposal records. |-------|------|----------| | `actorId` | UUID | Yes | | `body` | String | Yes | -| `bodyTrgmSimilarity` | Float | Yes | +| `bodyTrgmSimilarity` | Float | No | | `closedReason` | String | Yes | -| `closedReasonTrgmSimilarity` | Float | Yes | +| `closedReasonTrgmSimilarity` | Float | No | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | | `createdByPrincipal` | UUID | Yes | | `decidedAt` | Datetime | Yes | | `dueAt` | Datetime | Yes | | `embedding` | Vector | Yes | -| `embeddingUpdatedAt` | Datetime | Yes | -| `embeddingVectorDistance` | Float | Yes | +| `embeddingModel` | String | No | +| `embeddingModelTrgmSimilarity` | Float | No | +| `embeddingUpdatedAt` | Datetime | No | +| `embeddingVectorDistance` | Float | No | | `id` | UUID | No | | `kind` | String | Yes | -| `kindTrgmSimilarity` | Float | Yes | +| `kindTrgmSimilarity` | Float | No | | `labels` | String | Yes | | `mergeCommit` | String | Yes | -| `mergeCommitTrgmSimilarity` | Float | Yes | +| `mergeCommitTrgmSimilarity` | Float | No | | `mergeMethod` | String | Yes | -| `mergeMethodTrgmSimilarity` | Float | Yes | +| `mergeMethodTrgmSimilarity` | Float | No | | `mergeRequestedAt` | Datetime | Yes | | `mergedAt` | Datetime | Yes | | `metadata` | JSON | Yes | @@ -2948,18 +2857,18 @@ CRUD operations for PlatformProposal records. | `priority` | BigFloat | Yes | | `repositoryId` | UUID | Yes | | `resolution` | String | Yes | -| `resolutionTrgmSimilarity` | Float | Yes | -| `search` | FullText | Yes | -| `searchScore` | Float | Yes | -| `searchTsvRank` | Float | Yes | +| `resolutionTrgmSimilarity` | Float | No | +| `search` | FullText | No | +| `searchScore` | Float | No | +| `searchTsvRank` | Float | No | | `sourceRef` | String | Yes | -| `sourceRefTrgmSimilarity` | Float | Yes | +| `sourceRefTrgmSimilarity` | Float | No | | `status` | String | Yes | -| `statusTrgmSimilarity` | Float | Yes | +| `statusTrgmSimilarity` | Float | No | | `targetRef` | String | Yes | -| `targetRefTrgmSimilarity` | Float | Yes | +| `targetRefTrgmSimilarity` | Float | No | | `title` | String | Yes | -| `titleTrgmSimilarity` | Float | Yes | +| `titleTrgmSimilarity` | Float | No | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | | `updatedByPrincipal` | UUID | Yes | @@ -2968,13 +2877,13 @@ CRUD operations for PlatformProposal records. ```typescript // List all platformProposal records -const items = await db.platformProposal.findMany({ select: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const items = await db.platformProposal.findMany({ select: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, decidedAt: true, dueAt: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.platformProposal.findOne({ id: '', select: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const item = await db.platformProposal.findOne({ id: '', select: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, decidedAt: true, dueAt: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.platformProposal.create({ data: { actorId: '', body: '', bodyTrgmSimilarity: '', closedReason: '', closedReasonTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', decidedAt: '', dueAt: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', kind: '', kindTrgmSimilarity: '', labels: '', mergeCommit: '', mergeCommitTrgmSimilarity: '', mergeMethod: '', mergeMethodTrgmSimilarity: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', resolutionTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', sourceRef: '', sourceRefTrgmSimilarity: '', status: '', statusTrgmSimilarity: '', targetRef: '', targetRefTrgmSimilarity: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); +const created = await db.platformProposal.create({ data: { actorId: '', body: '', closedReason: '', createdBy: '', createdByPrincipal: '', decidedAt: '', dueAt: '', embedding: '', kind: '', labels: '', mergeCommit: '', mergeMethod: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', sourceRef: '', status: '', targetRef: '', title: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformProposal.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -3073,22 +2982,22 @@ CRUD operations for PlatformProposalReview records. | Field | Type | Editable | |-------|------|----------| | `body` | String | Yes | -| `bodyTrgmSimilarity` | Float | Yes | +| `bodyTrgmSimilarity` | Float | No | | `commitSha` | String | Yes | -| `commitShaTrgmSimilarity` | Float | Yes | +| `commitShaTrgmSimilarity` | Float | No | | `createdAt` | Datetime | No | | `createdByPrincipal` | UUID | Yes | | `id` | UUID | No | | `proposalId` | UUID | Yes | | `reviewerId` | UUID | Yes | -| `search` | FullText | Yes | -| `searchScore` | Float | Yes | -| `searchTsvRank` | Float | Yes | +| `search` | FullText | No | +| `searchScore` | Float | No | +| `searchTsvRank` | Float | No | | `submittedAt` | Datetime | Yes | | `updatedAt` | Datetime | No | | `updatedByPrincipal` | UUID | Yes | | `verdict` | String | Yes | -| `verdictTrgmSimilarity` | Float | Yes | +| `verdictTrgmSimilarity` | Float | No | **Operations:** @@ -3100,7 +3009,7 @@ const items = await db.platformProposalReview.findMany({ select: { body: true, b const item = await db.platformProposalReview.findOne({ id: '', select: { body: true, bodyTrgmSimilarity: true, commitSha: true, commitShaTrgmSimilarity: true, createdAt: true, createdByPrincipal: true, id: true, proposalId: true, reviewerId: true, search: true, searchScore: true, searchTsvRank: true, submittedAt: true, updatedAt: true, updatedByPrincipal: true, verdict: true, verdictTrgmSimilarity: true } }).execute(); // Create -const created = await db.platformProposalReview.create({ data: { body: '', bodyTrgmSimilarity: '', commitSha: '', commitShaTrgmSimilarity: '', createdByPrincipal: '', proposalId: '', reviewerId: '', search: '', searchScore: '', searchTsvRank: '', submittedAt: '', updatedByPrincipal: '', verdict: '', verdictTrgmSimilarity: '' }, select: { id: true } }).execute(); +const created = await db.platformProposalReview.create({ data: { body: '', commitSha: '', createdByPrincipal: '', proposalId: '', reviewerId: '', submittedAt: '', updatedByPrincipal: '', verdict: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformProposalReview.update({ where: { id: '' }, data: { body: '' }, select: { id: true } }).execute(); @@ -3125,11 +3034,11 @@ CRUD operations for PlatformProposalsChunk records. | `chunkIndex` | Int | Yes | | `createdAt` | Datetime | No | | `embedding` | Vector | Yes | -| `embeddingVectorDistance` | Float | Yes | +| `embeddingVectorDistance` | Float | No | | `id` | UUID | No | | `metadata` | JSON | Yes | | `platformProposalsId` | UUID | Yes | -| `searchScore` | Float | Yes | +| `searchScore` | Float | No | | `updatedAt` | Datetime | No | **Operations:** @@ -3142,7 +3051,7 @@ const items = await db.platformProposalsChunk.findMany({ select: { actorId: true const item = await db.platformProposalsChunk.findOne({ id: '', select: { actorId: true, body: true, chunkIndex: true, createdAt: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, platformProposalsId: true, searchScore: true, updatedAt: true } }).execute(); // Create -const created = await db.platformProposalsChunk.create({ data: { actorId: '', body: '', chunkIndex: '', embedding: '', embeddingVectorDistance: '', metadata: '', platformProposalsId: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.platformProposalsChunk.create({ data: { actorId: '', body: '', chunkIndex: '', embedding: '', metadata: '', platformProposalsId: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformProposalsChunk.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -3292,49 +3201,51 @@ CRUD operations for PlatformRepository records. | Field | Type | Editable | |-------|------|----------| | `cloneUrl` | String | Yes | -| `cloneUrlTrgmSimilarity` | Float | Yes | +| `cloneUrlTrgmSimilarity` | Float | No | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | | `createdByPrincipal` | UUID | Yes | | `defaultBranch` | String | Yes | -| `defaultBranchTrgmSimilarity` | Float | Yes | +| `defaultBranchTrgmSimilarity` | Float | No | | `description` | String | Yes | -| `descriptionTrgmSimilarity` | Float | Yes | +| `descriptionTrgmSimilarity` | Float | No | | `embedding` | Vector | Yes | -| `embeddingUpdatedAt` | Datetime | Yes | -| `embeddingVectorDistance` | Float | Yes | +| `embeddingModel` | String | No | +| `embeddingModelTrgmSimilarity` | Float | No | +| `embeddingUpdatedAt` | Datetime | No | +| `embeddingVectorDistance` | Float | No | | `externalId` | String | Yes | -| `externalIdTrgmSimilarity` | Float | Yes | +| `externalIdTrgmSimilarity` | Float | No | | `id` | UUID | No | | `isArchived` | Boolean | Yes | | `metadata` | JSON | Yes | | `name` | String | Yes | -| `nameTrgmSimilarity` | Float | Yes | +| `nameTrgmSimilarity` | Float | No | | `ownerId` | UUID | Yes | | `provider` | String | Yes | -| `providerTrgmSimilarity` | Float | Yes | -| `search` | FullText | Yes | -| `searchScore` | Float | Yes | -| `searchTsvRank` | Float | Yes | +| `providerTrgmSimilarity` | Float | No | +| `search` | FullText | No | +| `searchScore` | Float | No | +| `searchTsvRank` | Float | No | | `slug` | String | Yes | -| `slugTrgmSimilarity` | Float | Yes | +| `slugTrgmSimilarity` | Float | No | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | | `updatedByPrincipal` | UUID | Yes | | `visibility` | String | Yes | -| `visibilityTrgmSimilarity` | Float | Yes | +| `visibilityTrgmSimilarity` | Float | No | **Operations:** ```typescript // List all platformRepository records -const items = await db.platformRepository.findMany({ select: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }).execute(); +const items = await db.platformRepository.findMany({ select: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }).execute(); // Get one by id -const item = await db.platformRepository.findOne({ id: '', select: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }).execute(); +const item = await db.platformRepository.findOne({ id: '', select: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }).execute(); // Create -const created = await db.platformRepository.create({ data: { cloneUrl: '', cloneUrlTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', defaultBranch: '', defaultBranchTrgmSimilarity: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', externalId: '', externalIdTrgmSimilarity: '', isArchived: '', metadata: '', name: '', nameTrgmSimilarity: '', ownerId: '', provider: '', providerTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', slug: '', slugTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '', visibility: '', visibilityTrgmSimilarity: '' }, select: { id: true } }).execute(); +const created = await db.platformRepository.create({ data: { cloneUrl: '', createdBy: '', createdByPrincipal: '', defaultBranch: '', description: '', embedding: '', externalId: '', isArchived: '', metadata: '', name: '', ownerId: '', provider: '', slug: '', updatedBy: '', updatedByPrincipal: '', visibility: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformRepository.update({ where: { id: '' }, data: { cloneUrl: '' }, select: { id: true } }).execute(); @@ -3478,8 +3389,8 @@ CRUD operations for PlatformResource records. | Field | Type | Editable | |-------|------|----------| | `annotations` | JSON | Yes | -| `cpuLimitMillicores` | BigInt | Yes | -| `cpuRequestMillicores` | BigInt | Yes | +| `cpuLimitMillicores` | BigInt | No | +| `cpuRequestMillicores` | BigInt | No | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | | `createdByPrincipal` | UUID | Yes | @@ -3492,12 +3403,12 @@ CRUD operations for PlatformResource records. | `labels` | JSON | Yes | | `lastError` | String | Yes | | `lastHeartbeatAt` | Datetime | Yes | -| `memoryLimitBytes` | BigInt | Yes | -| `memoryRequestBytes` | BigInt | Yes | +| `memoryLimitBytes` | BigInt | No | +| `memoryRequestBytes` | BigInt | No | | `name` | String | Yes | | `namespaceId` | UUID | Yes | | `realm` | String | Yes | -| `replicas` | Int | Yes | +| `replicas` | Int | No | | `requiredConfigs` | ResourceRequirement | Yes | | `requiredSecrets` | ResourceRequirement | Yes | | `resourceDefinitionId` | UUID | Yes | @@ -3505,9 +3416,9 @@ CRUD operations for PlatformResource records. | `spec` | JSON | Yes | | `status` | String | Yes | | `statusObserved` | JSON | Yes | -| `storageClass` | String | Yes | -| `storageSizeBytes` | BigInt | Yes | -| `storageTotalBytes` | BigInt | Yes | +| `storageClass` | String | No | +| `storageSizeBytes` | BigInt | No | +| `storageTotalBytes` | BigInt | No | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | | `updatedByPrincipal` | UUID | Yes | @@ -3516,13 +3427,13 @@ CRUD operations for PlatformResource records. ```typescript // List all platformResource records -const items = await db.platformResource.findMany({ select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const items = await db.platformResource.findMany({ select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.platformResource.findOne({ id: '', select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const item = await db.platformResource.findOne({ id: '', select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.platformResource.create({ data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); +const created = await db.platformResource.create({ data: { annotations: '', createdBy: '', createdByPrincipal: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', name: '', namespaceId: '', realm: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformResource.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -3563,9 +3474,6 @@ const items = await db.platformResourceDeclaredCapacity.findMany({ select: { cpu // Get one by id const item = await db.platformResourceDeclaredCapacity.findOne({ id: '', select: { cpuLimitMillicores: true, cpuRequestMillicores: true, installationId: true, isTransient: true, kind: true, memoryLimitBytes: true, memoryRequestBytes: true, namespaceId: true, podCountMax: true, podCountMin: true, source: true, sourceId: true, storageSizeBytes: true, storageTotalBytes: true } }).execute(); -// Create -const created = await db.platformResourceDeclaredCapacity.create({ data: { cpuLimitMillicores: '', cpuRequestMillicores: '', installationId: '', isTransient: '', kind: '', memoryLimitBytes: '', memoryRequestBytes: '', namespaceId: '', podCountMax: '', podCountMin: '', source: '', sourceId: '', storageSizeBytes: '', storageTotalBytes: '' }, select: { id: true } }).execute(); - // Update const updated = await db.platformResourceDeclaredCapacity.update({ where: { id: '' }, data: { cpuLimitMillicores: '' }, select: { id: true } }).execute(); @@ -3606,10 +3514,10 @@ CRUD operations for PlatformResourceDefinition records. ```typescript // List all platformResourceDefinition records -const items = await db.platformResourceDefinition.findMany({ select: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const items = await db.platformResourceDefinition.findMany({ select: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.platformResourceDefinition.findOne({ id: '', select: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const item = await db.platformResourceDefinition.findOne({ id: '', select: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create const created = await db.platformResourceDefinition.create({ data: { annotations: '', createdBy: '', createdByPrincipal: '', defaultSpec: '', description: '', integrations: '', kind: '', labels: '', name: '', namespaceId: '', paramsSchema: '', requiredConfigs: '', requiredSecrets: '', slug: '', stepUpMinAge: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); @@ -3735,9 +3643,6 @@ const items = await db.platformResourceObservedStorage.findMany({ select: { capa // Get one by id const item = await db.platformResourceObservedStorage.findOne({ id: '', select: { capacity: true, capacityBytes: true, claimName: true, declaredStorageClass: true, declaredStorageSizeBytes: true, declaredStorageTotalBytes: true, installationId: true, isBound: true, kind: true, namespaceId: true, phase: true, requested: true, requestedBytes: true, resourceId: true, resourceStatus: true, slug: true, storageClass: true, storageName: true } }).execute(); -// Create -const created = await db.platformResourceObservedStorage.create({ data: { capacity: '', capacityBytes: '', claimName: '', declaredStorageClass: '', declaredStorageSizeBytes: '', declaredStorageTotalBytes: '', installationId: '', isBound: '', kind: '', namespaceId: '', phase: '', requested: '', requestedBytes: '', resourceId: '', resourceStatus: '', slug: '', storageClass: '', storageName: '' }, select: { id: true } }).execute(); - // Update const updated = await db.platformResourceObservedStorage.update({ where: { id: '' }, data: { capacity: '' }, select: { id: true } }).execute(); @@ -3891,9 +3796,6 @@ const items = await db.platformResourceUtilization.findMany({ select: { avgMemor // Get one by id const item = await db.platformResourceUtilization.findOne({ id: '', select: { avgMemoryBytes: true, cpuLimitMillicores: true, cpuPeakUtilization: true, cpuRequestHeadroomMillicores: true, cpuRequestMillicores: true, date: true, gbSeconds: true, kind: true, maxCpuMillicores: true, maxMemoryBytes: true, memoryLimitBytes: true, memoryPeakUtilization: true, memoryRequestBytes: true, memoryRequestHeadroomBytes: true, namespaceId: true, replicas: true, resourceId: true, runtimeSeconds: true, sampleCount: true } }).execute(); -// Create -const created = await db.platformResourceUtilization.create({ data: { avgMemoryBytes: '', cpuLimitMillicores: '', cpuPeakUtilization: '', cpuRequestHeadroomMillicores: '', cpuRequestMillicores: '', date: '', gbSeconds: '', kind: '', maxCpuMillicores: '', maxMemoryBytes: '', memoryLimitBytes: '', memoryPeakUtilization: '', memoryRequestBytes: '', memoryRequestHeadroomBytes: '', namespaceId: '', replicas: '', resourceId: '', runtimeSeconds: '', sampleCount: '' }, select: { id: true } }).execute(); - // Update const updated = await db.platformResourceUtilization.update({ where: { id: '' }, data: { avgMemoryBytes: '' }, select: { id: true } }).execute(); @@ -3949,13 +3851,10 @@ CRUD operations for PlatformResourcesHealth records. ```typescript // List all platformResourcesHealth records -const items = await db.platformResourcesHealth.findMany({ select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const items = await db.platformResourcesHealth.findMany({ select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.platformResourcesHealth.findOne({ id: '', select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); - -// Create -const created = await db.platformResourcesHealth.create({ data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusDetail: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); +const item = await db.platformResourcesHealth.findOne({ id: '', select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Update const updated = await db.platformResourcesHealth.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -3989,9 +3888,6 @@ const items = await db.platformResourcesRequirementsState.findMany({ select: { c // Get one by id const item = await db.platformResourcesRequirementsState.findOne({ id: '', select: { configHash: true, configObjectName: true, requirementsHash: true, resourceId: true, secretsHash: true, secretsObjectName: true, slug: true } }).execute(); -// Create -const created = await db.platformResourcesRequirementsState.create({ data: { configHash: '', configObjectName: '', requirementsHash: '', resourceId: '', secretsHash: '', secretsObjectName: '', slug: '' }, select: { id: true } }).execute(); - // Update const updated = await db.platformResourcesRequirementsState.update({ where: { id: '' }, data: { configHash: '' }, select: { id: true } }).execute(); @@ -4028,9 +3924,6 @@ const items = await db.platformResourcesResolvedRequirement.findMany({ select: { // Get one by id const item = await db.platformResourcesResolvedRequirement.findOne({ id: '', select: { atomId: true, configObjectName: true, name: true, namespaceId: true, present: true, realm: true, required: true, requirementKind: true, resourceId: true, secretsObjectName: true, slug: true } }).execute(); -// Create -const created = await db.platformResourcesResolvedRequirement.create({ data: { atomId: '', configObjectName: '', name: '', namespaceId: '', present: '', realm: '', required: '', requirementKind: '', resourceId: '', secretsObjectName: '', slug: '' }, select: { id: true } }).execute(); - // Update const updated = await db.platformResourcesResolvedRequirement.update({ where: { id: '' }, data: { atomId: '' }, select: { id: true } }).execute(); @@ -4038,6 +3931,50 @@ const updated = await db.platformResourcesResolvedRequirement.update({ where: { const deleted = await db.platformResourcesResolvedRequirement.delete({ where: { id: '' } }).execute(); ``` +### `db.platformServiceBinding` + +CRUD operations for PlatformServiceBinding records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `id` | UUID | No | +| `installationId` | UUID | Yes | +| `installationScope` | String | Yes | +| `kind` | String | Yes | +| `lastError` | String | Yes | +| `metadata` | JSON | Yes | +| `namespaceId` | UUID | Yes | +| `observedHost` | String | Yes | +| `realm` | String | Yes | +| `status` | String | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformServiceBinding records +const items = await db.platformServiceBinding.findMany({ select: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, installationId: true, installationScope: true, kind: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.platformServiceBinding.findOne({ id: '', select: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, installationId: true, installationScope: true, kind: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.platformServiceBinding.create({ data: { createdBy: '', createdByPrincipal: '', installationId: '', installationScope: '', kind: '', lastError: '', metadata: '', namespaceId: '', observedHost: '', realm: '', status: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformServiceBinding.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformServiceBinding.delete({ where: { id: '' } }).execute(); +``` + ### `db.platformWebhookEndpoint` CRUD operations for PlatformWebhookEndpoint records. @@ -4131,25 +4068,29 @@ CRUD operations for ProposalComment records. |-------|------|----------| | `actorId` | UUID | Yes | | `attachments` | ConstructiveInternalTypeUpload | Yes | +| `attachmentsUrl` | String | No | +| `attachmentsVersions` | FileVersion | No | | `body` | String | Yes | -| `bodyTrgmSimilarity` | Float | Yes | +| `bodyTrgmSimilarity` | Float | No | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | | `createdByPrincipal` | UUID | Yes | | `databaseId` | UUID | Yes | | `embedding` | Vector | Yes | -| `embeddingUpdatedAt` | Datetime | Yes | -| `embeddingVectorDistance` | Float | Yes | +| `embeddingModel` | String | No | +| `embeddingModelTrgmSimilarity` | Float | No | +| `embeddingUpdatedAt` | Datetime | No | +| `embeddingVectorDistance` | Float | No | | `id` | UUID | No | | `line` | Int | Yes | | `outdatedAt` | Datetime | Yes | | `path` | String | Yes | -| `pathTrgmSimilarity` | Float | Yes | +| `pathTrgmSimilarity` | Float | No | | `proposalId` | UUID | Yes | | `resolvedAt` | Datetime | Yes | -| `search` | FullText | Yes | -| `searchScore` | Float | Yes | -| `searchTsvRank` | Float | Yes | +| `search` | FullText | No | +| `searchScore` | Float | No | +| `searchTsvRank` | Float | No | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | | `updatedByPrincipal` | UUID | Yes | @@ -4158,13 +4099,13 @@ CRUD operations for ProposalComment records. ```typescript // List all proposalComment records -const items = await db.proposalComment.findMany({ select: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const items = await db.proposalComment.findMany({ select: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.proposalComment.findOne({ id: '', select: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const item = await db.proposalComment.findOne({ id: '', select: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.proposalComment.create({ data: { actorId: '', attachments: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', line: '', outdatedAt: '', path: '', pathTrgmSimilarity: '', proposalId: '', resolvedAt: '', search: '', searchScore: '', searchTsvRank: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); +const created = await db.proposalComment.create({ data: { actorId: '', attachments: '', body: '', createdBy: '', createdByPrincipal: '', databaseId: '', embedding: '', line: '', outdatedAt: '', path: '', proposalId: '', resolvedAt: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.proposalComment.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -4189,9 +4130,9 @@ CRUD operations for Proposal records. |-------|------|----------| | `actorId` | UUID | Yes | | `body` | String | Yes | -| `bodyTrgmSimilarity` | Float | Yes | +| `bodyTrgmSimilarity` | Float | No | | `closedReason` | String | Yes | -| `closedReasonTrgmSimilarity` | Float | Yes | +| `closedReasonTrgmSimilarity` | Float | No | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | | `createdByPrincipal` | UUID | Yes | @@ -4199,16 +4140,18 @@ CRUD operations for Proposal records. | `decidedAt` | Datetime | Yes | | `dueAt` | Datetime | Yes | | `embedding` | Vector | Yes | -| `embeddingUpdatedAt` | Datetime | Yes | -| `embeddingVectorDistance` | Float | Yes | +| `embeddingModel` | String | No | +| `embeddingModelTrgmSimilarity` | Float | No | +| `embeddingUpdatedAt` | Datetime | No | +| `embeddingVectorDistance` | Float | No | | `id` | UUID | No | | `kind` | String | Yes | -| `kindTrgmSimilarity` | Float | Yes | +| `kindTrgmSimilarity` | Float | No | | `labels` | String | Yes | | `mergeCommit` | String | Yes | -| `mergeCommitTrgmSimilarity` | Float | Yes | +| `mergeCommitTrgmSimilarity` | Float | No | | `mergeMethod` | String | Yes | -| `mergeMethodTrgmSimilarity` | Float | Yes | +| `mergeMethodTrgmSimilarity` | Float | No | | `mergeRequestedAt` | Datetime | Yes | | `mergedAt` | Datetime | Yes | | `metadata` | JSON | Yes | @@ -4216,18 +4159,18 @@ CRUD operations for Proposal records. | `priority` | BigFloat | Yes | | `repositoryId` | UUID | Yes | | `resolution` | String | Yes | -| `resolutionTrgmSimilarity` | Float | Yes | -| `search` | FullText | Yes | -| `searchScore` | Float | Yes | -| `searchTsvRank` | Float | Yes | +| `resolutionTrgmSimilarity` | Float | No | +| `search` | FullText | No | +| `searchScore` | Float | No | +| `searchTsvRank` | Float | No | | `sourceRef` | String | Yes | -| `sourceRefTrgmSimilarity` | Float | Yes | +| `sourceRefTrgmSimilarity` | Float | No | | `status` | String | Yes | -| `statusTrgmSimilarity` | Float | Yes | +| `statusTrgmSimilarity` | Float | No | | `targetRef` | String | Yes | -| `targetRefTrgmSimilarity` | Float | Yes | +| `targetRefTrgmSimilarity` | Float | No | | `title` | String | Yes | -| `titleTrgmSimilarity` | Float | Yes | +| `titleTrgmSimilarity` | Float | No | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | | `updatedByPrincipal` | UUID | Yes | @@ -4236,13 +4179,13 @@ CRUD operations for Proposal records. ```typescript // List all proposal records -const items = await db.proposal.findMany({ select: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const items = await db.proposal.findMany({ select: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, decidedAt: true, dueAt: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.proposal.findOne({ id: '', select: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const item = await db.proposal.findOne({ id: '', select: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, decidedAt: true, dueAt: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.proposal.create({ data: { actorId: '', body: '', bodyTrgmSimilarity: '', closedReason: '', closedReasonTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', decidedAt: '', dueAt: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', kind: '', kindTrgmSimilarity: '', labels: '', mergeCommit: '', mergeCommitTrgmSimilarity: '', mergeMethod: '', mergeMethodTrgmSimilarity: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', resolutionTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', sourceRef: '', sourceRefTrgmSimilarity: '', status: '', statusTrgmSimilarity: '', targetRef: '', targetRefTrgmSimilarity: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); +const created = await db.proposal.create({ data: { actorId: '', body: '', closedReason: '', createdBy: '', createdByPrincipal: '', databaseId: '', decidedAt: '', dueAt: '', embedding: '', kind: '', labels: '', mergeCommit: '', mergeMethod: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', sourceRef: '', status: '', targetRef: '', title: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.proposal.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -4343,23 +4286,23 @@ CRUD operations for ProposalReview records. | Field | Type | Editable | |-------|------|----------| | `body` | String | Yes | -| `bodyTrgmSimilarity` | Float | Yes | +| `bodyTrgmSimilarity` | Float | No | | `commitSha` | String | Yes | -| `commitShaTrgmSimilarity` | Float | Yes | +| `commitShaTrgmSimilarity` | Float | No | | `createdAt` | Datetime | No | | `createdByPrincipal` | UUID | Yes | | `databaseId` | UUID | Yes | | `id` | UUID | No | | `proposalId` | UUID | Yes | | `reviewerId` | UUID | Yes | -| `search` | FullText | Yes | -| `searchScore` | Float | Yes | -| `searchTsvRank` | Float | Yes | +| `search` | FullText | No | +| `searchScore` | Float | No | +| `searchTsvRank` | Float | No | | `submittedAt` | Datetime | Yes | | `updatedAt` | Datetime | No | | `updatedByPrincipal` | UUID | Yes | | `verdict` | String | Yes | -| `verdictTrgmSimilarity` | Float | Yes | +| `verdictTrgmSimilarity` | Float | No | **Operations:** @@ -4371,7 +4314,7 @@ const items = await db.proposalReview.findMany({ select: { body: true, bodyTrgmS const item = await db.proposalReview.findOne({ id: '', select: { body: true, bodyTrgmSimilarity: true, commitSha: true, commitShaTrgmSimilarity: true, createdAt: true, createdByPrincipal: true, databaseId: true, id: true, proposalId: true, reviewerId: true, search: true, searchScore: true, searchTsvRank: true, submittedAt: true, updatedAt: true, updatedByPrincipal: true, verdict: true, verdictTrgmSimilarity: true } }).execute(); // Create -const created = await db.proposalReview.create({ data: { body: '', bodyTrgmSimilarity: '', commitSha: '', commitShaTrgmSimilarity: '', createdByPrincipal: '', databaseId: '', proposalId: '', reviewerId: '', search: '', searchScore: '', searchTsvRank: '', submittedAt: '', updatedByPrincipal: '', verdict: '', verdictTrgmSimilarity: '' }, select: { id: true } }).execute(); +const created = await db.proposalReview.create({ data: { body: '', commitSha: '', createdByPrincipal: '', databaseId: '', proposalId: '', reviewerId: '', submittedAt: '', updatedByPrincipal: '', verdict: '' }, select: { id: true } }).execute(); // Update const updated = await db.proposalReview.update({ where: { id: '' }, data: { body: '' }, select: { id: true } }).execute(); @@ -4397,11 +4340,11 @@ CRUD operations for ProposalsChunk records. | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | | `embedding` | Vector | Yes | -| `embeddingVectorDistance` | Float | Yes | +| `embeddingVectorDistance` | Float | No | | `id` | UUID | No | | `metadata` | JSON | Yes | | `proposalsId` | UUID | Yes | -| `searchScore` | Float | Yes | +| `searchScore` | Float | No | | `updatedAt` | Datetime | No | **Operations:** @@ -4414,7 +4357,7 @@ const items = await db.proposalsChunk.findMany({ select: { actorId: true, body: const item = await db.proposalsChunk.findOne({ id: '', select: { actorId: true, body: true, chunkIndex: true, createdAt: true, databaseId: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, proposalsId: true, searchScore: true, updatedAt: true } }).execute(); // Create -const created = await db.proposalsChunk.create({ data: { actorId: '', body: '', chunkIndex: '', databaseId: '', embedding: '', embeddingVectorDistance: '', metadata: '', proposalsId: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.proposalsChunk.create({ data: { actorId: '', body: '', chunkIndex: '', databaseId: '', embedding: '', metadata: '', proposalsId: '' }, select: { id: true } }).execute(); // Update const updated = await db.proposalsChunk.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -4567,50 +4510,52 @@ CRUD operations for Repository records. | Field | Type | Editable | |-------|------|----------| | `cloneUrl` | String | Yes | -| `cloneUrlTrgmSimilarity` | Float | Yes | +| `cloneUrlTrgmSimilarity` | Float | No | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | | `createdByPrincipal` | UUID | Yes | | `databaseId` | UUID | Yes | | `defaultBranch` | String | Yes | -| `defaultBranchTrgmSimilarity` | Float | Yes | +| `defaultBranchTrgmSimilarity` | Float | No | | `description` | String | Yes | -| `descriptionTrgmSimilarity` | Float | Yes | +| `descriptionTrgmSimilarity` | Float | No | | `embedding` | Vector | Yes | -| `embeddingUpdatedAt` | Datetime | Yes | -| `embeddingVectorDistance` | Float | Yes | +| `embeddingModel` | String | No | +| `embeddingModelTrgmSimilarity` | Float | No | +| `embeddingUpdatedAt` | Datetime | No | +| `embeddingVectorDistance` | Float | No | | `externalId` | String | Yes | -| `externalIdTrgmSimilarity` | Float | Yes | +| `externalIdTrgmSimilarity` | Float | No | | `id` | UUID | No | | `isArchived` | Boolean | Yes | | `metadata` | JSON | Yes | | `name` | String | Yes | -| `nameTrgmSimilarity` | Float | Yes | +| `nameTrgmSimilarity` | Float | No | | `ownerId` | UUID | Yes | | `provider` | String | Yes | -| `providerTrgmSimilarity` | Float | Yes | -| `search` | FullText | Yes | -| `searchScore` | Float | Yes | -| `searchTsvRank` | Float | Yes | +| `providerTrgmSimilarity` | Float | No | +| `search` | FullText | No | +| `searchScore` | Float | No | +| `searchTsvRank` | Float | No | | `slug` | String | Yes | -| `slugTrgmSimilarity` | Float | Yes | +| `slugTrgmSimilarity` | Float | No | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | | `updatedByPrincipal` | UUID | Yes | | `visibility` | String | Yes | -| `visibilityTrgmSimilarity` | Float | Yes | +| `visibilityTrgmSimilarity` | Float | No | **Operations:** ```typescript // List all repository records -const items = await db.repository.findMany({ select: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }).execute(); +const items = await db.repository.findMany({ select: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }).execute(); // Get one by id -const item = await db.repository.findOne({ id: '', select: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }).execute(); +const item = await db.repository.findOne({ id: '', select: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }).execute(); // Create -const created = await db.repository.create({ data: { cloneUrl: '', cloneUrlTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', defaultBranch: '', defaultBranchTrgmSimilarity: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', externalId: '', externalIdTrgmSimilarity: '', isArchived: '', metadata: '', name: '', nameTrgmSimilarity: '', ownerId: '', provider: '', providerTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', slug: '', slugTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '', visibility: '', visibilityTrgmSimilarity: '' }, select: { id: true } }).execute(); +const created = await db.repository.create({ data: { cloneUrl: '', createdBy: '', createdByPrincipal: '', databaseId: '', defaultBranch: '', description: '', embedding: '', externalId: '', isArchived: '', metadata: '', name: '', ownerId: '', provider: '', slug: '', updatedBy: '', updatedByPrincipal: '', visibility: '' }, select: { id: true } }).execute(); // Update const updated = await db.repository.update({ where: { id: '' }, data: { cloneUrl: '' }, select: { id: true } }).execute(); @@ -4757,8 +4702,8 @@ CRUD operations for Resource records. | Field | Type | Editable | |-------|------|----------| | `annotations` | JSON | Yes | -| `cpuLimitMillicores` | BigInt | Yes | -| `cpuRequestMillicores` | BigInt | Yes | +| `cpuLimitMillicores` | BigInt | No | +| `cpuRequestMillicores` | BigInt | No | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | | `createdByPrincipal` | UUID | Yes | @@ -4772,12 +4717,12 @@ CRUD operations for Resource records. | `labels` | JSON | Yes | | `lastError` | String | Yes | | `lastHeartbeatAt` | Datetime | Yes | -| `memoryLimitBytes` | BigInt | Yes | -| `memoryRequestBytes` | BigInt | Yes | +| `memoryLimitBytes` | BigInt | No | +| `memoryRequestBytes` | BigInt | No | | `name` | String | Yes | | `namespaceId` | UUID | Yes | | `realm` | String | Yes | -| `replicas` | Int | Yes | +| `replicas` | Int | No | | `requiredConfigs` | ResourceRequirement | Yes | | `requiredSecrets` | ResourceRequirement | Yes | | `resourceDefinitionId` | UUID | Yes | @@ -4785,9 +4730,9 @@ CRUD operations for Resource records. | `spec` | JSON | Yes | | `status` | String | Yes | | `statusObserved` | JSON | Yes | -| `storageClass` | String | Yes | -| `storageSizeBytes` | BigInt | Yes | -| `storageTotalBytes` | BigInt | Yes | +| `storageClass` | String | No | +| `storageSizeBytes` | BigInt | No | +| `storageTotalBytes` | BigInt | No | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | | `updatedByPrincipal` | UUID | Yes | @@ -4796,13 +4741,13 @@ CRUD operations for Resource records. ```typescript // List all resource records -const items = await db.resource.findMany({ select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const items = await db.resource.findMany({ select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.resource.findOne({ id: '', select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const item = await db.resource.findOne({ id: '', select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.resource.create({ data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', databaseId: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); +const created = await db.resource.create({ data: { annotations: '', createdBy: '', createdByPrincipal: '', databaseId: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', name: '', namespaceId: '', realm: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.resource.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -4843,9 +4788,6 @@ const items = await db.resourceDeclaredCapacity.findMany({ select: { cpuLimitMil // Get one by id const item = await db.resourceDeclaredCapacity.findOne({ id: '', select: { cpuLimitMillicores: true, cpuRequestMillicores: true, installationId: true, isTransient: true, kind: true, memoryLimitBytes: true, memoryRequestBytes: true, namespaceId: true, podCountMax: true, podCountMin: true, source: true, sourceId: true, storageSizeBytes: true, storageTotalBytes: true } }).execute(); -// Create -const created = await db.resourceDeclaredCapacity.create({ data: { cpuLimitMillicores: '', cpuRequestMillicores: '', installationId: '', isTransient: '', kind: '', memoryLimitBytes: '', memoryRequestBytes: '', namespaceId: '', podCountMax: '', podCountMin: '', source: '', sourceId: '', storageSizeBytes: '', storageTotalBytes: '' }, select: { id: true } }).execute(); - // Update const updated = await db.resourceDeclaredCapacity.update({ where: { id: '' }, data: { cpuLimitMillicores: '' }, select: { id: true } }).execute(); @@ -4887,10 +4829,10 @@ CRUD operations for ResourceDefinition records. ```typescript // List all resourceDefinition records -const items = await db.resourceDefinition.findMany({ select: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const items = await db.resourceDefinition.findMany({ select: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.resourceDefinition.findOne({ id: '', select: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const item = await db.resourceDefinition.findOne({ id: '', select: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create const created = await db.resourceDefinition.create({ data: { annotations: '', createdBy: '', createdByPrincipal: '', databaseId: '', defaultSpec: '', description: '', integrations: '', kind: '', labels: '', name: '', namespaceId: '', paramsSchema: '', requiredConfigs: '', requiredSecrets: '', slug: '', stepUpMinAge: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); @@ -5018,9 +4960,6 @@ const items = await db.resourceObservedStorage.findMany({ select: { capacity: tr // Get one by id const item = await db.resourceObservedStorage.findOne({ id: '', select: { capacity: true, capacityBytes: true, claimName: true, declaredStorageClass: true, declaredStorageSizeBytes: true, declaredStorageTotalBytes: true, installationId: true, isBound: true, kind: true, namespaceId: true, phase: true, requested: true, requestedBytes: true, resourceId: true, resourceStatus: true, slug: true, storageClass: true, storageName: true } }).execute(); -// Create -const created = await db.resourceObservedStorage.create({ data: { capacity: '', capacityBytes: '', claimName: '', declaredStorageClass: '', declaredStorageSizeBytes: '', declaredStorageTotalBytes: '', installationId: '', isBound: '', kind: '', namespaceId: '', phase: '', requested: '', requestedBytes: '', resourceId: '', resourceStatus: '', slug: '', storageClass: '', storageName: '' }, select: { id: true } }).execute(); - // Update const updated = await db.resourceObservedStorage.update({ where: { id: '' }, data: { capacity: '' }, select: { id: true } }).execute(); @@ -5177,9 +5116,6 @@ const items = await db.resourceUtilization.findMany({ select: { avgMemoryBytes: // Get one by id const item = await db.resourceUtilization.findOne({ id: '', select: { avgMemoryBytes: true, cpuLimitMillicores: true, cpuPeakUtilization: true, cpuRequestHeadroomMillicores: true, cpuRequestMillicores: true, date: true, gbSeconds: true, kind: true, maxCpuMillicores: true, maxMemoryBytes: true, memoryLimitBytes: true, memoryPeakUtilization: true, memoryRequestBytes: true, memoryRequestHeadroomBytes: true, namespaceId: true, replicas: true, resourceId: true, runtimeSeconds: true, sampleCount: true } }).execute(); -// Create -const created = await db.resourceUtilization.create({ data: { avgMemoryBytes: '', cpuLimitMillicores: '', cpuPeakUtilization: '', cpuRequestHeadroomMillicores: '', cpuRequestMillicores: '', date: '', gbSeconds: '', kind: '', maxCpuMillicores: '', maxMemoryBytes: '', memoryLimitBytes: '', memoryPeakUtilization: '', memoryRequestBytes: '', memoryRequestHeadroomBytes: '', namespaceId: '', replicas: '', resourceId: '', runtimeSeconds: '', sampleCount: '' }, select: { id: true } }).execute(); - // Update const updated = await db.resourceUtilization.update({ where: { id: '' }, data: { avgMemoryBytes: '' }, select: { id: true } }).execute(); @@ -5236,13 +5172,10 @@ CRUD operations for ResourcesHealth records. ```typescript // List all resourcesHealth records -const items = await db.resourcesHealth.findMany({ select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const items = await db.resourcesHealth.findMany({ select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.resourcesHealth.findOne({ id: '', select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); - -// Create -const created = await db.resourcesHealth.create({ data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', databaseId: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusDetail: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); +const item = await db.resourcesHealth.findOne({ id: '', select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Update const updated = await db.resourcesHealth.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -5276,9 +5209,6 @@ const items = await db.resourcesRequirementsState.findMany({ select: { configHas // Get one by id const item = await db.resourcesRequirementsState.findOne({ id: '', select: { configHash: true, configObjectName: true, requirementsHash: true, resourceId: true, secretsHash: true, secretsObjectName: true, slug: true } }).execute(); -// Create -const created = await db.resourcesRequirementsState.create({ data: { configHash: '', configObjectName: '', requirementsHash: '', resourceId: '', secretsHash: '', secretsObjectName: '', slug: '' }, select: { id: true } }).execute(); - // Update const updated = await db.resourcesRequirementsState.update({ where: { id: '' }, data: { configHash: '' }, select: { id: true } }).execute(); @@ -5315,9 +5245,6 @@ const items = await db.resourcesResolvedRequirement.findMany({ select: { atomId: // Get one by id const item = await db.resourcesResolvedRequirement.findOne({ id: '', select: { atomId: true, configObjectName: true, name: true, namespaceId: true, present: true, realm: true, required: true, requirementKind: true, resourceId: true, secretsObjectName: true, slug: true } }).execute(); -// Create -const created = await db.resourcesResolvedRequirement.create({ data: { atomId: '', configObjectName: '', name: '', namespaceId: '', present: '', realm: '', required: '', requirementKind: '', resourceId: '', secretsObjectName: '', slug: '' }, select: { id: true } }).execute(); - // Update const updated = await db.resourcesResolvedRequirement.update({ where: { id: '' }, data: { atomId: '' }, select: { id: true } }).execute(); @@ -5325,6 +5252,51 @@ const updated = await db.resourcesResolvedRequirement.update({ where: { id: '' } }).execute(); ``` +### `db.serviceBinding` + +CRUD operations for ServiceBinding records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `id` | UUID | No | +| `installationId` | UUID | Yes | +| `installationScope` | String | Yes | +| `kind` | String | Yes | +| `lastError` | String | Yes | +| `metadata` | JSON | Yes | +| `namespaceId` | UUID | Yes | +| `observedHost` | String | Yes | +| `realm` | String | Yes | +| `status` | String | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all serviceBinding records +const items = await db.serviceBinding.findMany({ select: { createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, installationId: true, installationScope: true, kind: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.serviceBinding.findOne({ id: '', select: { createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, installationId: true, installationScope: true, kind: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.serviceBinding.create({ data: { createdBy: '', createdByPrincipal: '', databaseId: '', installationId: '', installationScope: '', kind: '', lastError: '', metadata: '', namespaceId: '', observedHost: '', realm: '', status: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.serviceBinding.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.serviceBinding.delete({ where: { id: '' } }).execute(); +``` + ### `db.webhookEndpoint` CRUD operations for WebhookEndpoint records. @@ -5532,6 +5504,21 @@ copyGraph const result = await db.mutation.copyGraph({ input: { graphId: '', name: '', scopeId: '' } }).execute(); ``` +### `db.mutation.createFunctionGraph` + +createFunctionGraph + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | CreateFunctionGraphInput (required) | + +```typescript +const result = await db.mutation.createFunctionGraph({ input: '' }).execute(); +``` + ### `db.mutation.databaseAddEdge` databaseAddEdge diff --git a/sdk/constructive-react/src/compute/orm/index.ts b/sdk/constructive-react/src/compute/orm/index.ts index 01033dc125..bc4368881e 100644 --- a/sdk/constructive-react/src/compute/orm/index.ts +++ b/sdk/constructive-react/src/compute/orm/index.ts @@ -7,7 +7,6 @@ import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; import { BuildModel } from './models/build'; import { BuildStepModel } from './models/buildStep'; -import { BuilderBindingModel } from './models/builderBinding'; import { ContentPresetModel } from './models/contentPreset'; import { DatabaseFunctionGraphModel } from './models/databaseFunctionGraph'; import { DatabaseFunctionGraphExecutionCancelRequestModel } from './models/databaseFunctionGraphExecutionCancelRequest'; @@ -51,7 +50,6 @@ import { NamespaceModel } from './models/namespace'; import { NamespaceEventModel } from './models/namespaceEvent'; import { PlatformBuildModel } from './models/platformBuild'; import { PlatformBuildStepModel } from './models/platformBuildStep'; -import { PlatformBuilderBindingModel } from './models/platformBuilderBinding'; import { PlatformFunctionApiBindingModel } from './models/platformFunctionApiBinding'; import { PlatformFunctionCapabilityBindingModel } from './models/platformFunctionCapabilityBinding'; import { PlatformFunctionDefinitionModel } from './models/platformFunctionDefinition'; @@ -98,6 +96,7 @@ import { PlatformResourceUtilizationModel } from './models/platformResourceUtili import { PlatformResourcesHealthModel } from './models/platformResourcesHealth'; import { PlatformResourcesRequirementsStateModel } from './models/platformResourcesRequirementsState'; import { PlatformResourcesResolvedRequirementModel } from './models/platformResourcesResolvedRequirement'; +import { PlatformServiceBindingModel } from './models/platformServiceBinding'; import { PlatformWebhookEndpointModel } from './models/platformWebhookEndpoint'; import { PlatformWebhookEventModel } from './models/platformWebhookEvent'; import { ProposalCommentModel } from './models/proposalComment'; @@ -126,6 +125,7 @@ import { ResourceUtilizationModel } from './models/resourceUtilization'; import { ResourcesHealthModel } from './models/resourcesHealth'; import { ResourcesRequirementsStateModel } from './models/resourcesRequirementsState'; import { ResourcesResolvedRequirementModel } from './models/resourcesResolvedRequirement'; +import { ServiceBindingModel } from './models/serviceBinding'; import { WebhookEndpointModel } from './models/webhookEndpoint'; import { WebhookEventModel } from './models/webhookEvent'; import { createQueryOperations } from './query'; @@ -165,7 +165,6 @@ export function createClient(config: OrmClientConfig) { return { build: new BuildModel(client), buildStep: new BuildStepModel(client), - builderBinding: new BuilderBindingModel(client), contentPreset: new ContentPresetModel(client), databaseFunctionGraph: new DatabaseFunctionGraphModel(client), databaseFunctionGraphExecutionCancelRequest: @@ -212,7 +211,6 @@ export function createClient(config: OrmClientConfig) { namespaceEvent: new NamespaceEventModel(client), platformBuild: new PlatformBuildModel(client), platformBuildStep: new PlatformBuildStepModel(client), - platformBuilderBinding: new PlatformBuilderBindingModel(client), platformFunctionApiBinding: new PlatformFunctionApiBindingModel(client), platformFunctionCapabilityBinding: new PlatformFunctionCapabilityBindingModel(client), platformFunctionDefinition: new PlatformFunctionDefinitionModel(client), @@ -259,6 +257,7 @@ export function createClient(config: OrmClientConfig) { platformResourcesHealth: new PlatformResourcesHealthModel(client), platformResourcesRequirementsState: new PlatformResourcesRequirementsStateModel(client), platformResourcesResolvedRequirement: new PlatformResourcesResolvedRequirementModel(client), + platformServiceBinding: new PlatformServiceBindingModel(client), platformWebhookEndpoint: new PlatformWebhookEndpointModel(client), platformWebhookEvent: new PlatformWebhookEventModel(client), proposalComment: new ProposalCommentModel(client), @@ -287,6 +286,7 @@ export function createClient(config: OrmClientConfig) { resourcesHealth: new ResourcesHealthModel(client), resourcesRequirementsState: new ResourcesRequirementsStateModel(client), resourcesResolvedRequirement: new ResourcesResolvedRequirementModel(client), + serviceBinding: new ServiceBindingModel(client), webhookEndpoint: new WebhookEndpointModel(client), webhookEvent: new WebhookEventModel(client), query: createQueryOperations(client), diff --git a/sdk/constructive-react/src/compute/orm/input-types.ts b/sdk/constructive-react/src/compute/orm/input-types.ts index c4f3a14a61..b6ec4589d2 100644 --- a/sdk/constructive-react/src/compute/orm/input-types.ts +++ b/sdk/constructive-react/src/compute/orm/input-types.ts @@ -234,7 +234,6 @@ export interface UUIDListFilter { export type Base64EncodedBinary = unknown; export type ConstructiveInternalTypeImage = unknown; export type ConstructiveInternalTypeUpload = unknown; -export type ResourceRequirement = unknown; /** One run of a repository workflow: its commit, its job, and what it produced */ // ============ Entity Types ============ export interface Build { @@ -261,6 +260,10 @@ export interface Build { jobId?: string | null; /** Build log object in storage; step rows slice it by byte range */ logs?: ConstructiveInternalTypeUpload | null; + /** URL to fetch `logs`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + logsUrl?: string | null; + /** The versions rendered beside `logs`, narrowest first, each with a URL. Empty when there are none. */ + logsVersions?: FileVersion[] | null; /** Matrix shard identity; NULL for a non-matrix build */ matrixKey?: string | null; /** Build detail (step results, durations, failure reason) */ @@ -315,32 +318,6 @@ export interface BuildStep { /** Parsed detail: failure message, assertion diff, counts, annotations */ summary?: Record | null; } -/** Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST */ -export interface BuilderBinding { - createdAt?: string | null; - createdBy?: string | null; - createdByPrincipal?: string | null; - /** Database that owns this resource (database-scoped isolation) */ - databaseId?: string | null; - id: string; - /** BuildKit resource installation serving this binding; may belong to another resource scope */ - installationId?: string | null; - /** Most recent projection failure */ - lastError?: string | null; - /** Reconciler detail (projection timestamps and diagnostics) */ - metadata?: Record | null; - /** Namespace whose builds use this BuildKit installation */ - namespaceId?: string | null; - /** BuildKit address last projected into the namespace (NULL = never projected) */ - observedHost?: string | null; - /** Lane this binding applies to (NULL = the scope's default lane) */ - realm?: string | null; - /** Projection state of BUILDKIT_HOST: pending, active, failed */ - status?: string | null; - updatedAt?: string | null; - updatedBy?: string | null; - updatedByPrincipal?: string | null; -} /** Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store */ export interface ContentPreset { /** Whether this preset is selectable at provision time */ @@ -1315,6 +1292,10 @@ export interface IntegrationProvider { id: string; /** Provider logo as an image domain value (url, id, key, bucket, provider) */ logo?: ConstructiveInternalTypeImage | null; + /** URL to fetch `logo`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + logoUrl?: string | null; + /** The versions rendered beside `logo`, narrowest first, each with a URL. Empty when there are none. */ + logoVersions?: FileVersion[] | null; /** Human-readable brand name (e.g. 'Mailgun', 'PostgreSQL') */ name?: string | null; /** Canonical config requirements for this provider: array of (name, required, provider) tuples. Used by the UI to auto-fill function/resource required_configs. */ @@ -1395,6 +1376,10 @@ export interface PlatformBuild { jobId?: string | null; /** Build log object in storage; step rows slice it by byte range */ logs?: ConstructiveInternalTypeUpload | null; + /** URL to fetch `logs`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + logsUrl?: string | null; + /** The versions rendered beside `logs`, narrowest first, each with a URL. Empty when there are none. */ + logsVersions?: FileVersion[] | null; /** Matrix shard identity; NULL for a non-matrix build */ matrixKey?: string | null; /** Build detail (step results, durations, failure reason) */ @@ -1447,30 +1432,6 @@ export interface PlatformBuildStep { /** Parsed detail: failure message, assertion diff, counts, annotations */ summary?: Record | null; } -/** Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST */ -export interface PlatformBuilderBinding { - createdAt?: string | null; - createdBy?: string | null; - createdByPrincipal?: string | null; - id: string; - /** BuildKit resource installation serving this binding; may belong to another resource scope */ - installationId?: string | null; - /** Most recent projection failure */ - lastError?: string | null; - /** Reconciler detail (projection timestamps and diagnostics) */ - metadata?: Record | null; - /** Namespace whose builds use this BuildKit installation */ - namespaceId?: string | null; - /** BuildKit address last projected into the namespace (NULL = never projected) */ - observedHost?: string | null; - /** Lane this binding applies to (NULL = the scope's default lane) */ - realm?: string | null; - /** Projection state of BUILDKIT_HOST: pending, active, failed */ - status?: string | null; - updatedAt?: string | null; - updatedBy?: string | null; - updatedByPrincipal?: string | null; -} /** Join table binding function definitions to API endpoints with per-binding alias and config */ export interface PlatformFunctionApiBinding { /** Binding alias (e.g. default, staging, production) */ @@ -2004,6 +1965,10 @@ export interface PlatformProposalComment { actorId?: string | null; /** Files referenced by the comment body, in the order they were attached */ attachments?: ConstructiveInternalTypeUpload[] | null; + /** URL to fetch `attachments`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + attachmentsUrl?: string[] | null; + /** The versions rendered beside `attachments`, narrowest first, each with a URL. Empty when there are none. */ + attachmentsVersions?: FileVersion[] | null; /** Comment text */ body?: string | null; /** TRGM similarity when searching `body`. Returns null when no trgm search filter is active. */ @@ -2012,6 +1977,9 @@ export interface PlatformProposalComment { createdBy?: string | null; createdByPrincipal?: string | null; embedding?: number[] | null; + embeddingModel?: string | null; + /** TRGM similarity when searching `embeddingModel`. Returns null when no trgm search filter is active. */ + embeddingModelTrgmSimilarity?: number | null; embeddingUpdatedAt?: string | null; /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ embeddingVectorDistance?: number | null; @@ -2057,6 +2025,9 @@ export interface PlatformProposal { /** When this is wanted by (NULL when nothing is promised) */ dueAt?: string | null; embedding?: number[] | null; + embeddingModel?: string | null; + /** TRGM similarity when searching `embeddingModel`. Returns null when no trgm search filter is active. */ + embeddingModelTrgmSimilarity?: number | null; embeddingUpdatedAt?: string | null; /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ embeddingVectorDistance?: number | null; @@ -2297,6 +2268,9 @@ export interface PlatformRepository { /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ descriptionTrgmSimilarity?: number | null; embedding?: number[] | null; + embeddingModel?: string | null; + /** TRGM similarity when searching `embeddingModel`. Returns null when no trgm search filter is active. */ + embeddingModelTrgmSimilarity?: number | null; embeddingUpdatedAt?: string | null; /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ embeddingVectorDistance?: number | null; @@ -2720,6 +2694,34 @@ export interface PlatformResourcesResolvedRequirement { secretsObjectName?: string | null; slug?: string | null; } +/** Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config */ +export interface PlatformServiceBinding { + createdAt?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + id: string; + /** Resource installation serving this binding, in the installations table of installation_scope */ + installationId?: string | null; + /** Scope whose installations table holds installation_id: this scope or platform */ + installationScope?: string | null; + /** Service this binding projects: builder (BUILDKIT_HOST) or git (GIT_PROVIDER + GIT_SERVICE_URL) */ + kind?: string | null; + /** Most recent projection failure */ + lastError?: string | null; + /** Reconciler detail (projection timestamps and diagnostics) */ + metadata?: Record | null; + /** Namespace whose builds use this BuildKit installation */ + namespaceId?: string | null; + /** Service address last projected into the namespace (NULL = never projected) */ + observedHost?: string | null; + /** Lane this binding applies to (NULL = the scope's default lane) */ + realm?: string | null; + /** Projection state of the bound address: pending, active, failed */ + status?: string | null; + updatedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} /** Webhook route authority: (host, path) -> function task_identifier invoked through the webhook channel, with provider, signing-secret reference, and replay window */ export interface PlatformWebhookEndpoint { /** Whether this endpoint currently accepts deliveries */ @@ -2776,6 +2778,10 @@ export interface ProposalComment { actorId?: string | null; /** Files referenced by the comment body, in the order they were attached */ attachments?: ConstructiveInternalTypeUpload[] | null; + /** URL to fetch `attachments`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + attachmentsUrl?: string[] | null; + /** The versions rendered beside `attachments`, narrowest first, each with a URL. Empty when there are none. */ + attachmentsVersions?: FileVersion[] | null; /** Comment text */ body?: string | null; /** TRGM similarity when searching `body`. Returns null when no trgm search filter is active. */ @@ -2786,6 +2792,9 @@ export interface ProposalComment { /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; embedding?: number[] | null; + embeddingModel?: string | null; + /** TRGM similarity when searching `embeddingModel`. Returns null when no trgm search filter is active. */ + embeddingModelTrgmSimilarity?: number | null; embeddingUpdatedAt?: string | null; /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ embeddingVectorDistance?: number | null; @@ -2833,6 +2842,9 @@ export interface Proposal { /** When this is wanted by (NULL when nothing is promised) */ dueAt?: string | null; embedding?: number[] | null; + embeddingModel?: string | null; + /** TRGM similarity when searching `embeddingModel`. Returns null when no trgm search filter is active. */ + embeddingModelTrgmSimilarity?: number | null; embeddingUpdatedAt?: string | null; /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ embeddingVectorDistance?: number | null; @@ -3089,6 +3101,9 @@ export interface Repository { /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ descriptionTrgmSimilarity?: number | null; embedding?: number[] | null; + embeddingModel?: string | null; + /** TRGM similarity when searching `embeddingModel`. Returns null when no trgm search filter is active. */ + embeddingModelTrgmSimilarity?: number | null; embeddingUpdatedAt?: string | null; /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ embeddingVectorDistance?: number | null; @@ -3533,6 +3548,36 @@ export interface ResourcesResolvedRequirement { secretsObjectName?: string | null; slug?: string | null; } +/** Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config */ +export interface ServiceBinding { + createdAt?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + id: string; + /** Resource installation serving this binding, in the installations table of installation_scope */ + installationId?: string | null; + /** Scope whose installations table holds installation_id: this scope or platform */ + installationScope?: string | null; + /** Service this binding projects: builder (BUILDKIT_HOST) or git (GIT_PROVIDER + GIT_SERVICE_URL) */ + kind?: string | null; + /** Most recent projection failure */ + lastError?: string | null; + /** Reconciler detail (projection timestamps and diagnostics) */ + metadata?: Record | null; + /** Namespace whose builds use this BuildKit installation */ + namespaceId?: string | null; + /** Service address last projected into the namespace (NULL = never projected) */ + observedHost?: string | null; + /** Lane this binding applies to (NULL = the scope's default lane) */ + realm?: string | null; + /** Projection state of the bound address: pending, active, failed */ + status?: string | null; + updatedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} /** Webhook route authority: (host, path) -> function task_identifier invoked through the webhook channel, with provider, signing-secret reference, and replay window */ export interface WebhookEndpoint { /** Whether this endpoint currently accepts deliveries */ @@ -3607,9 +3652,6 @@ export interface BuildRelations { workflow?: RepositoryWorkflow | null; } export interface BuildStepRelations {} -export interface BuilderBindingRelations { - namespace?: Namespace | null; -} export interface ContentPresetRelations {} export interface DatabaseFunctionGraphRelations { databaseFunctionGraphExecutionsByGraphId?: ConnectionResult; @@ -3643,7 +3685,7 @@ export interface FunctionDefinitionRelations { webhookEndpoints?: ConnectionResult; } export interface FunctionDeploymentRelations { - namespace?: Namespace | null; + namespaceByNamespaceIdAndDatabaseId?: Namespace | null; } export interface FunctionDeploymentEventRelations {} export interface FunctionExecutionLogRelations {} @@ -3683,13 +3725,13 @@ export interface InfraRefRelations {} export interface InfraStoreRelations {} export interface IntegrationProviderRelations {} export interface NamespaceRelations { - builderBindings?: ConnectionResult; - functionDeployments?: ConnectionResult; - registryBindings?: ConnectionResult; - resourceDefinitions?: ConnectionResult; - resourceInstallations?: ConnectionResult; - resources?: ConnectionResult; - webhookEndpoints?: ConnectionResult; + functionDeploymentsByNamespaceIdAndDatabaseId?: ConnectionResult; + registryBindingsByNamespaceIdAndDatabaseId?: ConnectionResult; + resourceDefinitionsByNamespaceIdAndDatabaseId?: ConnectionResult; + resourceInstallationsByNamespaceIdAndDatabaseId?: ConnectionResult; + resourcesByNamespaceIdAndDatabaseId?: ConnectionResult; + serviceBindingsByNamespaceIdAndDatabaseId?: ConnectionResult; + webhookEndpointsByNamespaceIdAndDatabaseId?: ConnectionResult; } export interface NamespaceEventRelations {} export interface PlatformBuildRelations { @@ -3699,9 +3741,6 @@ export interface PlatformBuildRelations { workflow?: PlatformRepositoryWorkflow | null; } export interface PlatformBuildStepRelations {} -export interface PlatformBuilderBindingRelations { - namespace?: PlatformNamespace | null; -} export interface PlatformFunctionApiBindingRelations { functionDefinition?: PlatformFunctionDefinition | null; platformFunctionInvocationsByApiBindingId?: ConnectionResult; @@ -3742,12 +3781,12 @@ export interface PlatformInfraStoreRelations {} export interface PlatformK8sResourceKindRelations {} export interface PlatformK8sSpecRuleRelations {} export interface PlatformNamespaceRelations { - platformBuilderBindingsByNamespaceId?: ConnectionResult; platformFunctionDeploymentsByNamespaceId?: ConnectionResult; platformRegistryBindingsByNamespaceId?: ConnectionResult; platformResourceDefinitionsByNamespaceId?: ConnectionResult; platformResourceInstallationsByNamespaceId?: ConnectionResult; platformResourcesByNamespaceId?: ConnectionResult; + platformServiceBindingsByNamespaceId?: ConnectionResult; platformWebhookEndpointsByNamespaceId?: ConnectionResult; } export interface PlatformNamespaceEventRelations {} @@ -3839,6 +3878,9 @@ export interface PlatformResourceUtilizationRelations {} export interface PlatformResourcesHealthRelations {} export interface PlatformResourcesRequirementsStateRelations {} export interface PlatformResourcesResolvedRequirementRelations {} +export interface PlatformServiceBindingRelations { + namespace?: PlatformNamespace | null; +} export interface PlatformWebhookEndpointRelations { functionDefinition?: PlatformFunctionDefinition | null; namespace?: PlatformNamespace | null; @@ -3876,7 +3918,7 @@ export interface ProposalsChunkRelations { proposals?: Proposal | null; } export interface RegistryBindingRelations { - namespace?: Namespace | null; + namespaceByNamespaceIdAndDatabaseId?: Namespace | null; registry?: Registry | null; } export interface RegistryRelations { @@ -3910,18 +3952,18 @@ export interface RepositoryWorkflowRelations { } export interface ResourceRelations { installation?: ResourceInstallation | null; - namespace?: Namespace | null; + namespaceByNamespaceIdAndDatabaseId?: Namespace | null; resourceDefinition?: ResourceDefinition | null; resourceStatusChecks?: ConnectionResult; } export interface ResourceDeclaredCapacityRelations {} export interface ResourceDefinitionRelations { - namespace?: Namespace | null; + namespaceByNamespaceIdAndDatabaseId?: Namespace | null; resources?: ConnectionResult; } export interface ResourceEventRelations {} export interface ResourceInstallationRelations { - namespace?: Namespace | null; + namespaceByNamespaceIdAndDatabaseId?: Namespace | null; registriesByInstallationId?: ConnectionResult; resourcesByInstallationId?: ConnectionResult; } @@ -3935,9 +3977,12 @@ export interface ResourceUtilizationRelations {} export interface ResourcesHealthRelations {} export interface ResourcesRequirementsStateRelations {} export interface ResourcesResolvedRequirementRelations {} +export interface ServiceBindingRelations { + namespaceByNamespaceIdAndDatabaseId?: Namespace | null; +} export interface WebhookEndpointRelations { functionDefinition?: FunctionDefinition | null; - namespace?: Namespace | null; + namespaceByNamespaceIdAndDatabaseId?: Namespace | null; webhookEventsByEndpointId?: ConnectionResult; } export interface WebhookEventRelations { @@ -3946,7 +3991,6 @@ export interface WebhookEventRelations { // ============ Entity Types With Relations ============ export type BuildWithRelations = Build & BuildRelations; export type BuildStepWithRelations = BuildStep & BuildStepRelations; -export type BuilderBindingWithRelations = BuilderBinding & BuilderBindingRelations; export type ContentPresetWithRelations = ContentPreset & ContentPresetRelations; export type DatabaseFunctionGraphWithRelations = DatabaseFunctionGraph & DatabaseFunctionGraphRelations; @@ -4007,8 +4051,6 @@ export type NamespaceWithRelations = Namespace & NamespaceRelations; export type NamespaceEventWithRelations = NamespaceEvent & NamespaceEventRelations; export type PlatformBuildWithRelations = PlatformBuild & PlatformBuildRelations; export type PlatformBuildStepWithRelations = PlatformBuildStep & PlatformBuildStepRelations; -export type PlatformBuilderBindingWithRelations = PlatformBuilderBinding & - PlatformBuilderBindingRelations; export type PlatformFunctionApiBindingWithRelations = PlatformFunctionApiBinding & PlatformFunctionApiBindingRelations; export type PlatformFunctionCapabilityBindingWithRelations = PlatformFunctionCapabilityBinding & @@ -4089,6 +4131,8 @@ export type PlatformResourcesRequirementsStateWithRelations = PlatformResourcesR PlatformResourcesRequirementsStateRelations; export type PlatformResourcesResolvedRequirementWithRelations = PlatformResourcesResolvedRequirement & PlatformResourcesResolvedRequirementRelations; +export type PlatformServiceBindingWithRelations = PlatformServiceBinding & + PlatformServiceBindingRelations; export type PlatformWebhookEndpointWithRelations = PlatformWebhookEndpoint & PlatformWebhookEndpointRelations; export type PlatformWebhookEventWithRelations = PlatformWebhookEvent & @@ -4126,6 +4170,7 @@ export type ResourcesRequirementsStateWithRelations = ResourcesRequirementsState ResourcesRequirementsStateRelations; export type ResourcesResolvedRequirementWithRelations = ResourcesResolvedRequirement & ResourcesResolvedRequirementRelations; +export type ServiceBindingWithRelations = ServiceBinding & ServiceBindingRelations; export type WebhookEndpointWithRelations = WebhookEndpoint & WebhookEndpointRelations; export type WebhookEventWithRelations = WebhookEvent & WebhookEventRelations; // ============ Entity Select Types ============ @@ -4143,6 +4188,15 @@ export type BuildSelect = { imageRef?: boolean; jobId?: boolean; logs?: boolean; + logsUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + logsVersions?: { + select: FileVersionSelect; + }; matrixKey?: boolean; metadata?: boolean; proposalId?: boolean; @@ -4184,26 +4238,6 @@ export type BuildStepSelect = { status?: boolean; summary?: boolean; }; -export type BuilderBindingSelect = { - createdAt?: boolean; - createdBy?: boolean; - createdByPrincipal?: boolean; - databaseId?: boolean; - id?: boolean; - installationId?: boolean; - lastError?: boolean; - metadata?: boolean; - namespaceId?: boolean; - observedHost?: boolean; - realm?: boolean; - status?: boolean; - updatedAt?: boolean; - updatedBy?: boolean; - updatedByPrincipal?: boolean; - namespace?: { - select: NamespaceSelect; - }; -}; export type ContentPresetSelect = { active?: boolean; commitId?: boolean; @@ -4439,10 +4473,14 @@ export type FunctionDefinitionSelect = { queueName?: boolean; requiredBuckets?: boolean; requiredCapabilities?: boolean; - requiredConfigs?: boolean; + requiredConfigs?: { + select: ResourceRequirementSelect; + }; requiredModels?: boolean; requiredModules?: boolean; - requiredSecrets?: boolean; + requiredSecrets?: { + select: ResourceRequirementSelect; + }; resources?: boolean; runtime?: boolean; scaleMax?: boolean; @@ -4508,7 +4546,7 @@ export type FunctionDeploymentSelect = { timeoutSeconds?: boolean; updatedAt?: boolean; updatedByPrincipal?: boolean; - namespace?: { + namespaceByNamespaceIdAndDatabaseId?: { select: NamespaceSelect; }; }; @@ -4829,9 +4867,22 @@ export type IntegrationProviderSelect = { icon?: boolean; id?: boolean; logo?: boolean; + logoUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + logoVersions?: { + select: FileVersionSelect; + }; name?: boolean; - requiredConfigs?: boolean; - requiredSecrets?: boolean; + requiredConfigs?: { + select: ResourceRequirementSelect; + }; + requiredSecrets?: { + select: ResourceRequirementSelect; + }; slug?: boolean; updatedAt?: boolean; }; @@ -4850,43 +4901,43 @@ export type NamespaceSelect = { namespaceName?: boolean; status?: boolean; updatedAt?: boolean; - builderBindings?: { - select: BuilderBindingSelect; - first?: number; - filter?: BuilderBindingFilter; - orderBy?: BuilderBindingOrderBy[]; - }; - functionDeployments?: { + functionDeploymentsByNamespaceIdAndDatabaseId?: { select: FunctionDeploymentSelect; first?: number; filter?: FunctionDeploymentFilter; orderBy?: FunctionDeploymentOrderBy[]; }; - registryBindings?: { + registryBindingsByNamespaceIdAndDatabaseId?: { select: RegistryBindingSelect; first?: number; filter?: RegistryBindingFilter; orderBy?: RegistryBindingOrderBy[]; }; - resourceDefinitions?: { + resourceDefinitionsByNamespaceIdAndDatabaseId?: { select: ResourceDefinitionSelect; first?: number; filter?: ResourceDefinitionFilter; orderBy?: ResourceDefinitionOrderBy[]; }; - resourceInstallations?: { + resourceInstallationsByNamespaceIdAndDatabaseId?: { select: ResourceInstallationSelect; first?: number; filter?: ResourceInstallationFilter; orderBy?: ResourceInstallationOrderBy[]; }; - resources?: { + resourcesByNamespaceIdAndDatabaseId?: { select: ResourceSelect; first?: number; filter?: ResourceFilter; orderBy?: ResourceOrderBy[]; }; - webhookEndpoints?: { + serviceBindingsByNamespaceIdAndDatabaseId?: { + select: ServiceBindingSelect; + first?: number; + filter?: ServiceBindingFilter; + orderBy?: ServiceBindingOrderBy[]; + }; + webhookEndpointsByNamespaceIdAndDatabaseId?: { select: WebhookEndpointSelect; first?: number; filter?: WebhookEndpointFilter; @@ -4916,6 +4967,15 @@ export type PlatformBuildSelect = { imageRef?: boolean; jobId?: boolean; logs?: boolean; + logsUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + logsVersions?: { + select: FileVersionSelect; + }; matrixKey?: boolean; metadata?: boolean; proposalId?: boolean; @@ -4956,25 +5016,6 @@ export type PlatformBuildStepSelect = { status?: boolean; summary?: boolean; }; -export type PlatformBuilderBindingSelect = { - createdAt?: boolean; - createdBy?: boolean; - createdByPrincipal?: boolean; - id?: boolean; - installationId?: boolean; - lastError?: boolean; - metadata?: boolean; - namespaceId?: boolean; - observedHost?: boolean; - realm?: boolean; - status?: boolean; - updatedAt?: boolean; - updatedBy?: boolean; - updatedByPrincipal?: boolean; - namespace?: { - select: PlatformNamespaceSelect; - }; -}; export type PlatformFunctionApiBindingSelect = { alias?: boolean; apiId?: boolean; @@ -5041,10 +5082,14 @@ export type PlatformFunctionDefinitionSelect = { queueName?: boolean; requiredBuckets?: boolean; requiredCapabilities?: boolean; - requiredConfigs?: boolean; + requiredConfigs?: { + select: ResourceRequirementSelect; + }; requiredModels?: boolean; requiredModules?: boolean; - requiredSecrets?: boolean; + requiredSecrets?: { + select: ResourceRequirementSelect; + }; resources?: boolean; runtime?: boolean; scaleMax?: boolean; @@ -5313,12 +5358,6 @@ export type PlatformNamespaceSelect = { namespaceName?: boolean; status?: boolean; updatedAt?: boolean; - platformBuilderBindingsByNamespaceId?: { - select: PlatformBuilderBindingSelect; - first?: number; - filter?: PlatformBuilderBindingFilter; - orderBy?: PlatformBuilderBindingOrderBy[]; - }; platformFunctionDeploymentsByNamespaceId?: { select: PlatformFunctionDeploymentSelect; first?: number; @@ -5349,6 +5388,12 @@ export type PlatformNamespaceSelect = { filter?: PlatformResourceFilter; orderBy?: PlatformResourceOrderBy[]; }; + platformServiceBindingsByNamespaceId?: { + select: PlatformServiceBindingSelect; + first?: number; + filter?: PlatformServiceBindingFilter; + orderBy?: PlatformServiceBindingOrderBy[]; + }; platformWebhookEndpointsByNamespaceId?: { select: PlatformWebhookEndpointSelect; first?: number; @@ -5368,12 +5413,23 @@ export type PlatformNamespaceEventSelect = { export type PlatformProposalCommentSelect = { actorId?: boolean; attachments?: boolean; + attachmentsUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + attachmentsVersions?: { + select: FileVersionSelect; + }; body?: boolean; bodyTrgmSimilarity?: boolean; createdAt?: boolean; createdBy?: boolean; createdByPrincipal?: boolean; embedding?: boolean; + embeddingModel?: boolean; + embeddingModelTrgmSimilarity?: boolean; embeddingUpdatedAt?: boolean; embeddingVectorDistance?: boolean; id?: boolean; @@ -5411,6 +5467,8 @@ export type PlatformProposalSelect = { decidedAt?: boolean; dueAt?: boolean; embedding?: boolean; + embeddingModel?: boolean; + embeddingModelTrgmSimilarity?: boolean; embeddingUpdatedAt?: boolean; embeddingVectorDistance?: boolean; id?: boolean; @@ -5648,6 +5706,8 @@ export type PlatformRepositorySelect = { description?: boolean; descriptionTrgmSimilarity?: boolean; embedding?: boolean; + embeddingModel?: boolean; + embeddingModelTrgmSimilarity?: boolean; embeddingUpdatedAt?: boolean; embeddingVectorDistance?: boolean; externalId?: boolean; @@ -5798,8 +5858,12 @@ export type PlatformResourceSelect = { namespaceId?: boolean; realm?: boolean; replicas?: boolean; - requiredConfigs?: boolean; - requiredSecrets?: boolean; + requiredConfigs?: { + select: ResourceRequirementSelect; + }; + requiredSecrets?: { + select: ResourceRequirementSelect; + }; resourceDefinitionId?: boolean; slug?: boolean; spec?: boolean; @@ -5857,8 +5921,12 @@ export type PlatformResourceDefinitionSelect = { name?: boolean; namespaceId?: boolean; paramsSchema?: boolean; - requiredConfigs?: boolean; - requiredSecrets?: boolean; + requiredConfigs?: { + select: ResourceRequirementSelect; + }; + requiredSecrets?: { + select: ResourceRequirementSelect; + }; slug?: boolean; stepUpMinAge?: boolean; updatedAt?: boolean; @@ -6012,8 +6080,12 @@ export type PlatformResourcesHealthSelect = { namespaceId?: boolean; realm?: boolean; replicas?: boolean; - requiredConfigs?: boolean; - requiredSecrets?: boolean; + requiredConfigs?: { + select: ResourceRequirementSelect; + }; + requiredSecrets?: { + select: ResourceRequirementSelect; + }; resourceDefinitionId?: boolean; slug?: boolean; spec?: boolean; @@ -6049,6 +6121,27 @@ export type PlatformResourcesResolvedRequirementSelect = { secretsObjectName?: boolean; slug?: boolean; }; +export type PlatformServiceBindingSelect = { + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + id?: boolean; + installationId?: boolean; + installationScope?: boolean; + kind?: boolean; + lastError?: boolean; + metadata?: boolean; + namespaceId?: boolean; + observedHost?: boolean; + realm?: boolean; + status?: boolean; + updatedAt?: boolean; + updatedBy?: boolean; + updatedByPrincipal?: boolean; + namespace?: { + select: PlatformNamespaceSelect; + }; +}; export type PlatformWebhookEndpointSelect = { active?: boolean; createdAt?: boolean; @@ -6098,6 +6191,15 @@ export type PlatformWebhookEventSelect = { export type ProposalCommentSelect = { actorId?: boolean; attachments?: boolean; + attachmentsUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + attachmentsVersions?: { + select: FileVersionSelect; + }; body?: boolean; bodyTrgmSimilarity?: boolean; createdAt?: boolean; @@ -6105,6 +6207,8 @@ export type ProposalCommentSelect = { createdByPrincipal?: boolean; databaseId?: boolean; embedding?: boolean; + embeddingModel?: boolean; + embeddingModelTrgmSimilarity?: boolean; embeddingUpdatedAt?: boolean; embeddingVectorDistance?: boolean; id?: boolean; @@ -6143,6 +6247,8 @@ export type ProposalSelect = { decidedAt?: boolean; dueAt?: boolean; embedding?: boolean; + embeddingModel?: boolean; + embeddingModelTrgmSimilarity?: boolean; embeddingUpdatedAt?: boolean; embeddingVectorDistance?: boolean; id?: boolean; @@ -6315,7 +6421,7 @@ export type RegistryBindingSelect = { updatedAt?: boolean; updatedBy?: boolean; updatedByPrincipal?: boolean; - namespace?: { + namespaceByNamespaceIdAndDatabaseId?: { select: NamespaceSelect; }; registry?: { @@ -6388,6 +6494,8 @@ export type RepositorySelect = { description?: boolean; descriptionTrgmSimilarity?: boolean; embedding?: boolean; + embeddingModel?: boolean; + embeddingModelTrgmSimilarity?: boolean; embeddingUpdatedAt?: boolean; embeddingVectorDistance?: boolean; externalId?: boolean; @@ -6542,8 +6650,12 @@ export type ResourceSelect = { namespaceId?: boolean; realm?: boolean; replicas?: boolean; - requiredConfigs?: boolean; - requiredSecrets?: boolean; + requiredConfigs?: { + select: ResourceRequirementSelect; + }; + requiredSecrets?: { + select: ResourceRequirementSelect; + }; resourceDefinitionId?: boolean; slug?: boolean; spec?: boolean; @@ -6558,7 +6670,7 @@ export type ResourceSelect = { installation?: { select: ResourceInstallationSelect; }; - namespace?: { + namespaceByNamespaceIdAndDatabaseId?: { select: NamespaceSelect; }; resourceDefinition?: { @@ -6602,14 +6714,18 @@ export type ResourceDefinitionSelect = { name?: boolean; namespaceId?: boolean; paramsSchema?: boolean; - requiredConfigs?: boolean; - requiredSecrets?: boolean; + requiredConfigs?: { + select: ResourceRequirementSelect; + }; + requiredSecrets?: { + select: ResourceRequirementSelect; + }; slug?: boolean; stepUpMinAge?: boolean; updatedAt?: boolean; updatedBy?: boolean; updatedByPrincipal?: boolean; - namespace?: { + namespaceByNamespaceIdAndDatabaseId?: { select: NamespaceSelect; }; resources?: { @@ -6646,7 +6762,7 @@ export type ResourceInstallationSelect = { updatedAt?: boolean; updatedBy?: boolean; updatedByPrincipal?: boolean; - namespace?: { + namespaceByNamespaceIdAndDatabaseId?: { select: NamespaceSelect; }; registriesByInstallationId?: { @@ -6763,8 +6879,12 @@ export type ResourcesHealthSelect = { namespaceId?: boolean; realm?: boolean; replicas?: boolean; - requiredConfigs?: boolean; - requiredSecrets?: boolean; + requiredConfigs?: { + select: ResourceRequirementSelect; + }; + requiredSecrets?: { + select: ResourceRequirementSelect; + }; resourceDefinitionId?: boolean; slug?: boolean; spec?: boolean; @@ -6800,6 +6920,28 @@ export type ResourcesResolvedRequirementSelect = { secretsObjectName?: boolean; slug?: boolean; }; +export type ServiceBindingSelect = { + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + databaseId?: boolean; + id?: boolean; + installationId?: boolean; + installationScope?: boolean; + kind?: boolean; + lastError?: boolean; + metadata?: boolean; + namespaceId?: boolean; + observedHost?: boolean; + realm?: boolean; + status?: boolean; + updatedAt?: boolean; + updatedBy?: boolean; + updatedByPrincipal?: boolean; + namespaceByNamespaceIdAndDatabaseId?: { + select: NamespaceSelect; + }; +}; export type WebhookEndpointSelect = { active?: boolean; createdAt?: boolean; @@ -6820,7 +6962,7 @@ export type WebhookEndpointSelect = { functionDefinition?: { select: FunctionDefinitionSelect; }; - namespace?: { + namespaceByNamespaceIdAndDatabaseId?: { select: NamespaceSelect; }; webhookEventsByEndpointId?: { @@ -6957,46 +7099,6 @@ export interface BuildStepFilter { /** Filter by the object’s `summary` field. */ summary?: JSONFilter; } -export interface BuilderBindingFilter { - /** Checks for all expressions in this list. */ - and?: BuilderBindingFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `createdByPrincipal` field. */ - createdByPrincipal?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `installationId` field. */ - installationId?: UUIDFilter; - /** Filter by the object’s `lastError` field. */ - lastError?: StringFilter; - /** Filter by the object’s `metadata` field. */ - metadata?: JSONFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Negates the expression. */ - not?: BuilderBindingFilter; - /** Filter by the object’s `observedHost` field. */ - observedHost?: StringFilter; - /** Checks for any expressions in this list. */ - or?: BuilderBindingFilter[]; - /** Filter by the object’s `realm` field. */ - realm?: StringFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `updatedByPrincipal` field. */ - updatedByPrincipal?: UUIDFilter; -} export interface ContentPresetFilter { /** Filter by the object’s `active` field. */ active?: BooleanFilter; @@ -7557,8 +7659,8 @@ export interface FunctionDeploymentFilter { lastError?: StringFilter; /** Filter by the object’s `lastErrorAt` field. */ lastErrorAt?: DatetimeFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -8271,10 +8373,6 @@ export interface NamespaceFilter { and?: NamespaceFilter[]; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; - /** Filter by the object’s `builderBindings` relation. */ - builderBindings?: NamespaceToManyBuilderBindingFilter; - /** `builderBindings` exist. */ - builderBindingsExist?: boolean; /** Filter by the object’s `clusterId` field. */ clusterId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -8283,10 +8381,10 @@ export interface NamespaceFilter { databaseId?: UUIDFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; - /** Filter by the object’s `functionDeployments` relation. */ - functionDeployments?: NamespaceToManyFunctionDeploymentFilter; - /** `functionDeployments` exist. */ - functionDeploymentsExist?: boolean; + /** Filter by the object’s `functionDeploymentsByNamespaceIdAndDatabaseId` relation. */ + functionDeploymentsByNamespaceIdAndDatabaseId?: NamespaceToManyFunctionDeploymentFilter; + /** `functionDeploymentsByNamespaceIdAndDatabaseId` exist. */ + functionDeploymentsByNamespaceIdAndDatabaseIdExist?: boolean; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isActive` field. */ @@ -8305,30 +8403,34 @@ export interface NamespaceFilter { not?: NamespaceFilter; /** Checks for any expressions in this list. */ or?: NamespaceFilter[]; - /** Filter by the object’s `registryBindings` relation. */ - registryBindings?: NamespaceToManyRegistryBindingFilter; - /** `registryBindings` exist. */ - registryBindingsExist?: boolean; - /** Filter by the object’s `resourceDefinitions` relation. */ - resourceDefinitions?: NamespaceToManyResourceDefinitionFilter; - /** `resourceDefinitions` exist. */ - resourceDefinitionsExist?: boolean; - /** Filter by the object’s `resourceInstallations` relation. */ - resourceInstallations?: NamespaceToManyResourceInstallationFilter; - /** `resourceInstallations` exist. */ - resourceInstallationsExist?: boolean; - /** Filter by the object’s `resources` relation. */ - resources?: NamespaceToManyResourceFilter; - /** `resources` exist. */ - resourcesExist?: boolean; + /** Filter by the object’s `registryBindingsByNamespaceIdAndDatabaseId` relation. */ + registryBindingsByNamespaceIdAndDatabaseId?: NamespaceToManyRegistryBindingFilter; + /** `registryBindingsByNamespaceIdAndDatabaseId` exist. */ + registryBindingsByNamespaceIdAndDatabaseIdExist?: boolean; + /** Filter by the object’s `resourceDefinitionsByNamespaceIdAndDatabaseId` relation. */ + resourceDefinitionsByNamespaceIdAndDatabaseId?: NamespaceToManyResourceDefinitionFilter; + /** `resourceDefinitionsByNamespaceIdAndDatabaseId` exist. */ + resourceDefinitionsByNamespaceIdAndDatabaseIdExist?: boolean; + /** Filter by the object’s `resourceInstallationsByNamespaceIdAndDatabaseId` relation. */ + resourceInstallationsByNamespaceIdAndDatabaseId?: NamespaceToManyResourceInstallationFilter; + /** `resourceInstallationsByNamespaceIdAndDatabaseId` exist. */ + resourceInstallationsByNamespaceIdAndDatabaseIdExist?: boolean; + /** Filter by the object’s `resourcesByNamespaceIdAndDatabaseId` relation. */ + resourcesByNamespaceIdAndDatabaseId?: NamespaceToManyResourceFilter; + /** `resourcesByNamespaceIdAndDatabaseId` exist. */ + resourcesByNamespaceIdAndDatabaseIdExist?: boolean; + /** Filter by the object’s `serviceBindingsByNamespaceIdAndDatabaseId` relation. */ + serviceBindingsByNamespaceIdAndDatabaseId?: NamespaceToManyServiceBindingFilter; + /** `serviceBindingsByNamespaceIdAndDatabaseId` exist. */ + serviceBindingsByNamespaceIdAndDatabaseIdExist?: boolean; /** Filter by the object’s `status` field. */ status?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; - /** Filter by the object’s `webhookEndpoints` relation. */ - webhookEndpoints?: NamespaceToManyWebhookEndpointFilter; - /** `webhookEndpoints` exist. */ - webhookEndpointsExist?: boolean; + /** Filter by the object’s `webhookEndpointsByNamespaceIdAndDatabaseId` relation. */ + webhookEndpointsByNamespaceIdAndDatabaseId?: NamespaceToManyWebhookEndpointFilter; + /** `webhookEndpointsByNamespaceIdAndDatabaseId` exist. */ + webhookEndpointsByNamespaceIdAndDatabaseIdExist?: boolean; } export interface NamespaceEventFilter { /** Filter by the object’s `actorId` field. */ @@ -8458,44 +8560,6 @@ export interface PlatformBuildStepFilter { /** Filter by the object’s `summary` field. */ summary?: JSONFilter; } -export interface PlatformBuilderBindingFilter { - /** Checks for all expressions in this list. */ - and?: PlatformBuilderBindingFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `createdByPrincipal` field. */ - createdByPrincipal?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `installationId` field. */ - installationId?: UUIDFilter; - /** Filter by the object’s `lastError` field. */ - lastError?: StringFilter; - /** Filter by the object’s `metadata` field. */ - metadata?: JSONFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: PlatformNamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Negates the expression. */ - not?: PlatformBuilderBindingFilter; - /** Filter by the object’s `observedHost` field. */ - observedHost?: StringFilter; - /** Checks for any expressions in this list. */ - or?: PlatformBuilderBindingFilter[]; - /** Filter by the object’s `realm` field. */ - realm?: StringFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `updatedByPrincipal` field. */ - updatedByPrincipal?: UUIDFilter; -} export interface PlatformFunctionApiBindingFilter { /** Filter by the object’s `alias` field. */ alias?: StringFilter; @@ -9166,10 +9230,6 @@ export interface PlatformNamespaceFilter { not?: PlatformNamespaceFilter; /** Checks for any expressions in this list. */ or?: PlatformNamespaceFilter[]; - /** Filter by the object’s `platformBuilderBindingsByNamespaceId` relation. */ - platformBuilderBindingsByNamespaceId?: PlatformNamespaceToManyPlatformBuilderBindingFilter; - /** `platformBuilderBindingsByNamespaceId` exist. */ - platformBuilderBindingsByNamespaceIdExist?: boolean; /** Filter by the object’s `platformFunctionDeploymentsByNamespaceId` relation. */ platformFunctionDeploymentsByNamespaceId?: PlatformNamespaceToManyPlatformFunctionDeploymentFilter; /** `platformFunctionDeploymentsByNamespaceId` exist. */ @@ -9190,6 +9250,10 @@ export interface PlatformNamespaceFilter { platformResourcesByNamespaceId?: PlatformNamespaceToManyPlatformResourceFilter; /** `platformResourcesByNamespaceId` exist. */ platformResourcesByNamespaceIdExist?: boolean; + /** Filter by the object’s `platformServiceBindingsByNamespaceId` relation. */ + platformServiceBindingsByNamespaceId?: PlatformNamespaceToManyPlatformServiceBindingFilter; + /** `platformServiceBindingsByNamespaceId` exist. */ + platformServiceBindingsByNamespaceIdExist?: boolean; /** Filter by the object’s `platformWebhookEndpointsByNamespaceId` relation. */ platformWebhookEndpointsByNamespaceId?: PlatformNamespaceToManyPlatformWebhookEndpointFilter; /** `platformWebhookEndpointsByNamespaceId` exist. */ @@ -9238,6 +9302,8 @@ export interface PlatformProposalCommentFilter { createdByPrincipal?: UUIDFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -9266,6 +9332,8 @@ export interface PlatformProposalCommentFilter { search?: FullTextFilter; /** TRGM search on the `body` column. */ trgmBody?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `path` column. */ trgmPath?: TrgmSearchInput; /** TSV search on the `search` column. */ @@ -9312,6 +9380,8 @@ export interface PlatformProposalFilter { dueAt?: DatetimeFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -9386,6 +9456,8 @@ export interface PlatformProposalFilter { trgmBody?: TrgmSearchInput; /** TRGM search on the `closed_reason` column. */ trgmClosedReason?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `kind` column. */ trgmKind?: TrgmSearchInput; /** TRGM search on the `merge_commit` column. */ @@ -9712,6 +9784,8 @@ export interface PlatformRepositoryFilter { description?: StringTrgmFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `externalId` field. */ @@ -9762,6 +9836,8 @@ export interface PlatformRepositoryFilter { trgmDefaultBranch?: TrgmSearchInput; /** TRGM search on the `description` column. */ trgmDescription?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `external_id` column. */ trgmExternalId?: TrgmSearchInput; /** TRGM search on the `name` column. */ @@ -10447,6 +10523,48 @@ export interface PlatformResourcesResolvedRequirementFilter { /** Filter by the object’s `slug` field. */ slug?: StringFilter; } +export interface PlatformServiceBindingFilter { + /** Checks for all expressions in this list. */ + and?: PlatformServiceBindingFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `installationScope` field. */ + installationScope?: StringFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformServiceBindingFilter; + /** Filter by the object’s `observedHost` field. */ + observedHost?: StringFilter; + /** Checks for any expressions in this list. */ + or?: PlatformServiceBindingFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} export interface PlatformWebhookEndpointFilter { /** Filter by the object’s `active` field. */ active?: BooleanFilter; @@ -10546,6 +10664,8 @@ export interface ProposalCommentFilter { databaseId?: UUIDFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -10574,6 +10694,8 @@ export interface ProposalCommentFilter { search?: FullTextFilter; /** TRGM search on the `body` column. */ trgmBody?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `path` column. */ trgmPath?: TrgmSearchInput; /** TSV search on the `search` column. */ @@ -10626,6 +10748,8 @@ export interface ProposalFilter { dueAt?: DatetimeFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -10696,6 +10820,8 @@ export interface ProposalFilter { trgmBody?: TrgmSearchInput; /** TRGM search on the `closed_reason` column. */ trgmClosedReason?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `kind` column. */ trgmKind?: TrgmSearchInput; /** TRGM search on the `merge_commit` column. */ @@ -10896,8 +11022,8 @@ export interface RegistryBindingFilter { id?: UUIDFilter; /** Filter by the object’s `metadata` field. */ metadata?: JSONFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -11042,6 +11168,8 @@ export interface RepositoryFilter { description?: StringTrgmFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `externalId` field. */ @@ -11088,6 +11216,8 @@ export interface RepositoryFilter { trgmDefaultBranch?: TrgmSearchInput; /** TRGM search on the `description` column. */ trgmDescription?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `external_id` column. */ trgmExternalId?: TrgmSearchInput; /** TRGM search on the `name` column. */ @@ -11290,8 +11420,8 @@ export interface ResourceFilter { memoryRequestBytes?: BigIntFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -11396,8 +11526,8 @@ export interface ResourceDefinitionFilter { labels?: JSONFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -11462,8 +11592,8 @@ export interface ResourceInstallationFilter { id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -11795,6 +11925,50 @@ export interface ResourcesResolvedRequirementFilter { /** Filter by the object’s `slug` field. */ slug?: StringFilter; } +export interface ServiceBindingFilter { + /** Checks for all expressions in this list. */ + and?: ServiceBindingFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `installationScope` field. */ + installationScope?: StringFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: ServiceBindingFilter; + /** Filter by the object’s `observedHost` field. */ + observedHost?: StringFilter; + /** Checks for any expressions in this list. */ + or?: ServiceBindingFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} export interface WebhookEndpointFilter { /** Filter by the object’s `active` field. */ active?: BooleanFilter; @@ -11816,8 +11990,8 @@ export interface WebhookEndpointFilter { host?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -11966,40 +12140,6 @@ export type BuildStepOrderBy = | 'STATUS_DESC' | 'SUMMARY_ASC' | 'SUMMARY_DESC'; -export type BuilderBindingOrderBy = - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'CREATED_BY_PRINCIPAL_ASC' - | 'CREATED_BY_PRINCIPAL_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'INSTALLATION_ID_ASC' - | 'INSTALLATION_ID_DESC' - | 'LAST_ERROR_ASC' - | 'LAST_ERROR_DESC' - | 'METADATA_ASC' - | 'METADATA_DESC' - | 'NAMESPACE_ID_ASC' - | 'NAMESPACE_ID_DESC' - | 'NATURAL' - | 'OBSERVED_HOST_ASC' - | 'OBSERVED_HOST_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'REALM_ASC' - | 'REALM_DESC' - | 'STATUS_ASC' - | 'STATUS_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'UPDATED_BY_PRINCIPAL_ASC' - | 'UPDATED_BY_PRINCIPAL_DESC'; export type ContentPresetOrderBy = | 'ACTIVE_ASC' | 'ACTIVE_DESC' @@ -13198,38 +13338,6 @@ export type PlatformBuildStepOrderBy = | 'STATUS_DESC' | 'SUMMARY_ASC' | 'SUMMARY_DESC'; -export type PlatformBuilderBindingOrderBy = - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'CREATED_BY_PRINCIPAL_ASC' - | 'CREATED_BY_PRINCIPAL_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'INSTALLATION_ID_ASC' - | 'INSTALLATION_ID_DESC' - | 'LAST_ERROR_ASC' - | 'LAST_ERROR_DESC' - | 'METADATA_ASC' - | 'METADATA_DESC' - | 'NAMESPACE_ID_ASC' - | 'NAMESPACE_ID_DESC' - | 'NATURAL' - | 'OBSERVED_HOST_ASC' - | 'OBSERVED_HOST_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'REALM_ASC' - | 'REALM_DESC' - | 'STATUS_ASC' - | 'STATUS_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'UPDATED_BY_PRINCIPAL_ASC' - | 'UPDATED_BY_PRINCIPAL_DESC'; export type PlatformFunctionApiBindingOrderBy = | 'ALIAS_ASC' | 'ALIAS_DESC' @@ -13829,6 +13937,10 @@ export type PlatformProposalCommentOrderBy = | 'CREATED_BY_PRINCIPAL_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_ASC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' @@ -13885,6 +13997,10 @@ export type PlatformProposalOrderBy = | 'DUE_AT_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_ASC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' @@ -14185,6 +14301,10 @@ export type PlatformRepositoryOrderBy = | 'DESCRIPTION_TRGM_SIMILARITY_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_ASC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' @@ -14766,6 +14886,42 @@ export type PlatformResourcesResolvedRequirementOrderBy = | 'SECRETS_OBJECT_NAME_DESC' | 'SLUG_ASC' | 'SLUG_DESC'; +export type PlatformServiceBindingOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'INSTALLATION_ID_ASC' + | 'INSTALLATION_ID_DESC' + | 'INSTALLATION_SCOPE_ASC' + | 'INSTALLATION_SCOPE_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'LAST_ERROR_ASC' + | 'LAST_ERROR_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'NATURAL' + | 'OBSERVED_HOST_ASC' + | 'OBSERVED_HOST_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REALM_ASC' + | 'REALM_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type PlatformWebhookEndpointOrderBy = | 'ACTIVE_ASC' | 'ACTIVE_DESC' @@ -14847,6 +15003,10 @@ export type ProposalCommentOrderBy = | 'DATABASE_ID_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_ASC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' @@ -14905,6 +15065,10 @@ export type ProposalOrderBy = | 'DUE_AT_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_ASC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' @@ -15221,6 +15385,10 @@ export type RepositoryOrderBy = | 'DESCRIPTION_TRGM_SIMILARITY_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_ASC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' @@ -15824,6 +15992,44 @@ export type ResourcesResolvedRequirementOrderBy = | 'SECRETS_OBJECT_NAME_DESC' | 'SLUG_ASC' | 'SLUG_DESC'; +export type ServiceBindingOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'INSTALLATION_ID_ASC' + | 'INSTALLATION_ID_DESC' + | 'INSTALLATION_SCOPE_ASC' + | 'INSTALLATION_SCOPE_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'LAST_ERROR_ASC' + | 'LAST_ERROR_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'NATURAL' + | 'OBSERVED_HOST_ASC' + | 'OBSERVED_HOST_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REALM_ASC' + | 'REALM_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type WebhookEndpointOrderBy = | 'ACTIVE_ASC' | 'ACTIVE_DESC' @@ -15927,7 +16133,6 @@ export interface BuildPatch { imageRef?: string | null; jobId?: string | null; logs?: ConstructiveInternalTypeUpload | null; - logsUpload?: File | null; matrixKey?: string | null; metadata?: Record | null; proposalId?: string | null; @@ -15992,46 +16197,6 @@ export interface DeleteBuildStepInput { clientMutationId?: string; id: string; } -export interface CreateBuilderBindingInput { - clientMutationId?: string; - builderBinding: { - createdBy?: string; - createdByPrincipal?: string; - databaseId: string; - installationId: string; - lastError?: string; - metadata?: Record; - namespaceId: string; - observedHost?: string; - realm?: string; - status?: string; - updatedBy?: string; - updatedByPrincipal?: string; - }; -} -export interface BuilderBindingPatch { - createdBy?: string | null; - createdByPrincipal?: string | null; - databaseId?: string | null; - installationId?: string | null; - lastError?: string | null; - metadata?: Record | null; - namespaceId?: string | null; - observedHost?: string | null; - realm?: string | null; - status?: string | null; - updatedBy?: string | null; - updatedByPrincipal?: string | null; -} -export interface UpdateBuilderBindingInput { - clientMutationId?: string; - id: string; - builderBindingPatch: BuilderBindingPatch; -} -export interface DeleteBuilderBindingInput { - clientMutationId?: string; - id: string; -} export interface CreateContentPresetInput { clientMutationId?: string; contentPreset: { @@ -16064,20 +16229,6 @@ export interface DeleteContentPresetInput { clientMutationId?: string; id: string; } -export interface CreateDatabaseFunctionGraphInput { - clientMutationId?: string; - databaseFunctionGraph: { - context?: string; - createdBy?: string; - databaseId: string; - definitionsCommitId: string; - description?: string; - isValid?: boolean; - name?: string; - storeId: string; - validationErrors?: Record; - }; -} export interface DatabaseFunctionGraphPatch { context?: string | null; createdBy?: string | null; @@ -16304,13 +16455,6 @@ export interface DeleteDatabaseGraphCommitInput { clientMutationId?: string; id: string; } -export interface CreateDatabaseGraphGetAllTreeNodesRecordInput { - clientMutationId?: string; - databaseGraphGetAllTreeNodesRecord: { - data?: Record; - path?: string[]; - }; -} export interface DatabaseGraphGetAllTreeNodesRecordPatch { data?: Record | null; path?: string[] | null; @@ -16726,20 +16870,6 @@ export interface DeleteFunctionGraphCommitInput { clientMutationId?: string; id: string; } -export interface CreateFunctionGraphInput { - clientMutationId?: string; - functionGraph: { - context?: string; - createdBy?: string; - definitionsCommitId: string; - description?: string; - isValid?: boolean; - name?: string; - scopeId: string; - storeId: string; - validationErrors?: Record; - }; -} export interface FunctionGraphPatch { context?: string | null; createdBy?: string | null; @@ -17144,13 +17274,6 @@ export interface DeleteFunctionScheduleInput { clientMutationId?: string; id: string; } -export interface CreateGetAllTreeNodesRecordInput { - clientMutationId?: string; - getAllTreeNodesRecord: { - data?: Record; - path?: string[]; - }; -} export interface GetAllTreeNodesRecordPatch { data?: Record | null; path?: string[] | null; @@ -17278,13 +17401,6 @@ export interface DeleteInfraCommitInput { clientMutationId?: string; id: string; } -export interface CreateInfraGetAllTreeNodesRecordInput { - clientMutationId?: string; - infraGetAllTreeNodesRecord: { - data?: Record; - path?: string[]; - }; -} export interface InfraGetAllTreeNodesRecordPatch { data?: Record | null; path?: string[] | null; @@ -17388,7 +17504,6 @@ export interface IntegrationProviderPatch { description?: string | null; icon?: string | null; logo?: ConstructiveInternalTypeImage | null; - logoUpload?: File | null; name?: string | null; requiredConfigs?: ResourceRequirementInput[] | null; requiredSecrets?: ResourceRequirementInput[] | null; @@ -17504,7 +17619,6 @@ export interface PlatformBuildPatch { imageRef?: string | null; jobId?: string | null; logs?: ConstructiveInternalTypeUpload | null; - logsUpload?: File | null; matrixKey?: string | null; metadata?: Record | null; proposalId?: string | null; @@ -17568,44 +17682,6 @@ export interface DeletePlatformBuildStepInput { clientMutationId?: string; id: string; } -export interface CreatePlatformBuilderBindingInput { - clientMutationId?: string; - platformBuilderBinding: { - createdBy?: string; - createdByPrincipal?: string; - installationId: string; - lastError?: string; - metadata?: Record; - namespaceId: string; - observedHost?: string; - realm?: string; - status?: string; - updatedBy?: string; - updatedByPrincipal?: string; - }; -} -export interface PlatformBuilderBindingPatch { - createdBy?: string | null; - createdByPrincipal?: string | null; - installationId?: string | null; - lastError?: string | null; - metadata?: Record | null; - namespaceId?: string | null; - observedHost?: string | null; - realm?: string | null; - status?: string | null; - updatedBy?: string | null; - updatedByPrincipal?: string | null; -} -export interface UpdatePlatformBuilderBindingInput { - clientMutationId?: string; - id: string; - platformBuilderBindingPatch: PlatformBuilderBindingPatch; -} -export interface DeletePlatformBuilderBindingInput { - clientMutationId?: string; - id: string; -} export interface CreatePlatformFunctionApiBindingInput { clientMutationId?: string; platformFunctionApiBinding: { @@ -18114,13 +18190,6 @@ export interface DeletePlatformInfraCommitInput { clientMutationId?: string; id: string; } -export interface CreatePlatformInfraGetAllTreeNodesRecordInput { - clientMutationId?: string; - platformInfraGetAllTreeNodesRecord: { - data?: Record; - path?: string[]; - }; -} export interface PlatformInfraGetAllTreeNodesRecordPatch { data?: Record | null; path?: string[] | null; @@ -18892,25 +18961,6 @@ export interface DeletePlatformResourceInput { clientMutationId?: string; id: string; } -export interface CreatePlatformResourceDeclaredCapacityInput { - clientMutationId?: string; - platformResourceDeclaredCapacity: { - cpuLimitMillicores?: string; - cpuRequestMillicores?: string; - installationId: string; - isTransient?: boolean; - kind?: string; - memoryLimitBytes?: string; - memoryRequestBytes?: string; - namespaceId: string; - podCountMax?: number; - podCountMin?: number; - source?: string; - sourceId: string; - storageSizeBytes?: string; - storageTotalBytes?: string; - }; -} export interface PlatformResourceDeclaredCapacityPatch { cpuLimitMillicores?: string | null; cpuRequestMillicores?: string | null; @@ -19052,29 +19102,6 @@ export interface DeletePlatformResourceInstallationInput { clientMutationId?: string; id: string; } -export interface CreatePlatformResourceObservedStorageInput { - clientMutationId?: string; - platformResourceObservedStorage: { - capacity?: string; - capacityBytes?: string; - claimName?: string; - declaredStorageClass?: string; - declaredStorageSizeBytes?: string; - declaredStorageTotalBytes?: string; - installationId: string; - isBound?: boolean; - kind?: string; - namespaceId: string; - phase?: string; - requested?: string; - requestedBytes?: string; - resourceId: string; - resourceStatus?: string; - slug?: string; - storageClass?: string; - storageName?: string; - }; -} export interface PlatformResourceObservedStoragePatch { capacity?: string | null; capacityBytes?: string | null; @@ -19196,30 +19223,6 @@ export interface DeletePlatformResourceUsageSummaryInput { clientMutationId?: string; id: string; } -export interface CreatePlatformResourceUtilizationInput { - clientMutationId?: string; - platformResourceUtilization: { - avgMemoryBytes?: string; - cpuLimitMillicores?: string; - cpuPeakUtilization?: string; - cpuRequestHeadroomMillicores?: string; - cpuRequestMillicores?: string; - date?: string; - gbSeconds?: string; - kind?: string; - maxCpuMillicores?: string; - maxMemoryBytes?: string; - memoryLimitBytes?: string; - memoryPeakUtilization?: string; - memoryRequestBytes?: string; - memoryRequestHeadroomBytes?: string; - namespaceId: string; - replicas?: number; - resourceId: string; - runtimeSeconds?: string; - sampleCount?: number; - }; -} export interface PlatformResourceUtilizationPatch { avgMemoryBytes?: string | null; cpuLimitMillicores?: string | null; @@ -19250,43 +19253,6 @@ export interface DeletePlatformResourceUtilizationInput { clientMutationId?: string; id: string; } -export interface CreatePlatformResourcesHealthInput { - clientMutationId?: string; - platformResourcesHealth: { - annotations?: Record; - cpuLimitMillicores?: string; - cpuRequestMillicores?: string; - createdBy?: string; - createdByPrincipal?: string; - errorCount?: number; - imageRef?: string; - installationId: string; - integrations?: string[]; - kind?: string; - labels?: Record; - lastError?: string; - lastHeartbeatAt?: string; - memoryLimitBytes?: string; - memoryRequestBytes?: string; - name?: string; - namespaceId: string; - realm?: string; - replicas?: number; - requiredConfigs?: ResourceRequirement[]; - requiredSecrets?: ResourceRequirement[]; - resourceDefinitionId: string; - slug?: string; - spec?: Record; - status?: string; - statusDetail?: string; - statusObserved?: Record; - storageClass?: string; - storageSizeBytes?: string; - storageTotalBytes?: string; - updatedBy?: string; - updatedByPrincipal?: string; - }; -} export interface PlatformResourcesHealthPatch { annotations?: Record | null; cpuLimitMillicores?: string | null; @@ -19330,18 +19296,6 @@ export interface DeletePlatformResourcesHealthInput { clientMutationId?: string; id: string; } -export interface CreatePlatformResourcesRequirementsStateInput { - clientMutationId?: string; - platformResourcesRequirementsState: { - configHash?: string; - configObjectName?: string; - requirementsHash?: string; - resourceId: string; - secretsHash?: string; - secretsObjectName?: string; - slug?: string; - }; -} export interface PlatformResourcesRequirementsStatePatch { configHash?: string | null; configObjectName?: string | null; @@ -19360,22 +19314,6 @@ export interface DeletePlatformResourcesRequirementsStateInput { clientMutationId?: string; id: string; } -export interface CreatePlatformResourcesResolvedRequirementInput { - clientMutationId?: string; - platformResourcesResolvedRequirement: { - atomId: string; - configObjectName?: string; - name?: string; - namespaceId: string; - present?: boolean; - realm?: string; - required?: boolean; - requirementKind?: string; - resourceId: string; - secretsObjectName?: string; - slug?: string; - }; -} export interface PlatformResourcesResolvedRequirementPatch { atomId?: string | null; configObjectName?: string | null; @@ -19398,6 +19336,48 @@ export interface DeletePlatformResourcesResolvedRequirementInput { clientMutationId?: string; id: string; } +export interface CreatePlatformServiceBindingInput { + clientMutationId?: string; + platformServiceBinding: { + createdBy?: string; + createdByPrincipal?: string; + installationId: string; + installationScope: string; + kind: string; + lastError?: string; + metadata?: Record; + namespaceId: string; + observedHost?: string; + realm?: string; + status?: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformServiceBindingPatch { + createdBy?: string | null; + createdByPrincipal?: string | null; + installationId?: string | null; + installationScope?: string | null; + kind?: string | null; + lastError?: string | null; + metadata?: Record | null; + namespaceId?: string | null; + observedHost?: string | null; + realm?: string | null; + status?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformServiceBindingInput { + clientMutationId?: string; + id: string; + platformServiceBindingPatch: PlatformServiceBindingPatch; +} +export interface DeletePlatformServiceBindingInput { + clientMutationId?: string; + id: string; +} export interface CreatePlatformWebhookEndpointInput { clientMutationId?: string; platformWebhookEndpoint: { @@ -20059,25 +20039,6 @@ export interface DeleteResourceInput { clientMutationId?: string; id: string; } -export interface CreateResourceDeclaredCapacityInput { - clientMutationId?: string; - resourceDeclaredCapacity: { - cpuLimitMillicores?: string; - cpuRequestMillicores?: string; - installationId: string; - isTransient?: boolean; - kind?: string; - memoryLimitBytes?: string; - memoryRequestBytes?: string; - namespaceId: string; - podCountMax?: number; - podCountMin?: number; - source?: string; - sourceId: string; - storageSizeBytes?: string; - storageTotalBytes?: string; - }; -} export interface ResourceDeclaredCapacityPatch { cpuLimitMillicores?: string | null; cpuRequestMillicores?: string | null; @@ -20225,29 +20186,6 @@ export interface DeleteResourceInstallationInput { clientMutationId?: string; id: string; } -export interface CreateResourceObservedStorageInput { - clientMutationId?: string; - resourceObservedStorage: { - capacity?: string; - capacityBytes?: string; - claimName?: string; - declaredStorageClass?: string; - declaredStorageSizeBytes?: string; - declaredStorageTotalBytes?: string; - installationId: string; - isBound?: boolean; - kind?: string; - namespaceId: string; - phase?: string; - requested?: string; - requestedBytes?: string; - resourceId: string; - resourceStatus?: string; - slug?: string; - storageClass?: string; - storageName?: string; - }; -} export interface ResourceObservedStoragePatch { capacity?: string | null; capacityBytes?: string | null; @@ -20375,30 +20313,6 @@ export interface DeleteResourceUsageSummaryInput { clientMutationId?: string; id: string; } -export interface CreateResourceUtilizationInput { - clientMutationId?: string; - resourceUtilization: { - avgMemoryBytes?: string; - cpuLimitMillicores?: string; - cpuPeakUtilization?: string; - cpuRequestHeadroomMillicores?: string; - cpuRequestMillicores?: string; - date?: string; - gbSeconds?: string; - kind?: string; - maxCpuMillicores?: string; - maxMemoryBytes?: string; - memoryLimitBytes?: string; - memoryPeakUtilization?: string; - memoryRequestBytes?: string; - memoryRequestHeadroomBytes?: string; - namespaceId: string; - replicas?: number; - resourceId: string; - runtimeSeconds?: string; - sampleCount?: number; - }; -} export interface ResourceUtilizationPatch { avgMemoryBytes?: string | null; cpuLimitMillicores?: string | null; @@ -20429,44 +20343,6 @@ export interface DeleteResourceUtilizationInput { clientMutationId?: string; id: string; } -export interface CreateResourcesHealthInput { - clientMutationId?: string; - resourcesHealth: { - annotations?: Record; - cpuLimitMillicores?: string; - cpuRequestMillicores?: string; - createdBy?: string; - createdByPrincipal?: string; - databaseId: string; - errorCount?: number; - imageRef?: string; - installationId: string; - integrations?: string[]; - kind?: string; - labels?: Record; - lastError?: string; - lastHeartbeatAt?: string; - memoryLimitBytes?: string; - memoryRequestBytes?: string; - name?: string; - namespaceId: string; - realm?: string; - replicas?: number; - requiredConfigs?: ResourceRequirement[]; - requiredSecrets?: ResourceRequirement[]; - resourceDefinitionId: string; - slug?: string; - spec?: Record; - status?: string; - statusDetail?: string; - statusObserved?: Record; - storageClass?: string; - storageSizeBytes?: string; - storageTotalBytes?: string; - updatedBy?: string; - updatedByPrincipal?: string; - }; -} export interface ResourcesHealthPatch { annotations?: Record | null; cpuLimitMillicores?: string | null; @@ -20511,18 +20387,6 @@ export interface DeleteResourcesHealthInput { clientMutationId?: string; id: string; } -export interface CreateResourcesRequirementsStateInput { - clientMutationId?: string; - resourcesRequirementsState: { - configHash?: string; - configObjectName?: string; - requirementsHash?: string; - resourceId: string; - secretsHash?: string; - secretsObjectName?: string; - slug?: string; - }; -} export interface ResourcesRequirementsStatePatch { configHash?: string | null; configObjectName?: string | null; @@ -20541,22 +20405,6 @@ export interface DeleteResourcesRequirementsStateInput { clientMutationId?: string; id: string; } -export interface CreateResourcesResolvedRequirementInput { - clientMutationId?: string; - resourcesResolvedRequirement: { - atomId: string; - configObjectName?: string; - name?: string; - namespaceId: string; - present?: boolean; - realm?: string; - required?: boolean; - requirementKind?: string; - resourceId: string; - secretsObjectName?: string; - slug?: string; - }; -} export interface ResourcesResolvedRequirementPatch { atomId?: string | null; configObjectName?: string | null; @@ -20579,6 +20427,50 @@ export interface DeleteResourcesResolvedRequirementInput { clientMutationId?: string; id: string; } +export interface CreateServiceBindingInput { + clientMutationId?: string; + serviceBinding: { + createdBy?: string; + createdByPrincipal?: string; + databaseId: string; + installationId: string; + installationScope: string; + kind: string; + lastError?: string; + metadata?: Record; + namespaceId: string; + observedHost?: string; + realm?: string; + status?: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface ServiceBindingPatch { + createdBy?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + installationId?: string | null; + installationScope?: string | null; + kind?: string | null; + lastError?: string | null; + metadata?: Record | null; + namespaceId?: string | null; + observedHost?: string | null; + realm?: string | null; + status?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdateServiceBindingInput { + clientMutationId?: string; + id: string; + serviceBindingPatch: ServiceBindingPatch; +} +export interface DeleteServiceBindingInput { + clientMutationId?: string; + id: string; +} export interface CreateWebhookEndpointInput { clientMutationId?: string; webhookEndpoint: { @@ -20682,13 +20574,13 @@ export const connectionFieldsMap = { imageGrants: 'ImageGrant', }, Namespace: { - builderBindings: 'BuilderBinding', - functionDeployments: 'FunctionDeployment', - registryBindings: 'RegistryBinding', - resourceDefinitions: 'ResourceDefinition', - resourceInstallations: 'ResourceInstallation', - resources: 'Resource', - webhookEndpoints: 'WebhookEndpoint', + functionDeploymentsByNamespaceIdAndDatabaseId: 'FunctionDeployment', + registryBindingsByNamespaceIdAndDatabaseId: 'RegistryBinding', + resourceDefinitionsByNamespaceIdAndDatabaseId: 'ResourceDefinition', + resourceInstallationsByNamespaceIdAndDatabaseId: 'ResourceInstallation', + resourcesByNamespaceIdAndDatabaseId: 'Resource', + serviceBindingsByNamespaceIdAndDatabaseId: 'ServiceBinding', + webhookEndpointsByNamespaceIdAndDatabaseId: 'WebhookEndpoint', }, PlatformFunctionApiBinding: { platformFunctionInvocationsByApiBindingId: 'PlatformFunctionInvocation', @@ -20703,12 +20595,12 @@ export const connectionFieldsMap = { platformImageGrantsByImageId: 'PlatformImageGrant', }, PlatformNamespace: { - platformBuilderBindingsByNamespaceId: 'PlatformBuilderBinding', platformFunctionDeploymentsByNamespaceId: 'PlatformFunctionDeployment', platformRegistryBindingsByNamespaceId: 'PlatformRegistryBinding', platformResourceDefinitionsByNamespaceId: 'PlatformResourceDefinition', platformResourceInstallationsByNamespaceId: 'PlatformResourceInstallation', platformResourcesByNamespaceId: 'PlatformResource', + platformServiceBindingsByNamespaceId: 'PlatformServiceBinding', platformWebhookEndpointsByNamespaceId: 'PlatformWebhookEndpoint', }, PlatformProposalComment: { @@ -20852,6 +20744,15 @@ export interface CopyGraphInput { name?: string; scopeId?: string; } +export interface CreateFunctionGraphInput { + clientMutationId?: string; + context?: string; + createdBy?: string; + definitionsCommitId?: string; + description?: string; + name?: string; + scopeId?: string; +} export interface DatabaseAddEdgeInput { clientMutationId?: string; context?: string; @@ -21488,15 +21389,6 @@ export interface ConstructiveInternalTypeImageFilter { /** Not included in the specified list. */ notIn?: ConstructiveInternalTypeImage[]; } -/** A filter to be used against many `BuilderBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface NamespaceToManyBuilderBindingFilter { - /** Filters to entities where every related entity matches. */ - every?: BuilderBindingFilter; - /** Filters to entities where no related entity matches. */ - none?: BuilderBindingFilter; - /** Filters to entities where at least one related entity matches. */ - some?: BuilderBindingFilter; -} /** A filter to be used against many `FunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ export interface NamespaceToManyFunctionDeploymentFilter { /** Filters to entities where every related entity matches. */ @@ -21542,6 +21434,15 @@ export interface NamespaceToManyResourceFilter { /** Filters to entities where at least one related entity matches. */ some?: ResourceFilter; } +/** A filter to be used against many `ServiceBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface NamespaceToManyServiceBindingFilter { + /** Filters to entities where every related entity matches. */ + every?: ServiceBindingFilter; + /** Filters to entities where no related entity matches. */ + none?: ServiceBindingFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ServiceBindingFilter; +} /** A filter to be used against many `WebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ export interface NamespaceToManyWebhookEndpointFilter { /** Filters to entities where every related entity matches. */ @@ -21605,15 +21506,6 @@ export interface PlatformImageToManyPlatformImageGrantFilter { /** Filters to entities where at least one related entity matches. */ some?: PlatformImageGrantFilter; } -/** A filter to be used against many `PlatformBuilderBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformNamespaceToManyPlatformBuilderBindingFilter { - /** Filters to entities where every related entity matches. */ - every?: PlatformBuilderBindingFilter; - /** Filters to entities where no related entity matches. */ - none?: PlatformBuilderBindingFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlatformBuilderBindingFilter; -} /** A filter to be used against many `PlatformFunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformNamespaceToManyPlatformFunctionDeploymentFilter { /** Filters to entities where every related entity matches. */ @@ -21659,6 +21551,15 @@ export interface PlatformNamespaceToManyPlatformResourceFilter { /** Filters to entities where at least one related entity matches. */ some?: PlatformResourceFilter; } +/** A filter to be used against many `PlatformServiceBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformNamespaceToManyPlatformServiceBindingFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformServiceBindingFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformServiceBindingFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformServiceBindingFilter; +} /** A filter to be used against many `PlatformWebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformNamespaceToManyPlatformWebhookEndpointFilter { /** Filters to entities where every related entity matches. */ @@ -21812,10 +21713,12 @@ export interface VectorNearbyInput { includeChunks?: boolean; /** Similarity metric to use (default: COSINE). */ metric?: VectorMetric; - /** Natural language text to embed server-side for similarity search. Mutually exclusive with `vector` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** The model that produced `vector`. On a column that records the model of each row's vector, only rows embedded with this model are compared; vectors of two models are not comparable. Filled in server-side when `text` is embedded. */ + model?: string; + /** Natural language text to embed server-side for similarity search. Provide exactly one of `text` or `vector`; sending both or neither is an error. Blank text on its own counts as not given. Requires the LLM plugin to be configured with an embedding provider. */ text?: string; /** Query vector for similarity search. */ - vector: number[]; + vector?: number[]; } /** A filter to be used against many `PlatformProposal` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformProposalToManyPlatformProposalFilter { @@ -22322,32 +22225,6 @@ export interface BuildStepInput { /** Parsed detail: failure message, assertion diff, counts, annotations */ summary?: Record; } -/** An input for mutations affecting `BuilderBinding` */ -export interface BuilderBindingInput { - createdAt?: string; - createdBy?: string; - createdByPrincipal?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - id?: string; - /** BuildKit resource installation serving this binding; may belong to another resource scope */ - installationId: string; - /** Most recent projection failure */ - lastError?: string; - /** Reconciler detail (projection timestamps and diagnostics) */ - metadata?: Record; - /** Namespace whose builds use this BuildKit installation */ - namespaceId: string; - /** BuildKit address last projected into the namespace (NULL = never projected) */ - observedHost?: string; - /** Lane this binding applies to (NULL = the scope's default lane) */ - realm?: string; - /** Projection state of BUILDKIT_HOST: pending, active, failed */ - status?: string; - updatedAt?: string; - updatedBy?: string; - updatedByPrincipal?: string; -} /** An input for mutations affecting `ContentPreset` */ export interface ContentPresetInput { /** Whether this preset is selectable at provision time */ @@ -23384,30 +23261,6 @@ export interface PlatformBuildStepInput { /** Parsed detail: failure message, assertion diff, counts, annotations */ summary?: Record; } -/** An input for mutations affecting `PlatformBuilderBinding` */ -export interface PlatformBuilderBindingInput { - createdAt?: string; - createdBy?: string; - createdByPrincipal?: string; - id?: string; - /** BuildKit resource installation serving this binding; may belong to another resource scope */ - installationId: string; - /** Most recent projection failure */ - lastError?: string; - /** Reconciler detail (projection timestamps and diagnostics) */ - metadata?: Record; - /** Namespace whose builds use this BuildKit installation */ - namespaceId: string; - /** BuildKit address last projected into the namespace (NULL = never projected) */ - observedHost?: string; - /** Lane this binding applies to (NULL = the scope's default lane) */ - realm?: string; - /** Projection state of BUILDKIT_HOST: pending, active, failed */ - status?: string; - updatedAt?: string; - updatedBy?: string; - updatedByPrincipal?: string; -} /** An input for mutations affecting `PlatformFunctionApiBinding` */ export interface PlatformFunctionApiBindingInput { /** Binding alias (e.g. default, staging, production) */ @@ -23933,7 +23786,7 @@ export interface PlatformProposalCommentInput { createdBy?: string; createdByPrincipal?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; /** Line within path the comment is anchored to */ @@ -23966,7 +23819,7 @@ export interface PlatformProposalInput { /** When this is wanted by (NULL when nothing is promised) */ dueAt?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; /** issue (a report or plan), change (merge one ref into another), discussion (an open question), decision (a question answered) */ @@ -24065,7 +23918,7 @@ export interface PlatformProposalsChunkInput { chunkIndex?: number; createdAt?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; metadata?: Record; @@ -24166,7 +24019,7 @@ export interface PlatformRepositoryInput { /** What this repository holds */ description?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; /** Identifier of this repository in the external provider (NULL for local) */ externalId?: string; @@ -24460,6 +24313,34 @@ export interface PlatformResourceUsageSummaryInput { /** Number of raw samples aggregated into this summary */ sampleCount?: number; } +/** An input for mutations affecting `PlatformServiceBinding` */ +export interface PlatformServiceBindingInput { + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + id?: string; + /** Resource installation serving this binding, in the installations table of installation_scope */ + installationId: string; + /** Scope whose installations table holds installation_id: this scope or platform */ + installationScope: string; + /** Service this binding projects: builder (BUILDKIT_HOST) or git (GIT_PROVIDER + GIT_SERVICE_URL) */ + kind: string; + /** Most recent projection failure */ + lastError?: string; + /** Reconciler detail (projection timestamps and diagnostics) */ + metadata?: Record; + /** Namespace whose builds use this BuildKit installation */ + namespaceId: string; + /** Service address last projected into the namespace (NULL = never projected) */ + observedHost?: string; + /** Lane this binding applies to (NULL = the scope's default lane) */ + realm?: string; + /** Projection state of the bound address: pending, active, failed */ + status?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; +} /** An input for mutations affecting `PlatformWebhookEndpoint` */ export interface PlatformWebhookEndpointInput { /** Whether this endpoint currently accepts deliveries */ @@ -24522,7 +24403,7 @@ export interface ProposalCommentInput { createdBy?: string; createdByPrincipal?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; /** Line within path the comment is anchored to */ @@ -24555,7 +24436,7 @@ export interface ProposalInput { /** When this is wanted by (NULL when nothing is promised) */ dueAt?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; /** issue (a report or plan), change (merge one ref into another), discussion (an open question), decision (a question answered) */ @@ -24656,7 +24537,7 @@ export interface ProposalsChunkInput { /** Policy-required field derived from source table (used by AuthzRelatedEntityMembership) */ databaseId?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; metadata?: Record; @@ -24765,7 +24646,7 @@ export interface RepositoryInput { /** What this repository holds */ description?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; /** Identifier of this repository in the external provider (NULL for local) */ externalId?: string; @@ -25056,6 +24937,36 @@ export interface ResourceUsageSummaryInput { /** Number of raw samples aggregated into this summary */ sampleCount?: number; } +/** An input for mutations affecting `ServiceBinding` */ +export interface ServiceBindingInput { + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + id?: string; + /** Resource installation serving this binding, in the installations table of installation_scope */ + installationId: string; + /** Scope whose installations table holds installation_id: this scope or platform */ + installationScope: string; + /** Service this binding projects: builder (BUILDKIT_HOST) or git (GIT_PROVIDER + GIT_SERVICE_URL) */ + kind: string; + /** Most recent projection failure */ + lastError?: string; + /** Reconciler detail (projection timestamps and diagnostics) */ + metadata?: Record; + /** Namespace whose builds use this BuildKit installation */ + namespaceId: string; + /** Service address last projected into the namespace (NULL = never projected) */ + observedHost?: string; + /** Lane this binding applies to (NULL = the scope's default lane) */ + realm?: string; + /** Projection state of the bound address: pending, active, failed */ + status?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; +} /** An input for mutations affecting `WebhookEndpoint` */ export interface WebhookEndpointInput { /** Whether this endpoint currently accepts deliveries */ @@ -25555,8 +25466,8 @@ export interface WebhookEndpointFilter { host?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -25874,47 +25785,6 @@ export interface ImageGrantFilter { /** Filter by the object’s `updatedByPrincipal` field. */ updatedByPrincipal?: UUIDFilter; } -/** A filter to be used against `BuilderBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface BuilderBindingFilter { - /** Checks for all expressions in this list. */ - and?: BuilderBindingFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `createdByPrincipal` field. */ - createdByPrincipal?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `installationId` field. */ - installationId?: UUIDFilter; - /** Filter by the object’s `lastError` field. */ - lastError?: StringFilter; - /** Filter by the object’s `metadata` field. */ - metadata?: JSONFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Negates the expression. */ - not?: BuilderBindingFilter; - /** Filter by the object’s `observedHost` field. */ - observedHost?: StringFilter; - /** Checks for any expressions in this list. */ - or?: BuilderBindingFilter[]; - /** Filter by the object’s `realm` field. */ - realm?: StringFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `updatedByPrincipal` field. */ - updatedByPrincipal?: UUIDFilter; -} /** A filter to be used against `FunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ export interface FunctionDeploymentFilter { /** Checks for all expressions in this list. */ @@ -25945,8 +25815,8 @@ export interface FunctionDeploymentFilter { lastError?: StringFilter; /** Filter by the object’s `lastErrorAt` field. */ lastErrorAt?: DatetimeFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -25992,8 +25862,8 @@ export interface RegistryBindingFilter { id?: UUIDFilter; /** Filter by the object’s `metadata` field. */ metadata?: JSONFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -26049,8 +25919,8 @@ export interface ResourceDefinitionFilter { labels?: JSONFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -26092,8 +25962,8 @@ export interface ResourceInstallationFilter { id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -26171,8 +26041,8 @@ export interface ResourceFilter { memoryRequestBytes?: BigIntFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -26214,6 +26084,51 @@ export interface ResourceFilter { /** Filter by the object’s `updatedByPrincipal` field. */ updatedByPrincipal?: UUIDFilter; } +/** A filter to be used against `ServiceBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface ServiceBindingFilter { + /** Checks for all expressions in this list. */ + and?: ServiceBindingFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `installationScope` field. */ + installationScope?: StringFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: ServiceBindingFilter; + /** Filter by the object’s `observedHost` field. */ + observedHost?: StringFilter; + /** Checks for any expressions in this list. */ + or?: ServiceBindingFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} /** A filter to be used against `PlatformFunctionInvocation` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformFunctionInvocationFilter { /** Filter by the object’s `actorId` field. */ @@ -26456,45 +26371,6 @@ export interface PlatformImageGrantFilter { /** Filter by the object’s `updatedByPrincipal` field. */ updatedByPrincipal?: UUIDFilter; } -/** A filter to be used against `PlatformBuilderBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformBuilderBindingFilter { - /** Checks for all expressions in this list. */ - and?: PlatformBuilderBindingFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `createdByPrincipal` field. */ - createdByPrincipal?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `installationId` field. */ - installationId?: UUIDFilter; - /** Filter by the object’s `lastError` field. */ - lastError?: StringFilter; - /** Filter by the object’s `metadata` field. */ - metadata?: JSONFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: PlatformNamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Negates the expression. */ - not?: PlatformBuilderBindingFilter; - /** Filter by the object’s `observedHost` field. */ - observedHost?: StringFilter; - /** Checks for any expressions in this list. */ - or?: PlatformBuilderBindingFilter[]; - /** Filter by the object’s `realm` field. */ - realm?: StringFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `updatedByPrincipal` field. */ - updatedByPrincipal?: UUIDFilter; -} /** A filter to be used against `PlatformFunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformFunctionDeploymentFilter { /** Checks for all expressions in this list. */ @@ -26784,6 +26660,49 @@ export interface PlatformResourceFilter { /** Filter by the object’s `updatedByPrincipal` field. */ updatedByPrincipal?: UUIDFilter; } +/** A filter to be used against `PlatformServiceBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformServiceBindingFilter { + /** Checks for all expressions in this list. */ + and?: PlatformServiceBindingFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `installationScope` field. */ + installationScope?: StringFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformServiceBindingFilter; + /** Filter by the object’s `observedHost` field. */ + observedHost?: StringFilter; + /** Checks for any expressions in this list. */ + or?: PlatformServiceBindingFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} /** A filter to be used against `PlatformProposalReaction` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformProposalReactionFilter { /** Filter by the object’s `actorId` field. */ @@ -26845,6 +26764,8 @@ export interface PlatformProposalFilter { dueAt?: DatetimeFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -26919,6 +26840,8 @@ export interface PlatformProposalFilter { trgmBody?: TrgmSearchInput; /** TRGM search on the `closed_reason` column. */ trgmClosedReason?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `kind` column. */ trgmKind?: TrgmSearchInput; /** TRGM search on the `merge_commit` column. */ @@ -27039,6 +26962,8 @@ export interface PlatformProposalCommentFilter { createdByPrincipal?: UUIDFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -27067,6 +26992,8 @@ export interface PlatformProposalCommentFilter { search?: FullTextFilter; /** TRGM search on the `body` column. */ trgmBody?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `path` column. */ trgmPath?: TrgmSearchInput; /** TSV search on the `search` column. */ @@ -27553,6 +27480,8 @@ export interface ProposalFilter { dueAt?: DatetimeFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -27623,6 +27552,8 @@ export interface ProposalFilter { trgmBody?: TrgmSearchInput; /** TRGM search on the `closed_reason` column. */ trgmClosedReason?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `kind` column. */ trgmKind?: TrgmSearchInput; /** TRGM search on the `merge_commit` column. */ @@ -27678,6 +27609,8 @@ export interface ProposalCommentFilter { databaseId?: UUIDFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -27706,6 +27639,8 @@ export interface ProposalCommentFilter { search?: FullTextFilter; /** TRGM search on the `body` column. */ trgmBody?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `path` column. */ trgmPath?: TrgmSearchInput; /** TSV search on the `search` column. */ @@ -28419,6 +28354,8 @@ export interface RepositoryFilter { description?: StringTrgmFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `externalId` field. */ @@ -28465,6 +28402,8 @@ export interface RepositoryFilter { trgmDefaultBranch?: TrgmSearchInput; /** TRGM search on the `description` column. */ trgmDescription?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `external_id` column. */ trgmExternalId?: TrgmSearchInput; /** TRGM search on the `name` column. */ @@ -28502,10 +28441,6 @@ export interface NamespaceFilter { and?: NamespaceFilter[]; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; - /** Filter by the object’s `builderBindings` relation. */ - builderBindings?: NamespaceToManyBuilderBindingFilter; - /** `builderBindings` exist. */ - builderBindingsExist?: boolean; /** Filter by the object’s `clusterId` field. */ clusterId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -28514,10 +28449,10 @@ export interface NamespaceFilter { databaseId?: UUIDFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; - /** Filter by the object’s `functionDeployments` relation. */ - functionDeployments?: NamespaceToManyFunctionDeploymentFilter; - /** `functionDeployments` exist. */ - functionDeploymentsExist?: boolean; + /** Filter by the object’s `functionDeploymentsByNamespaceIdAndDatabaseId` relation. */ + functionDeploymentsByNamespaceIdAndDatabaseId?: NamespaceToManyFunctionDeploymentFilter; + /** `functionDeploymentsByNamespaceIdAndDatabaseId` exist. */ + functionDeploymentsByNamespaceIdAndDatabaseIdExist?: boolean; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isActive` field. */ @@ -28536,30 +28471,34 @@ export interface NamespaceFilter { not?: NamespaceFilter; /** Checks for any expressions in this list. */ or?: NamespaceFilter[]; - /** Filter by the object’s `registryBindings` relation. */ - registryBindings?: NamespaceToManyRegistryBindingFilter; - /** `registryBindings` exist. */ - registryBindingsExist?: boolean; - /** Filter by the object’s `resourceDefinitions` relation. */ - resourceDefinitions?: NamespaceToManyResourceDefinitionFilter; - /** `resourceDefinitions` exist. */ - resourceDefinitionsExist?: boolean; - /** Filter by the object’s `resourceInstallations` relation. */ - resourceInstallations?: NamespaceToManyResourceInstallationFilter; - /** `resourceInstallations` exist. */ - resourceInstallationsExist?: boolean; - /** Filter by the object’s `resources` relation. */ - resources?: NamespaceToManyResourceFilter; - /** `resources` exist. */ - resourcesExist?: boolean; + /** Filter by the object’s `registryBindingsByNamespaceIdAndDatabaseId` relation. */ + registryBindingsByNamespaceIdAndDatabaseId?: NamespaceToManyRegistryBindingFilter; + /** `registryBindingsByNamespaceIdAndDatabaseId` exist. */ + registryBindingsByNamespaceIdAndDatabaseIdExist?: boolean; + /** Filter by the object’s `resourceDefinitionsByNamespaceIdAndDatabaseId` relation. */ + resourceDefinitionsByNamespaceIdAndDatabaseId?: NamespaceToManyResourceDefinitionFilter; + /** `resourceDefinitionsByNamespaceIdAndDatabaseId` exist. */ + resourceDefinitionsByNamespaceIdAndDatabaseIdExist?: boolean; + /** Filter by the object’s `resourceInstallationsByNamespaceIdAndDatabaseId` relation. */ + resourceInstallationsByNamespaceIdAndDatabaseId?: NamespaceToManyResourceInstallationFilter; + /** `resourceInstallationsByNamespaceIdAndDatabaseId` exist. */ + resourceInstallationsByNamespaceIdAndDatabaseIdExist?: boolean; + /** Filter by the object’s `resourcesByNamespaceIdAndDatabaseId` relation. */ + resourcesByNamespaceIdAndDatabaseId?: NamespaceToManyResourceFilter; + /** `resourcesByNamespaceIdAndDatabaseId` exist. */ + resourcesByNamespaceIdAndDatabaseIdExist?: boolean; + /** Filter by the object’s `serviceBindingsByNamespaceIdAndDatabaseId` relation. */ + serviceBindingsByNamespaceIdAndDatabaseId?: NamespaceToManyServiceBindingFilter; + /** `serviceBindingsByNamespaceIdAndDatabaseId` exist. */ + serviceBindingsByNamespaceIdAndDatabaseIdExist?: boolean; /** Filter by the object’s `status` field. */ status?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; - /** Filter by the object’s `webhookEndpoints` relation. */ - webhookEndpoints?: NamespaceToManyWebhookEndpointFilter; - /** `webhookEndpoints` exist. */ - webhookEndpointsExist?: boolean; + /** Filter by the object’s `webhookEndpointsByNamespaceIdAndDatabaseId` relation. */ + webhookEndpointsByNamespaceIdAndDatabaseId?: NamespaceToManyWebhookEndpointFilter; + /** `webhookEndpointsByNamespaceIdAndDatabaseId` exist. */ + webhookEndpointsByNamespaceIdAndDatabaseIdExist?: boolean; } /** A filter to be used against `FunctionGraph` object types. All fields are combined with a logical ‘and.’ */ export interface FunctionGraphFilter { @@ -28624,6 +28563,8 @@ export interface PlatformRepositoryFilter { description?: StringTrgmFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `externalId` field. */ @@ -28674,6 +28615,8 @@ export interface PlatformRepositoryFilter { trgmDefaultBranch?: TrgmSearchInput; /** TRGM search on the `description` column. */ trgmDescription?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `external_id` column. */ trgmExternalId?: TrgmSearchInput; /** TRGM search on the `name` column. */ @@ -28786,10 +28729,6 @@ export interface PlatformNamespaceFilter { not?: PlatformNamespaceFilter; /** Checks for any expressions in this list. */ or?: PlatformNamespaceFilter[]; - /** Filter by the object’s `platformBuilderBindingsByNamespaceId` relation. */ - platformBuilderBindingsByNamespaceId?: PlatformNamespaceToManyPlatformBuilderBindingFilter; - /** `platformBuilderBindingsByNamespaceId` exist. */ - platformBuilderBindingsByNamespaceIdExist?: boolean; /** Filter by the object’s `platformFunctionDeploymentsByNamespaceId` relation. */ platformFunctionDeploymentsByNamespaceId?: PlatformNamespaceToManyPlatformFunctionDeploymentFilter; /** `platformFunctionDeploymentsByNamespaceId` exist. */ @@ -28810,6 +28749,10 @@ export interface PlatformNamespaceFilter { platformResourcesByNamespaceId?: PlatformNamespaceToManyPlatformResourceFilter; /** `platformResourcesByNamespaceId` exist. */ platformResourcesByNamespaceIdExist?: boolean; + /** Filter by the object’s `platformServiceBindingsByNamespaceId` relation. */ + platformServiceBindingsByNamespaceId?: PlatformNamespaceToManyPlatformServiceBindingFilter; + /** `platformServiceBindingsByNamespaceId` exist. */ + platformServiceBindingsByNamespaceIdExist?: boolean; /** Filter by the object’s `platformWebhookEndpointsByNamespaceId` relation. */ platformWebhookEndpointsByNamespaceId?: PlatformNamespaceToManyPlatformWebhookEndpointFilter; /** `platformWebhookEndpointsByNamespaceId` exist. */ @@ -28976,6 +28919,14 @@ export type CopyGraphPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface CreateFunctionGraphPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type CreateFunctionGraphPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface DatabaseAddEdgePayload { clientMutationId?: string | null; result?: string | null; @@ -29563,51 +29514,6 @@ export type DeleteBuildStepPayloadSelect = { }; clientMutationId?: boolean; }; -export interface CreateBuilderBindingPayload { - /** The `BuilderBinding` that was created by this mutation. */ - builderBinding?: BuilderBinding | null; - builderBindingEdge?: BuilderBindingEdge | null; - clientMutationId?: string | null; -} -export type CreateBuilderBindingPayloadSelect = { - builderBinding?: { - select: BuilderBindingSelect; - }; - builderBindingEdge?: { - select: BuilderBindingEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface UpdateBuilderBindingPayload { - /** The `BuilderBinding` that was updated by this mutation. */ - builderBinding?: BuilderBinding | null; - builderBindingEdge?: BuilderBindingEdge | null; - clientMutationId?: string | null; -} -export type UpdateBuilderBindingPayloadSelect = { - builderBinding?: { - select: BuilderBindingSelect; - }; - builderBindingEdge?: { - select: BuilderBindingEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface DeleteBuilderBindingPayload { - /** The `BuilderBinding` that was deleted by this mutation. */ - builderBinding?: BuilderBinding | null; - builderBindingEdge?: BuilderBindingEdge | null; - clientMutationId?: string | null; -} -export type DeleteBuilderBindingPayloadSelect = { - builderBinding?: { - select: BuilderBindingSelect; - }; - builderBindingEdge?: { - select: BuilderBindingEdgeSelect; - }; - clientMutationId?: boolean; -}; export interface CreateContentPresetPayload { clientMutationId?: string | null; /** The `ContentPreset` that was created by this mutation. */ @@ -30403,14 +30309,6 @@ export type DeleteFunctionGraphCommitPayloadSelect = { select: FunctionGraphCommitEdgeSelect; }; }; -export interface CreateFunctionGraphPayload { - clientMutationId?: string | null; - result?: string | null; -} -export type CreateFunctionGraphPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; export interface UpdateFunctionGraphPayload { clientMutationId?: string | null; /** The `FunctionGraph` that was updated by this mutation. */ @@ -31386,51 +31284,6 @@ export type DeletePlatformBuildStepPayloadSelect = { select: PlatformBuildStepEdgeSelect; }; }; -export interface CreatePlatformBuilderBindingPayload { - clientMutationId?: string | null; - /** The `PlatformBuilderBinding` that was created by this mutation. */ - platformBuilderBinding?: PlatformBuilderBinding | null; - platformBuilderBindingEdge?: PlatformBuilderBindingEdge | null; -} -export type CreatePlatformBuilderBindingPayloadSelect = { - clientMutationId?: boolean; - platformBuilderBinding?: { - select: PlatformBuilderBindingSelect; - }; - platformBuilderBindingEdge?: { - select: PlatformBuilderBindingEdgeSelect; - }; -}; -export interface UpdatePlatformBuilderBindingPayload { - clientMutationId?: string | null; - /** The `PlatformBuilderBinding` that was updated by this mutation. */ - platformBuilderBinding?: PlatformBuilderBinding | null; - platformBuilderBindingEdge?: PlatformBuilderBindingEdge | null; -} -export type UpdatePlatformBuilderBindingPayloadSelect = { - clientMutationId?: boolean; - platformBuilderBinding?: { - select: PlatformBuilderBindingSelect; - }; - platformBuilderBindingEdge?: { - select: PlatformBuilderBindingEdgeSelect; - }; -}; -export interface DeletePlatformBuilderBindingPayload { - clientMutationId?: string | null; - /** The `PlatformBuilderBinding` that was deleted by this mutation. */ - platformBuilderBinding?: PlatformBuilderBinding | null; - platformBuilderBindingEdge?: PlatformBuilderBindingEdge | null; -} -export type DeletePlatformBuilderBindingPayloadSelect = { - clientMutationId?: boolean; - platformBuilderBinding?: { - select: PlatformBuilderBindingSelect; - }; - platformBuilderBindingEdge?: { - select: PlatformBuilderBindingEdgeSelect; - }; -}; export interface CreatePlatformFunctionApiBindingPayload { clientMutationId?: string | null; /** The `PlatformFunctionApiBinding` that was created by this mutation. */ @@ -33186,6 +33039,51 @@ export type DeletePlatformResourceUsageSummaryPayloadSelect = { select: PlatformResourceUsageSummaryEdgeSelect; }; }; +export interface CreatePlatformServiceBindingPayload { + clientMutationId?: string | null; + /** The `PlatformServiceBinding` that was created by this mutation. */ + platformServiceBinding?: PlatformServiceBinding | null; + platformServiceBindingEdge?: PlatformServiceBindingEdge | null; +} +export type CreatePlatformServiceBindingPayloadSelect = { + clientMutationId?: boolean; + platformServiceBinding?: { + select: PlatformServiceBindingSelect; + }; + platformServiceBindingEdge?: { + select: PlatformServiceBindingEdgeSelect; + }; +}; +export interface UpdatePlatformServiceBindingPayload { + clientMutationId?: string | null; + /** The `PlatformServiceBinding` that was updated by this mutation. */ + platformServiceBinding?: PlatformServiceBinding | null; + platformServiceBindingEdge?: PlatformServiceBindingEdge | null; +} +export type UpdatePlatformServiceBindingPayloadSelect = { + clientMutationId?: boolean; + platformServiceBinding?: { + select: PlatformServiceBindingSelect; + }; + platformServiceBindingEdge?: { + select: PlatformServiceBindingEdgeSelect; + }; +}; +export interface DeletePlatformServiceBindingPayload { + clientMutationId?: string | null; + /** The `PlatformServiceBinding` that was deleted by this mutation. */ + platformServiceBinding?: PlatformServiceBinding | null; + platformServiceBindingEdge?: PlatformServiceBindingEdge | null; +} +export type DeletePlatformServiceBindingPayloadSelect = { + clientMutationId?: boolean; + platformServiceBinding?: { + select: PlatformServiceBindingSelect; + }; + platformServiceBindingEdge?: { + select: PlatformServiceBindingEdgeSelect; + }; +}; export interface CreatePlatformWebhookEndpointPayload { clientMutationId?: string | null; /** The `PlatformWebhookEndpoint` that was created by this mutation. */ @@ -34176,6 +34074,51 @@ export type DeleteResourceUsageSummaryPayloadSelect = { select: ResourceUsageSummaryEdgeSelect; }; }; +export interface CreateServiceBindingPayload { + clientMutationId?: string | null; + /** The `ServiceBinding` that was created by this mutation. */ + serviceBinding?: ServiceBinding | null; + serviceBindingEdge?: ServiceBindingEdge | null; +} +export type CreateServiceBindingPayloadSelect = { + clientMutationId?: boolean; + serviceBinding?: { + select: ServiceBindingSelect; + }; + serviceBindingEdge?: { + select: ServiceBindingEdgeSelect; + }; +}; +export interface UpdateServiceBindingPayload { + clientMutationId?: string | null; + /** The `ServiceBinding` that was updated by this mutation. */ + serviceBinding?: ServiceBinding | null; + serviceBindingEdge?: ServiceBindingEdge | null; +} +export type UpdateServiceBindingPayloadSelect = { + clientMutationId?: boolean; + serviceBinding?: { + select: ServiceBindingSelect; + }; + serviceBindingEdge?: { + select: ServiceBindingEdgeSelect; + }; +}; +export interface DeleteServiceBindingPayload { + clientMutationId?: string | null; + /** The `ServiceBinding` that was deleted by this mutation. */ + serviceBinding?: ServiceBinding | null; + serviceBindingEdge?: ServiceBindingEdge | null; +} +export type DeleteServiceBindingPayloadSelect = { + clientMutationId?: boolean; + serviceBinding?: { + select: ServiceBindingSelect; + }; + serviceBindingEdge?: { + select: ServiceBindingEdgeSelect; + }; +}; export interface CreateWebhookEndpointPayload { clientMutationId?: string | null; /** The `WebhookEndpoint` that was created by this mutation. */ @@ -34266,6 +34209,35 @@ export type DeleteWebhookEventPayloadSelect = { select: WebhookEventEdgeSelect; }; }; +/** One version rendered beside a file, with a URL to fetch it. */ +export interface FileVersion { + format?: string | null; + height?: number | null; + key: string; + name?: string | null; + size?: number | null; + url: string; + width?: number | null; +} +export type FileVersionSelect = { + format?: boolean; + height?: boolean; + key?: boolean; + name?: boolean; + size?: boolean; + url?: boolean; + width?: boolean; +}; +export interface ResourceRequirement { + name?: string | null; + provider?: string | null; + required?: boolean | null; +} +export type ResourceRequirementSelect = { + name?: boolean; + provider?: boolean; + required?: boolean; +}; /** A `DatabaseGraphCommit` edge in the connection. */ export interface DatabaseGraphCommitEdge { cursor?: string | null; @@ -34362,18 +34334,6 @@ export type BuildStepEdgeSelect = { select: BuildStepSelect; }; }; -/** A `BuilderBinding` edge in the connection. */ -export interface BuilderBindingEdge { - cursor?: string | null; - /** The `BuilderBinding` at the end of the edge. */ - node?: BuilderBinding | null; -} -export type BuilderBindingEdgeSelect = { - cursor?: boolean; - node?: { - select: BuilderBindingSelect; - }; -}; /** A `ContentPreset` edge in the connection. */ export interface ContentPresetEdge { cursor?: string | null; @@ -34806,18 +34766,6 @@ export type PlatformBuildStepEdgeSelect = { select: PlatformBuildStepSelect; }; }; -/** A `PlatformBuilderBinding` edge in the connection. */ -export interface PlatformBuilderBindingEdge { - cursor?: string | null; - /** The `PlatformBuilderBinding` at the end of the edge. */ - node?: PlatformBuilderBinding | null; -} -export type PlatformBuilderBindingEdgeSelect = { - cursor?: boolean; - node?: { - select: PlatformBuilderBindingSelect; - }; -}; /** A `PlatformFunctionApiBinding` edge in the connection. */ export interface PlatformFunctionApiBindingEdge { cursor?: string | null; @@ -35262,6 +35210,18 @@ export type PlatformResourceUsageSummaryEdgeSelect = { select: PlatformResourceUsageSummarySelect; }; }; +/** A `PlatformServiceBinding` edge in the connection. */ +export interface PlatformServiceBindingEdge { + cursor?: string | null; + /** The `PlatformServiceBinding` at the end of the edge. */ + node?: PlatformServiceBinding | null; +} +export type PlatformServiceBindingEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformServiceBindingSelect; + }; +}; /** A `PlatformWebhookEndpoint` edge in the connection. */ export interface PlatformWebhookEndpointEdge { cursor?: string | null; @@ -35526,6 +35486,18 @@ export type ResourceUsageSummaryEdgeSelect = { select: ResourceUsageSummarySelect; }; }; +/** A `ServiceBinding` edge in the connection. */ +export interface ServiceBindingEdge { + cursor?: string | null; + /** The `ServiceBinding` at the end of the edge. */ + node?: ServiceBinding | null; +} +export type ServiceBindingEdgeSelect = { + cursor?: boolean; + node?: { + select: ServiceBindingSelect; + }; +}; /** A `WebhookEndpoint` edge in the connection. */ export interface WebhookEndpointEdge { cursor?: string | null; diff --git a/sdk/constructive-react/src/compute/orm/models/databaseFunctionGraph.ts b/sdk/constructive-react/src/compute/orm/models/databaseFunctionGraph.ts index aa52534b19..358312ae7d 100644 --- a/sdk/constructive-react/src/compute/orm/models/databaseFunctionGraph.ts +++ b/sdk/constructive-react/src/compute/orm/models/databaseFunctionGraph.ts @@ -29,7 +29,6 @@ import type { DatabaseFunctionGraphSelect, DatabaseFunctionGraphFilter, DatabaseFunctionGraphOrderBy, - CreateDatabaseFunctionGraphInput, UpdateDatabaseFunctionGraphInput, DatabaseFunctionGraphPatch, } from '../input-types'; @@ -146,33 +145,6 @@ export class DatabaseFunctionGraphModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createDatabaseFunctionGraph: { - databaseFunctionGraph: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'DatabaseFunctionGraph', - 'createDatabaseFunctionGraph', - 'databaseFunctionGraph', - args.select, - args.data, - 'CreateDatabaseFunctionGraphInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'DatabaseFunctionGraph', - fieldName: 'createDatabaseFunctionGraph', - document, - variables, - }); - } update( args: UpdateArgs< S, diff --git a/sdk/constructive-react/src/compute/orm/models/databaseGraphGetAllTreeNodesRecord.ts b/sdk/constructive-react/src/compute/orm/models/databaseGraphGetAllTreeNodesRecord.ts index f3a254b255..141a458a79 100644 --- a/sdk/constructive-react/src/compute/orm/models/databaseGraphGetAllTreeNodesRecord.ts +++ b/sdk/constructive-react/src/compute/orm/models/databaseGraphGetAllTreeNodesRecord.ts @@ -29,7 +29,6 @@ import type { DatabaseGraphGetAllTreeNodesRecordSelect, DatabaseGraphGetAllTreeNodesRecordFilter, DatabaseGraphGetAllTreeNodesRecordsOrderBy, - CreateDatabaseGraphGetAllTreeNodesRecordInput, UpdateDatabaseGraphGetAllTreeNodesRecordInput, DatabaseGraphGetAllTreeNodesRecordPatch, } from '../input-types'; @@ -117,37 +116,4 @@ export class DatabaseGraphGetAllTreeNodesRecordModel { }), }); } - create( - args: CreateArgs< - S, - CreateDatabaseGraphGetAllTreeNodesRecordInput['databaseGraphGetAllTreeNodesRecord'] - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createDatabaseGraphGetAllTreeNodesRecord: { - databaseGraphGetAllTreeNodesRecord: InferSelectResult< - DatabaseGraphGetAllTreeNodesRecordWithRelations, - S - >; - }; - }> { - const { document, variables } = buildCreateDocument( - 'DatabaseGraphGetAllTreeNodesRecord', - 'createDatabaseGraphGetAllTreeNodesRecord', - 'databaseGraphGetAllTreeNodesRecord', - args.select, - args.data, - 'CreateDatabaseGraphGetAllTreeNodesRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'DatabaseGraphGetAllTreeNodesRecord', - fieldName: 'createDatabaseGraphGetAllTreeNodesRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/compute/orm/models/functionGraph.ts b/sdk/constructive-react/src/compute/orm/models/functionGraph.ts index 8355e31658..b94c844768 100644 --- a/sdk/constructive-react/src/compute/orm/models/functionGraph.ts +++ b/sdk/constructive-react/src/compute/orm/models/functionGraph.ts @@ -29,7 +29,6 @@ import type { FunctionGraphSelect, FunctionGraphFilter, FunctionGraphOrderBy, - CreateFunctionGraphInput, UpdateFunctionGraphInput, FunctionGraphPatch, } from '../input-types'; @@ -144,33 +143,6 @@ export class FunctionGraphModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createFunctionGraph: { - functionGraph: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'FunctionGraph', - 'createFunctionGraph', - 'functionGraph', - args.select, - args.data, - 'CreateFunctionGraphInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'FunctionGraph', - fieldName: 'createFunctionGraph', - document, - variables, - }); - } update( args: UpdateArgs< S, diff --git a/sdk/constructive-react/src/compute/orm/models/getAllTreeNodesRecord.ts b/sdk/constructive-react/src/compute/orm/models/getAllTreeNodesRecord.ts index 00f51d01f7..275a902f66 100644 --- a/sdk/constructive-react/src/compute/orm/models/getAllTreeNodesRecord.ts +++ b/sdk/constructive-react/src/compute/orm/models/getAllTreeNodesRecord.ts @@ -29,7 +29,6 @@ import type { GetAllTreeNodesRecordSelect, GetAllTreeNodesRecordFilter, GetAllTreeNodesRecordsOrderBy, - CreateGetAllTreeNodesRecordInput, UpdateGetAllTreeNodesRecordInput, GetAllTreeNodesRecordPatch, } from '../input-types'; @@ -104,31 +103,4 @@ export class GetAllTreeNodesRecordModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createGetAllTreeNodesRecord: { - getAllTreeNodesRecord: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'GetAllTreeNodesRecord', - 'createGetAllTreeNodesRecord', - 'getAllTreeNodesRecord', - args.select, - args.data, - 'CreateGetAllTreeNodesRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'GetAllTreeNodesRecord', - fieldName: 'createGetAllTreeNodesRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/compute/orm/models/index.ts b/sdk/constructive-react/src/compute/orm/models/index.ts index 3b2af275ae..dfb31b3c70 100644 --- a/sdk/constructive-react/src/compute/orm/models/index.ts +++ b/sdk/constructive-react/src/compute/orm/models/index.ts @@ -5,7 +5,6 @@ */ export { BuildModel } from './build'; export { BuildStepModel } from './buildStep'; -export { BuilderBindingModel } from './builderBinding'; export { ContentPresetModel } from './contentPreset'; export { DatabaseFunctionGraphModel } from './databaseFunctionGraph'; export { DatabaseFunctionGraphExecutionCancelRequestModel } from './databaseFunctionGraphExecutionCancelRequest'; @@ -49,7 +48,6 @@ export { NamespaceModel } from './namespace'; export { NamespaceEventModel } from './namespaceEvent'; export { PlatformBuildModel } from './platformBuild'; export { PlatformBuildStepModel } from './platformBuildStep'; -export { PlatformBuilderBindingModel } from './platformBuilderBinding'; export { PlatformFunctionApiBindingModel } from './platformFunctionApiBinding'; export { PlatformFunctionCapabilityBindingModel } from './platformFunctionCapabilityBinding'; export { PlatformFunctionDefinitionModel } from './platformFunctionDefinition'; @@ -96,6 +94,7 @@ export { PlatformResourceUtilizationModel } from './platformResourceUtilization' export { PlatformResourcesHealthModel } from './platformResourcesHealth'; export { PlatformResourcesRequirementsStateModel } from './platformResourcesRequirementsState'; export { PlatformResourcesResolvedRequirementModel } from './platformResourcesResolvedRequirement'; +export { PlatformServiceBindingModel } from './platformServiceBinding'; export { PlatformWebhookEndpointModel } from './platformWebhookEndpoint'; export { PlatformWebhookEventModel } from './platformWebhookEvent'; export { ProposalCommentModel } from './proposalComment'; @@ -124,5 +123,6 @@ export { ResourceUtilizationModel } from './resourceUtilization'; export { ResourcesHealthModel } from './resourcesHealth'; export { ResourcesRequirementsStateModel } from './resourcesRequirementsState'; export { ResourcesResolvedRequirementModel } from './resourcesResolvedRequirement'; +export { ServiceBindingModel } from './serviceBinding'; export { WebhookEndpointModel } from './webhookEndpoint'; export { WebhookEventModel } from './webhookEvent'; diff --git a/sdk/constructive-react/src/compute/orm/models/infraGetAllTreeNodesRecord.ts b/sdk/constructive-react/src/compute/orm/models/infraGetAllTreeNodesRecord.ts index 7f2e31d467..e3f66b257e 100644 --- a/sdk/constructive-react/src/compute/orm/models/infraGetAllTreeNodesRecord.ts +++ b/sdk/constructive-react/src/compute/orm/models/infraGetAllTreeNodesRecord.ts @@ -29,7 +29,6 @@ import type { InfraGetAllTreeNodesRecordSelect, InfraGetAllTreeNodesRecordFilter, InfraGetAllTreeNodesRecordsOrderBy, - CreateInfraGetAllTreeNodesRecordInput, UpdateInfraGetAllTreeNodesRecordInput, InfraGetAllTreeNodesRecordPatch, } from '../input-types'; @@ -109,31 +108,4 @@ export class InfraGetAllTreeNodesRecordModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createInfraGetAllTreeNodesRecord: { - infraGetAllTreeNodesRecord: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'InfraGetAllTreeNodesRecord', - 'createInfraGetAllTreeNodesRecord', - 'infraGetAllTreeNodesRecord', - args.select, - args.data, - 'CreateInfraGetAllTreeNodesRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'InfraGetAllTreeNodesRecord', - fieldName: 'createInfraGetAllTreeNodesRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/compute/orm/models/platformBuilderBinding.ts b/sdk/constructive-react/src/compute/orm/models/platformBuilderBinding.ts deleted file mode 100644 index 09a8daa1ed..0000000000 --- a/sdk/constructive-react/src/compute/orm/models/platformBuilderBinding.ts +++ /dev/null @@ -1,247 +0,0 @@ -/** - * PlatformBuilderBinding model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - PlatformBuilderBinding, - PlatformBuilderBindingWithRelations, - PlatformBuilderBindingSelect, - PlatformBuilderBindingFilter, - PlatformBuilderBindingOrderBy, - CreatePlatformBuilderBindingInput, - UpdatePlatformBuilderBindingInput, - PlatformBuilderBindingPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class PlatformBuilderBindingModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - platformBuilderBindings: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'PlatformBuilderBinding', - 'platformBuilderBindings', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'PlatformBuilderBindingFilter', - 'PlatformBuilderBindingOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlatformBuilderBinding', - fieldName: 'platformBuilderBindings', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - platformBuilderBinding: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'PlatformBuilderBinding', - 'platformBuilderBindings', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'PlatformBuilderBindingFilter', - 'PlatformBuilderBindingOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlatformBuilderBinding', - fieldName: 'platformBuilderBinding', - document, - variables, - transform: (data: { - platformBuilderBindings?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - platformBuilderBinding: data.platformBuilderBindings?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - platformBuilderBinding: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'PlatformBuilderBinding', - 'platformBuilderBindings', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'PlatformBuilderBindingFilter', - 'PlatformBuilderBindingOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlatformBuilderBinding', - fieldName: 'platformBuilderBinding', - document, - variables, - transform: (data: { - platformBuilderBindings?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - platformBuilderBinding: data.platformBuilderBindings?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformBuilderBinding: { - platformBuilderBinding: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformBuilderBinding', - 'createPlatformBuilderBinding', - 'platformBuilderBinding', - args.select, - args.data, - 'CreatePlatformBuilderBindingInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformBuilderBinding', - fieldName: 'createPlatformBuilderBinding', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - PlatformBuilderBindingPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updatePlatformBuilderBinding: { - platformBuilderBinding: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'PlatformBuilderBinding', - 'updatePlatformBuilderBinding', - 'platformBuilderBinding', - args.select, - args.where.id, - args.data, - 'UpdatePlatformBuilderBindingInput', - 'id', - 'platformBuilderBindingPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformBuilderBinding', - fieldName: 'updatePlatformBuilderBinding', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deletePlatformBuilderBinding: { - platformBuilderBinding: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'PlatformBuilderBinding', - 'deletePlatformBuilderBinding', - 'platformBuilderBinding', - { - id: args.where.id, - }, - 'DeletePlatformBuilderBindingInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformBuilderBinding', - fieldName: 'deletePlatformBuilderBinding', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/compute/orm/models/platformInfraGetAllTreeNodesRecord.ts b/sdk/constructive-react/src/compute/orm/models/platformInfraGetAllTreeNodesRecord.ts index e0e0a2aeaa..522c666bd3 100644 --- a/sdk/constructive-react/src/compute/orm/models/platformInfraGetAllTreeNodesRecord.ts +++ b/sdk/constructive-react/src/compute/orm/models/platformInfraGetAllTreeNodesRecord.ts @@ -29,7 +29,6 @@ import type { PlatformInfraGetAllTreeNodesRecordSelect, PlatformInfraGetAllTreeNodesRecordFilter, PlatformInfraGetAllTreeNodesRecordsOrderBy, - CreatePlatformInfraGetAllTreeNodesRecordInput, UpdatePlatformInfraGetAllTreeNodesRecordInput, PlatformInfraGetAllTreeNodesRecordPatch, } from '../input-types'; @@ -117,37 +116,4 @@ export class PlatformInfraGetAllTreeNodesRecordModel { }), }); } - create( - args: CreateArgs< - S, - CreatePlatformInfraGetAllTreeNodesRecordInput['platformInfraGetAllTreeNodesRecord'] - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformInfraGetAllTreeNodesRecord: { - platformInfraGetAllTreeNodesRecord: InferSelectResult< - PlatformInfraGetAllTreeNodesRecordWithRelations, - S - >; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformInfraGetAllTreeNodesRecord', - 'createPlatformInfraGetAllTreeNodesRecord', - 'platformInfraGetAllTreeNodesRecord', - args.select, - args.data, - 'CreatePlatformInfraGetAllTreeNodesRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformInfraGetAllTreeNodesRecord', - fieldName: 'createPlatformInfraGetAllTreeNodesRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/compute/orm/models/platformResourceDeclaredCapacity.ts b/sdk/constructive-react/src/compute/orm/models/platformResourceDeclaredCapacity.ts index 66a88f859d..c61ba71d35 100644 --- a/sdk/constructive-react/src/compute/orm/models/platformResourceDeclaredCapacity.ts +++ b/sdk/constructive-react/src/compute/orm/models/platformResourceDeclaredCapacity.ts @@ -29,7 +29,6 @@ import type { PlatformResourceDeclaredCapacitySelect, PlatformResourceDeclaredCapacityFilter, PlatformResourceDeclaredCapacityOrderBy, - CreatePlatformResourceDeclaredCapacityInput, UpdatePlatformResourceDeclaredCapacityInput, PlatformResourceDeclaredCapacityPatch, } from '../input-types'; @@ -118,37 +117,4 @@ export class PlatformResourceDeclaredCapacityModel { }), }); } - create( - args: CreateArgs< - S, - CreatePlatformResourceDeclaredCapacityInput['platformResourceDeclaredCapacity'] - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformResourceDeclaredCapacity: { - platformResourceDeclaredCapacity: InferSelectResult< - PlatformResourceDeclaredCapacityWithRelations, - S - >; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformResourceDeclaredCapacity', - 'createPlatformResourceDeclaredCapacity', - 'platformResourceDeclaredCapacity', - args.select, - args.data, - 'CreatePlatformResourceDeclaredCapacityInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformResourceDeclaredCapacity', - fieldName: 'createPlatformResourceDeclaredCapacity', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/compute/orm/models/platformResourceObservedStorage.ts b/sdk/constructive-react/src/compute/orm/models/platformResourceObservedStorage.ts index 80a274b483..5a5654a907 100644 --- a/sdk/constructive-react/src/compute/orm/models/platformResourceObservedStorage.ts +++ b/sdk/constructive-react/src/compute/orm/models/platformResourceObservedStorage.ts @@ -29,7 +29,6 @@ import type { PlatformResourceObservedStorageSelect, PlatformResourceObservedStorageFilter, PlatformResourceObservedStorageOrderBy, - CreatePlatformResourceObservedStorageInput, UpdatePlatformResourceObservedStorageInput, PlatformResourceObservedStoragePatch, } from '../input-types'; @@ -117,37 +116,4 @@ export class PlatformResourceObservedStorageModel { }), }); } - create( - args: CreateArgs< - S, - CreatePlatformResourceObservedStorageInput['platformResourceObservedStorage'] - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformResourceObservedStorage: { - platformResourceObservedStorage: InferSelectResult< - PlatformResourceObservedStorageWithRelations, - S - >; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformResourceObservedStorage', - 'createPlatformResourceObservedStorage', - 'platformResourceObservedStorage', - args.select, - args.data, - 'CreatePlatformResourceObservedStorageInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformResourceObservedStorage', - fieldName: 'createPlatformResourceObservedStorage', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/compute/orm/models/platformResourceUtilization.ts b/sdk/constructive-react/src/compute/orm/models/platformResourceUtilization.ts index 040d38000e..2c7bffa084 100644 --- a/sdk/constructive-react/src/compute/orm/models/platformResourceUtilization.ts +++ b/sdk/constructive-react/src/compute/orm/models/platformResourceUtilization.ts @@ -29,7 +29,6 @@ import type { PlatformResourceUtilizationSelect, PlatformResourceUtilizationFilter, PlatformResourceUtilizationOrderBy, - CreatePlatformResourceUtilizationInput, UpdatePlatformResourceUtilizationInput, PlatformResourceUtilizationPatch, } from '../input-types'; @@ -113,31 +112,4 @@ export class PlatformResourceUtilizationModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformResourceUtilization: { - platformResourceUtilization: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformResourceUtilization', - 'createPlatformResourceUtilization', - 'platformResourceUtilization', - args.select, - args.data, - 'CreatePlatformResourceUtilizationInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformResourceUtilization', - fieldName: 'createPlatformResourceUtilization', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/compute/orm/models/platformResourcesHealth.ts b/sdk/constructive-react/src/compute/orm/models/platformResourcesHealth.ts index 0f0efa3e31..7249c4259c 100644 --- a/sdk/constructive-react/src/compute/orm/models/platformResourcesHealth.ts +++ b/sdk/constructive-react/src/compute/orm/models/platformResourcesHealth.ts @@ -29,7 +29,6 @@ import type { PlatformResourcesHealthSelect, PlatformResourcesHealthFilter, PlatformResourcesHealthOrderBy, - CreatePlatformResourcesHealthInput, UpdatePlatformResourcesHealthInput, PlatformResourcesHealthPatch, } from '../input-types'; @@ -146,31 +145,4 @@ export class PlatformResourcesHealthModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformResourcesHealth: { - platformResourcesHealth: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformResourcesHealth', - 'createPlatformResourcesHealth', - 'platformResourcesHealth', - args.select, - args.data, - 'CreatePlatformResourcesHealthInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformResourcesHealth', - fieldName: 'createPlatformResourcesHealth', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/compute/orm/models/platformResourcesRequirementsState.ts b/sdk/constructive-react/src/compute/orm/models/platformResourcesRequirementsState.ts index ab6152e426..4eb7854059 100644 --- a/sdk/constructive-react/src/compute/orm/models/platformResourcesRequirementsState.ts +++ b/sdk/constructive-react/src/compute/orm/models/platformResourcesRequirementsState.ts @@ -29,7 +29,6 @@ import type { PlatformResourcesRequirementsStateSelect, PlatformResourcesRequirementsStateFilter, PlatformResourcesRequirementsStateOrderBy, - CreatePlatformResourcesRequirementsStateInput, UpdatePlatformResourcesRequirementsStateInput, PlatformResourcesRequirementsStatePatch, } from '../input-types'; @@ -118,37 +117,4 @@ export class PlatformResourcesRequirementsStateModel { }), }); } - create( - args: CreateArgs< - S, - CreatePlatformResourcesRequirementsStateInput['platformResourcesRequirementsState'] - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformResourcesRequirementsState: { - platformResourcesRequirementsState: InferSelectResult< - PlatformResourcesRequirementsStateWithRelations, - S - >; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformResourcesRequirementsState', - 'createPlatformResourcesRequirementsState', - 'platformResourcesRequirementsState', - args.select, - args.data, - 'CreatePlatformResourcesRequirementsStateInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformResourcesRequirementsState', - fieldName: 'createPlatformResourcesRequirementsState', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/compute/orm/models/platformResourcesResolvedRequirement.ts b/sdk/constructive-react/src/compute/orm/models/platformResourcesResolvedRequirement.ts index d7d7bf4ed0..0326681f64 100644 --- a/sdk/constructive-react/src/compute/orm/models/platformResourcesResolvedRequirement.ts +++ b/sdk/constructive-react/src/compute/orm/models/platformResourcesResolvedRequirement.ts @@ -29,7 +29,6 @@ import type { PlatformResourcesResolvedRequirementSelect, PlatformResourcesResolvedRequirementFilter, PlatformResourcesResolvedRequirementOrderBy, - CreatePlatformResourcesResolvedRequirementInput, UpdatePlatformResourcesResolvedRequirementInput, PlatformResourcesResolvedRequirementPatch, } from '../input-types'; @@ -118,37 +117,4 @@ export class PlatformResourcesResolvedRequirementModel { }), }); } - create( - args: CreateArgs< - S, - CreatePlatformResourcesResolvedRequirementInput['platformResourcesResolvedRequirement'] - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformResourcesResolvedRequirement: { - platformResourcesResolvedRequirement: InferSelectResult< - PlatformResourcesResolvedRequirementWithRelations, - S - >; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformResourcesResolvedRequirement', - 'createPlatformResourcesResolvedRequirement', - 'platformResourcesResolvedRequirement', - args.select, - args.data, - 'CreatePlatformResourcesResolvedRequirementInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformResourcesResolvedRequirement', - fieldName: 'createPlatformResourcesResolvedRequirement', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/compute/orm/models/platformServiceBinding.ts b/sdk/constructive-react/src/compute/orm/models/platformServiceBinding.ts new file mode 100644 index 0000000000..e50381b94d --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/platformServiceBinding.ts @@ -0,0 +1,247 @@ +/** + * PlatformServiceBinding model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + PlatformServiceBinding, + PlatformServiceBindingWithRelations, + PlatformServiceBindingSelect, + PlatformServiceBindingFilter, + PlatformServiceBindingOrderBy, + CreatePlatformServiceBindingInput, + UpdatePlatformServiceBindingInput, + PlatformServiceBindingPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformServiceBindingModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformServiceBindings: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformServiceBinding', + 'platformServiceBindings', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'PlatformServiceBindingFilter', + 'PlatformServiceBindingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformServiceBinding', + fieldName: 'platformServiceBindings', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformServiceBinding: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformServiceBinding', + 'platformServiceBindings', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformServiceBindingFilter', + 'PlatformServiceBindingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformServiceBinding', + fieldName: 'platformServiceBinding', + document, + variables, + transform: (data: { + platformServiceBindings?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformServiceBinding: data.platformServiceBindings?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformServiceBinding: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformServiceBinding', + 'platformServiceBindings', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformServiceBindingFilter', + 'PlatformServiceBindingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformServiceBinding', + fieldName: 'platformServiceBinding', + document, + variables, + transform: (data: { + platformServiceBindings?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformServiceBinding: data.platformServiceBindings?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformServiceBinding: { + platformServiceBinding: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformServiceBinding', + 'createPlatformServiceBinding', + 'platformServiceBinding', + args.select, + args.data, + 'CreatePlatformServiceBindingInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformServiceBinding', + fieldName: 'createPlatformServiceBinding', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformServiceBindingPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformServiceBinding: { + platformServiceBinding: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformServiceBinding', + 'updatePlatformServiceBinding', + 'platformServiceBinding', + args.select, + args.where.id, + args.data, + 'UpdatePlatformServiceBindingInput', + 'id', + 'platformServiceBindingPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformServiceBinding', + fieldName: 'updatePlatformServiceBinding', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformServiceBinding: { + platformServiceBinding: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformServiceBinding', + 'deletePlatformServiceBinding', + 'platformServiceBinding', + { + id: args.where.id, + }, + 'DeletePlatformServiceBindingInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformServiceBinding', + fieldName: 'deletePlatformServiceBinding', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/resourceDeclaredCapacity.ts b/sdk/constructive-react/src/compute/orm/models/resourceDeclaredCapacity.ts index 6340979a98..3ea2e93607 100644 --- a/sdk/constructive-react/src/compute/orm/models/resourceDeclaredCapacity.ts +++ b/sdk/constructive-react/src/compute/orm/models/resourceDeclaredCapacity.ts @@ -29,7 +29,6 @@ import type { ResourceDeclaredCapacitySelect, ResourceDeclaredCapacityFilter, ResourceDeclaredCapacityOrderBy, - CreateResourceDeclaredCapacityInput, UpdateResourceDeclaredCapacityInput, ResourceDeclaredCapacityPatch, } from '../input-types'; @@ -106,31 +105,4 @@ export class ResourceDeclaredCapacityModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createResourceDeclaredCapacity: { - resourceDeclaredCapacity: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'ResourceDeclaredCapacity', - 'createResourceDeclaredCapacity', - 'resourceDeclaredCapacity', - args.select, - args.data, - 'CreateResourceDeclaredCapacityInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'ResourceDeclaredCapacity', - fieldName: 'createResourceDeclaredCapacity', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/compute/orm/models/resourceObservedStorage.ts b/sdk/constructive-react/src/compute/orm/models/resourceObservedStorage.ts index 75769aef61..2d9c328e85 100644 --- a/sdk/constructive-react/src/compute/orm/models/resourceObservedStorage.ts +++ b/sdk/constructive-react/src/compute/orm/models/resourceObservedStorage.ts @@ -29,7 +29,6 @@ import type { ResourceObservedStorageSelect, ResourceObservedStorageFilter, ResourceObservedStorageOrderBy, - CreateResourceObservedStorageInput, UpdateResourceObservedStorageInput, ResourceObservedStoragePatch, } from '../input-types'; @@ -106,31 +105,4 @@ export class ResourceObservedStorageModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createResourceObservedStorage: { - resourceObservedStorage: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'ResourceObservedStorage', - 'createResourceObservedStorage', - 'resourceObservedStorage', - args.select, - args.data, - 'CreateResourceObservedStorageInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'ResourceObservedStorage', - fieldName: 'createResourceObservedStorage', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/compute/orm/models/resourceUtilization.ts b/sdk/constructive-react/src/compute/orm/models/resourceUtilization.ts index 3620486000..6704ad6230 100644 --- a/sdk/constructive-react/src/compute/orm/models/resourceUtilization.ts +++ b/sdk/constructive-react/src/compute/orm/models/resourceUtilization.ts @@ -29,7 +29,6 @@ import type { ResourceUtilizationSelect, ResourceUtilizationFilter, ResourceUtilizationOrderBy, - CreateResourceUtilizationInput, UpdateResourceUtilizationInput, ResourceUtilizationPatch, } from '../input-types'; @@ -104,31 +103,4 @@ export class ResourceUtilizationModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createResourceUtilization: { - resourceUtilization: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'ResourceUtilization', - 'createResourceUtilization', - 'resourceUtilization', - args.select, - args.data, - 'CreateResourceUtilizationInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'ResourceUtilization', - fieldName: 'createResourceUtilization', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/compute/orm/models/resourcesHealth.ts b/sdk/constructive-react/src/compute/orm/models/resourcesHealth.ts index 1ac97bab3d..6b66d67938 100644 --- a/sdk/constructive-react/src/compute/orm/models/resourcesHealth.ts +++ b/sdk/constructive-react/src/compute/orm/models/resourcesHealth.ts @@ -29,7 +29,6 @@ import type { ResourcesHealthSelect, ResourcesHealthFilter, ResourcesHealthOrderBy, - CreateResourcesHealthInput, UpdateResourcesHealthInput, ResourcesHealthPatch, } from '../input-types'; @@ -144,31 +143,4 @@ export class ResourcesHealthModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createResourcesHealth: { - resourcesHealth: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'ResourcesHealth', - 'createResourcesHealth', - 'resourcesHealth', - args.select, - args.data, - 'CreateResourcesHealthInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'ResourcesHealth', - fieldName: 'createResourcesHealth', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/compute/orm/models/resourcesRequirementsState.ts b/sdk/constructive-react/src/compute/orm/models/resourcesRequirementsState.ts index 8ce68f6a31..85dbd5a7d1 100644 --- a/sdk/constructive-react/src/compute/orm/models/resourcesRequirementsState.ts +++ b/sdk/constructive-react/src/compute/orm/models/resourcesRequirementsState.ts @@ -29,7 +29,6 @@ import type { ResourcesRequirementsStateSelect, ResourcesRequirementsStateFilter, ResourcesRequirementsStateOrderBy, - CreateResourcesRequirementsStateInput, UpdateResourcesRequirementsStateInput, ResourcesRequirementsStatePatch, } from '../input-types'; @@ -109,31 +108,4 @@ export class ResourcesRequirementsStateModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createResourcesRequirementsState: { - resourcesRequirementsState: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'ResourcesRequirementsState', - 'createResourcesRequirementsState', - 'resourcesRequirementsState', - args.select, - args.data, - 'CreateResourcesRequirementsStateInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'ResourcesRequirementsState', - fieldName: 'createResourcesRequirementsState', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/compute/orm/models/resourcesResolvedRequirement.ts b/sdk/constructive-react/src/compute/orm/models/resourcesResolvedRequirement.ts index 40680dcfb3..2a9d9d1034 100644 --- a/sdk/constructive-react/src/compute/orm/models/resourcesResolvedRequirement.ts +++ b/sdk/constructive-react/src/compute/orm/models/resourcesResolvedRequirement.ts @@ -29,7 +29,6 @@ import type { ResourcesResolvedRequirementSelect, ResourcesResolvedRequirementFilter, ResourcesResolvedRequirementOrderBy, - CreateResourcesResolvedRequirementInput, UpdateResourcesResolvedRequirementInput, ResourcesResolvedRequirementPatch, } from '../input-types'; @@ -117,31 +116,4 @@ export class ResourcesResolvedRequirementModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createResourcesResolvedRequirement: { - resourcesResolvedRequirement: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'ResourcesResolvedRequirement', - 'createResourcesResolvedRequirement', - 'resourcesResolvedRequirement', - args.select, - args.data, - 'CreateResourcesResolvedRequirementInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'ResourcesResolvedRequirement', - fieldName: 'createResourcesResolvedRequirement', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/compute/orm/models/builderBinding.ts b/sdk/constructive-react/src/compute/orm/models/serviceBinding.ts similarity index 53% rename from sdk/constructive-sdk/src/compute/orm/models/builderBinding.ts rename to sdk/constructive-react/src/compute/orm/models/serviceBinding.ts index 0d5d7843e3..be7061a21b 100644 --- a/sdk/constructive-sdk/src/compute/orm/models/builderBinding.ts +++ b/sdk/constructive-react/src/compute/orm/models/serviceBinding.ts @@ -1,5 +1,5 @@ /** - * BuilderBinding model for ORM client + * ServiceBinding model for ORM client * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -24,28 +24,28 @@ import type { StrictSelect, } from '../select-types'; import type { - BuilderBinding, - BuilderBindingWithRelations, - BuilderBindingSelect, - BuilderBindingFilter, - BuilderBindingOrderBy, - CreateBuilderBindingInput, - UpdateBuilderBindingInput, - BuilderBindingPatch, + ServiceBinding, + ServiceBindingWithRelations, + ServiceBindingSelect, + ServiceBindingFilter, + ServiceBindingOrderBy, + CreateServiceBindingInput, + UpdateServiceBindingInput, + ServiceBindingPatch, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; -export class BuilderBindingModel { +export class ServiceBindingModel { constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { + findMany( + args: FindManyArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - builderBindings: ConnectionResult>; + serviceBindings: ConnectionResult>; }> { const { document, variables } = buildFindManyDocument( - 'BuilderBinding', - 'builderBindings', + 'ServiceBinding', + 'serviceBindings', args.select, { where: args?.where, @@ -56,65 +56,65 @@ export class BuilderBindingModel { before: args?.before, offset: args?.offset, }, - 'BuilderBindingFilter', - 'BuilderBindingOrderBy', + 'ServiceBindingFilter', + 'ServiceBindingOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'BuilderBinding', - fieldName: 'builderBindings', + operationName: 'ServiceBinding', + fieldName: 'serviceBindings', document, variables, }); } - findFirst( - args: FindFirstArgs & { + findFirst( + args: FindFirstArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - builderBinding: InferSelectResult | null; + serviceBinding: InferSelectResult | null; }> { const { document, variables } = buildFindFirstDocument( - 'BuilderBinding', - 'builderBindings', + 'ServiceBinding', + 'serviceBindings', args.select, { where: args?.where, orderBy: args?.orderBy as string[] | undefined, }, - 'BuilderBindingFilter', - 'BuilderBindingOrderBy', + 'ServiceBindingFilter', + 'ServiceBindingOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'BuilderBinding', - fieldName: 'builderBinding', + operationName: 'ServiceBinding', + fieldName: 'serviceBinding', document, variables, transform: (data: { - builderBindings?: { - nodes?: InferSelectResult[]; + serviceBindings?: { + nodes?: InferSelectResult[]; }; }) => ({ - builderBinding: data.builderBindings?.nodes?.[0] ?? null, + serviceBinding: data.serviceBindings?.nodes?.[0] ?? null, }), }); } - findOne( + findOne( args: { id: string; select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - builderBinding: InferSelectResult | null; + serviceBinding: InferSelectResult | null; }> { const { document, variables } = buildFindManyDocument( - 'BuilderBinding', - 'builderBindings', + 'ServiceBinding', + 'serviceBindings', args.select, { where: { @@ -124,91 +124,91 @@ export class BuilderBindingModel { }, first: 1, }, - 'BuilderBindingFilter', - 'BuilderBindingOrderBy', + 'ServiceBindingFilter', + 'ServiceBindingOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'BuilderBinding', - fieldName: 'builderBinding', + operationName: 'ServiceBinding', + fieldName: 'serviceBinding', document, variables, transform: (data: { - builderBindings?: { - nodes?: InferSelectResult[]; + serviceBindings?: { + nodes?: InferSelectResult[]; }; }) => ({ - builderBinding: data.builderBindings?.nodes?.[0] ?? null, + serviceBinding: data.serviceBindings?.nodes?.[0] ?? null, }), }); } - create( - args: CreateArgs & { + create( + args: CreateArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - createBuilderBinding: { - builderBinding: InferSelectResult; + createServiceBinding: { + serviceBinding: InferSelectResult; }; }> { const { document, variables } = buildCreateDocument( - 'BuilderBinding', - 'createBuilderBinding', - 'builderBinding', + 'ServiceBinding', + 'createServiceBinding', + 'serviceBinding', args.select, args.data, - 'CreateBuilderBindingInput', + 'CreateServiceBindingInput', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'BuilderBinding', - fieldName: 'createBuilderBinding', + operationName: 'ServiceBinding', + fieldName: 'createServiceBinding', document, variables, }); } - update( + update( args: UpdateArgs< S, { id: string; }, - BuilderBindingPatch + ServiceBindingPatch > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - updateBuilderBinding: { - builderBinding: InferSelectResult; + updateServiceBinding: { + serviceBinding: InferSelectResult; }; }> { const { document, variables } = buildUpdateByPkDocument( - 'BuilderBinding', - 'updateBuilderBinding', - 'builderBinding', + 'ServiceBinding', + 'updateServiceBinding', + 'serviceBinding', args.select, args.where.id, args.data, - 'UpdateBuilderBindingInput', + 'UpdateServiceBindingInput', 'id', - 'builderBindingPatch', + 'serviceBindingPatch', connectionFieldsMap, undefined ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'BuilderBinding', - fieldName: 'updateBuilderBinding', + operationName: 'ServiceBinding', + fieldName: 'updateServiceBinding', document, variables, }); } - delete( + delete( args: DeleteArgs< { id: string; @@ -216,28 +216,28 @@ export class BuilderBindingModel { S > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - deleteBuilderBinding: { - builderBinding: InferSelectResult; + deleteServiceBinding: { + serviceBinding: InferSelectResult; }; }> { const { document, variables } = buildDeleteByPkDocument( - 'BuilderBinding', - 'deleteBuilderBinding', - 'builderBinding', + 'ServiceBinding', + 'deleteServiceBinding', + 'serviceBinding', { id: args.where.id, }, - 'DeleteBuilderBindingInput', + 'DeleteServiceBindingInput', args.select, connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'BuilderBinding', - fieldName: 'deleteBuilderBinding', + operationName: 'ServiceBinding', + fieldName: 'deleteServiceBinding', document, variables, }); diff --git a/sdk/constructive-react/src/compute/orm/mutation/index.ts b/sdk/constructive-react/src/compute/orm/mutation/index.ts index 48ca756e41..3b03efb8a3 100644 --- a/sdk/constructive-react/src/compute/orm/mutation/index.ts +++ b/sdk/constructive-react/src/compute/orm/mutation/index.ts @@ -13,6 +13,7 @@ import type { AddNodeAndSaveInput, ApproveNodeInput, CopyGraphInput, + CreateFunctionGraphInput, DatabaseAddEdgeInput, DatabaseAddEdgeAndSaveInput, DatabaseAddNodeInput, @@ -75,6 +76,7 @@ import type { AddNodeAndSavePayload, ApproveNodePayload, CopyGraphPayload, + CreateFunctionGraphPayload, DatabaseAddEdgePayload, DatabaseAddEdgeAndSavePayload, DatabaseAddNodePayload, @@ -137,6 +139,7 @@ import type { AddNodeAndSavePayloadSelect, ApproveNodePayloadSelect, CopyGraphPayloadSelect, + CreateFunctionGraphPayloadSelect, DatabaseAddEdgePayloadSelect, DatabaseAddEdgeAndSavePayloadSelect, DatabaseAddNodePayloadSelect, @@ -213,6 +216,9 @@ export interface ApproveNodeVariables { export interface CopyGraphVariables { input: CopyGraphInput; } +export interface CreateFunctionGraphVariables { + input: CreateFunctionGraphInput; +} export interface DatabaseAddEdgeVariables { input: DatabaseAddEdgeInput; } @@ -566,6 +572,35 @@ export function createMutationOperations(client: OrmClient) { 'CopyGraphPayload' ), }), + createFunctionGraph: ( + args: CreateFunctionGraphVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + createFunctionGraph: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'CreateFunctionGraph', + fieldName: 'createFunctionGraph', + ...buildCustomDocument( + 'mutation', + 'CreateFunctionGraph', + 'createFunctionGraph', + options.select, + args, + [ + { + name: 'input', + type: 'CreateFunctionGraphInput!', + }, + ], + connectionFieldsMap, + 'CreateFunctionGraphPayload' + ), + }), databaseAddEdge: ( args: DatabaseAddEdgeVariables, options: { diff --git a/sdk/constructive-react/src/compute/orm/query-builder.ts b/sdk/constructive-react/src/compute/orm/query-builder.ts index fd785bbae6..d6c981907f 100644 --- a/sdk/constructive-react/src/compute/orm/query-builder.ts +++ b/sdk/constructive-react/src/compute/orm/query-builder.ts @@ -140,9 +140,7 @@ export function buildSelections( ); const nestedSelect = nested.select; if (nestedSelect && typeof nestedSelect === 'object') { - const subSelections = Object.entries(nestedSelect) - .filter(([, v]) => v) - .map(([name]) => t.field({ name })); + const subSelections = buildSelections(nestedSelect, connectionFieldsMap); fields.push( t.field({ name: key, diff --git a/sdk/constructive-react/src/compute/orm/select-types.ts b/sdk/constructive-react/src/compute/orm/select-types.ts index 4b39d7e820..783c4603df 100644 --- a/sdk/constructive-react/src/compute/orm/select-types.ts +++ b/sdk/constructive-react/src/compute/orm/select-types.ts @@ -159,9 +159,13 @@ export type InferSelectResult = TSelect extends undefined ? K extends keyof TEntity ? NonNullable extends ConnectionResult ? ConnectionResult> - : - | InferSelectResult, NestedSelect> - | (null extends TEntity[K] ? null : never) + : NonNullable extends readonly (infer Item)[] + ? + | InferSelectResult, NestedSelect>[] + | (null extends TEntity[K] ? null : never) + : + | InferSelectResult, NestedSelect> + | (null extends TEntity[K] ? null : never) : never : K extends keyof TEntity ? TEntity[K] diff --git a/sdk/constructive-react/src/compute/schema-types.ts b/sdk/constructive-react/src/compute/schema-types.ts index 2e98363daf..11395090e2 100644 --- a/sdk/constructive-react/src/compute/schema-types.ts +++ b/sdk/constructive-react/src/compute/schema-types.ts @@ -7,7 +7,6 @@ import type { Build, BuildStep, - BuilderBinding, ContentPreset, DatabaseFunctionGraph, DatabaseFunctionGraphExecution, @@ -51,7 +50,6 @@ import type { NamespaceEvent, PlatformBuild, PlatformBuildStep, - PlatformBuilderBinding, PlatformFunctionApiBinding, PlatformFunctionCapabilityBinding, PlatformFunctionDefinition, @@ -98,6 +96,7 @@ import type { PlatformResourcesHealth, PlatformResourcesRequirementsState, PlatformResourcesResolvedRequirement, + PlatformServiceBinding, PlatformWebhookEndpoint, PlatformWebhookEvent, Proposal, @@ -126,6 +125,7 @@ import type { ResourcesHealth, ResourcesRequirementsState, ResourcesResolvedRequirement, + ServiceBinding, WebhookEndpoint, WebhookEvent, BigFloatFilter, @@ -237,41 +237,6 @@ export type BuildStepOrderBy = | 'STATUS_DESC' | 'SUMMARY_ASC' | 'SUMMARY_DESC'; -/** Methods to use when ordering `BuilderBinding`. */ -export type BuilderBindingOrderBy = - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'CREATED_BY_PRINCIPAL_ASC' - | 'CREATED_BY_PRINCIPAL_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'INSTALLATION_ID_ASC' - | 'INSTALLATION_ID_DESC' - | 'LAST_ERROR_ASC' - | 'LAST_ERROR_DESC' - | 'METADATA_ASC' - | 'METADATA_DESC' - | 'NAMESPACE_ID_ASC' - | 'NAMESPACE_ID_DESC' - | 'NATURAL' - | 'OBSERVED_HOST_ASC' - | 'OBSERVED_HOST_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'REALM_ASC' - | 'REALM_DESC' - | 'STATUS_ASC' - | 'STATUS_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'UPDATED_BY_PRINCIPAL_ASC' - | 'UPDATED_BY_PRINCIPAL_DESC'; /** Methods to use when ordering `ContentPreset`. */ export type ContentPresetOrderBy = | 'ACTIVE_ASC' @@ -1486,39 +1451,6 @@ export type PlatformBuildStepOrderBy = | 'STATUS_DESC' | 'SUMMARY_ASC' | 'SUMMARY_DESC'; -/** Methods to use when ordering `PlatformBuilderBinding`. */ -export type PlatformBuilderBindingOrderBy = - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'CREATED_BY_PRINCIPAL_ASC' - | 'CREATED_BY_PRINCIPAL_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'INSTALLATION_ID_ASC' - | 'INSTALLATION_ID_DESC' - | 'LAST_ERROR_ASC' - | 'LAST_ERROR_DESC' - | 'METADATA_ASC' - | 'METADATA_DESC' - | 'NAMESPACE_ID_ASC' - | 'NAMESPACE_ID_DESC' - | 'NATURAL' - | 'OBSERVED_HOST_ASC' - | 'OBSERVED_HOST_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'REALM_ASC' - | 'REALM_DESC' - | 'STATUS_ASC' - | 'STATUS_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'UPDATED_BY_PRINCIPAL_ASC' - | 'UPDATED_BY_PRINCIPAL_DESC'; /** Methods to use when ordering `PlatformFunctionApiBinding`. */ export type PlatformFunctionApiBindingOrderBy = | 'ALIAS_ASC' @@ -2130,6 +2062,10 @@ export type PlatformProposalCommentOrderBy = | 'CREATED_BY_PRINCIPAL_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_ASC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' @@ -2212,6 +2148,10 @@ export type PlatformProposalOrderBy = | 'DUE_AT_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_ASC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' @@ -2526,6 +2466,10 @@ export type PlatformRepositoryOrderBy = | 'DESCRIPTION_TRGM_SIMILARITY_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_ASC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' @@ -3092,6 +3036,43 @@ export type PlatformResourcesResolvedRequirementOrderBy = | 'SECRETS_OBJECT_NAME_DESC' | 'SLUG_ASC' | 'SLUG_DESC'; +/** Methods to use when ordering `PlatformServiceBinding`. */ +export type PlatformServiceBindingOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'INSTALLATION_ID_ASC' + | 'INSTALLATION_ID_DESC' + | 'INSTALLATION_SCOPE_ASC' + | 'INSTALLATION_SCOPE_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'LAST_ERROR_ASC' + | 'LAST_ERROR_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'NATURAL' + | 'OBSERVED_HOST_ASC' + | 'OBSERVED_HOST_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REALM_ASC' + | 'REALM_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; /** Methods to use when ordering `PlatformWebhookEndpoint`. */ export type PlatformWebhookEndpointOrderBy = | 'ACTIVE_ASC' @@ -3176,6 +3157,10 @@ export type ProposalCommentOrderBy = | 'DATABASE_ID_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_ASC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' @@ -3262,6 +3247,10 @@ export type ProposalOrderBy = | 'DUE_AT_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_ASC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' @@ -3592,6 +3581,10 @@ export type RepositoryOrderBy = | 'DESCRIPTION_TRGM_SIMILARITY_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_ASC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' @@ -4178,6 +4171,45 @@ export type ResourcesResolvedRequirementOrderBy = | 'SECRETS_OBJECT_NAME_DESC' | 'SLUG_ASC' | 'SLUG_DESC'; +/** Methods to use when ordering `ServiceBinding`. */ +export type ServiceBindingOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'INSTALLATION_ID_ASC' + | 'INSTALLATION_ID_DESC' + | 'INSTALLATION_SCOPE_ASC' + | 'INSTALLATION_SCOPE_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'LAST_ERROR_ASC' + | 'LAST_ERROR_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'NATURAL' + | 'OBSERVED_HOST_ASC' + | 'OBSERVED_HOST_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REALM_ASC' + | 'REALM_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; /** Similarity metric for vector search */ export type VectorMetric = 'COSINE' | 'IP' | 'L2'; /** Methods to use when ordering `WebhookEndpoint`. */ @@ -4448,8 +4480,6 @@ export interface BuildPatch { jobId?: string; /** Build log object in storage; step rows slice it by byte range */ logs?: ConstructiveInternalTypeUpload; - /** Upload for Build log object in storage; step rows slice it by byte range */ - logsUpload?: File; /** Matrix shard identity; NULL for a non-matrix build */ matrixKey?: string; /** Build detail (step results, durations, failure reason) */ @@ -4578,99 +4608,6 @@ export interface BuildStepPatch { /** Parsed detail: failure message, assertion diff, counts, annotations */ summary?: unknown; } -/** A filter to be used against `BuilderBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface BuilderBindingFilter { - /** Checks for all expressions in this list. */ - and?: BuilderBindingFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `createdByPrincipal` field. */ - createdByPrincipal?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `installationId` field. */ - installationId?: UUIDFilter; - /** Filter by the object’s `lastError` field. */ - lastError?: StringFilter; - /** Filter by the object’s `metadata` field. */ - metadata?: JSONFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Negates the expression. */ - not?: BuilderBindingFilter; - /** Filter by the object’s `observedHost` field. */ - observedHost?: StringFilter; - /** Checks for any expressions in this list. */ - or?: BuilderBindingFilter[]; - /** Filter by the object’s `realm` field. */ - realm?: StringFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `updatedByPrincipal` field. */ - updatedByPrincipal?: UUIDFilter; -} -/** An input for mutations affecting `BuilderBinding` */ -export interface BuilderBindingInput { - createdAt?: string; - createdBy?: string; - createdByPrincipal?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - id?: string; - /** BuildKit resource installation serving this binding; may belong to another resource scope */ - installationId: string; - /** Most recent projection failure */ - lastError?: string; - /** Reconciler detail (projection timestamps and diagnostics) */ - metadata?: unknown; - /** Namespace whose builds use this BuildKit installation */ - namespaceId: string; - /** BuildKit address last projected into the namespace (NULL = never projected) */ - observedHost?: string; - /** Lane this binding applies to (NULL = the scope's default lane) */ - realm?: string; - /** Projection state of BUILDKIT_HOST: pending, active, failed */ - status?: string; - updatedAt?: string; - updatedBy?: string; - updatedByPrincipal?: string; -} -/** Represents an update to a `BuilderBinding`. Fields that are set will be updated. */ -export interface BuilderBindingPatch { - createdAt?: string; - createdBy?: string; - createdByPrincipal?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId?: string; - id?: string; - /** BuildKit resource installation serving this binding; may belong to another resource scope */ - installationId?: string; - /** Most recent projection failure */ - lastError?: string; - /** Reconciler detail (projection timestamps and diagnostics) */ - metadata?: unknown; - /** Namespace whose builds use this BuildKit installation */ - namespaceId?: string; - /** BuildKit address last projected into the namespace (NULL = never projected) */ - observedHost?: string; - /** Lane this binding applies to (NULL = the scope's default lane) */ - realm?: string; - /** Projection state of BUILDKIT_HOST: pending, active, failed */ - status?: string; - updatedAt?: string; - updatedBy?: string; - updatedByPrincipal?: string; -} /** A filter to be used against ConstructiveInternalTypeImage fields. All fields are combined with a logical ‘and.’ */ export interface ConstructiveInternalTypeImageFilter { /** Contained by the specified JSON. */ @@ -4877,11 +4814,6 @@ export interface CreateBuildStepInput { buildStep: BuildStepInput; clientMutationId?: string; } -export interface CreateBuilderBindingInput { - /** The `BuilderBinding` to be created by this mutation. */ - builderBinding: BuilderBindingInput; - clientMutationId?: string; -} export interface CreateContentPresetInput { clientMutationId?: string; /** The `ContentPreset` to be created by this mutation. */ @@ -5081,11 +5013,6 @@ export interface CreatePlatformBuildStepInput { /** The `PlatformBuildStep` to be created by this mutation. */ platformBuildStep: PlatformBuildStepInput; } -export interface CreatePlatformBuilderBindingInput { - clientMutationId?: string; - /** The `PlatformBuilderBinding` to be created by this mutation. */ - platformBuilderBinding: PlatformBuilderBindingInput; -} export interface CreatePlatformFunctionApiBindingInput { clientMutationId?: string; /** The `PlatformFunctionApiBinding` to be created by this mutation. */ @@ -5281,6 +5208,11 @@ export interface CreatePlatformResourceUsageSummaryInput { /** The `PlatformResourceUsageSummary` to be created by this mutation. */ platformResourceUsageSummary: PlatformResourceUsageSummaryInput; } +export interface CreatePlatformServiceBindingInput { + clientMutationId?: string; + /** The `PlatformServiceBinding` to be created by this mutation. */ + platformServiceBinding: PlatformServiceBindingInput; +} export interface CreatePlatformWebhookEndpointInput { clientMutationId?: string; /** The `PlatformWebhookEndpoint` to be created by this mutation. */ @@ -5391,6 +5323,11 @@ export interface CreateResourceUsageSummaryInput { /** The `ResourceUsageSummary` to be created by this mutation. */ resourceUsageSummary: ResourceUsageSummaryInput; } +export interface CreateServiceBindingInput { + clientMutationId?: string; + /** The `ServiceBinding` to be created by this mutation. */ + serviceBinding: ServiceBindingInput; +} export interface CreateWebhookEndpointInput { clientMutationId?: string; /** The `WebhookEndpoint` to be created by this mutation. */ @@ -6387,10 +6324,6 @@ export interface DeleteBuildStepInput { /** When the result was recorded (partition key) */ recordedAt: string; } -export interface DeleteBuilderBindingInput { - clientMutationId?: string; - id: string; -} export interface DeleteContentPresetInput { clientMutationId?: string; /** Unique preset identifier */ @@ -6623,10 +6556,6 @@ export interface DeletePlatformBuildStepInput { /** When the result was recorded (partition key) */ recordedAt: string; } -export interface DeletePlatformBuilderBindingInput { - clientMutationId?: string; - id: string; -} export interface DeletePlatformFunctionApiBindingInput { clientMutationId?: string; id: string; @@ -6820,6 +6749,10 @@ export interface DeletePlatformResourceUsageSummaryInput { /** Unique usage summary identifier */ id: string; } +export interface DeletePlatformServiceBindingInput { + clientMutationId?: string; + id: string; +} export interface DeletePlatformWebhookEndpointInput { clientMutationId?: string; id: string; @@ -6918,6 +6851,10 @@ export interface DeleteResourceUsageSummaryInput { /** Unique usage summary identifier */ id: string; } +export interface DeleteServiceBindingInput { + clientMutationId?: string; + id: string; +} export interface DeleteWebhookEndpointInput { clientMutationId?: string; id: string; @@ -7483,8 +7420,8 @@ export interface FunctionDeploymentFilter { lastError?: StringFilter; /** Filter by the object’s `lastErrorAt` field. */ lastErrorAt?: DatetimeFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -9387,8 +9324,6 @@ export interface IntegrationProviderPatch { id?: string; /** Provider logo as an image domain value (url, id, key, bucket, provider) */ logo?: ConstructiveInternalTypeImage; - /** Upload for Provider logo as an image domain value (url, id, key, bucket, provider) */ - logoUpload?: File; /** Human-readable brand name (e.g. 'Mailgun', 'PostgreSQL') */ name?: string; /** Canonical config requirements for this provider: array of (name, required, provider) tuples. Used by the UI to auto-fill function/resource required_configs. */ @@ -9512,10 +9447,6 @@ export interface NamespaceFilter { and?: NamespaceFilter[]; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; - /** Filter by the object’s `builderBindings` relation. */ - builderBindings?: NamespaceToManyBuilderBindingFilter; - /** `builderBindings` exist. */ - builderBindingsExist?: boolean; /** Filter by the object’s `clusterId` field. */ clusterId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -9524,10 +9455,10 @@ export interface NamespaceFilter { databaseId?: UUIDFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; - /** Filter by the object’s `functionDeployments` relation. */ - functionDeployments?: NamespaceToManyFunctionDeploymentFilter; - /** `functionDeployments` exist. */ - functionDeploymentsExist?: boolean; + /** Filter by the object’s `functionDeploymentsByNamespaceIdAndDatabaseId` relation. */ + functionDeploymentsByNamespaceIdAndDatabaseId?: NamespaceToManyFunctionDeploymentFilter; + /** `functionDeploymentsByNamespaceIdAndDatabaseId` exist. */ + functionDeploymentsByNamespaceIdAndDatabaseIdExist?: boolean; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isActive` field. */ @@ -9546,30 +9477,34 @@ export interface NamespaceFilter { not?: NamespaceFilter; /** Checks for any expressions in this list. */ or?: NamespaceFilter[]; - /** Filter by the object’s `registryBindings` relation. */ - registryBindings?: NamespaceToManyRegistryBindingFilter; - /** `registryBindings` exist. */ - registryBindingsExist?: boolean; - /** Filter by the object’s `resourceDefinitions` relation. */ - resourceDefinitions?: NamespaceToManyResourceDefinitionFilter; - /** `resourceDefinitions` exist. */ - resourceDefinitionsExist?: boolean; - /** Filter by the object’s `resourceInstallations` relation. */ - resourceInstallations?: NamespaceToManyResourceInstallationFilter; - /** `resourceInstallations` exist. */ - resourceInstallationsExist?: boolean; - /** Filter by the object’s `resources` relation. */ - resources?: NamespaceToManyResourceFilter; - /** `resources` exist. */ - resourcesExist?: boolean; + /** Filter by the object’s `registryBindingsByNamespaceIdAndDatabaseId` relation. */ + registryBindingsByNamespaceIdAndDatabaseId?: NamespaceToManyRegistryBindingFilter; + /** `registryBindingsByNamespaceIdAndDatabaseId` exist. */ + registryBindingsByNamespaceIdAndDatabaseIdExist?: boolean; + /** Filter by the object’s `resourceDefinitionsByNamespaceIdAndDatabaseId` relation. */ + resourceDefinitionsByNamespaceIdAndDatabaseId?: NamespaceToManyResourceDefinitionFilter; + /** `resourceDefinitionsByNamespaceIdAndDatabaseId` exist. */ + resourceDefinitionsByNamespaceIdAndDatabaseIdExist?: boolean; + /** Filter by the object’s `resourceInstallationsByNamespaceIdAndDatabaseId` relation. */ + resourceInstallationsByNamespaceIdAndDatabaseId?: NamespaceToManyResourceInstallationFilter; + /** `resourceInstallationsByNamespaceIdAndDatabaseId` exist. */ + resourceInstallationsByNamespaceIdAndDatabaseIdExist?: boolean; + /** Filter by the object’s `resourcesByNamespaceIdAndDatabaseId` relation. */ + resourcesByNamespaceIdAndDatabaseId?: NamespaceToManyResourceFilter; + /** `resourcesByNamespaceIdAndDatabaseId` exist. */ + resourcesByNamespaceIdAndDatabaseIdExist?: boolean; + /** Filter by the object’s `serviceBindingsByNamespaceIdAndDatabaseId` relation. */ + serviceBindingsByNamespaceIdAndDatabaseId?: NamespaceToManyServiceBindingFilter; + /** `serviceBindingsByNamespaceIdAndDatabaseId` exist. */ + serviceBindingsByNamespaceIdAndDatabaseIdExist?: boolean; /** Filter by the object’s `status` field. */ status?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; - /** Filter by the object’s `webhookEndpoints` relation. */ - webhookEndpoints?: NamespaceToManyWebhookEndpointFilter; - /** `webhookEndpoints` exist. */ - webhookEndpointsExist?: boolean; + /** Filter by the object’s `webhookEndpointsByNamespaceIdAndDatabaseId` relation. */ + webhookEndpointsByNamespaceIdAndDatabaseId?: NamespaceToManyWebhookEndpointFilter; + /** `webhookEndpointsByNamespaceIdAndDatabaseId` exist. */ + webhookEndpointsByNamespaceIdAndDatabaseIdExist?: boolean; } /** An input for mutations affecting `Namespace` */ export interface NamespaceInput { @@ -9627,15 +9562,6 @@ export interface NamespacePatch { status?: string; updatedAt?: string; } -/** A filter to be used against many `BuilderBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface NamespaceToManyBuilderBindingFilter { - /** Filters to entities where every related entity matches. */ - every?: BuilderBindingFilter; - /** Filters to entities where no related entity matches. */ - none?: BuilderBindingFilter; - /** Filters to entities where at least one related entity matches. */ - some?: BuilderBindingFilter; -} /** A filter to be used against many `FunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ export interface NamespaceToManyFunctionDeploymentFilter { /** Filters to entities where every related entity matches. */ @@ -9681,6 +9607,15 @@ export interface NamespaceToManyResourceInstallationFilter { /** Filters to entities where at least one related entity matches. */ some?: ResourceInstallationFilter; } +/** A filter to be used against many `ServiceBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface NamespaceToManyServiceBindingFilter { + /** Filters to entities where every related entity matches. */ + every?: ServiceBindingFilter; + /** Filters to entities where no related entity matches. */ + none?: ServiceBindingFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ServiceBindingFilter; +} /** A filter to be used against many `WebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ export interface NamespaceToManyWebhookEndpointFilter { /** Filters to entities where every related entity matches. */ @@ -9822,8 +9757,6 @@ export interface PlatformBuildPatch { jobId?: string; /** Build log object in storage; step rows slice it by byte range */ logs?: ConstructiveInternalTypeUpload; - /** Upload for Build log object in storage; step rows slice it by byte range */ - logsUpload?: File; /** Matrix shard identity; NULL for a non-matrix build */ matrixKey?: string; /** Build detail (step results, durations, failure reason) */ @@ -9922,118 +9855,31 @@ export interface PlatformBuildStepPatch { /** Acting principal (agent, API key, or user) who created this record */ createdByPrincipal?: string; /** Process exit code of a step (NULL for a test result) */ - exitCode?: number; - /** When this step or test finished */ - finishedAt?: string; - /** Unique identifier (uuidv7 provides temporal ordering) */ - id?: string; - /** What this row is: step, or test */ - kind?: string; - /** Byte length of this row's output in the build log object */ - logBytes?: string; - /** Byte offset of this row's output in the build log object */ - logOffset?: string; - /** Step name, or the test's fully qualified name */ - name?: string; - /** Sequence of the step that reported this test (NULL for a step itself) */ - parentSeq?: number; - /** When the result was recorded (partition key) */ - recordedAt?: string; - /** Position within the build, monotonically increasing across steps and their tests */ - seq?: number; - /** When this step or test began */ - startedAt?: string; - /** Outcome: running, succeeded, failed, skipped, cancelled */ - status?: string; - /** Parsed detail: failure message, assertion diff, counts, annotations */ - summary?: unknown; -} -/** A filter to be used against `PlatformBuilderBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformBuilderBindingFilter { - /** Checks for all expressions in this list. */ - and?: PlatformBuilderBindingFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `createdByPrincipal` field. */ - createdByPrincipal?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `installationId` field. */ - installationId?: UUIDFilter; - /** Filter by the object’s `lastError` field. */ - lastError?: StringFilter; - /** Filter by the object’s `metadata` field. */ - metadata?: JSONFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: PlatformNamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Negates the expression. */ - not?: PlatformBuilderBindingFilter; - /** Filter by the object’s `observedHost` field. */ - observedHost?: StringFilter; - /** Checks for any expressions in this list. */ - or?: PlatformBuilderBindingFilter[]; - /** Filter by the object’s `realm` field. */ - realm?: StringFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `updatedByPrincipal` field. */ - updatedByPrincipal?: UUIDFilter; -} -/** An input for mutations affecting `PlatformBuilderBinding` */ -export interface PlatformBuilderBindingInput { - createdAt?: string; - createdBy?: string; - createdByPrincipal?: string; - id?: string; - /** BuildKit resource installation serving this binding; may belong to another resource scope */ - installationId: string; - /** Most recent projection failure */ - lastError?: string; - /** Reconciler detail (projection timestamps and diagnostics) */ - metadata?: unknown; - /** Namespace whose builds use this BuildKit installation */ - namespaceId: string; - /** BuildKit address last projected into the namespace (NULL = never projected) */ - observedHost?: string; - /** Lane this binding applies to (NULL = the scope's default lane) */ - realm?: string; - /** Projection state of BUILDKIT_HOST: pending, active, failed */ - status?: string; - updatedAt?: string; - updatedBy?: string; - updatedByPrincipal?: string; -} -/** Represents an update to a `PlatformBuilderBinding`. Fields that are set will be updated. */ -export interface PlatformBuilderBindingPatch { - createdAt?: string; - createdBy?: string; - createdByPrincipal?: string; - id?: string; - /** BuildKit resource installation serving this binding; may belong to another resource scope */ - installationId?: string; - /** Most recent projection failure */ - lastError?: string; - /** Reconciler detail (projection timestamps and diagnostics) */ - metadata?: unknown; - /** Namespace whose builds use this BuildKit installation */ - namespaceId?: string; - /** BuildKit address last projected into the namespace (NULL = never projected) */ - observedHost?: string; - /** Lane this binding applies to (NULL = the scope's default lane) */ - realm?: string; - /** Projection state of BUILDKIT_HOST: pending, active, failed */ + exitCode?: number; + /** When this step or test finished */ + finishedAt?: string; + /** Unique identifier (uuidv7 provides temporal ordering) */ + id?: string; + /** What this row is: step, or test */ + kind?: string; + /** Byte length of this row's output in the build log object */ + logBytes?: string; + /** Byte offset of this row's output in the build log object */ + logOffset?: string; + /** Step name, or the test's fully qualified name */ + name?: string; + /** Sequence of the step that reported this test (NULL for a step itself) */ + parentSeq?: number; + /** When the result was recorded (partition key) */ + recordedAt?: string; + /** Position within the build, monotonically increasing across steps and their tests */ + seq?: number; + /** When this step or test began */ + startedAt?: string; + /** Outcome: running, succeeded, failed, skipped, cancelled */ status?: string; - updatedAt?: string; - updatedBy?: string; - updatedByPrincipal?: string; + /** Parsed detail: failure message, assertion diff, counts, annotations */ + summary?: unknown; } /** A filter to be used against `PlatformFunctionApiBinding` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformFunctionApiBindingFilter { @@ -11841,10 +11687,6 @@ export interface PlatformNamespaceFilter { not?: PlatformNamespaceFilter; /** Checks for any expressions in this list. */ or?: PlatformNamespaceFilter[]; - /** Filter by the object’s `platformBuilderBindingsByNamespaceId` relation. */ - platformBuilderBindingsByNamespaceId?: PlatformNamespaceToManyPlatformBuilderBindingFilter; - /** `platformBuilderBindingsByNamespaceId` exist. */ - platformBuilderBindingsByNamespaceIdExist?: boolean; /** Filter by the object’s `platformFunctionDeploymentsByNamespaceId` relation. */ platformFunctionDeploymentsByNamespaceId?: PlatformNamespaceToManyPlatformFunctionDeploymentFilter; /** `platformFunctionDeploymentsByNamespaceId` exist. */ @@ -11865,6 +11707,10 @@ export interface PlatformNamespaceFilter { platformResourcesByNamespaceId?: PlatformNamespaceToManyPlatformResourceFilter; /** `platformResourcesByNamespaceId` exist. */ platformResourcesByNamespaceIdExist?: boolean; + /** Filter by the object’s `platformServiceBindingsByNamespaceId` relation. */ + platformServiceBindingsByNamespaceId?: PlatformNamespaceToManyPlatformServiceBindingFilter; + /** `platformServiceBindingsByNamespaceId` exist. */ + platformServiceBindingsByNamespaceIdExist?: boolean; /** Filter by the object’s `platformWebhookEndpointsByNamespaceId` relation. */ platformWebhookEndpointsByNamespaceId?: PlatformNamespaceToManyPlatformWebhookEndpointFilter; /** `platformWebhookEndpointsByNamespaceId` exist. */ @@ -11926,15 +11772,6 @@ export interface PlatformNamespacePatch { status?: string; updatedAt?: string; } -/** A filter to be used against many `PlatformBuilderBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformNamespaceToManyPlatformBuilderBindingFilter { - /** Filters to entities where every related entity matches. */ - every?: PlatformBuilderBindingFilter; - /** Filters to entities where no related entity matches. */ - none?: PlatformBuilderBindingFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlatformBuilderBindingFilter; -} /** A filter to be used against many `PlatformFunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformNamespaceToManyPlatformFunctionDeploymentFilter { /** Filters to entities where every related entity matches. */ @@ -11980,6 +11817,15 @@ export interface PlatformNamespaceToManyPlatformResourceInstallationFilter { /** Filters to entities where at least one related entity matches. */ some?: PlatformResourceInstallationFilter; } +/** A filter to be used against many `PlatformServiceBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformNamespaceToManyPlatformServiceBindingFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformServiceBindingFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformServiceBindingFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformServiceBindingFilter; +} /** A filter to be used against many `PlatformWebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformNamespaceToManyPlatformWebhookEndpointFilter { /** Filters to entities where every related entity matches. */ @@ -12007,6 +11853,8 @@ export interface PlatformProposalCommentFilter { createdByPrincipal?: UUIDFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -12035,6 +11883,8 @@ export interface PlatformProposalCommentFilter { search?: FullTextFilter; /** TRGM search on the `body` column. */ trgmBody?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `path` column. */ trgmPath?: TrgmSearchInput; /** TSV search on the `search` column. */ @@ -12068,7 +11918,7 @@ export interface PlatformProposalCommentInput { createdBy?: string; createdByPrincipal?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; /** Line within path the comment is anchored to */ @@ -12097,7 +11947,7 @@ export interface PlatformProposalCommentPatch { createdBy?: string; createdByPrincipal?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; /** Line within path the comment is anchored to */ @@ -12216,6 +12066,8 @@ export interface PlatformProposalFilter { dueAt?: DatetimeFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -12290,6 +12142,8 @@ export interface PlatformProposalFilter { trgmBody?: TrgmSearchInput; /** TRGM search on the `closed_reason` column. */ trgmClosedReason?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `kind` column. */ trgmKind?: TrgmSearchInput; /** TRGM search on the `merge_commit` column. */ @@ -12341,7 +12195,7 @@ export interface PlatformProposalInput { /** When this is wanted by (NULL when nothing is promised) */ dueAt?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; /** issue (a report or plan), change (merge one ref into another), discussion (an open question), decision (a question answered) */ @@ -12394,7 +12248,7 @@ export interface PlatformProposalPatch { /** When this is wanted by (NULL when nothing is promised) */ dueAt?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; /** issue (a report or plan), change (merge one ref into another), discussion (an open question), decision (a question answered) */ @@ -12689,7 +12543,7 @@ export interface PlatformProposalsChunkInput { chunkIndex?: number; createdAt?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; metadata?: unknown; @@ -12704,7 +12558,7 @@ export interface PlatformProposalsChunkPatch { chunkIndex?: number; createdAt?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; metadata?: unknown; @@ -13144,6 +12998,8 @@ export interface PlatformRepositoryFilter { description?: StringTrgmFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `externalId` field. */ @@ -13194,6 +13050,8 @@ export interface PlatformRepositoryFilter { trgmDefaultBranch?: TrgmSearchInput; /** TRGM search on the `description` column. */ trgmDescription?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `external_id` column. */ trgmExternalId?: TrgmSearchInput; /** TRGM search on the `name` column. */ @@ -13237,7 +13095,7 @@ export interface PlatformRepositoryInput { /** What this repository holds */ description?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; /** Identifier of this repository in the external provider (NULL for local) */ externalId?: string; @@ -13272,7 +13130,7 @@ export interface PlatformRepositoryPatch { /** What this repository holds */ description?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; /** Identifier of this repository in the external provider (NULL for local) */ externalId?: string; @@ -14501,6 +14359,105 @@ export interface PlatformResourcesResolvedRequirementFilter { /** Filter by the object’s `slug` field. */ slug?: StringFilter; } +/** A filter to be used against `PlatformServiceBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformServiceBindingFilter { + /** Checks for all expressions in this list. */ + and?: PlatformServiceBindingFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `installationScope` field. */ + installationScope?: StringFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformServiceBindingFilter; + /** Filter by the object’s `observedHost` field. */ + observedHost?: StringFilter; + /** Checks for any expressions in this list. */ + or?: PlatformServiceBindingFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +/** An input for mutations affecting `PlatformServiceBinding` */ +export interface PlatformServiceBindingInput { + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + id?: string; + /** Resource installation serving this binding, in the installations table of installation_scope */ + installationId: string; + /** Scope whose installations table holds installation_id: this scope or platform */ + installationScope: string; + /** Service this binding projects: builder (BUILDKIT_HOST) or git (GIT_PROVIDER + GIT_SERVICE_URL) */ + kind: string; + /** Most recent projection failure */ + lastError?: string; + /** Reconciler detail (projection timestamps and diagnostics) */ + metadata?: unknown; + /** Namespace whose builds use this BuildKit installation */ + namespaceId: string; + /** Service address last projected into the namespace (NULL = never projected) */ + observedHost?: string; + /** Lane this binding applies to (NULL = the scope's default lane) */ + realm?: string; + /** Projection state of the bound address: pending, active, failed */ + status?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; +} +/** Represents an update to a `PlatformServiceBinding`. Fields that are set will be updated. */ +export interface PlatformServiceBindingPatch { + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + id?: string; + /** Resource installation serving this binding, in the installations table of installation_scope */ + installationId?: string; + /** Scope whose installations table holds installation_id: this scope or platform */ + installationScope?: string; + /** Service this binding projects: builder (BUILDKIT_HOST) or git (GIT_PROVIDER + GIT_SERVICE_URL) */ + kind?: string; + /** Most recent projection failure */ + lastError?: string; + /** Reconciler detail (projection timestamps and diagnostics) */ + metadata?: unknown; + /** Namespace whose builds use this BuildKit installation */ + namespaceId?: string; + /** Service address last projected into the namespace (NULL = never projected) */ + observedHost?: string; + /** Lane this binding applies to (NULL = the scope's default lane) */ + realm?: string; + /** Projection state of the bound address: pending, active, failed */ + status?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; +} /** A filter to be used against `PlatformWebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformWebhookEndpointFilter { /** Filter by the object’s `active` field. */ @@ -14712,6 +14669,8 @@ export interface ProposalCommentFilter { databaseId?: UUIDFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -14740,6 +14699,8 @@ export interface ProposalCommentFilter { search?: FullTextFilter; /** TRGM search on the `body` column. */ trgmBody?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `path` column. */ trgmPath?: TrgmSearchInput; /** TSV search on the `search` column. */ @@ -14773,7 +14734,7 @@ export interface ProposalCommentInput { createdBy?: string; createdByPrincipal?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; /** Line within path the comment is anchored to */ @@ -14804,7 +14765,7 @@ export interface ProposalCommentPatch { /** Database that owns this resource (database-scoped isolation) */ databaseId?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; /** Line within path the comment is anchored to */ @@ -14933,6 +14894,8 @@ export interface ProposalFilter { dueAt?: DatetimeFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -15003,6 +14966,8 @@ export interface ProposalFilter { trgmBody?: TrgmSearchInput; /** TRGM search on the `closed_reason` column. */ trgmClosedReason?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `kind` column. */ trgmKind?: TrgmSearchInput; /** TRGM search on the `merge_commit` column. */ @@ -15054,7 +15019,7 @@ export interface ProposalInput { /** When this is wanted by (NULL when nothing is promised) */ dueAt?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; /** issue (a report or plan), change (merge one ref into another), discussion (an open question), decision (a question answered) */ @@ -15109,7 +15074,7 @@ export interface ProposalPatch { /** When this is wanted by (NULL when nothing is promised) */ dueAt?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; /** issue (a report or plan), change (merge one ref into another), discussion (an open question), decision (a question answered) */ @@ -15416,7 +15381,7 @@ export interface ProposalsChunkInput { /** Policy-required field derived from source table (used by AuthzRelatedEntityMembership) */ databaseId?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; metadata?: unknown; @@ -15433,7 +15398,7 @@ export interface ProposalsChunkPatch { /** Policy-required field derived from source table (used by AuthzRelatedEntityMembership) */ databaseId?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; metadata?: unknown; @@ -15465,8 +15430,8 @@ export interface RegistryBindingFilter { id?: UUIDFilter; /** Filter by the object’s `metadata` field. */ metadata?: JSONFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -15910,6 +15875,8 @@ export interface RepositoryFilter { description?: StringTrgmFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `externalId` field. */ @@ -15956,6 +15923,8 @@ export interface RepositoryFilter { trgmDefaultBranch?: TrgmSearchInput; /** TRGM search on the `description` column. */ trgmDescription?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `external_id` column. */ trgmExternalId?: TrgmSearchInput; /** TRGM search on the `name` column. */ @@ -16001,7 +15970,7 @@ export interface RepositoryInput { /** What this repository holds */ description?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; /** Identifier of this repository in the external provider (NULL for local) */ externalId?: string; @@ -16038,7 +16007,7 @@ export interface RepositoryPatch { /** What this repository holds */ description?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; /** Identifier of this repository in the external provider (NULL for local) */ externalId?: string; @@ -16365,8 +16334,8 @@ export interface ResourceDefinitionFilter { labels?: JSONFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -16584,8 +16553,8 @@ export interface ResourceFilter { memoryRequestBytes?: BigIntFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -16695,8 +16664,8 @@ export interface ResourceInstallationFilter { id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -17333,6 +17302,111 @@ export interface SaveGraphInput { message?: string; rootHash?: string; } +/** A filter to be used against `ServiceBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface ServiceBindingFilter { + /** Checks for all expressions in this list. */ + and?: ServiceBindingFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `installationScope` field. */ + installationScope?: StringFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: ServiceBindingFilter; + /** Filter by the object’s `observedHost` field. */ + observedHost?: StringFilter; + /** Checks for any expressions in this list. */ + or?: ServiceBindingFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +/** An input for mutations affecting `ServiceBinding` */ +export interface ServiceBindingInput { + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + id?: string; + /** Resource installation serving this binding, in the installations table of installation_scope */ + installationId: string; + /** Scope whose installations table holds installation_id: this scope or platform */ + installationScope: string; + /** Service this binding projects: builder (BUILDKIT_HOST) or git (GIT_PROVIDER + GIT_SERVICE_URL) */ + kind: string; + /** Most recent projection failure */ + lastError?: string; + /** Reconciler detail (projection timestamps and diagnostics) */ + metadata?: unknown; + /** Namespace whose builds use this BuildKit installation */ + namespaceId: string; + /** Service address last projected into the namespace (NULL = never projected) */ + observedHost?: string; + /** Lane this binding applies to (NULL = the scope's default lane) */ + realm?: string; + /** Projection state of the bound address: pending, active, failed */ + status?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; +} +/** Represents an update to a `ServiceBinding`. Fields that are set will be updated. */ +export interface ServiceBindingPatch { + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string; + id?: string; + /** Resource installation serving this binding, in the installations table of installation_scope */ + installationId?: string; + /** Scope whose installations table holds installation_id: this scope or platform */ + installationScope?: string; + /** Service this binding projects: builder (BUILDKIT_HOST) or git (GIT_PROVIDER + GIT_SERVICE_URL) */ + kind?: string; + /** Most recent projection failure */ + lastError?: string; + /** Reconciler detail (projection timestamps and diagnostics) */ + metadata?: unknown; + /** Namespace whose builds use this BuildKit installation */ + namespaceId?: string; + /** Service address last projected into the namespace (NULL = never projected) */ + observedHost?: string; + /** Lane this binding applies to (NULL = the scope's default lane) */ + realm?: string; + /** Projection state of the bound address: pending, active, failed */ + status?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; +} export interface SetAndCommitInput { clientMutationId?: string; data?: unknown; @@ -17475,12 +17549,6 @@ export interface UpdateBuildStepInput { /** When the result was recorded (partition key) */ recordedAt: string; } -export interface UpdateBuilderBindingInput { - /** An object where the defined keys will be set on the `BuilderBinding` being updated. */ - builderBindingPatch: BuilderBindingPatch; - clientMutationId?: string; - id: string; -} export interface UpdateContentPresetInput { clientMutationId?: string; /** An object where the defined keys will be set on the `ContentPreset` being updated. */ @@ -17793,12 +17861,6 @@ export interface UpdatePlatformBuildStepInput { /** When the result was recorded (partition key) */ recordedAt: string; } -export interface UpdatePlatformBuilderBindingInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `PlatformBuilderBinding` being updated. */ - platformBuilderBindingPatch: PlatformBuilderBindingPatch; -} export interface UpdatePlatformFunctionApiBindingInput { clientMutationId?: string; id: string; @@ -18070,6 +18132,12 @@ export interface UpdatePlatformResourceUsageSummaryInput { /** An object where the defined keys will be set on the `PlatformResourceUsageSummary` being updated. */ platformResourceUsageSummaryPatch: PlatformResourceUsageSummaryPatch; } +export interface UpdatePlatformServiceBindingInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `PlatformServiceBinding` being updated. */ + platformServiceBindingPatch: PlatformServiceBindingPatch; +} export interface UpdatePlatformWebhookEndpointInput { clientMutationId?: string; id: string; @@ -18212,6 +18280,12 @@ export interface UpdateResourceUsageSummaryInput { /** An object where the defined keys will be set on the `ResourceUsageSummary` being updated. */ resourceUsageSummaryPatch: ResourceUsageSummaryPatch; } +export interface UpdateServiceBindingInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `ServiceBinding` being updated. */ + serviceBindingPatch: ServiceBindingPatch; +} export interface UpdateWebhookEndpointInput { clientMutationId?: string; id: string; @@ -18236,10 +18310,12 @@ export interface VectorNearbyInput { includeChunks?: boolean; /** Similarity metric to use (default: COSINE). */ metric?: VectorMetric; - /** Natural language text to embed server-side for similarity search. Mutually exclusive with `vector` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** The model that produced `vector`. On a column that records the model of each row's vector, only rows embedded with this model are compared; vectors of two models are not comparable. Filled in server-side when `text` is embedded. */ + model?: string; + /** Natural language text to embed server-side for similarity search. Provide exactly one of `text` or `vector`; sending both or neither is an error. Blank text on its own counts as not given. Requires the LLM plugin to be configured with an embedding provider. */ text?: string; /** Query vector for similarity search. */ - vector: number[]; + vector?: number[]; } /** A filter to be used against `WebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ export interface WebhookEndpointFilter { @@ -18263,8 +18339,8 @@ export interface WebhookEndpointFilter { host?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -18455,13 +18531,6 @@ export interface BuildStepConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `BuilderBinding` values. */ -export interface BuilderBindingConnection { - edges: BuilderBindingEdge[]; - nodes: BuilderBinding[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `Build` values. */ export interface BuildConnection { edges: BuildEdge[]; @@ -18763,13 +18832,6 @@ export interface PlatformBuildStepConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `PlatformBuilderBinding` values. */ -export interface PlatformBuilderBindingConnection { - edges: PlatformBuilderBindingEdge[]; - nodes: PlatformBuilderBinding[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `PlatformBuild` values. */ export interface PlatformBuildConnection { edges: PlatformBuildEdge[]; @@ -19099,6 +19161,13 @@ export interface PlatformResourcesResolvedRequirementConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `PlatformServiceBinding` values. */ +export interface PlatformServiceBindingConnection { + edges: PlatformServiceBindingEdge[]; + nodes: PlatformServiceBinding[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `PlatformWebhookEndpoint` values. */ export interface PlatformWebhookEndpointConnection { edges: PlatformWebhookEndpointEdge[]; @@ -19295,6 +19364,13 @@ export interface ResourcesResolvedRequirementConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `ServiceBinding` values. */ +export interface ServiceBindingConnection { + edges: ServiceBindingEdge[]; + nodes: ServiceBinding[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `WebhookEndpoint` values. */ export interface WebhookEndpointConnection { edges: WebhookEndpointEdge[]; @@ -19344,12 +19420,6 @@ export interface CreateBuildStepPayload { buildStepEdge?: BuildStepEdge | null; clientMutationId?: string | null; } -export interface CreateBuilderBindingPayload { - /** The `BuilderBinding` that was created by this mutation. */ - builderBinding?: BuilderBinding | null; - builderBindingEdge?: BuilderBindingEdge | null; - clientMutationId?: string | null; -} export interface CreateContentPresetPayload { clientMutationId?: string | null; /** The `ContentPreset` that was created by this mutation. */ @@ -19582,12 +19652,6 @@ export interface CreatePlatformBuildStepPayload { platformBuildStep?: PlatformBuildStep | null; platformBuildStepEdge?: PlatformBuildStepEdge | null; } -export interface CreatePlatformBuilderBindingPayload { - clientMutationId?: string | null; - /** The `PlatformBuilderBinding` that was created by this mutation. */ - platformBuilderBinding?: PlatformBuilderBinding | null; - platformBuilderBindingEdge?: PlatformBuilderBindingEdge | null; -} export interface CreatePlatformFunctionApiBindingPayload { clientMutationId?: string | null; /** The `PlatformFunctionApiBinding` that was created by this mutation. */ @@ -19822,6 +19886,12 @@ export interface CreatePlatformResourceUsageSummaryPayload { platformResourceUsageSummary?: PlatformResourceUsageSummary | null; platformResourceUsageSummaryEdge?: PlatformResourceUsageSummaryEdge | null; } +export interface CreatePlatformServiceBindingPayload { + clientMutationId?: string | null; + /** The `PlatformServiceBinding` that was created by this mutation. */ + platformServiceBinding?: PlatformServiceBinding | null; + platformServiceBindingEdge?: PlatformServiceBindingEdge | null; +} export interface CreatePlatformWebhookEndpointPayload { clientMutationId?: string | null; /** The `PlatformWebhookEndpoint` that was created by this mutation. */ @@ -19954,6 +20024,12 @@ export interface CreateResourceUsageSummaryPayload { resourceUsageSummary?: ResourceUsageSummary | null; resourceUsageSummaryEdge?: ResourceUsageSummaryEdge | null; } +export interface CreateServiceBindingPayload { + clientMutationId?: string | null; + /** The `ServiceBinding` that was created by this mutation. */ + serviceBinding?: ServiceBinding | null; + serviceBindingEdge?: ServiceBindingEdge | null; +} export interface CreateWebhookEndpointPayload { clientMutationId?: string | null; /** The `WebhookEndpoint` that was created by this mutation. */ @@ -20049,12 +20125,6 @@ export interface DeleteBuildStepPayload { buildStepEdge?: BuildStepEdge | null; clientMutationId?: string | null; } -export interface DeleteBuilderBindingPayload { - /** The `BuilderBinding` that was deleted by this mutation. */ - builderBinding?: BuilderBinding | null; - builderBindingEdge?: BuilderBindingEdge | null; - clientMutationId?: string | null; -} export interface DeleteContentPresetPayload { clientMutationId?: string | null; /** The `ContentPreset` that was deleted by this mutation. */ @@ -20295,12 +20365,6 @@ export interface DeletePlatformBuildStepPayload { platformBuildStep?: PlatformBuildStep | null; platformBuildStepEdge?: PlatformBuildStepEdge | null; } -export interface DeletePlatformBuilderBindingPayload { - clientMutationId?: string | null; - /** The `PlatformBuilderBinding` that was deleted by this mutation. */ - platformBuilderBinding?: PlatformBuilderBinding | null; - platformBuilderBindingEdge?: PlatformBuilderBindingEdge | null; -} export interface DeletePlatformFunctionApiBindingPayload { clientMutationId?: string | null; /** The `PlatformFunctionApiBinding` that was deleted by this mutation. */ @@ -20535,6 +20599,12 @@ export interface DeletePlatformResourceUsageSummaryPayload { platformResourceUsageSummary?: PlatformResourceUsageSummary | null; platformResourceUsageSummaryEdge?: PlatformResourceUsageSummaryEdge | null; } +export interface DeletePlatformServiceBindingPayload { + clientMutationId?: string | null; + /** The `PlatformServiceBinding` that was deleted by this mutation. */ + platformServiceBinding?: PlatformServiceBinding | null; + platformServiceBindingEdge?: PlatformServiceBindingEdge | null; +} export interface DeletePlatformWebhookEndpointPayload { clientMutationId?: string | null; /** The `PlatformWebhookEndpoint` that was deleted by this mutation. */ @@ -20667,6 +20737,12 @@ export interface DeleteResourceUsageSummaryPayload { resourceUsageSummary?: ResourceUsageSummary | null; resourceUsageSummaryEdge?: ResourceUsageSummaryEdge | null; } +export interface DeleteServiceBindingPayload { + clientMutationId?: string | null; + /** The `ServiceBinding` that was deleted by this mutation. */ + serviceBinding?: ServiceBinding | null; + serviceBindingEdge?: ServiceBindingEdge | null; +} export interface DeleteWebhookEndpointPayload { clientMutationId?: string | null; /** The `WebhookEndpoint` that was deleted by this mutation. */ @@ -20842,12 +20918,6 @@ export interface UpdateBuildStepPayload { buildStepEdge?: BuildStepEdge | null; clientMutationId?: string | null; } -export interface UpdateBuilderBindingPayload { - /** The `BuilderBinding` that was updated by this mutation. */ - builderBinding?: BuilderBinding | null; - builderBindingEdge?: BuilderBindingEdge | null; - clientMutationId?: string | null; -} export interface UpdateContentPresetPayload { clientMutationId?: string | null; /** The `ContentPreset` that was updated by this mutation. */ @@ -21088,12 +21158,6 @@ export interface UpdatePlatformBuildStepPayload { platformBuildStep?: PlatformBuildStep | null; platformBuildStepEdge?: PlatformBuildStepEdge | null; } -export interface UpdatePlatformBuilderBindingPayload { - clientMutationId?: string | null; - /** The `PlatformBuilderBinding` that was updated by this mutation. */ - platformBuilderBinding?: PlatformBuilderBinding | null; - platformBuilderBindingEdge?: PlatformBuilderBindingEdge | null; -} export interface UpdatePlatformFunctionApiBindingPayload { clientMutationId?: string | null; /** The `PlatformFunctionApiBinding` that was updated by this mutation. */ @@ -21328,6 +21392,12 @@ export interface UpdatePlatformResourceUsageSummaryPayload { platformResourceUsageSummary?: PlatformResourceUsageSummary | null; platformResourceUsageSummaryEdge?: PlatformResourceUsageSummaryEdge | null; } +export interface UpdatePlatformServiceBindingPayload { + clientMutationId?: string | null; + /** The `PlatformServiceBinding` that was updated by this mutation. */ + platformServiceBinding?: PlatformServiceBinding | null; + platformServiceBindingEdge?: PlatformServiceBindingEdge | null; +} export interface UpdatePlatformWebhookEndpointPayload { clientMutationId?: string | null; /** The `PlatformWebhookEndpoint` that was updated by this mutation. */ @@ -21460,6 +21530,12 @@ export interface UpdateResourceUsageSummaryPayload { resourceUsageSummary?: ResourceUsageSummary | null; resourceUsageSummaryEdge?: ResourceUsageSummaryEdge | null; } +export interface UpdateServiceBindingPayload { + clientMutationId?: string | null; + /** The `ServiceBinding` that was updated by this mutation. */ + serviceBinding?: ServiceBinding | null; + serviceBindingEdge?: ServiceBindingEdge | null; +} export interface UpdateWebhookEndpointPayload { clientMutationId?: string | null; /** The `WebhookEndpoint` that was updated by this mutation. */ @@ -21479,21 +21555,27 @@ export interface ValidateFunctionGraphPayload { /** Information about a database table */ export interface MetaTable { constraints: MetaConstraints; + /** Description written for this table, or null */ + description?: string | null; fields: MetaField[]; foreignKeyConstraints: MetaForeignKeyConstraint[]; - /** i18n metadata (null if no @i18n tag) */ + /** i18n metadata (null if the table is not translatable) */ i18n?: MetaI18n | null; indexes: MetaIndex[]; inflection: MetaInflection; + /** Whether this table only links rows of two other tables; the link appears in their manyToMany relations */ + isJunction: boolean; + /** 'table' when rows are stored in this table, 'view' when they come from a view of other tables */ + kind: string; /** Final GraphQL output type name */ name: string; primaryKeyConstraints: MetaPrimaryKeyConstraint[]; query: MetaQuery; - /** Realtime metadata (null if no @realtime tag) */ + /** Realtime metadata (null if the table has no change subscriptions) */ realtime?: MetaRealtime | null; relations: MetaRelations; schemaName: string; - /** Provisioning scope metadata (null if no @scope tag) */ + /** Provisioning scope metadata (null if the table has no scope) */ scope?: MetaScope | null; /** Search metadata (null if no search configured) */ search?: MetaSearch | null; @@ -21520,12 +21602,6 @@ export interface PageInfo { /** When paginating backwards, the cursor to continue. */ startCursor?: string | null; } -/** A `BuilderBinding` edge in the connection. */ -export interface BuilderBindingEdge { - cursor?: string | null; - /** The `BuilderBinding` at the end of the edge. */ - node?: BuilderBinding | null; -} /** A `Build` edge in the connection. */ export interface BuildEdge { cursor?: string | null; @@ -21784,12 +21860,6 @@ export interface PlatformBuildStepEdge { /** The `PlatformBuildStep` at the end of the edge. */ node?: PlatformBuildStep | null; } -/** A `PlatformBuilderBinding` edge in the connection. */ -export interface PlatformBuilderBindingEdge { - cursor?: string | null; - /** The `PlatformBuilderBinding` at the end of the edge. */ - node?: PlatformBuilderBinding | null; -} /** A `PlatformBuild` edge in the connection. */ export interface PlatformBuildEdge { cursor?: string | null; @@ -22072,6 +22142,12 @@ export interface PlatformResourcesResolvedRequirementEdge { /** The `PlatformResourcesResolvedRequirement` at the end of the edge. */ node?: PlatformResourcesResolvedRequirement | null; } +/** A `PlatformServiceBinding` edge in the connection. */ +export interface PlatformServiceBindingEdge { + cursor?: string | null; + /** The `PlatformServiceBinding` at the end of the edge. */ + node?: PlatformServiceBinding | null; +} /** A `PlatformWebhookEndpoint` edge in the connection. */ export interface PlatformWebhookEndpointEdge { cursor?: string | null; @@ -22240,6 +22316,12 @@ export interface ResourcesResolvedRequirementEdge { /** The `ResourcesResolvedRequirement` at the end of the edge. */ node?: ResourcesResolvedRequirement | null; } +/** A `ServiceBinding` edge in the connection. */ +export interface ServiceBindingEdge { + cursor?: string | null; + /** The `ServiceBinding` at the end of the edge. */ + node?: ServiceBinding | null; +} /** A `WebhookEndpoint` edge in the connection. */ export interface WebhookEndpointEdge { cursor?: string | null; @@ -22260,15 +22342,27 @@ export interface MetaConstraints { } /** Information about a table field/column */ export interface MetaField { + /** Values this field accepts, when the set is fixed; null otherwise. Set on a table's own fields only. */ + allowedValues?: string[] | null; /** PostgreSQL column name */ columnName: string; description?: string | null; /** Enum metadata if this field has an enum type */ enumValues?: MetaEnum | null; + /** Set when the field holds files; null otherwise. Set on a table's own fields only. */ + file?: MetaFileField | null; hasDefault: boolean; + /** Whether the value is always computed and cannot be written, even when a create or update input offers the field. Set on a table's own fields only. */ + isComputed?: boolean | null; isForeignKey: boolean; isNotNull: boolean; isPrimaryKey: boolean; + /** Whether a create must provide this field. Set on a table's own fields only. */ + isRequiredOnCreate?: boolean | null; + /** Whether a create may set this field. Set on a table's own fields only. */ + isWritableOnCreate?: boolean | null; + /** Whether an update may change this field. Set on a table's own fields only. */ + isWritableOnUpdate?: boolean | null; /** Final GraphQL field name */ name: string; type: MetaType; @@ -22282,7 +22376,7 @@ export interface MetaForeignKeyConstraint { referencedFields: string[]; referencedTable: string; } -/** i18n metadata for a table with @i18n tag */ +/** i18n metadata for a translatable table */ export interface MetaI18n { /** Fields that are translatable */ translatableFields: MetaI18nField[]; @@ -22297,7 +22391,7 @@ export interface MetaIndex { isUnique: boolean; name: string; } -/** Table inflection names */ +/** Type and field names generated for this table */ export interface MetaInflection { allRows: string; conditionType: string; @@ -22325,7 +22419,7 @@ export interface MetaQuery { one?: string | null; update?: string | null; } -/** Realtime metadata for a table with @realtime tag */ +/** Realtime metadata for a table with change subscriptions */ export interface MetaRealtime { /** The generated subscription field name (e.g. onPostChanged) */ subscriptionFieldName: string; @@ -22340,13 +22434,13 @@ export interface MetaRelations { } /** Provisioning scope metadata for a table */ export interface MetaScope { - /** SQL name of the entity table for entity scopes, else null */ + /** Name of the entity table for entity scopes, else null */ entityTable?: string | null; - /** Inflected scope key column (e.g. databaseId, orgId), null for global tiers */ + /** Field name of the scope key (e.g. databaseId, orgId), null for global tiers */ keyColumn?: string | null; /** Provisioning scope: 'platform', 'app', 'database', or an entity scope (e.g. 'org') */ scope: string; - /** Provenance of the scope metadata (always 'smartTag') */ + /** Where this scope metadata comes from */ source: string; /** Coarse bucket: 'global', 'database', or 'entity' */ tier: string; @@ -22364,17 +22458,17 @@ export interface MetaSearch { } /** Storage metadata for a table */ export interface MetaStorage { - /** GraphQL type name of the plane's buckets table */ + /** GraphQL type name of the paired buckets table */ bucketsType: string; /** Computed download-URL field on the files type; null on the buckets side */ downloadUrlField?: string | null; - /** GraphQL type name of the plane's files table */ + /** GraphQL type name of the paired files table */ filesType: string; /** Whether this table is a storage buckets table */ isBucketsTable: boolean; /** Whether this table is a storage files table */ isFilesTable: boolean; - /** The plane's GraphQL upload surface */ + /** Upload mutations and types for this storage */ upload: MetaStorageUpload; } /** Information about a unique constraint */ @@ -22389,6 +22483,15 @@ export interface MetaEnum { /** Allowed values for this enum */ values: string[]; } +/** How a field holds files */ +export interface MetaFileField { + /** GraphQL type name of the files table uploads are recorded in, when this API has exactly one; null otherwise */ + filesType?: string | null; + /** Whether the field holds a list of files */ + isMultiple: boolean; + /** image, upload, or attachment. An image or upload holds a file document; an attachment holds a link to a file. */ + kind: string; +} /** Information about a PostgreSQL type */ export interface MetaType { /** Scalar serialization contract (null for plain scalars) */ @@ -22397,7 +22500,13 @@ export interface MetaType { hasDefault?: boolean | null; isArray: boolean; isNotNull?: boolean | null; + /** Most characters a text value may hold, or most bits a bit string may hold; for a list, each item. Null when unbounded. */ + maxLength?: number | null; pgType: string; + /** Most significant digits a decimal number may hold. Null when unbounded. */ + precision?: number | null; + /** Digits a decimal number keeps after the decimal point. Null when unbounded. */ + scale?: number | null; subtype?: string | null; } /** Reference to a related table */ @@ -22416,6 +22525,8 @@ export interface MetaBelongsToRelation { fieldName?: string | null; isUnique: boolean; keys: MetaField[]; + /** Fields on the referenced table that keys point at, in the same order as keys */ + refKeys: MetaField[]; references: MetaRefTable; type?: string | null; } @@ -22425,6 +22536,8 @@ export interface MetaHasRelation { isUnique: boolean; keys: MetaField[]; referencedBy: MetaRefTable; + /** Fields on the related table that point at this table, in the same order as keys */ + remoteKeys: MetaField[]; type?: string | null; } /** A many-to-many relation via junction table */ @@ -22447,7 +22560,7 @@ export interface MetaSearchColumn { /** Column name (camelCase) */ name: string; } -/** Per-table search configuration from @searchConfig smart tag */ +/** Per-table search configuration */ export interface MetaSearchConfig { /** Exponential decay factor per day */ boostRecencyDecay?: number | null; @@ -22458,7 +22571,7 @@ export interface MetaSearchConfig { /** JSON-encoded per-adapter score weights */ weights?: string | null; } -/** The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from */ +/** The upload mutations and types for a storage table pair */ export interface MetaStorageUpload { /** Per-file input type inside the bulk input */ bulkFileInputType: string; @@ -22476,14 +22589,14 @@ export interface MetaStorageUpload { mutation: string; /** Payload type of the single upload mutation */ payloadType: string; - /** Whether the upload input requires ownerId (entity-keyed plane) */ + /** Whether the upload input requires ownerId */ requiresOwnerId: boolean; } -/** How a client must serialize/parse a scalar — the one field-type detail standard GraphQL introspection cannot describe. Null for plain scalars whose wire format is obvious from gqlType. */ +/** How a client must serialize and parse a scalar whose wire format gqlType alone does not settle. Null for plain scalars whose wire format is obvious from gqlType. */ export interface MetaScalarEncoding { /** For 'vector': declared length, else null. */ dimensions?: number | null; - /** For 'ltree': values are dot-separated path strings. */ + /** For 'ltree': true when values are dot-separated paths ('a.b.c'), false when they are slash-separated paths ('/a/b/c'). */ dotPath?: boolean | null; /** For 'vector': element scalar (e.g. 'float'). */ elementType?: string | null; diff --git a/sdk/constructive-react/src/compute/types.ts b/sdk/constructive-react/src/compute/types.ts index d89c25ab4e..0bf01eb0ef 100644 --- a/sdk/constructive-react/src/compute/types.ts +++ b/sdk/constructive-react/src/compute/types.ts @@ -6,6 +6,7 @@ export type Base64EncodedBinary = unknown; export type ConstructiveInternalTypeImage = unknown; export type ConstructiveInternalTypeUpload = unknown; +export type FileVersion = unknown; export type ResourceRequirement = unknown; export interface Build { actorId: string | null; @@ -21,6 +22,8 @@ export interface Build { imageRef: string | null; jobId: string | null; logs: ConstructiveInternalTypeUpload | null; + logsUrl: string | null; + logsVersions: FileVersion[] | null; matrixKey: string | null; metadata: unknown | null; proposalId: string | null; @@ -50,23 +53,6 @@ export interface BuildStep { status: string | null; summary: unknown | null; } -export interface BuilderBinding { - createdAt: string | null; - createdBy: string | null; - createdByPrincipal: string | null; - databaseId: string | null; - id: string | null; - installationId: string | null; - lastError: string | null; - metadata: unknown | null; - namespaceId: string | null; - observedHost: string | null; - realm: string | null; - status: string | null; - updatedAt: string | null; - updatedBy: string | null; - updatedByPrincipal: string | null; -} export interface ContentPreset { active: boolean | null; commitId: string | null; @@ -593,6 +579,8 @@ export interface IntegrationProvider { icon: string | null; id: string | null; logo: ConstructiveInternalTypeImage | null; + logoUrl: string | null; + logoVersions: FileVersion[] | null; name: string | null; requiredConfigs: ResourceRequirement[] | null; requiredSecrets: ResourceRequirement[] | null; @@ -638,6 +626,8 @@ export interface PlatformBuild { imageRef: string | null; jobId: string | null; logs: ConstructiveInternalTypeUpload | null; + logsUrl: string | null; + logsVersions: FileVersion[] | null; matrixKey: string | null; metadata: unknown | null; proposalId: string | null; @@ -666,22 +656,6 @@ export interface PlatformBuildStep { status: string | null; summary: unknown | null; } -export interface PlatformBuilderBinding { - createdAt: string | null; - createdBy: string | null; - createdByPrincipal: string | null; - id: string | null; - installationId: string | null; - lastError: string | null; - metadata: unknown | null; - namespaceId: string | null; - observedHost: string | null; - realm: string | null; - status: string | null; - updatedAt: string | null; - updatedBy: string | null; - updatedByPrincipal: string | null; -} export interface PlatformFunctionApiBinding { alias: string | null; apiId: string | null; @@ -976,12 +950,16 @@ export interface PlatformNamespaceEvent { export interface PlatformProposalComment { actorId: string | null; attachments: ConstructiveInternalTypeUpload[] | null; + attachmentsUrl: string[] | null; + attachmentsVersions: FileVersion[] | null; body: string | null; bodyTrgmSimilarity: number | null; createdAt: string | null; createdBy: string | null; createdByPrincipal: string | null; embedding: number[] | null; + embeddingModel: string | null; + embeddingModelTrgmSimilarity: number | null; embeddingUpdatedAt: string | null; embeddingVectorDistance: number | null; id: string | null; @@ -1010,6 +988,8 @@ export interface PlatformProposal { decidedAt: string | null; dueAt: string | null; embedding: number[] | null; + embeddingModel: string | null; + embeddingModelTrgmSimilarity: number | null; embeddingUpdatedAt: string | null; embeddingVectorDistance: number | null; id: string | null; @@ -1160,6 +1140,8 @@ export interface PlatformRepository { description: string | null; descriptionTrgmSimilarity: number | null; embedding: number[] | null; + embeddingModel: string | null; + embeddingModelTrgmSimilarity: number | null; embeddingUpdatedAt: string | null; embeddingVectorDistance: number | null; externalId: string | null; @@ -1456,6 +1438,24 @@ export interface PlatformResourcesResolvedRequirement { secretsObjectName: string | null; slug: string | null; } +export interface PlatformServiceBinding { + createdAt: string | null; + createdBy: string | null; + createdByPrincipal: string | null; + id: string | null; + installationId: string | null; + installationScope: string | null; + kind: string | null; + lastError: string | null; + metadata: unknown | null; + namespaceId: string | null; + observedHost: string | null; + realm: string | null; + status: string | null; + updatedAt: string | null; + updatedBy: string | null; + updatedByPrincipal: string | null; +} export interface PlatformWebhookEndpoint { active: boolean | null; createdAt: string | null; @@ -1490,6 +1490,8 @@ export interface PlatformWebhookEvent { export interface ProposalComment { actorId: string | null; attachments: ConstructiveInternalTypeUpload[] | null; + attachmentsUrl: string[] | null; + attachmentsVersions: FileVersion[] | null; body: string | null; bodyTrgmSimilarity: number | null; createdAt: string | null; @@ -1497,6 +1499,8 @@ export interface ProposalComment { createdByPrincipal: string | null; databaseId: string | null; embedding: number[] | null; + embeddingModel: string | null; + embeddingModelTrgmSimilarity: number | null; embeddingUpdatedAt: string | null; embeddingVectorDistance: number | null; id: string | null; @@ -1526,6 +1530,8 @@ export interface Proposal { decidedAt: string | null; dueAt: string | null; embedding: number[] | null; + embeddingModel: string | null; + embeddingModelTrgmSimilarity: number | null; embeddingUpdatedAt: string | null; embeddingVectorDistance: number | null; id: string | null; @@ -1684,6 +1690,8 @@ export interface Repository { description: string | null; descriptionTrgmSimilarity: number | null; embedding: number[] | null; + embeddingModel: string | null; + embeddingModelTrgmSimilarity: number | null; embeddingUpdatedAt: string | null; embeddingVectorDistance: number | null; externalId: string | null; @@ -1991,6 +1999,25 @@ export interface ResourcesResolvedRequirement { secretsObjectName: string | null; slug: string | null; } +export interface ServiceBinding { + createdAt: string | null; + createdBy: string | null; + createdByPrincipal: string | null; + databaseId: string | null; + id: string | null; + installationId: string | null; + installationScope: string | null; + kind: string | null; + lastError: string | null; + metadata: unknown | null; + namespaceId: string | null; + observedHost: string | null; + realm: string | null; + status: string | null; + updatedAt: string | null; + updatedBy: string | null; + updatedByPrincipal: string | null; +} export interface WebhookEndpoint { active: boolean | null; createdAt: string | null; diff --git a/sdk/constructive-react/src/config/hooks/README.md b/sdk/constructive-react/src/config/hooks/README.md index 6f8bcb8d61..ab1043865f 100644 --- a/sdk/constructive-react/src/config/hooks/README.md +++ b/sdk/constructive-react/src/config/hooks/README.md @@ -34,7 +34,6 @@ function App() { |------|------|-------------| | `useAppInternalSecretsQuery` | Query | List all appInternalSecrets | | `useAppInternalSecretQuery` | Query | Get one appInternalSecret | -| `useCreateAppInternalSecretMutation` | Mutation | Create a appInternalSecret | | `useUpdateAppInternalSecretMutation` | Mutation | Update a appInternalSecret | | `useDeleteAppInternalSecretMutation` | Mutation | Delete a appInternalSecret | | `useConfigsQuery` | Query | Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed | @@ -49,7 +48,6 @@ function App() { | `useDeleteInternalConfigMutation` | Mutation | -level plaintext key-value config store; database-resident, never projected into Kubernetes | | `useInternalSecretsQuery` | Query | List all internalSecrets | | `useInternalSecretQuery` | Query | Get one internalSecret | -| `useCreateInternalSecretMutation` | Mutation | Create a internalSecret | | `useUpdateInternalSecretMutation` | Mutation | Update a internalSecret | | `useDeleteInternalSecretMutation` | Mutation | Delete a internalSecret | | `usePlatformConfigsQuery` | Query | Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed | @@ -64,17 +62,14 @@ function App() { | `useDeletePlatformInternalConfigMutation` | Mutation | platform-level plaintext key-value config store; database-resident, never projected into Kubernetes | | `usePlatformInternalSecretsQuery` | Query | List all platformInternalSecrets | | `usePlatformInternalSecretQuery` | Query | Get one platformInternalSecret | -| `useCreatePlatformInternalSecretMutation` | Mutation | Create a platformInternalSecret | | `useUpdatePlatformInternalSecretMutation` | Mutation | Update a platformInternalSecret | | `useDeletePlatformInternalSecretMutation` | Mutation | Delete a platformInternalSecret | | `usePlatformSecretsQuery` | Query | List all platformSecrets | | `usePlatformSecretQuery` | Query | Get one platformSecret | -| `useCreatePlatformSecretMutation` | Mutation | Create a platformSecret | | `useUpdatePlatformSecretMutation` | Mutation | Update a platformSecret | | `useDeletePlatformSecretMutation` | Mutation | Delete a platformSecret | | `useSecretsQuery` | Query | List all secrets | | `useSecretQuery` | Query | Get one secret | -| `useCreateSecretMutation` | Mutation | Create a secret | | `useUpdateSecretMutation` | Mutation | Update a secret | | `useDeleteSecretMutation` | Mutation | Delete a secret | | `use_internalSecretsDelMutation` | Mutation | _internalSecretsDel | @@ -120,11 +115,6 @@ const { data: item } = useAppInternalSecretQuery({ selection: { fields: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }, }); -// Create a appInternalSecret -const { mutate: create } = useCreateAppInternalSecretMutation({ - selection: { fields: { id: true } }, -}); -create({ annotations: '', description: '', labels: '', name: '', realm: '', retiredAt: '', rotatedAt: '' }); ``` ### Config @@ -183,11 +173,6 @@ const { data: item } = useInternalSecretQuery({ selection: { fields: { annotations: true, createdAt: true, databaseId: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }, }); -// Create a internalSecret -const { mutate: create } = useCreateInternalSecretMutation({ - selection: { fields: { id: true } }, -}); -create({ annotations: '', databaseId: '', description: '', labels: '', name: '', realm: '', retiredAt: '', rotatedAt: '' }); ``` ### PlatformConfig @@ -246,11 +231,6 @@ const { data: item } = usePlatformInternalSecretQuery({ selection: { fields: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }, }); -// Create a platformInternalSecret -const { mutate: create } = useCreatePlatformInternalSecretMutation({ - selection: { fields: { id: true } }, -}); -create({ annotations: '', description: '', labels: '', name: '', realm: '', retiredAt: '', rotatedAt: '' }); ``` ### PlatformSecret @@ -267,11 +247,6 @@ const { data: item } = usePlatformSecretQuery({ selection: { fields: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }, }); -// Create a platformSecret -const { mutate: create } = useCreatePlatformSecretMutation({ - selection: { fields: { id: true } }, -}); -create({ annotations: '', description: '', labels: '', name: '', namespaceId: '', provider: '', realm: '', retiredAt: '', rotatedAt: '' }); ``` ### Secret @@ -288,11 +263,6 @@ const { data: item } = useSecretQuery({ selection: { fields: { annotations: true, createdAt: true, databaseId: true, description: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }, }); -// Create a secret -const { mutate: create } = useCreateSecretMutation({ - selection: { fields: { id: true } }, -}); -create({ annotations: '', databaseId: '', description: '', labels: '', name: '', namespaceId: '', provider: '', realm: '', retiredAt: '', rotatedAt: '' }); ``` ## Custom Operation Hooks diff --git a/sdk/constructive-react/src/config/hooks/mutations/index.ts b/sdk/constructive-react/src/config/hooks/mutations/index.ts index 0c0a3c37b5..f18108c520 100644 --- a/sdk/constructive-react/src/config/hooks/mutations/index.ts +++ b/sdk/constructive-react/src/config/hooks/mutations/index.ts @@ -3,23 +3,18 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -export * from './useCreateAppInternalSecretMutation'; export * from './useCreateConfigMutation'; export * from './useUpdateConfigMutation'; export * from './useDeleteConfigMutation'; export * from './useCreateInternalConfigMutation'; export * from './useUpdateInternalConfigMutation'; export * from './useDeleteInternalConfigMutation'; -export * from './useCreateInternalSecretMutation'; export * from './useCreatePlatformConfigMutation'; export * from './useUpdatePlatformConfigMutation'; export * from './useDeletePlatformConfigMutation'; export * from './useCreatePlatformInternalConfigMutation'; export * from './useUpdatePlatformInternalConfigMutation'; export * from './useDeletePlatformInternalConfigMutation'; -export * from './useCreatePlatformInternalSecretMutation'; -export * from './useCreatePlatformSecretMutation'; -export * from './useCreateSecretMutation'; export * from './use_internalSecretsDelMutation'; export * from './use_internalSecretsRemoveArrayMutation'; export * from './use_internalSecretsRotateMutation'; diff --git a/sdk/constructive-react/src/config/hooks/mutations/useCreateAppInternalSecretMutation.ts b/sdk/constructive-react/src/config/hooks/mutations/useCreateAppInternalSecretMutation.ts deleted file mode 100644 index 86154c3485..0000000000 --- a/sdk/constructive-react/src/config/hooks/mutations/useCreateAppInternalSecretMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Create mutation hook for AppInternalSecret - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appInternalSecretKeys } from '../query-keys'; -import { appInternalSecretMutationKeys } from '../mutation-keys'; -import type { - AppInternalSecretSelect, - AppInternalSecretWithRelations, - CreateAppInternalSecretInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppInternalSecretSelect, - AppInternalSecretWithRelations, - CreateAppInternalSecretInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a AppInternalSecret - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateAppInternalSecretMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateAppInternalSecretMutation( - params: { - selection: { - fields: S & AppInternalSecretSelect; - } & HookStrictSelect, AppInternalSecretSelect>; - } & Omit< - UseMutationOptions< - { - createAppInternalSecret: { - appInternalSecret: InferSelectResult; - }; - }, - Error, - CreateAppInternalSecretInput['appInternalSecret'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createAppInternalSecret: { - appInternalSecret: InferSelectResult; - }; - }, - Error, - CreateAppInternalSecretInput['appInternalSecret'] ->; -export function useCreateAppInternalSecretMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appInternalSecretMutationKeys.create(), - mutationFn: (data: CreateAppInternalSecretInput['appInternalSecret']) => - getClient() - .appInternalSecret.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: appInternalSecretKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/config/hooks/mutations/useCreateInternalSecretMutation.ts b/sdk/constructive-react/src/config/hooks/mutations/useCreateInternalSecretMutation.ts deleted file mode 100644 index bb3267f50a..0000000000 --- a/sdk/constructive-react/src/config/hooks/mutations/useCreateInternalSecretMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Create mutation hook for InternalSecret - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { internalSecretKeys } from '../query-keys'; -import { internalSecretMutationKeys } from '../mutation-keys'; -import type { - InternalSecretSelect, - InternalSecretWithRelations, - CreateInternalSecretInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - InternalSecretSelect, - InternalSecretWithRelations, - CreateInternalSecretInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a InternalSecret - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateInternalSecretMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateInternalSecretMutation( - params: { - selection: { - fields: S & InternalSecretSelect; - } & HookStrictSelect, InternalSecretSelect>; - } & Omit< - UseMutationOptions< - { - createInternalSecret: { - internalSecret: InferSelectResult; - }; - }, - Error, - CreateInternalSecretInput['internalSecret'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createInternalSecret: { - internalSecret: InferSelectResult; - }; - }, - Error, - CreateInternalSecretInput['internalSecret'] ->; -export function useCreateInternalSecretMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: internalSecretMutationKeys.create(), - mutationFn: (data: CreateInternalSecretInput['internalSecret']) => - getClient() - .internalSecret.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: internalSecretKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/config/hooks/mutations/useCreatePlatformInternalSecretMutation.ts b/sdk/constructive-react/src/config/hooks/mutations/useCreatePlatformInternalSecretMutation.ts deleted file mode 100644 index d0230a9dba..0000000000 --- a/sdk/constructive-react/src/config/hooks/mutations/useCreatePlatformInternalSecretMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Create mutation hook for PlatformInternalSecret - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformInternalSecretKeys } from '../query-keys'; -import { platformInternalSecretMutationKeys } from '../mutation-keys'; -import type { - PlatformInternalSecretSelect, - PlatformInternalSecretWithRelations, - CreatePlatformInternalSecretInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - PlatformInternalSecretSelect, - PlatformInternalSecretWithRelations, - CreatePlatformInternalSecretInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a PlatformInternalSecret - * - * @example - * ```tsx - * const { mutate, isPending } = useCreatePlatformInternalSecretMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreatePlatformInternalSecretMutation( - params: { - selection: { - fields: S & PlatformInternalSecretSelect; - } & HookStrictSelect, PlatformInternalSecretSelect>; - } & Omit< - UseMutationOptions< - { - createPlatformInternalSecret: { - platformInternalSecret: InferSelectResult; - }; - }, - Error, - CreatePlatformInternalSecretInput['platformInternalSecret'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createPlatformInternalSecret: { - platformInternalSecret: InferSelectResult; - }; - }, - Error, - CreatePlatformInternalSecretInput['platformInternalSecret'] ->; -export function useCreatePlatformInternalSecretMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: platformInternalSecretMutationKeys.create(), - mutationFn: (data: CreatePlatformInternalSecretInput['platformInternalSecret']) => - getClient() - .platformInternalSecret.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: platformInternalSecretKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/config/hooks/mutations/useCreatePlatformSecretMutation.ts b/sdk/constructive-react/src/config/hooks/mutations/useCreatePlatformSecretMutation.ts deleted file mode 100644 index 16940cffcc..0000000000 --- a/sdk/constructive-react/src/config/hooks/mutations/useCreatePlatformSecretMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Create mutation hook for PlatformSecret - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformSecretKeys } from '../query-keys'; -import { platformSecretMutationKeys } from '../mutation-keys'; -import type { - PlatformSecretSelect, - PlatformSecretWithRelations, - CreatePlatformSecretInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - PlatformSecretSelect, - PlatformSecretWithRelations, - CreatePlatformSecretInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a PlatformSecret - * - * @example - * ```tsx - * const { mutate, isPending } = useCreatePlatformSecretMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreatePlatformSecretMutation( - params: { - selection: { - fields: S & PlatformSecretSelect; - } & HookStrictSelect, PlatformSecretSelect>; - } & Omit< - UseMutationOptions< - { - createPlatformSecret: { - platformSecret: InferSelectResult; - }; - }, - Error, - CreatePlatformSecretInput['platformSecret'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createPlatformSecret: { - platformSecret: InferSelectResult; - }; - }, - Error, - CreatePlatformSecretInput['platformSecret'] ->; -export function useCreatePlatformSecretMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: platformSecretMutationKeys.create(), - mutationFn: (data: CreatePlatformSecretInput['platformSecret']) => - getClient() - .platformSecret.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: platformSecretKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/config/hooks/mutations/useCreateSecretMutation.ts b/sdk/constructive-react/src/config/hooks/mutations/useCreateSecretMutation.ts deleted file mode 100644 index d80c9300fe..0000000000 --- a/sdk/constructive-react/src/config/hooks/mutations/useCreateSecretMutation.ts +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Create mutation hook for Secret - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { secretKeys } from '../query-keys'; -import { secretMutationKeys } from '../mutation-keys'; -import type { SecretSelect, SecretWithRelations, CreateSecretInput } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { SecretSelect, SecretWithRelations, CreateSecretInput } from '../../orm/input-types'; -/** - * Mutation hook for creating a Secret - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateSecretMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateSecretMutation( - params: { - selection: { - fields: S & SecretSelect; - } & HookStrictSelect, SecretSelect>; - } & Omit< - UseMutationOptions< - { - createSecret: { - secret: InferSelectResult; - }; - }, - Error, - CreateSecretInput['secret'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createSecret: { - secret: InferSelectResult; - }; - }, - Error, - CreateSecretInput['secret'] ->; -export function useCreateSecretMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: secretMutationKeys.create(), - mutationFn: (data: CreateSecretInput['secret']) => - getClient() - .secret.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: secretKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/config/orm/README.md b/sdk/constructive-react/src/config/orm/README.md index 8e9c44033d..b52d2f9776 100644 --- a/sdk/constructive-react/src/config/orm/README.md +++ b/sdk/constructive-react/src/config/orm/README.md @@ -21,15 +21,15 @@ const db = createClient({ | Model | Operations | |-------|------------| -| `appInternalSecret` | findMany, findOne, create, update, delete | +| `appInternalSecret` | findMany, findOne, update, delete | | `config` | findMany, findOne, create, update, delete | | `internalConfig` | findMany, findOne, create, update, delete | -| `internalSecret` | findMany, findOne, create, update, delete | +| `internalSecret` | findMany, findOne, update, delete | | `platformConfig` | findMany, findOne, create, update, delete | | `platformInternalConfig` | findMany, findOne, create, update, delete | -| `platformInternalSecret` | findMany, findOne, create, update, delete | -| `platformSecret` | findMany, findOne, create, update, delete | -| `secret` | findMany, findOne, create, update, delete | +| `platformInternalSecret` | findMany, findOne, update, delete | +| `platformSecret` | findMany, findOne, update, delete | +| `secret` | findMany, findOne, update, delete | ## Table Operations @@ -61,9 +61,6 @@ const items = await db.appInternalSecret.findMany({ select: { annotations: true, // Get one by id const item = await db.appInternalSecret.findOne({ id: '', select: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }).execute(); -// Create -const created = await db.appInternalSecret.create({ data: { annotations: '', description: '', labels: '', name: '', realm: '', retiredAt: '', rotatedAt: '' }, select: { id: true } }).execute(); - // Update const updated = await db.appInternalSecret.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -183,9 +180,6 @@ const items = await db.internalSecret.findMany({ select: { annotations: true, cr // Get one by id const item = await db.internalSecret.findOne({ id: '', select: { annotations: true, createdAt: true, databaseId: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }).execute(); -// Create -const created = await db.internalSecret.create({ data: { annotations: '', databaseId: '', description: '', labels: '', name: '', realm: '', retiredAt: '', rotatedAt: '' }, select: { id: true } }).execute(); - // Update const updated = await db.internalSecret.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -302,9 +296,6 @@ const items = await db.platformInternalSecret.findMany({ select: { annotations: // Get one by id const item = await db.platformInternalSecret.findOne({ id: '', select: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }).execute(); -// Create -const created = await db.platformInternalSecret.create({ data: { annotations: '', description: '', labels: '', name: '', realm: '', retiredAt: '', rotatedAt: '' }, select: { id: true } }).execute(); - // Update const updated = await db.platformInternalSecret.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -342,9 +333,6 @@ const items = await db.platformSecret.findMany({ select: { annotations: true, cr // Get one by id const item = await db.platformSecret.findOne({ id: '', select: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }).execute(); -// Create -const created = await db.platformSecret.create({ data: { annotations: '', description: '', labels: '', name: '', namespaceId: '', provider: '', realm: '', retiredAt: '', rotatedAt: '' }, select: { id: true } }).execute(); - // Update const updated = await db.platformSecret.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -383,9 +371,6 @@ const items = await db.secret.findMany({ select: { annotations: true, createdAt: // Get one by id const item = await db.secret.findOne({ id: '', select: { annotations: true, createdAt: true, databaseId: true, description: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }).execute(); -// Create -const created = await db.secret.create({ data: { annotations: '', databaseId: '', description: '', labels: '', name: '', namespaceId: '', provider: '', realm: '', retiredAt: '', rotatedAt: '' }, select: { id: true } }).execute(); - // Update const updated = await db.secret.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); diff --git a/sdk/constructive-react/src/config/orm/input-types.ts b/sdk/constructive-react/src/config/orm/input-types.ts index 317d86e5b9..bd666714a5 100644 --- a/sdk/constructive-react/src/config/orm/input-types.ts +++ b/sdk/constructive-react/src/config/orm/input-types.ts @@ -1095,18 +1095,6 @@ export type SecretOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; // ============ CRUD Input Types ============ -export interface CreateAppInternalSecretInput { - clientMutationId?: string; - appInternalSecret: { - annotations?: Record; - description?: string; - labels?: Record; - name?: string; - realm?: string; - retiredAt?: string; - rotatedAt?: string; - }; -} export interface AppInternalSecretPatch { annotations?: Record | null; description?: string | null; @@ -1199,19 +1187,6 @@ export interface DeleteInternalConfigInput { clientMutationId?: string; id: string; } -export interface CreateInternalSecretInput { - clientMutationId?: string; - internalSecret: { - annotations?: Record; - databaseId: string; - description?: string; - labels?: Record; - name?: string; - realm?: string; - retiredAt?: string; - rotatedAt?: string; - }; -} export interface InternalSecretPatch { annotations?: Record | null; databaseId?: string | null; @@ -1301,18 +1276,6 @@ export interface DeletePlatformInternalConfigInput { clientMutationId?: string; id: string; } -export interface CreatePlatformInternalSecretInput { - clientMutationId?: string; - platformInternalSecret: { - annotations?: Record; - description?: string; - labels?: Record; - name?: string; - realm?: string; - retiredAt?: string; - rotatedAt?: string; - }; -} export interface PlatformInternalSecretPatch { annotations?: Record | null; description?: string | null; @@ -1331,20 +1294,6 @@ export interface DeletePlatformInternalSecretInput { clientMutationId?: string; id: string; } -export interface CreatePlatformSecretInput { - clientMutationId?: string; - platformSecret: { - annotations?: Record; - description?: string; - labels?: Record; - name?: string; - namespaceId: string; - provider?: string; - realm?: string; - retiredAt?: string; - rotatedAt?: string; - }; -} export interface PlatformSecretPatch { annotations?: Record | null; description?: string | null; @@ -1365,21 +1314,6 @@ export interface DeletePlatformSecretInput { clientMutationId?: string; id: string; } -export interface CreateSecretInput { - clientMutationId?: string; - secret: { - annotations?: Record; - databaseId: string; - description?: string; - labels?: Record; - name?: string; - namespaceId: string; - provider?: string; - realm?: string; - retiredAt?: string; - rotatedAt?: string; - }; -} export interface SecretPatch { annotations?: Record | null; databaseId?: string | null; diff --git a/sdk/constructive-react/src/config/orm/models/appInternalSecret.ts b/sdk/constructive-react/src/config/orm/models/appInternalSecret.ts index 6efc1ad009..d876c61ee7 100644 --- a/sdk/constructive-react/src/config/orm/models/appInternalSecret.ts +++ b/sdk/constructive-react/src/config/orm/models/appInternalSecret.ts @@ -29,7 +29,6 @@ import type { AppInternalSecretSelect, AppInternalSecretFilter, AppInternalSecretOrderBy, - CreateAppInternalSecretInput, UpdateAppInternalSecretInput, AppInternalSecretPatch, } from '../input-types'; @@ -144,31 +143,4 @@ export class AppInternalSecretModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppInternalSecret: { - appInternalSecret: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppInternalSecret', - 'createAppInternalSecret', - 'appInternalSecret', - args.select, - args.data, - 'CreateAppInternalSecretInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppInternalSecret', - fieldName: 'createAppInternalSecret', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/config/orm/models/internalSecret.ts b/sdk/constructive-react/src/config/orm/models/internalSecret.ts index daeef23c68..443924fe70 100644 --- a/sdk/constructive-react/src/config/orm/models/internalSecret.ts +++ b/sdk/constructive-react/src/config/orm/models/internalSecret.ts @@ -29,7 +29,6 @@ import type { InternalSecretSelect, InternalSecretFilter, InternalSecretOrderBy, - CreateInternalSecretInput, UpdateInternalSecretInput, InternalSecretPatch, } from '../input-types'; @@ -144,31 +143,4 @@ export class InternalSecretModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createInternalSecret: { - internalSecret: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'InternalSecret', - 'createInternalSecret', - 'internalSecret', - args.select, - args.data, - 'CreateInternalSecretInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'InternalSecret', - fieldName: 'createInternalSecret', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/config/orm/models/platformInternalSecret.ts b/sdk/constructive-react/src/config/orm/models/platformInternalSecret.ts index 35e0c7b538..0f246265ec 100644 --- a/sdk/constructive-react/src/config/orm/models/platformInternalSecret.ts +++ b/sdk/constructive-react/src/config/orm/models/platformInternalSecret.ts @@ -29,7 +29,6 @@ import type { PlatformInternalSecretSelect, PlatformInternalSecretFilter, PlatformInternalSecretOrderBy, - CreatePlatformInternalSecretInput, UpdatePlatformInternalSecretInput, PlatformInternalSecretPatch, } from '../input-types'; @@ -146,31 +145,4 @@ export class PlatformInternalSecretModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformInternalSecret: { - platformInternalSecret: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformInternalSecret', - 'createPlatformInternalSecret', - 'platformInternalSecret', - args.select, - args.data, - 'CreatePlatformInternalSecretInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformInternalSecret', - fieldName: 'createPlatformInternalSecret', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/config/orm/models/platformSecret.ts b/sdk/constructive-react/src/config/orm/models/platformSecret.ts index 03c0e23540..4c51afe005 100644 --- a/sdk/constructive-react/src/config/orm/models/platformSecret.ts +++ b/sdk/constructive-react/src/config/orm/models/platformSecret.ts @@ -29,7 +29,6 @@ import type { PlatformSecretSelect, PlatformSecretFilter, PlatformSecretOrderBy, - CreatePlatformSecretInput, UpdatePlatformSecretInput, PlatformSecretPatch, } from '../input-types'; @@ -144,31 +143,4 @@ export class PlatformSecretModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformSecret: { - platformSecret: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformSecret', - 'createPlatformSecret', - 'platformSecret', - args.select, - args.data, - 'CreatePlatformSecretInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformSecret', - fieldName: 'createPlatformSecret', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/config/orm/models/secret.ts b/sdk/constructive-react/src/config/orm/models/secret.ts index 37571240d8..580d275fdb 100644 --- a/sdk/constructive-react/src/config/orm/models/secret.ts +++ b/sdk/constructive-react/src/config/orm/models/secret.ts @@ -29,7 +29,6 @@ import type { SecretSelect, SecretFilter, SecretOrderBy, - CreateSecretInput, UpdateSecretInput, SecretPatch, } from '../input-types'; @@ -144,31 +143,4 @@ export class SecretModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createSecret: { - secret: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'Secret', - 'createSecret', - 'secret', - args.select, - args.data, - 'CreateSecretInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'Secret', - fieldName: 'createSecret', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/config/orm/query-builder.ts b/sdk/constructive-react/src/config/orm/query-builder.ts index fd785bbae6..d6c981907f 100644 --- a/sdk/constructive-react/src/config/orm/query-builder.ts +++ b/sdk/constructive-react/src/config/orm/query-builder.ts @@ -140,9 +140,7 @@ export function buildSelections( ); const nestedSelect = nested.select; if (nestedSelect && typeof nestedSelect === 'object') { - const subSelections = Object.entries(nestedSelect) - .filter(([, v]) => v) - .map(([name]) => t.field({ name })); + const subSelections = buildSelections(nestedSelect, connectionFieldsMap); fields.push( t.field({ name: key, diff --git a/sdk/constructive-react/src/config/orm/select-types.ts b/sdk/constructive-react/src/config/orm/select-types.ts index 4b39d7e820..783c4603df 100644 --- a/sdk/constructive-react/src/config/orm/select-types.ts +++ b/sdk/constructive-react/src/config/orm/select-types.ts @@ -159,9 +159,13 @@ export type InferSelectResult = TSelect extends undefined ? K extends keyof TEntity ? NonNullable extends ConnectionResult ? ConnectionResult> - : - | InferSelectResult, NestedSelect> - | (null extends TEntity[K] ? null : never) + : NonNullable extends readonly (infer Item)[] + ? + | InferSelectResult, NestedSelect>[] + | (null extends TEntity[K] ? null : never) + : + | InferSelectResult, NestedSelect> + | (null extends TEntity[K] ? null : never) : never : K extends keyof TEntity ? TEntity[K] diff --git a/sdk/constructive-react/src/config/schema-types.ts b/sdk/constructive-react/src/config/schema-types.ts index fae75472c7..275a3697d8 100644 --- a/sdk/constructive-react/src/config/schema-types.ts +++ b/sdk/constructive-react/src/config/schema-types.ts @@ -1224,21 +1224,27 @@ export interface UpdatePlatformInternalConfigPayload { /** Information about a database table */ export interface MetaTable { constraints: MetaConstraints; + /** Description written for this table, or null */ + description?: string | null; fields: MetaField[]; foreignKeyConstraints: MetaForeignKeyConstraint[]; - /** i18n metadata (null if no @i18n tag) */ + /** i18n metadata (null if the table is not translatable) */ i18n?: MetaI18n | null; indexes: MetaIndex[]; inflection: MetaInflection; + /** Whether this table only links rows of two other tables; the link appears in their manyToMany relations */ + isJunction: boolean; + /** 'table' when rows are stored in this table, 'view' when they come from a view of other tables */ + kind: string; /** Final GraphQL output type name */ name: string; primaryKeyConstraints: MetaPrimaryKeyConstraint[]; query: MetaQuery; - /** Realtime metadata (null if no @realtime tag) */ + /** Realtime metadata (null if the table has no change subscriptions) */ realtime?: MetaRealtime | null; relations: MetaRelations; schemaName: string; - /** Provisioning scope metadata (null if no @scope tag) */ + /** Provisioning scope metadata (null if the table has no scope) */ scope?: MetaScope | null; /** Search metadata (null if no search configured) */ search?: MetaSearch | null; @@ -1321,15 +1327,27 @@ export interface MetaConstraints { } /** Information about a table field/column */ export interface MetaField { + /** Values this field accepts, when the set is fixed; null otherwise. Set on a table's own fields only. */ + allowedValues?: string[] | null; /** PostgreSQL column name */ columnName: string; description?: string | null; /** Enum metadata if this field has an enum type */ enumValues?: MetaEnum | null; + /** Set when the field holds files; null otherwise. Set on a table's own fields only. */ + file?: MetaFileField | null; hasDefault: boolean; + /** Whether the value is always computed and cannot be written, even when a create or update input offers the field. Set on a table's own fields only. */ + isComputed?: boolean | null; isForeignKey: boolean; isNotNull: boolean; isPrimaryKey: boolean; + /** Whether a create must provide this field. Set on a table's own fields only. */ + isRequiredOnCreate?: boolean | null; + /** Whether a create may set this field. Set on a table's own fields only. */ + isWritableOnCreate?: boolean | null; + /** Whether an update may change this field. Set on a table's own fields only. */ + isWritableOnUpdate?: boolean | null; /** Final GraphQL field name */ name: string; type: MetaType; @@ -1343,7 +1361,7 @@ export interface MetaForeignKeyConstraint { referencedFields: string[]; referencedTable: string; } -/** i18n metadata for a table with @i18n tag */ +/** i18n metadata for a translatable table */ export interface MetaI18n { /** Fields that are translatable */ translatableFields: MetaI18nField[]; @@ -1358,7 +1376,7 @@ export interface MetaIndex { isUnique: boolean; name: string; } -/** Table inflection names */ +/** Type and field names generated for this table */ export interface MetaInflection { allRows: string; conditionType: string; @@ -1386,7 +1404,7 @@ export interface MetaQuery { one?: string | null; update?: string | null; } -/** Realtime metadata for a table with @realtime tag */ +/** Realtime metadata for a table with change subscriptions */ export interface MetaRealtime { /** The generated subscription field name (e.g. onPostChanged) */ subscriptionFieldName: string; @@ -1401,13 +1419,13 @@ export interface MetaRelations { } /** Provisioning scope metadata for a table */ export interface MetaScope { - /** SQL name of the entity table for entity scopes, else null */ + /** Name of the entity table for entity scopes, else null */ entityTable?: string | null; - /** Inflected scope key column (e.g. databaseId, orgId), null for global tiers */ + /** Field name of the scope key (e.g. databaseId, orgId), null for global tiers */ keyColumn?: string | null; /** Provisioning scope: 'platform', 'app', 'database', or an entity scope (e.g. 'org') */ scope: string; - /** Provenance of the scope metadata (always 'smartTag') */ + /** Where this scope metadata comes from */ source: string; /** Coarse bucket: 'global', 'database', or 'entity' */ tier: string; @@ -1425,17 +1443,17 @@ export interface MetaSearch { } /** Storage metadata for a table */ export interface MetaStorage { - /** GraphQL type name of the plane's buckets table */ + /** GraphQL type name of the paired buckets table */ bucketsType: string; /** Computed download-URL field on the files type; null on the buckets side */ downloadUrlField?: string | null; - /** GraphQL type name of the plane's files table */ + /** GraphQL type name of the paired files table */ filesType: string; /** Whether this table is a storage buckets table */ isBucketsTable: boolean; /** Whether this table is a storage files table */ isFilesTable: boolean; - /** The plane's GraphQL upload surface */ + /** Upload mutations and types for this storage */ upload: MetaStorageUpload; } /** Information about a unique constraint */ @@ -1450,6 +1468,15 @@ export interface MetaEnum { /** Allowed values for this enum */ values: string[]; } +/** How a field holds files */ +export interface MetaFileField { + /** GraphQL type name of the files table uploads are recorded in, when this API has exactly one; null otherwise */ + filesType?: string | null; + /** Whether the field holds a list of files */ + isMultiple: boolean; + /** image, upload, or attachment. An image or upload holds a file document; an attachment holds a link to a file. */ + kind: string; +} /** Information about a PostgreSQL type */ export interface MetaType { /** Scalar serialization contract (null for plain scalars) */ @@ -1458,7 +1485,13 @@ export interface MetaType { hasDefault?: boolean | null; isArray: boolean; isNotNull?: boolean | null; + /** Most characters a text value may hold, or most bits a bit string may hold; for a list, each item. Null when unbounded. */ + maxLength?: number | null; pgType: string; + /** Most significant digits a decimal number may hold. Null when unbounded. */ + precision?: number | null; + /** Digits a decimal number keeps after the decimal point. Null when unbounded. */ + scale?: number | null; subtype?: string | null; } /** Reference to a related table */ @@ -1477,6 +1510,8 @@ export interface MetaBelongsToRelation { fieldName?: string | null; isUnique: boolean; keys: MetaField[]; + /** Fields on the referenced table that keys point at, in the same order as keys */ + refKeys: MetaField[]; references: MetaRefTable; type?: string | null; } @@ -1486,6 +1521,8 @@ export interface MetaHasRelation { isUnique: boolean; keys: MetaField[]; referencedBy: MetaRefTable; + /** Fields on the related table that point at this table, in the same order as keys */ + remoteKeys: MetaField[]; type?: string | null; } /** A many-to-many relation via junction table */ @@ -1508,7 +1545,7 @@ export interface MetaSearchColumn { /** Column name (camelCase) */ name: string; } -/** Per-table search configuration from @searchConfig smart tag */ +/** Per-table search configuration */ export interface MetaSearchConfig { /** Exponential decay factor per day */ boostRecencyDecay?: number | null; @@ -1519,7 +1556,7 @@ export interface MetaSearchConfig { /** JSON-encoded per-adapter score weights */ weights?: string | null; } -/** The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from */ +/** The upload mutations and types for a storage table pair */ export interface MetaStorageUpload { /** Per-file input type inside the bulk input */ bulkFileInputType: string; @@ -1537,14 +1574,14 @@ export interface MetaStorageUpload { mutation: string; /** Payload type of the single upload mutation */ payloadType: string; - /** Whether the upload input requires ownerId (entity-keyed plane) */ + /** Whether the upload input requires ownerId */ requiresOwnerId: boolean; } -/** How a client must serialize/parse a scalar — the one field-type detail standard GraphQL introspection cannot describe. Null for plain scalars whose wire format is obvious from gqlType. */ +/** How a client must serialize and parse a scalar whose wire format gqlType alone does not settle. Null for plain scalars whose wire format is obvious from gqlType. */ export interface MetaScalarEncoding { /** For 'vector': declared length, else null. */ dimensions?: number | null; - /** For 'ltree': values are dot-separated path strings. */ + /** For 'ltree': true when values are dot-separated paths ('a.b.c'), false when they are slash-separated paths ('/a/b/c'). */ dotPath?: boolean | null; /** For 'vector': element scalar (e.g. 'float'). */ elementType?: string | null; diff --git a/sdk/constructive-react/src/infra/hooks/README.md b/sdk/constructive-react/src/infra/hooks/README.md index 6ed92a4b0f..6a055ea62e 100644 --- a/sdk/constructive-react/src/infra/hooks/README.md +++ b/sdk/constructive-react/src/infra/hooks/README.md @@ -58,7 +58,6 @@ function App() { | `useUpdatePlatformInfraCommitMutation` | Mutation | Commit history — each commit snapshots a tree root for a store | | `useDeletePlatformInfraCommitMutation` | Mutation | Commit history — each commit snapshots a tree root for a store | | `usePlatformInfraGetAllTreeNodesQuery` | Query | List all platformInfraGetAllTreeNodes | -| `useCreatePlatformInfraGetAllTreeNodesRecordMutation` | Mutation | Create a platformInfraGetAllTreeNodesRecord | | `usePlatformInfraObjectsQuery` | Query | Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children | | `usePlatformInfraObjectQuery` | Query | Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children | | `useCreatePlatformInfraObjectMutation` | Mutation | Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children | @@ -212,11 +211,6 @@ const { data, isLoading } = usePlatformInfraGetAllTreeNodesQuery({ selection: { fields: { data: true, path: true } }, }); -// Create a platformInfraGetAllTreeNodesRecord -const { mutate: create } = useCreatePlatformInfraGetAllTreeNodesRecordMutation({ - selection: { fields: { id: true } }, -}); -create({ data: '', path: '' }); ``` ### PlatformInfraObject diff --git a/sdk/constructive-react/src/infra/hooks/mutations/index.ts b/sdk/constructive-react/src/infra/hooks/mutations/index.ts index b08fd53122..a9cc1fd675 100644 --- a/sdk/constructive-react/src/infra/hooks/mutations/index.ts +++ b/sdk/constructive-react/src/infra/hooks/mutations/index.ts @@ -18,7 +18,6 @@ export * from './useDeleteNamespaceEventMutation'; export * from './useCreatePlatformInfraCommitMutation'; export * from './useUpdatePlatformInfraCommitMutation'; export * from './useDeletePlatformInfraCommitMutation'; -export * from './useCreatePlatformInfraGetAllTreeNodesRecordMutation'; export * from './useCreatePlatformInfraObjectMutation'; export * from './useUpdatePlatformInfraObjectMutation'; export * from './useDeletePlatformInfraObjectMutation'; diff --git a/sdk/constructive-react/src/infra/hooks/mutations/useCreatePlatformInfraGetAllTreeNodesRecordMutation.ts b/sdk/constructive-react/src/infra/hooks/mutations/useCreatePlatformInfraGetAllTreeNodesRecordMutation.ts deleted file mode 100644 index 13b05cd0de..0000000000 --- a/sdk/constructive-react/src/infra/hooks/mutations/useCreatePlatformInfraGetAllTreeNodesRecordMutation.ts +++ /dev/null @@ -1,105 +0,0 @@ -/** - * Create mutation hook for PlatformInfraGetAllTreeNodesRecord - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformInfraGetAllTreeNodesRecordKeys } from '../query-keys'; -import { platformInfraGetAllTreeNodesRecordMutationKeys } from '../mutation-keys'; -import type { - PlatformInfraGetAllTreeNodesRecordSelect, - PlatformInfraGetAllTreeNodesRecordWithRelations, - CreatePlatformInfraGetAllTreeNodesRecordInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - PlatformInfraGetAllTreeNodesRecordSelect, - PlatformInfraGetAllTreeNodesRecordWithRelations, - CreatePlatformInfraGetAllTreeNodesRecordInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a PlatformInfraGetAllTreeNodesRecord - * - * @example - * ```tsx - * const { mutate, isPending } = useCreatePlatformInfraGetAllTreeNodesRecordMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreatePlatformInfraGetAllTreeNodesRecordMutation< - S extends PlatformInfraGetAllTreeNodesRecordSelect, ->( - params: { - selection: { - fields: S & PlatformInfraGetAllTreeNodesRecordSelect; - } & HookStrictSelect, PlatformInfraGetAllTreeNodesRecordSelect>; - } & Omit< - UseMutationOptions< - { - createPlatformInfraGetAllTreeNodesRecord: { - platformInfraGetAllTreeNodesRecord: InferSelectResult< - PlatformInfraGetAllTreeNodesRecordWithRelations, - S - >; - }; - }, - Error, - CreatePlatformInfraGetAllTreeNodesRecordInput['platformInfraGetAllTreeNodesRecord'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createPlatformInfraGetAllTreeNodesRecord: { - platformInfraGetAllTreeNodesRecord: InferSelectResult< - PlatformInfraGetAllTreeNodesRecordWithRelations, - S - >; - }; - }, - Error, - CreatePlatformInfraGetAllTreeNodesRecordInput['platformInfraGetAllTreeNodesRecord'] ->; -export function useCreatePlatformInfraGetAllTreeNodesRecordMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - CreatePlatformInfraGetAllTreeNodesRecordInput['platformInfraGetAllTreeNodesRecord'] - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: platformInfraGetAllTreeNodesRecordMutationKeys.create(), - mutationFn: ( - data: CreatePlatformInfraGetAllTreeNodesRecordInput['platformInfraGetAllTreeNodesRecord'] - ) => - getClient() - .platformInfraGetAllTreeNodesRecord.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: platformInfraGetAllTreeNodesRecordKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/infra/orm/README.md b/sdk/constructive-react/src/infra/orm/README.md index 63c0b0f3e5..82604daf03 100644 --- a/sdk/constructive-react/src/infra/orm/README.md +++ b/sdk/constructive-react/src/infra/orm/README.md @@ -26,7 +26,7 @@ const db = createClient({ | `namespace` | findMany, findOne, create, update, delete | | `namespaceEvent` | findMany, findOne, create, update, delete | | `platformInfraCommit` | findMany, findOne, create, update, delete | -| `platformInfraGetAllTreeNodesRecord` | findMany, findOne, create, update, delete | +| `platformInfraGetAllTreeNodesRecord` | findMany, findOne, update, delete | | `platformInfraObject` | findMany, findOne, create, update, delete | | `platformInfraRef` | findMany, findOne, create, update, delete | | `platformInfraStore` | findMany, findOne, create, update, delete | @@ -248,9 +248,6 @@ const items = await db.platformInfraGetAllTreeNodesRecord.findMany({ select: { d // Get one by id const item = await db.platformInfraGetAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: true } }).execute(); -// Create -const created = await db.platformInfraGetAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); - // Update const updated = await db.platformInfraGetAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); diff --git a/sdk/constructive-react/src/infra/orm/input-types.ts b/sdk/constructive-react/src/infra/orm/input-types.ts index 10a6c604ec..498b6592bf 100644 --- a/sdk/constructive-react/src/infra/orm/input-types.ts +++ b/sdk/constructive-react/src/infra/orm/input-types.ts @@ -1245,13 +1245,6 @@ export interface DeletePlatformInfraCommitInput { clientMutationId?: string; id: string; } -export interface CreatePlatformInfraGetAllTreeNodesRecordInput { - clientMutationId?: string; - platformInfraGetAllTreeNodesRecord: { - data?: Record; - path?: string[]; - }; -} export interface PlatformInfraGetAllTreeNodesRecordPatch { data?: Record | null; path?: string[] | null; diff --git a/sdk/constructive-react/src/infra/orm/models/platformInfraGetAllTreeNodesRecord.ts b/sdk/constructive-react/src/infra/orm/models/platformInfraGetAllTreeNodesRecord.ts index e0e0a2aeaa..522c666bd3 100644 --- a/sdk/constructive-react/src/infra/orm/models/platformInfraGetAllTreeNodesRecord.ts +++ b/sdk/constructive-react/src/infra/orm/models/platformInfraGetAllTreeNodesRecord.ts @@ -29,7 +29,6 @@ import type { PlatformInfraGetAllTreeNodesRecordSelect, PlatformInfraGetAllTreeNodesRecordFilter, PlatformInfraGetAllTreeNodesRecordsOrderBy, - CreatePlatformInfraGetAllTreeNodesRecordInput, UpdatePlatformInfraGetAllTreeNodesRecordInput, PlatformInfraGetAllTreeNodesRecordPatch, } from '../input-types'; @@ -117,37 +116,4 @@ export class PlatformInfraGetAllTreeNodesRecordModel { }), }); } - create( - args: CreateArgs< - S, - CreatePlatformInfraGetAllTreeNodesRecordInput['platformInfraGetAllTreeNodesRecord'] - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformInfraGetAllTreeNodesRecord: { - platformInfraGetAllTreeNodesRecord: InferSelectResult< - PlatformInfraGetAllTreeNodesRecordWithRelations, - S - >; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformInfraGetAllTreeNodesRecord', - 'createPlatformInfraGetAllTreeNodesRecord', - 'platformInfraGetAllTreeNodesRecord', - args.select, - args.data, - 'CreatePlatformInfraGetAllTreeNodesRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformInfraGetAllTreeNodesRecord', - fieldName: 'createPlatformInfraGetAllTreeNodesRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/infra/orm/query-builder.ts b/sdk/constructive-react/src/infra/orm/query-builder.ts index fd785bbae6..d6c981907f 100644 --- a/sdk/constructive-react/src/infra/orm/query-builder.ts +++ b/sdk/constructive-react/src/infra/orm/query-builder.ts @@ -140,9 +140,7 @@ export function buildSelections( ); const nestedSelect = nested.select; if (nestedSelect && typeof nestedSelect === 'object') { - const subSelections = Object.entries(nestedSelect) - .filter(([, v]) => v) - .map(([name]) => t.field({ name })); + const subSelections = buildSelections(nestedSelect, connectionFieldsMap); fields.push( t.field({ name: key, diff --git a/sdk/constructive-react/src/infra/orm/select-types.ts b/sdk/constructive-react/src/infra/orm/select-types.ts index 4b39d7e820..783c4603df 100644 --- a/sdk/constructive-react/src/infra/orm/select-types.ts +++ b/sdk/constructive-react/src/infra/orm/select-types.ts @@ -159,9 +159,13 @@ export type InferSelectResult = TSelect extends undefined ? K extends keyof TEntity ? NonNullable extends ConnectionResult ? ConnectionResult> - : - | InferSelectResult, NestedSelect> - | (null extends TEntity[K] ? null : never) + : NonNullable extends readonly (infer Item)[] + ? + | InferSelectResult, NestedSelect>[] + | (null extends TEntity[K] ? null : never) + : + | InferSelectResult, NestedSelect> + | (null extends TEntity[K] ? null : never) : never : K extends keyof TEntity ? TEntity[K] diff --git a/sdk/constructive-react/src/infra/schema-types.ts b/sdk/constructive-react/src/infra/schema-types.ts index 14d6bf4ac2..2631abb5a8 100644 --- a/sdk/constructive-react/src/infra/schema-types.ts +++ b/sdk/constructive-react/src/infra/schema-types.ts @@ -1476,21 +1476,27 @@ export interface UpdatePlatformNamespaceEventPayload { /** Information about a database table */ export interface MetaTable { constraints: MetaConstraints; + /** Description written for this table, or null */ + description?: string | null; fields: MetaField[]; foreignKeyConstraints: MetaForeignKeyConstraint[]; - /** i18n metadata (null if no @i18n tag) */ + /** i18n metadata (null if the table is not translatable) */ i18n?: MetaI18n | null; indexes: MetaIndex[]; inflection: MetaInflection; + /** Whether this table only links rows of two other tables; the link appears in their manyToMany relations */ + isJunction: boolean; + /** 'table' when rows are stored in this table, 'view' when they come from a view of other tables */ + kind: string; /** Final GraphQL output type name */ name: string; primaryKeyConstraints: MetaPrimaryKeyConstraint[]; query: MetaQuery; - /** Realtime metadata (null if no @realtime tag) */ + /** Realtime metadata (null if the table has no change subscriptions) */ realtime?: MetaRealtime | null; relations: MetaRelations; schemaName: string; - /** Provisioning scope metadata (null if no @scope tag) */ + /** Provisioning scope metadata (null if the table has no scope) */ scope?: MetaScope | null; /** Search metadata (null if no search configured) */ search?: MetaSearch | null; @@ -1585,15 +1591,27 @@ export interface MetaConstraints { } /** Information about a table field/column */ export interface MetaField { + /** Values this field accepts, when the set is fixed; null otherwise. Set on a table's own fields only. */ + allowedValues?: string[] | null; /** PostgreSQL column name */ columnName: string; description?: string | null; /** Enum metadata if this field has an enum type */ enumValues?: MetaEnum | null; + /** Set when the field holds files; null otherwise. Set on a table's own fields only. */ + file?: MetaFileField | null; hasDefault: boolean; + /** Whether the value is always computed and cannot be written, even when a create or update input offers the field. Set on a table's own fields only. */ + isComputed?: boolean | null; isForeignKey: boolean; isNotNull: boolean; isPrimaryKey: boolean; + /** Whether a create must provide this field. Set on a table's own fields only. */ + isRequiredOnCreate?: boolean | null; + /** Whether a create may set this field. Set on a table's own fields only. */ + isWritableOnCreate?: boolean | null; + /** Whether an update may change this field. Set on a table's own fields only. */ + isWritableOnUpdate?: boolean | null; /** Final GraphQL field name */ name: string; type: MetaType; @@ -1607,7 +1625,7 @@ export interface MetaForeignKeyConstraint { referencedFields: string[]; referencedTable: string; } -/** i18n metadata for a table with @i18n tag */ +/** i18n metadata for a translatable table */ export interface MetaI18n { /** Fields that are translatable */ translatableFields: MetaI18nField[]; @@ -1622,7 +1640,7 @@ export interface MetaIndex { isUnique: boolean; name: string; } -/** Table inflection names */ +/** Type and field names generated for this table */ export interface MetaInflection { allRows: string; conditionType: string; @@ -1650,7 +1668,7 @@ export interface MetaQuery { one?: string | null; update?: string | null; } -/** Realtime metadata for a table with @realtime tag */ +/** Realtime metadata for a table with change subscriptions */ export interface MetaRealtime { /** The generated subscription field name (e.g. onPostChanged) */ subscriptionFieldName: string; @@ -1665,13 +1683,13 @@ export interface MetaRelations { } /** Provisioning scope metadata for a table */ export interface MetaScope { - /** SQL name of the entity table for entity scopes, else null */ + /** Name of the entity table for entity scopes, else null */ entityTable?: string | null; - /** Inflected scope key column (e.g. databaseId, orgId), null for global tiers */ + /** Field name of the scope key (e.g. databaseId, orgId), null for global tiers */ keyColumn?: string | null; /** Provisioning scope: 'platform', 'app', 'database', or an entity scope (e.g. 'org') */ scope: string; - /** Provenance of the scope metadata (always 'smartTag') */ + /** Where this scope metadata comes from */ source: string; /** Coarse bucket: 'global', 'database', or 'entity' */ tier: string; @@ -1689,17 +1707,17 @@ export interface MetaSearch { } /** Storage metadata for a table */ export interface MetaStorage { - /** GraphQL type name of the plane's buckets table */ + /** GraphQL type name of the paired buckets table */ bucketsType: string; /** Computed download-URL field on the files type; null on the buckets side */ downloadUrlField?: string | null; - /** GraphQL type name of the plane's files table */ + /** GraphQL type name of the paired files table */ filesType: string; /** Whether this table is a storage buckets table */ isBucketsTable: boolean; /** Whether this table is a storage files table */ isFilesTable: boolean; - /** The plane's GraphQL upload surface */ + /** Upload mutations and types for this storage */ upload: MetaStorageUpload; } /** Information about a unique constraint */ @@ -1714,6 +1732,15 @@ export interface MetaEnum { /** Allowed values for this enum */ values: string[]; } +/** How a field holds files */ +export interface MetaFileField { + /** GraphQL type name of the files table uploads are recorded in, when this API has exactly one; null otherwise */ + filesType?: string | null; + /** Whether the field holds a list of files */ + isMultiple: boolean; + /** image, upload, or attachment. An image or upload holds a file document; an attachment holds a link to a file. */ + kind: string; +} /** Information about a PostgreSQL type */ export interface MetaType { /** Scalar serialization contract (null for plain scalars) */ @@ -1722,7 +1749,13 @@ export interface MetaType { hasDefault?: boolean | null; isArray: boolean; isNotNull?: boolean | null; + /** Most characters a text value may hold, or most bits a bit string may hold; for a list, each item. Null when unbounded. */ + maxLength?: number | null; pgType: string; + /** Most significant digits a decimal number may hold. Null when unbounded. */ + precision?: number | null; + /** Digits a decimal number keeps after the decimal point. Null when unbounded. */ + scale?: number | null; subtype?: string | null; } /** Reference to a related table */ @@ -1741,6 +1774,8 @@ export interface MetaBelongsToRelation { fieldName?: string | null; isUnique: boolean; keys: MetaField[]; + /** Fields on the referenced table that keys point at, in the same order as keys */ + refKeys: MetaField[]; references: MetaRefTable; type?: string | null; } @@ -1750,6 +1785,8 @@ export interface MetaHasRelation { isUnique: boolean; keys: MetaField[]; referencedBy: MetaRefTable; + /** Fields on the related table that point at this table, in the same order as keys */ + remoteKeys: MetaField[]; type?: string | null; } /** A many-to-many relation via junction table */ @@ -1772,7 +1809,7 @@ export interface MetaSearchColumn { /** Column name (camelCase) */ name: string; } -/** Per-table search configuration from @searchConfig smart tag */ +/** Per-table search configuration */ export interface MetaSearchConfig { /** Exponential decay factor per day */ boostRecencyDecay?: number | null; @@ -1783,7 +1820,7 @@ export interface MetaSearchConfig { /** JSON-encoded per-adapter score weights */ weights?: string | null; } -/** The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from */ +/** The upload mutations and types for a storage table pair */ export interface MetaStorageUpload { /** Per-file input type inside the bulk input */ bulkFileInputType: string; @@ -1801,14 +1838,14 @@ export interface MetaStorageUpload { mutation: string; /** Payload type of the single upload mutation */ payloadType: string; - /** Whether the upload input requires ownerId (entity-keyed plane) */ + /** Whether the upload input requires ownerId */ requiresOwnerId: boolean; } -/** How a client must serialize/parse a scalar — the one field-type detail standard GraphQL introspection cannot describe. Null for plain scalars whose wire format is obvious from gqlType. */ +/** How a client must serialize and parse a scalar whose wire format gqlType alone does not settle. Null for plain scalars whose wire format is obvious from gqlType. */ export interface MetaScalarEncoding { /** For 'vector': declared length, else null. */ dimensions?: number | null; - /** For 'ltree': values are dot-separated path strings. */ + /** For 'ltree': true when values are dot-separated paths ('a.b.c'), false when they are slash-separated paths ('/a/b/c'). */ dotPath?: boolean | null; /** For 'vector': element scalar (e.g. 'float'). */ elementType?: string | null; diff --git a/sdk/constructive-react/src/modules/hooks/README.md b/sdk/constructive-react/src/modules/hooks/README.md index cfe0357e8c..1d6bc20e89 100644 --- a/sdk/constructive-react/src/modules/hooks/README.md +++ b/sdk/constructive-react/src/modules/hooks/README.md @@ -62,11 +62,11 @@ function App() { | `useCreateBlueprintMutation` | Mutation | An owned, editable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition at any time. Execute it with construct_blueprint() which creates a separate blueprint_construction record to track the build. | | `useUpdateBlueprintMutation` | Mutation | An owned, editable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition at any time. Execute it with construct_blueprint() which creates a separate blueprint_construction record to track the build. | | `useDeleteBlueprintMutation` | Mutation | An owned, editable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition at any time. Execute it with construct_blueprint() which creates a separate blueprint_construction record to track the build. | -| `useBlueprintConstructionsQuery` | Query | Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts. | -| `useBlueprintConstructionQuery` | Query | Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts. | -| `useCreateBlueprintConstructionMutation` | Mutation | Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts. | -| `useUpdateBlueprintConstructionMutation` | Mutation | Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts. | -| `useDeleteBlueprintConstructionMutation` | Mutation | Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts. | +| `useBlueprintConstructionsQuery` | Query | Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here as pending and a blueprint:construct job builds it in the background. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts, including failed ones. | +| `useBlueprintConstructionQuery` | Query | Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here as pending and a blueprint:construct job builds it in the background. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts, including failed ones. | +| `useCreateBlueprintConstructionMutation` | Mutation | Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here as pending and a blueprint:construct job builds it in the background. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts, including failed ones. | +| `useUpdateBlueprintConstructionMutation` | Mutation | Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here as pending and a blueprint:construct job builds it in the background. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts, including failed ones. | +| `useDeleteBlueprintConstructionMutation` | Mutation | Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here as pending and a blueprint:construct job builds it in the background. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts, including failed ones. | | `useBlueprintTemplatesQuery` | Query | A shareable, versioned schema recipe for the blueprint marketplace. Templates define arrays of secure_table_provision + relation_provision inputs that together describe a complete domain schema (e.g. e-commerce, telemedicine, habit tracker). Templates are never executed directly — they are copied into a blueprint first via copy_template_to_blueprint(). Can be private (owner-only) or public (marketplace-visible). | | `useBlueprintTemplateQuery` | Query | A shareable, versioned schema recipe for the blueprint marketplace. Templates define arrays of secure_table_provision + relation_provision inputs that together describe a complete domain schema (e.g. e-commerce, telemedicine, habit tracker). Templates are never executed directly — they are copied into a blueprint first via copy_template_to_blueprint(). Can be private (owner-only) or public (marketplace-visible). | | `useCreateBlueprintTemplateMutation` | Mutation | A shareable, versioned schema recipe for the blueprint marketplace. Templates define arrays of secure_table_provision + relation_provision inputs that together describe a complete domain schema (e.g. e-commerce, telemedicine, habit tracker). Templates are never executed directly — they are copied into a blueprint first via copy_template_to_blueprint(). Can be private (owner-only) or public (marketplace-visible). | @@ -637,7 +637,7 @@ function App() { | `useCreateWebhookModuleMutation` | Mutation | Create a webhookModule | | `useUpdateWebhookModuleMutation` | Mutation | Update a webhookModule | | `useDeleteWebhookModuleMutation` | Mutation | Delete a webhookModule | -| `useConstructBlueprintMutation` | Mutation | Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). A table entry either names its table (table_name plus optional schema_name) or references one an installed module generated ("module": {"type": "agent", "scope": "org", "table": "message"}), which resolves through the module row's recorded table ids and raises when it matches nothing instead of creating an empty table. After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID. A failure raises its coded error to the caller and rolls back the whole construction, including the construction record. | +| `useConstructBlueprintMutation` | Mutation | Requests a build of a blueprint: snapshots its definition into a pending blueprint_construction row, enqueues the blueprint:construct job that runs metaschema_private.construct_blueprint_run on it, and returns the construction id immediately. Poll the row: pending -> constructing -> constructed (table_map populated) or failed (error holds the coded error). schema_id is the default schema for tables without an explicit schema_name. | | `useCopyTemplateToBlueprintMutation` | Mutation | Creates a new blueprint by copying a template definition. Checks visibility: owners can always copy their own templates, others require public visibility. Increments the template copy_count. Returns the new blueprint ID. | | `useProvisionBucketMutation` | Mutation | Reconcile an S3 bucket for a logical bucket in the database. Records the request on the bucket row via RLS; the bucket's job @@ -779,20 +779,20 @@ create({ databaseId: '', definition: '', definitionHash: '', d ```typescript // List all blueprintConstructions const { data, isLoading } = useBlueprintConstructionsQuery({ - selection: { fields: { blueprintId: true, constructedAt: true, constructedDefinition: true, createdAt: true, databaseId: true, id: true, schemaId: true, status: true, tableMap: true, updatedAt: true } }, + selection: { fields: { blueprintId: true, constructedAt: true, constructedDefinition: true, createdAt: true, databaseId: true, error: true, id: true, schemaId: true, status: true, tableMap: true, updatedAt: true } }, }); // Get one blueprintConstruction const { data: item } = useBlueprintConstructionQuery({ id: '', - selection: { fields: { blueprintId: true, constructedAt: true, constructedDefinition: true, createdAt: true, databaseId: true, id: true, schemaId: true, status: true, tableMap: true, updatedAt: true } }, + selection: { fields: { blueprintId: true, constructedAt: true, constructedDefinition: true, createdAt: true, databaseId: true, error: true, id: true, schemaId: true, status: true, tableMap: true, updatedAt: true } }, }); // Create a blueprintConstruction const { mutate: create } = useCreateBlueprintConstructionMutation({ selection: { fields: { id: true } }, }); -create({ blueprintId: '', constructedAt: '', constructedDefinition: '', databaseId: '', schemaId: '', status: '', tableMap: '' }); +create({ blueprintId: '', constructedAt: '', constructedDefinition: '', databaseId: '', error: '', schemaId: '', status: '', tableMap: '' }); ``` ### BlueprintTemplate @@ -1115,20 +1115,20 @@ create({ apiName: '', databaseId: '', dbPresetsTableId: '', ```typescript // List all dbUsageModules const { data, isLoading } = useDbUsageModulesQuery({ - selection: { fields: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultCapabilities: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } }, + selection: { fields: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultCapabilities: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, readDbQueryStatsUsagePeriodFunction: true, readDbTableStatsUsagePeriodFunction: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } }, }); // Get one dbUsageModule const { data: item } = useDbUsageModuleQuery({ id: '', - selection: { fields: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultCapabilities: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } }, + selection: { fields: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultCapabilities: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, readDbQueryStatsUsagePeriodFunction: true, readDbTableStatsUsagePeriodFunction: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } }, }); // Create a dbUsageModule const { mutate: create } = useCreateDbUsageModuleMutation({ selection: { fields: { id: true } }, }); -create({ apiName: '', collectDbQueryStatsFunction: '', collectDbTableStatsFunction: '', databaseId: '', defaultCapabilities: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsSummaryTableId: '', queryStatsSummaryTableName: '', retention: '', rollupDbQueryStatsUsageSummaryFunction: '', rollupDbTableStatsUsageSummaryFunction: '', schemaId: '', scope: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsSummaryTableId: '', tableStatsSummaryTableName: '' }); +create({ apiName: '', collectDbQueryStatsFunction: '', collectDbTableStatsFunction: '', databaseId: '', defaultCapabilities: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsSummaryTableId: '', queryStatsSummaryTableName: '', readDbQueryStatsUsagePeriodFunction: '', readDbTableStatsUsagePeriodFunction: '', retention: '', rollupDbQueryStatsUsageSummaryFunction: '', rollupDbTableStatsUsageSummaryFunction: '', schemaId: '', scope: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsSummaryTableId: '', tableStatsSummaryTableName: '' }); ``` ### DefaultIdsModule @@ -1199,20 +1199,20 @@ create({ databaseId: '', deviceSettingsTableId: '', deviceSettingsTa ```typescript // List all domainModules const { data, isLoading } = useDomainModulesQuery({ - selection: { fields: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }, + selection: { fields: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, defaultReservedSubdomains: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, reservedSubdomainsTableId: true, reservedSubdomainsTableName: true, schemaId: true, scope: true, sweepUnverifiedDomainsFunction: true } }, }); // Get one domainModule const { data: item } = useDomainModuleQuery({ id: '', - selection: { fields: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }, + selection: { fields: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, defaultReservedSubdomains: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, reservedSubdomainsTableId: true, reservedSubdomainsTableName: true, schemaId: true, scope: true, sweepUnverifiedDomainsFunction: true } }, }); // Create a domainModule const { mutate: create } = useCreateDomainModuleMutation({ selection: { fields: { id: true } }, }); -create({ apiName: '', catalogModuleId: '', databaseId: '', defaultCapabilities: '', domainEventsTableId: '', domainEventsTableName: '', domainVerificationsTableId: '', domainVerificationsTableName: '', domainsTableId: '', domainsTableName: '', entityField: '', entityTableId: '', managedDomainsTableId: '', managedDomainsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }); +create({ apiName: '', catalogModuleId: '', databaseId: '', defaultCapabilities: '', defaultReservedSubdomains: '', domainEventsTableId: '', domainEventsTableName: '', domainVerificationsTableId: '', domainVerificationsTableName: '', domainsTableId: '', domainsTableName: '', entityField: '', entityTableId: '', managedDomainsTableId: '', managedDomainsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', reservedSubdomainsTableId: '', reservedSubdomainsTableName: '', schemaId: '', scope: '', sweepUnverifiedDomainsFunction: '' }); ``` ### EmailSenderModule @@ -2081,20 +2081,20 @@ create({ apiName: '', buildStepsTableId: '', buildStepsTableName: ```typescript // List all resourceModules const { data, isLoading } = useResourceModulesQuery({ - selection: { fields: { apiName: true, builderBindingsTableId: true, builderBindingsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, registryBindingsTableId: true, registryBindingsTableName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true } }, + selection: { fields: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, registryBindingsTableId: true, registryBindingsTableName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true, serviceBindingsTableId: true, serviceBindingsTableName: true } }, }); // Get one resourceModule const { data: item } = useResourceModuleQuery({ id: '', - selection: { fields: { apiName: true, builderBindingsTableId: true, builderBindingsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, registryBindingsTableId: true, registryBindingsTableName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true } }, + selection: { fields: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, registryBindingsTableId: true, registryBindingsTableName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true, serviceBindingsTableId: true, serviceBindingsTableName: true } }, }); // Create a resourceModule const { mutate: create } = useCreateResourceModuleMutation({ selection: { fields: { id: true } }, }); -create({ apiName: '', builderBindingsTableId: '', builderBindingsTableName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', installationStoreName: '', merkleStoreModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', registryBindingsTableId: '', registryBindingsTableName: '', requirementsStateViewName: '', resolvedRequirementsViewName: '', resourceBillingRollupFunction: '', resourceDefinitionsTableId: '', resourceDefinitionsTableName: '', resourceEventsTableId: '', resourceEventsTableName: '', resourceInstallationsTableId: '', resourceInstallationsTableName: '', resourceStatusChecksTableId: '', resourceStatusChecksTableName: '', resourceUsageLogTableId: '', resourceUsageLogTableName: '', resourceUsageSummaryTableId: '', resourceUsageSummaryTableName: '', resourcesTableId: '', resourcesTableName: '', rollupResourceUsageSummaryFunction: '', schemaId: '', scope: '' }); +create({ apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', installationStoreName: '', merkleStoreModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', registryBindingsTableId: '', registryBindingsTableName: '', requirementsStateViewName: '', resolvedRequirementsViewName: '', resourceBillingRollupFunction: '', resourceDefinitionsTableId: '', resourceDefinitionsTableName: '', resourceEventsTableId: '', resourceEventsTableName: '', resourceInstallationsTableId: '', resourceInstallationsTableName: '', resourceStatusChecksTableId: '', resourceStatusChecksTableName: '', resourceUsageLogTableId: '', resourceUsageLogTableName: '', resourceUsageSummaryTableId: '', resourceUsageSummaryTableName: '', resourcesTableId: '', resourcesTableName: '', rollupResourceUsageSummaryFunction: '', schemaId: '', scope: '', serviceBindingsTableId: '', serviceBindingsTableName: '' }); ``` ### RlsModule @@ -2249,20 +2249,20 @@ create({ apiName: '', catalogModuleId: '', databaseId: '', d ```typescript // List all storageLogModules const { data, isLoading } = useStorageLogModulesQuery({ - selection: { fields: { apiName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }, + selection: { fields: { apiName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, readStorageUsagePeriodFunction: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }, }); // Get one storageLogModule const { data: item } = useStorageLogModuleQuery({ id: '', - selection: { fields: { apiName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }, + selection: { fields: { apiName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, readStorageUsagePeriodFunction: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }, }); // Create a storageLogModule const { mutate: create } = useCreateStorageLogModuleMutation({ selection: { fields: { id: true } }, }); -create({ apiName: '', databaseId: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', rollupFunctionName: '', schemaId: '', scope: '', storageLogTableId: '', storageLogTableName: '', usageSummaryTableId: '', usageSummaryTableName: '' }); +create({ apiName: '', databaseId: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', readStorageUsagePeriodFunction: '', retention: '', rollupFunctionName: '', schemaId: '', scope: '', storageLogTableId: '', storageLogTableName: '', usageSummaryTableId: '', usageSummaryTableName: '' }); ``` ### StorageModule @@ -2270,20 +2270,20 @@ create({ apiName: '', databaseId: '', entityField: '', int ```typescript // List all storageModules const { data, isLoading } = useStorageModulesQuery({ - selection: { fields: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, region: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }, + selection: { fields: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, region: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }, }); // Get one storageModule const { data: item } = useStorageModuleQuery({ id: '', - selection: { fields: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, region: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }, + selection: { fields: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, region: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }, }); // Create a storageModule const { mutate: create } = useCreateStorageModuleMutation({ selection: { fields: { id: true } }, }); -create({ allowedOrigins: '', apiName: '', bucketsTableId: '', bucketsTableName: '', cacheTtlSeconds: '', catalogModuleId: '', confirmUploadDelay: '', databaseId: '', defaultCapabilities: '', defaultMaxFileSize: '', downloadUrlExpirySeconds: '', endpoint: '', entityField: '', entityTableId: '', fileEventsTableId: '', filesTableId: '', filesTableName: '', hasAuditLog: '', hasConfirmUpload: '', hasContentHash: '', hasCustomKeys: '', hasPathShares: '', hasVersioning: '', key: '', maxBulkFiles: '', maxBulkTotalSize: '', maxFilenameLength: '', pathSharesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provider: '', provisions: '', publicSchemaName: '', publicUrlPrefix: '', region: '', restrictReads: '', schemaId: '', scope: '', uploadUrlExpirySeconds: '' }); +create({ allowedOrigins: '', apiName: '', bucketsTableId: '', bucketsTableName: '', cacheTtlSeconds: '', catalogModuleId: '', confirmUploadDelay: '', databaseId: '', defaultCapabilities: '', defaultMaxFileSize: '', downloadUrlExpirySeconds: '', endpoint: '', entityField: '', entityTableId: '', fileEventsTableId: '', filesTableId: '', filesTableName: '', hasAuditLog: '', hasContentHash: '', hasCustomKeys: '', hasPathShares: '', hasVersioning: '', key: '', maxBulkFiles: '', maxBulkTotalSize: '', maxFilenameLength: '', pathSharesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provider: '', provisions: '', publicSchemaName: '', publicUrlPrefix: '', region: '', restrictReads: '', schemaId: '', scope: '', uploadUrlExpirySeconds: '' }); ``` ### TransferLogModule @@ -2500,7 +2500,7 @@ create({ apiName: '', databaseId: '', defaultCapabilities: ' constructing -> constructed (table_map populated) or failed (error holds the coded error). schema_id is the default schema for tables without an explicit schema_name. - **Type:** mutation - **Arguments:** diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useCreateBlueprintConstructionMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateBlueprintConstructionMutation.ts index db049e428e..09f1100b20 100644 --- a/sdk/constructive-react/src/modules/hooks/mutations/useCreateBlueprintConstructionMutation.ts +++ b/sdk/constructive-react/src/modules/hooks/mutations/useCreateBlueprintConstructionMutation.ts @@ -1,5 +1,5 @@ /** - * Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts. + * Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here as pending and a blueprint:construct job builds it in the background. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts, including failed ones. * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateBlueprintConstructionInput, } from '../../orm/input-types'; /** - * Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts. + * Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here as pending and a blueprint:construct job builds it in the background. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts, including failed ones. * * @example * ```tsx diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useDeleteBlueprintConstructionMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteBlueprintConstructionMutation.ts index 81277a7558..0dda7c5c34 100644 --- a/sdk/constructive-react/src/modules/hooks/mutations/useDeleteBlueprintConstructionMutation.ts +++ b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteBlueprintConstructionMutation.ts @@ -1,5 +1,5 @@ /** - * Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts. + * Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here as pending and a blueprint:construct job builds it in the background. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts, including failed ones. * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -21,7 +21,7 @@ export type { BlueprintConstructionWithRelations, } from '../../orm/input-types'; /** - * Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts. + * Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here as pending and a blueprint:construct job builds it in the background. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts, including failed ones. * * @example * ```tsx diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useUpdateBlueprintConstructionMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateBlueprintConstructionMutation.ts index b773322a19..3b555400d2 100644 --- a/sdk/constructive-react/src/modules/hooks/mutations/useUpdateBlueprintConstructionMutation.ts +++ b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateBlueprintConstructionMutation.ts @@ -1,5 +1,5 @@ /** - * Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts. + * Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here as pending and a blueprint:construct job builds it in the background. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts, including failed ones. * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { BlueprintConstructionPatch, } from '../../orm/input-types'; /** - * Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts. + * Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here as pending and a blueprint:construct job builds it in the background. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts, including failed ones. * * @example * ```tsx diff --git a/sdk/constructive-react/src/modules/hooks/queries/useBlueprintConstructionQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useBlueprintConstructionQuery.ts index b4c286d3db..3a2cd853e7 100644 --- a/sdk/constructive-react/src/modules/hooks/queries/useBlueprintConstructionQuery.ts +++ b/sdk/constructive-react/src/modules/hooks/queries/useBlueprintConstructionQuery.ts @@ -1,5 +1,5 @@ /** - * Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts. + * Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here as pending and a blueprint:construct job builds it in the background. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts, including failed ones. * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -22,7 +22,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const blueprintConstructionQueryKey = blueprintConstructionKeys.detail; /** - * Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts. + * Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here as pending and a blueprint:construct job builds it in the background. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts, including failed ones. * * @example * ```tsx @@ -76,7 +76,7 @@ export function useBlueprintConstructionQuery( }); } /** - * Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts. + * Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here as pending and a blueprint:construct job builds it in the background. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts, including failed ones. * * @example * ```ts @@ -109,7 +109,7 @@ export async function fetchBlueprintConstructionQuery(params: { .unwrap(); } /** - * Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts. + * Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here as pending and a blueprint:construct job builds it in the background. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts, including failed ones. * * @example * ```ts diff --git a/sdk/constructive-react/src/modules/hooks/queries/useBlueprintConstructionsQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useBlueprintConstructionsQuery.ts index b8f5b8371e..5f96c40fc2 100644 --- a/sdk/constructive-react/src/modules/hooks/queries/useBlueprintConstructionsQuery.ts +++ b/sdk/constructive-react/src/modules/hooks/queries/useBlueprintConstructionsQuery.ts @@ -1,5 +1,5 @@ /** - * Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts. + * Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here as pending and a blueprint:construct job builds it in the background. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts, including failed ones. * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const blueprintConstructionsQueryKey = blueprintConstructionKeys.list; /** - * Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts. + * Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here as pending and a blueprint:construct job builds it in the background. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts, including failed ones. * * @example * ```tsx @@ -97,7 +97,7 @@ export function useBlueprintConstructionsQuery( }); } /** - * Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts. + * Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here as pending and a blueprint:construct job builds it in the background. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts, including failed ones. * * @example * ```ts @@ -139,7 +139,7 @@ export async function fetchBlueprintConstructionsQuery(params: { return getClient().blueprintConstruction.findMany(args).unwrap(); } /** - * Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts. + * Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here as pending and a blueprint:construct job builds it in the background. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts, including failed ones. * * @example * ```ts diff --git a/sdk/constructive-react/src/modules/orm/README.md b/sdk/constructive-react/src/modules/orm/README.md index 73e6574eaa..b7b873e859 100644 --- a/sdk/constructive-react/src/modules/orm/README.md +++ b/sdk/constructive-react/src/modules/orm/README.md @@ -498,6 +498,7 @@ CRUD operations for BlueprintConstruction records. | `constructedDefinition` | JSON | Yes | | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | +| `error` | JSON | Yes | | `id` | UUID | No | | `schemaId` | UUID | Yes | | `status` | String | Yes | @@ -508,13 +509,13 @@ CRUD operations for BlueprintConstruction records. ```typescript // List all blueprintConstruction records -const items = await db.blueprintConstruction.findMany({ select: { blueprintId: true, constructedAt: true, constructedDefinition: true, createdAt: true, databaseId: true, id: true, schemaId: true, status: true, tableMap: true, updatedAt: true } }).execute(); +const items = await db.blueprintConstruction.findMany({ select: { blueprintId: true, constructedAt: true, constructedDefinition: true, createdAt: true, databaseId: true, error: true, id: true, schemaId: true, status: true, tableMap: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.blueprintConstruction.findOne({ id: '', select: { blueprintId: true, constructedAt: true, constructedDefinition: true, createdAt: true, databaseId: true, id: true, schemaId: true, status: true, tableMap: true, updatedAt: true } }).execute(); +const item = await db.blueprintConstruction.findOne({ id: '', select: { blueprintId: true, constructedAt: true, constructedDefinition: true, createdAt: true, databaseId: true, error: true, id: true, schemaId: true, status: true, tableMap: true, updatedAt: true } }).execute(); // Create -const created = await db.blueprintConstruction.create({ data: { blueprintId: '', constructedAt: '', constructedDefinition: '', databaseId: '', schemaId: '', status: '', tableMap: '' }, select: { id: true } }).execute(); +const created = await db.blueprintConstruction.create({ data: { blueprintId: '', constructedAt: '', constructedDefinition: '', databaseId: '', error: '', schemaId: '', status: '', tableMap: '' }, select: { id: true } }).execute(); // Update const updated = await db.blueprintConstruction.update({ where: { id: '' }, data: { blueprintId: '' }, select: { id: true } }).execute(); @@ -1250,6 +1251,8 @@ CRUD operations for DbUsageModule records. | `queryStatsLogTableName` | String | Yes | | `queryStatsSummaryTableId` | UUID | Yes | | `queryStatsSummaryTableName` | String | Yes | +| `readDbQueryStatsUsagePeriodFunction` | String | Yes | +| `readDbTableStatsUsagePeriodFunction` | String | Yes | | `retention` | String | Yes | | `rollupDbQueryStatsUsageSummaryFunction` | String | Yes | | `rollupDbTableStatsUsageSummaryFunction` | String | Yes | @@ -1264,13 +1267,13 @@ CRUD operations for DbUsageModule records. ```typescript // List all dbUsageModule records -const items = await db.dbUsageModule.findMany({ select: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultCapabilities: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } }).execute(); +const items = await db.dbUsageModule.findMany({ select: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultCapabilities: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, readDbQueryStatsUsagePeriodFunction: true, readDbTableStatsUsagePeriodFunction: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } }).execute(); // Get one by id -const item = await db.dbUsageModule.findOne({ id: '', select: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultCapabilities: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } }).execute(); +const item = await db.dbUsageModule.findOne({ id: '', select: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultCapabilities: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, readDbQueryStatsUsagePeriodFunction: true, readDbTableStatsUsagePeriodFunction: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } }).execute(); // Create -const created = await db.dbUsageModule.create({ data: { apiName: '', collectDbQueryStatsFunction: '', collectDbTableStatsFunction: '', databaseId: '', defaultCapabilities: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsSummaryTableId: '', queryStatsSummaryTableName: '', retention: '', rollupDbQueryStatsUsageSummaryFunction: '', rollupDbTableStatsUsageSummaryFunction: '', schemaId: '', scope: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsSummaryTableId: '', tableStatsSummaryTableName: '' }, select: { id: true } }).execute(); +const created = await db.dbUsageModule.create({ data: { apiName: '', collectDbQueryStatsFunction: '', collectDbTableStatsFunction: '', databaseId: '', defaultCapabilities: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsSummaryTableId: '', queryStatsSummaryTableName: '', readDbQueryStatsUsagePeriodFunction: '', readDbTableStatsUsagePeriodFunction: '', retention: '', rollupDbQueryStatsUsageSummaryFunction: '', rollupDbTableStatsUsageSummaryFunction: '', schemaId: '', scope: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsSummaryTableId: '', tableStatsSummaryTableName: '' }, select: { id: true } }).execute(); // Update const updated = await db.dbUsageModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -1396,6 +1399,7 @@ CRUD operations for DomainModule records. | `catalogModuleId` | UUID | Yes | | `databaseId` | UUID | Yes | | `defaultCapabilities` | String | Yes | +| `defaultReservedSubdomains` | JSON | Yes | | `domainEventsTableId` | UUID | Yes | | `domainEventsTableName` | String | Yes | | `domainVerificationsTableId` | UUID | Yes | @@ -1414,20 +1418,23 @@ CRUD operations for DomainModule records. | `privateSchemaName` | String | Yes | | `provisions` | JSON | Yes | | `publicSchemaName` | String | Yes | +| `reservedSubdomainsTableId` | UUID | Yes | +| `reservedSubdomainsTableName` | String | Yes | | `schemaId` | UUID | Yes | | `scope` | String | Yes | +| `sweepUnverifiedDomainsFunction` | String | Yes | **Operations:** ```typescript // List all domainModule records -const items = await db.domainModule.findMany({ select: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); +const items = await db.domainModule.findMany({ select: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, defaultReservedSubdomains: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, reservedSubdomainsTableId: true, reservedSubdomainsTableName: true, schemaId: true, scope: true, sweepUnverifiedDomainsFunction: true } }).execute(); // Get one by id -const item = await db.domainModule.findOne({ id: '', select: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); +const item = await db.domainModule.findOne({ id: '', select: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, defaultReservedSubdomains: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, reservedSubdomainsTableId: true, reservedSubdomainsTableName: true, schemaId: true, scope: true, sweepUnverifiedDomainsFunction: true } }).execute(); // Create -const created = await db.domainModule.create({ data: { apiName: '', catalogModuleId: '', databaseId: '', defaultCapabilities: '', domainEventsTableId: '', domainEventsTableName: '', domainVerificationsTableId: '', domainVerificationsTableName: '', domainsTableId: '', domainsTableName: '', entityField: '', entityTableId: '', managedDomainsTableId: '', managedDomainsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); +const created = await db.domainModule.create({ data: { apiName: '', catalogModuleId: '', databaseId: '', defaultCapabilities: '', defaultReservedSubdomains: '', domainEventsTableId: '', domainEventsTableName: '', domainVerificationsTableId: '', domainVerificationsTableName: '', domainsTableId: '', domainsTableName: '', entityField: '', entityTableId: '', managedDomainsTableId: '', managedDomainsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', reservedSubdomainsTableId: '', reservedSubdomainsTableName: '', schemaId: '', scope: '', sweepUnverifiedDomainsFunction: '' }, select: { id: true } }).execute(); // Update const updated = await db.domainModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -3435,8 +3442,6 @@ CRUD operations for ResourceModule records. | Field | Type | Editable | |-------|------|----------| | `apiName` | String | Yes | -| `builderBindingsTableId` | UUID | Yes | -| `builderBindingsTableName` | String | Yes | | `databaseId` | UUID | Yes | | `defaultCapabilities` | String | Yes | | `entityField` | String | Yes | @@ -3474,18 +3479,20 @@ CRUD operations for ResourceModule records. | `rollupResourceUsageSummaryFunction` | String | Yes | | `schemaId` | UUID | Yes | | `scope` | String | Yes | +| `serviceBindingsTableId` | UUID | Yes | +| `serviceBindingsTableName` | String | Yes | **Operations:** ```typescript // List all resourceModule records -const items = await db.resourceModule.findMany({ select: { apiName: true, builderBindingsTableId: true, builderBindingsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, registryBindingsTableId: true, registryBindingsTableName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true } }).execute(); +const items = await db.resourceModule.findMany({ select: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, registryBindingsTableId: true, registryBindingsTableName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true, serviceBindingsTableId: true, serviceBindingsTableName: true } }).execute(); // Get one by id -const item = await db.resourceModule.findOne({ id: '', select: { apiName: true, builderBindingsTableId: true, builderBindingsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, registryBindingsTableId: true, registryBindingsTableName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true } }).execute(); +const item = await db.resourceModule.findOne({ id: '', select: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, registryBindingsTableId: true, registryBindingsTableName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true, serviceBindingsTableId: true, serviceBindingsTableName: true } }).execute(); // Create -const created = await db.resourceModule.create({ data: { apiName: '', builderBindingsTableId: '', builderBindingsTableName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', installationStoreName: '', merkleStoreModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', registryBindingsTableId: '', registryBindingsTableName: '', requirementsStateViewName: '', resolvedRequirementsViewName: '', resourceBillingRollupFunction: '', resourceDefinitionsTableId: '', resourceDefinitionsTableName: '', resourceEventsTableId: '', resourceEventsTableName: '', resourceInstallationsTableId: '', resourceInstallationsTableName: '', resourceStatusChecksTableId: '', resourceStatusChecksTableName: '', resourceUsageLogTableId: '', resourceUsageLogTableName: '', resourceUsageSummaryTableId: '', resourceUsageSummaryTableName: '', resourcesTableId: '', resourcesTableName: '', rollupResourceUsageSummaryFunction: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); +const created = await db.resourceModule.create({ data: { apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', installationStoreName: '', merkleStoreModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', registryBindingsTableId: '', registryBindingsTableName: '', requirementsStateViewName: '', resolvedRequirementsViewName: '', resourceBillingRollupFunction: '', resourceDefinitionsTableId: '', resourceDefinitionsTableName: '', resourceEventsTableId: '', resourceEventsTableName: '', resourceInstallationsTableId: '', resourceInstallationsTableName: '', resourceStatusChecksTableId: '', resourceStatusChecksTableName: '', resourceUsageLogTableId: '', resourceUsageLogTableName: '', resourceUsageSummaryTableId: '', resourceUsageSummaryTableName: '', resourcesTableId: '', resourcesTableName: '', rollupResourceUsageSummaryFunction: '', schemaId: '', scope: '', serviceBindingsTableId: '', serviceBindingsTableName: '' }, select: { id: true } }).execute(); // Update const updated = await db.resourceModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -3822,6 +3829,7 @@ CRUD operations for StorageLogModule records. | `privateSchemaId` | UUID | Yes | | `privateSchemaName` | String | Yes | | `publicSchemaName` | String | Yes | +| `readStorageUsagePeriodFunction` | String | Yes | | `retention` | String | Yes | | `rollupFunctionName` | String | Yes | | `schemaId` | UUID | Yes | @@ -3835,13 +3843,13 @@ CRUD operations for StorageLogModule records. ```typescript // List all storageLogModule records -const items = await db.storageLogModule.findMany({ select: { apiName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); +const items = await db.storageLogModule.findMany({ select: { apiName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, readStorageUsagePeriodFunction: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); // Get one by id -const item = await db.storageLogModule.findOne({ id: '', select: { apiName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); +const item = await db.storageLogModule.findOne({ id: '', select: { apiName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, readStorageUsagePeriodFunction: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); // Create -const created = await db.storageLogModule.create({ data: { apiName: '', databaseId: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', rollupFunctionName: '', schemaId: '', scope: '', storageLogTableId: '', storageLogTableName: '', usageSummaryTableId: '', usageSummaryTableName: '' }, select: { id: true } }).execute(); +const created = await db.storageLogModule.create({ data: { apiName: '', databaseId: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', readStorageUsagePeriodFunction: '', retention: '', rollupFunctionName: '', schemaId: '', scope: '', storageLogTableId: '', storageLogTableName: '', usageSummaryTableId: '', usageSummaryTableName: '' }, select: { id: true } }).execute(); // Update const updated = await db.storageLogModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -3876,7 +3884,6 @@ CRUD operations for StorageModule records. | `filesTableId` | UUID | Yes | | `filesTableName` | String | Yes | | `hasAuditLog` | Boolean | Yes | -| `hasConfirmUpload` | Boolean | Yes | | `hasContentHash` | Boolean | Yes | | `hasCustomKeys` | Boolean | Yes | | `hasPathShares` | Boolean | Yes | @@ -3906,13 +3913,13 @@ CRUD operations for StorageModule records. ```typescript // List all storageModule records -const items = await db.storageModule.findMany({ select: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, region: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }).execute(); +const items = await db.storageModule.findMany({ select: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, region: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }).execute(); // Get one by id -const item = await db.storageModule.findOne({ id: '', select: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, region: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }).execute(); +const item = await db.storageModule.findOne({ id: '', select: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, region: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }).execute(); // Create -const created = await db.storageModule.create({ data: { allowedOrigins: '', apiName: '', bucketsTableId: '', bucketsTableName: '', cacheTtlSeconds: '', catalogModuleId: '', confirmUploadDelay: '', databaseId: '', defaultCapabilities: '', defaultMaxFileSize: '', downloadUrlExpirySeconds: '', endpoint: '', entityField: '', entityTableId: '', fileEventsTableId: '', filesTableId: '', filesTableName: '', hasAuditLog: '', hasConfirmUpload: '', hasContentHash: '', hasCustomKeys: '', hasPathShares: '', hasVersioning: '', key: '', maxBulkFiles: '', maxBulkTotalSize: '', maxFilenameLength: '', pathSharesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provider: '', provisions: '', publicSchemaName: '', publicUrlPrefix: '', region: '', restrictReads: '', schemaId: '', scope: '', uploadUrlExpirySeconds: '' }, select: { id: true } }).execute(); +const created = await db.storageModule.create({ data: { allowedOrigins: '', apiName: '', bucketsTableId: '', bucketsTableName: '', cacheTtlSeconds: '', catalogModuleId: '', confirmUploadDelay: '', databaseId: '', defaultCapabilities: '', defaultMaxFileSize: '', downloadUrlExpirySeconds: '', endpoint: '', entityField: '', entityTableId: '', fileEventsTableId: '', filesTableId: '', filesTableName: '', hasAuditLog: '', hasContentHash: '', hasCustomKeys: '', hasPathShares: '', hasVersioning: '', key: '', maxBulkFiles: '', maxBulkTotalSize: '', maxFilenameLength: '', pathSharesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provider: '', provisions: '', publicSchemaName: '', publicUrlPrefix: '', region: '', restrictReads: '', schemaId: '', scope: '', uploadUrlExpirySeconds: '' }, select: { id: true } }).execute(); // Update const updated = await db.storageModule.update({ where: { id: '' }, data: { allowedOrigins: '' }, select: { id: true } }).execute(); @@ -4340,7 +4347,7 @@ const deleted = await db.webhookModule.delete({ where: { id: '' } }).execu ### `db.mutation.constructBlueprint` -Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). A table entry either names its table (table_name plus optional schema_name) or references one an installed module generated ("module": {"type": "agent", "scope": "org", "table": "message"}), which resolves through the module row's recorded table ids and raises when it matches nothing instead of creating an empty table. After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID. A failure raises its coded error to the caller and rolls back the whole construction, including the construction record. +Requests a build of a blueprint: snapshots its definition into a pending blueprint_construction row, enqueues the blueprint:construct job that runs metaschema_private.construct_blueprint_run on it, and returns the construction id immediately. Poll the row: pending -> constructing -> constructed (table_map populated) or failed (error holds the coded error). schema_id is the default schema for tables without an explicit schema_name. - **Type:** mutation - **Arguments:** diff --git a/sdk/constructive-react/src/modules/orm/input-types.ts b/sdk/constructive-react/src/modules/orm/input-types.ts index ca44c2dad1..1e2b8d3965 100644 --- a/sdk/constructive-react/src/modules/orm/input-types.ts +++ b/sdk/constructive-react/src/modules/orm/input-types.ts @@ -461,7 +461,7 @@ export interface Blueprint { /** Timestamp when this blueprint was last modified. */ updatedAt?: string | null; } -/** Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts. */ +/** Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here as pending and a blueprint:construct job builds it in the background. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts, including failed ones. */ export interface BlueprintConstruction { /** The blueprint that was constructed. */ blueprintId?: string | null; @@ -473,11 +473,13 @@ export interface BlueprintConstruction { createdAt?: string | null; /** The database the blueprint was constructed into. */ databaseId?: string | null; + /** The coded error ({"code", "context", "class"} as raised through errors.raise_error, or {"code": , "message"} for a database error) a failed construction ended with. NULL unless status is failed. */ + error?: Record | null; /** Unique identifier for this construction attempt. */ id: string; /** The default schema used for tables that did not specify an explicit schema_name. NULL if not yet resolved. */ schemaId?: string | null; - /** Execution state of this construction attempt. pending: created but not yet started. constructing: currently executing. constructed: successfully completed. A failed construction raises and rolls back, so it leaves no row. */ + /** Execution state of this construction attempt. pending: enqueued, the blueprint:construct job has not started. constructing: the job is executing. constructed: successfully completed. failed: the job raised; the build rolled back and error carries its coded error. */ status?: string | null; /** Mapping of table names to created table UUIDs, populated after successful construction. Format: {"products": "uuid", "categories": "uuid", ...}. Defaults to empty object. */ tableMap?: Record | null; @@ -866,6 +868,8 @@ export interface DbUsageModule { queryStatsLogTableName?: string | null; queryStatsSummaryTableId?: string | null; queryStatsSummaryTableName?: string | null; + readDbQueryStatsUsagePeriodFunction?: string | null; + readDbTableStatsUsagePeriodFunction?: string | null; retention?: string | null; rollupDbQueryStatsUsageSummaryFunction?: string | null; rollupDbTableStatsUsageSummaryFunction?: string | null; @@ -908,6 +912,7 @@ export interface DomainModule { catalogModuleId?: string | null; databaseId?: string | null; defaultCapabilities?: string[] | null; + defaultReservedSubdomains?: Record | null; domainEventsTableId?: string | null; domainEventsTableName?: string | null; domainVerificationsTableId?: string | null; @@ -926,8 +931,11 @@ export interface DomainModule { privateSchemaName?: string | null; provisions?: Record | null; publicSchemaName?: string | null; + reservedSubdomainsTableId?: string | null; + reservedSubdomainsTableName?: string | null; schemaId?: string | null; scope?: string | null; + sweepUnverifiedDomainsFunction?: string | null; } export interface EmailSenderModule { apiName?: string | null; @@ -1167,7 +1175,6 @@ export interface EntityTypeProvision { * - has_content_hash (boolean) enable content hash for dedup * - has_custom_keys (boolean) allow client-provided S3 keys * - has_audit_log (boolean) enable file events audit table - * - has_confirm_upload (boolean) enable HeadObject confirmation flow * - confirm_upload_delay (interval) delay before first confirmation attempt * - buckets (jsonb[]) array of initial bucket definitions to seed. * Each bucket: { name (required), description, is_public, allowed_mime_types, max_file_size, allowed_origins } @@ -2214,8 +2221,6 @@ export interface RepositoryModule { } export interface ResourceModule { apiName?: string | null; - builderBindingsTableId?: string | null; - builderBindingsTableName?: string | null; databaseId?: string | null; defaultCapabilities?: string[] | null; entityField?: string | null; @@ -2253,6 +2258,8 @@ export interface ResourceModule { rollupResourceUsageSummaryFunction?: string | null; schemaId?: string | null; scope?: string | null; + serviceBindingsTableId?: string | null; + serviceBindingsTableName?: string | null; } export interface RlsModule { apiName?: string | null; @@ -2409,6 +2416,7 @@ export interface StorageLogModule { privateSchemaId?: string | null; privateSchemaName?: string | null; publicSchemaName?: string | null; + readStorageUsagePeriodFunction?: string | null; retention?: string | null; rollupFunctionName?: string | null; schemaId?: string | null; @@ -2437,7 +2445,6 @@ export interface StorageModule { filesTableId?: string | null; filesTableName?: string | null; hasAuditLog?: boolean | null; - hasConfirmUpload?: boolean | null; hasContentHash?: boolean | null; hasCustomKeys?: boolean | null; hasPathShares?: boolean | null; @@ -3158,6 +3165,7 @@ export type BlueprintConstructionSelect = { constructedDefinition?: boolean; createdAt?: boolean; databaseId?: boolean; + error?: boolean; id?: boolean; schemaId?: boolean; status?: boolean; @@ -3557,6 +3565,8 @@ export type DbUsageModuleSelect = { queryStatsLogTableName?: boolean; queryStatsSummaryTableId?: boolean; queryStatsSummaryTableName?: boolean; + readDbQueryStatsUsagePeriodFunction?: boolean; + readDbTableStatsUsagePeriodFunction?: boolean; retention?: boolean; rollupDbQueryStatsUsageSummaryFunction?: boolean; rollupDbTableStatsUsageSummaryFunction?: boolean; @@ -3599,6 +3609,7 @@ export type DomainModuleSelect = { catalogModuleId?: boolean; databaseId?: boolean; defaultCapabilities?: boolean; + defaultReservedSubdomains?: boolean; domainEventsTableId?: boolean; domainEventsTableName?: boolean; domainVerificationsTableId?: boolean; @@ -3617,8 +3628,11 @@ export type DomainModuleSelect = { privateSchemaName?: boolean; provisions?: boolean; publicSchemaName?: boolean; + reservedSubdomainsTableId?: boolean; + reservedSubdomainsTableName?: boolean; schemaId?: boolean; scope?: boolean; + sweepUnverifiedDomainsFunction?: boolean; catalogModule?: { select: CatalogModuleSelect; }; @@ -4666,8 +4680,6 @@ export type RepositoryModuleSelect = { }; export type ResourceModuleSelect = { apiName?: boolean; - builderBindingsTableId?: boolean; - builderBindingsTableName?: boolean; databaseId?: boolean; defaultCapabilities?: boolean; entityField?: boolean; @@ -4705,6 +4717,8 @@ export type ResourceModuleSelect = { rollupResourceUsageSummaryFunction?: boolean; schemaId?: boolean; scope?: boolean; + serviceBindingsTableId?: boolean; + serviceBindingsTableName?: boolean; merkleStoreModule?: { select: MerkleStoreModuleSelect; }; @@ -4872,6 +4886,7 @@ export type StorageLogModuleSelect = { privateSchemaId?: boolean; privateSchemaName?: boolean; publicSchemaName?: boolean; + readStorageUsagePeriodFunction?: boolean; retention?: boolean; rollupFunctionName?: boolean; schemaId?: boolean; @@ -4900,7 +4915,6 @@ export type StorageModuleSelect = { filesTableId?: boolean; filesTableName?: boolean; hasAuditLog?: boolean; - hasConfirmUpload?: boolean; hasContentHash?: boolean; hasCustomKeys?: boolean; hasPathShares?: boolean; @@ -5589,6 +5603,8 @@ export interface BlueprintConstructionFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `error` field. */ + error?: JSONFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Negates the expression. */ @@ -6371,6 +6387,10 @@ export interface DbUsageModuleFilter { queryStatsSummaryTableId?: UUIDFilter; /** Filter by the object’s `queryStatsSummaryTableName` field. */ queryStatsSummaryTableName?: StringFilter; + /** Filter by the object’s `readDbQueryStatsUsagePeriodFunction` field. */ + readDbQueryStatsUsagePeriodFunction?: StringFilter; + /** Filter by the object’s `readDbTableStatsUsagePeriodFunction` field. */ + readDbTableStatsUsagePeriodFunction?: StringFilter; /** Filter by the object’s `retention` field. */ retention?: StringFilter; /** Filter by the object’s `rollupDbQueryStatsUsageSummaryFunction` field. */ @@ -6471,6 +6491,8 @@ export interface DomainModuleFilter { databaseId?: UUIDFilter; /** Filter by the object’s `defaultCapabilities` field. */ defaultCapabilities?: StringListFilter; + /** Filter by the object’s `defaultReservedSubdomains` field. */ + defaultReservedSubdomains?: JSONFilter; /** Filter by the object’s `domainEventsTableId` field. */ domainEventsTableId?: UUIDFilter; /** Filter by the object’s `domainEventsTableName` field. */ @@ -6511,6 +6533,10 @@ export interface DomainModuleFilter { provisions?: JSONFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; + /** Filter by the object’s `reservedSubdomainsTableId` field. */ + reservedSubdomainsTableId?: UUIDFilter; + /** Filter by the object’s `reservedSubdomainsTableName` field. */ + reservedSubdomainsTableName?: StringFilter; /** Filter by the object’s `routeModules` relation. */ routeModules?: DomainModuleToManyRouteModuleFilter; /** `routeModules` exist. */ @@ -6519,6 +6545,8 @@ export interface DomainModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; + /** Filter by the object’s `sweepUnverifiedDomainsFunction` field. */ + sweepUnverifiedDomainsFunction?: StringFilter; } export interface EmailSenderModuleFilter { /** Checks for all expressions in this list. */ @@ -8619,10 +8647,6 @@ export interface ResourceModuleFilter { and?: ResourceModuleFilter[]; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; - /** Filter by the object’s `builderBindingsTableId` field. */ - builderBindingsTableId?: UUIDFilter; - /** Filter by the object’s `builderBindingsTableName` field. */ - builderBindingsTableName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `defaultCapabilities` field. */ @@ -8709,6 +8733,10 @@ export interface ResourceModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; + /** Filter by the object’s `serviceBindingsTableId` field. */ + serviceBindingsTableId?: UUIDFilter; + /** Filter by the object’s `serviceBindingsTableName` field. */ + serviceBindingsTableName?: StringFilter; } export interface RlsModuleFilter { /** Checks for all expressions in this list. */ @@ -9041,6 +9069,8 @@ export interface StorageLogModuleFilter { privateSchemaName?: StringFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; + /** Filter by the object’s `readStorageUsagePeriodFunction` field. */ + readStorageUsagePeriodFunction?: StringFilter; /** Filter by the object’s `retention` field. */ retention?: StringFilter; /** Filter by the object’s `rollupFunctionName` field. */ @@ -9101,8 +9131,6 @@ export interface StorageModuleFilter { filesTableName?: StringFilter; /** Filter by the object’s `hasAuditLog` field. */ hasAuditLog?: BooleanFilter; - /** Filter by the object’s `hasConfirmUpload` field. */ - hasConfirmUpload?: BooleanFilter; /** Filter by the object’s `hasContentHash` field. */ hasContentHash?: BooleanFilter; /** Filter by the object’s `hasCustomKeys` field. */ @@ -9968,6 +9996,8 @@ export type BlueprintConstructionOrderBy = | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ERROR_ASC' + | 'ERROR_DESC' | 'ID_ASC' | 'ID_DESC' | 'NATURAL' @@ -10643,6 +10673,10 @@ export type DbUsageModuleOrderBy = | 'QUERY_STATS_SUMMARY_TABLE_ID_DESC' | 'QUERY_STATS_SUMMARY_TABLE_NAME_ASC' | 'QUERY_STATS_SUMMARY_TABLE_NAME_DESC' + | 'READ_DB_QUERY_STATS_USAGE_PERIOD_FUNCTION_ASC' + | 'READ_DB_QUERY_STATS_USAGE_PERIOD_FUNCTION_DESC' + | 'READ_DB_TABLE_STATS_USAGE_PERIOD_FUNCTION_ASC' + | 'READ_DB_TABLE_STATS_USAGE_PERIOD_FUNCTION_DESC' | 'RETENTION_ASC' | 'RETENTION_DESC' | 'ROLLUP_DB_QUERY_STATS_USAGE_SUMMARY_FUNCTION_ASC' @@ -10724,6 +10758,8 @@ export type DomainModuleOrderBy = | 'DATABASE_ID_DESC' | 'DEFAULT_CAPABILITIES_ASC' | 'DEFAULT_CAPABILITIES_DESC' + | 'DEFAULT_RESERVED_SUBDOMAINS_ASC' + | 'DEFAULT_RESERVED_SUBDOMAINS_DESC' | 'DOMAINS_TABLE_ID_ASC' | 'DOMAINS_TABLE_ID_DESC' | 'DOMAINS_TABLE_NAME_ASC' @@ -10763,10 +10799,16 @@ export type DomainModuleOrderBy = | 'PROVISIONS_DESC' | 'PUBLIC_SCHEMA_NAME_ASC' | 'PUBLIC_SCHEMA_NAME_DESC' + | 'RESERVED_SUBDOMAINS_TABLE_ID_ASC' + | 'RESERVED_SUBDOMAINS_TABLE_ID_DESC' + | 'RESERVED_SUBDOMAINS_TABLE_NAME_ASC' + | 'RESERVED_SUBDOMAINS_TABLE_NAME_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SCOPE_ASC' - | 'SCOPE_DESC'; + | 'SCOPE_DESC' + | 'SWEEP_UNVERIFIED_DOMAINS_FUNCTION_ASC' + | 'SWEEP_UNVERIFIED_DOMAINS_FUNCTION_DESC'; export type EmailSenderModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' @@ -12618,10 +12660,6 @@ export type RepositoryModuleOrderBy = export type ResourceModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' - | 'BUILDER_BINDINGS_TABLE_ID_ASC' - | 'BUILDER_BINDINGS_TABLE_ID_DESC' - | 'BUILDER_BINDINGS_TABLE_NAME_ASC' - | 'BUILDER_BINDINGS_TABLE_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DEFAULT_CAPABILITIES_ASC' @@ -12698,7 +12736,11 @@ export type ResourceModuleOrderBy = | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SCOPE_ASC' - | 'SCOPE_DESC'; + | 'SCOPE_DESC' + | 'SERVICE_BINDINGS_TABLE_ID_ASC' + | 'SERVICE_BINDINGS_TABLE_ID_DESC' + | 'SERVICE_BINDINGS_TABLE_NAME_ASC' + | 'SERVICE_BINDINGS_TABLE_NAME_DESC'; export type RlsModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' @@ -12979,6 +13021,8 @@ export type StorageLogModuleOrderBy = | 'PRIVATE_SCHEMA_NAME_DESC' | 'PUBLIC_SCHEMA_NAME_ASC' | 'PUBLIC_SCHEMA_NAME_DESC' + | 'READ_STORAGE_USAGE_PERIOD_FUNCTION_ASC' + | 'READ_STORAGE_USAGE_PERIOD_FUNCTION_DESC' | 'RETENTION_ASC' | 'RETENTION_DESC' | 'ROLLUP_FUNCTION_NAME_ASC' @@ -13032,8 +13076,6 @@ export type StorageModuleOrderBy = | 'FILE_EVENTS_TABLE_ID_DESC' | 'HAS_AUDIT_LOG_ASC' | 'HAS_AUDIT_LOG_DESC' - | 'HAS_CONFIRM_UPLOAD_ASC' - | 'HAS_CONFIRM_UPLOAD_DESC' | 'HAS_CONTENT_HASH_ASC' | 'HAS_CONTENT_HASH_DESC' | 'HAS_CUSTOM_KEYS_ASC' @@ -13893,6 +13935,7 @@ export interface CreateBlueprintConstructionInput { constructedAt?: string; constructedDefinition?: Record; databaseId: string; + error?: Record; schemaId?: string; status?: string; tableMap?: Record; @@ -13903,6 +13946,7 @@ export interface BlueprintConstructionPatch { constructedAt?: string | null; constructedDefinition?: Record | null; databaseId?: string | null; + error?: Record | null; schemaId?: string | null; status?: string | null; tableMap?: Record | null; @@ -14688,6 +14732,8 @@ export interface CreateDbUsageModuleInput { queryStatsLogTableName?: string; queryStatsSummaryTableId?: string; queryStatsSummaryTableName?: string; + readDbQueryStatsUsagePeriodFunction?: string; + readDbTableStatsUsagePeriodFunction?: string; retention?: string; rollupDbQueryStatsUsageSummaryFunction?: string; rollupDbTableStatsUsageSummaryFunction?: string; @@ -14717,6 +14763,8 @@ export interface DbUsageModulePatch { queryStatsLogTableName?: string | null; queryStatsSummaryTableId?: string | null; queryStatsSummaryTableName?: string | null; + readDbQueryStatsUsagePeriodFunction?: string | null; + readDbTableStatsUsagePeriodFunction?: string | null; retention?: string | null; rollupDbQueryStatsUsageSummaryFunction?: string | null; rollupDbTableStatsUsageSummaryFunction?: string | null; @@ -14827,6 +14875,7 @@ export interface CreateDomainModuleInput { catalogModuleId?: string; databaseId: string; defaultCapabilities?: string[]; + defaultReservedSubdomains?: Record; domainEventsTableId?: string; domainEventsTableName?: string; domainVerificationsTableId?: string; @@ -14844,8 +14893,11 @@ export interface CreateDomainModuleInput { privateSchemaName?: string; provisions?: Record; publicSchemaName?: string; + reservedSubdomainsTableId?: string; + reservedSubdomainsTableName?: string; schemaId?: string; scope: string; + sweepUnverifiedDomainsFunction?: string; }; } export interface DomainModulePatch { @@ -14853,6 +14905,7 @@ export interface DomainModulePatch { catalogModuleId?: string | null; databaseId?: string | null; defaultCapabilities?: string[] | null; + defaultReservedSubdomains?: Record | null; domainEventsTableId?: string | null; domainEventsTableName?: string | null; domainVerificationsTableId?: string | null; @@ -14870,8 +14923,11 @@ export interface DomainModulePatch { privateSchemaName?: string | null; provisions?: Record | null; publicSchemaName?: string | null; + reservedSubdomainsTableId?: string | null; + reservedSubdomainsTableName?: string | null; schemaId?: string | null; scope?: string | null; + sweepUnverifiedDomainsFunction?: string | null; } export interface UpdateDomainModuleInput { clientMutationId?: string; @@ -17132,8 +17188,6 @@ export interface CreateResourceModuleInput { clientMutationId?: string; resourceModule: { apiName?: string; - builderBindingsTableId?: string; - builderBindingsTableName?: string; databaseId: string; defaultCapabilities?: string[]; entityField?: string; @@ -17170,12 +17224,12 @@ export interface CreateResourceModuleInput { rollupResourceUsageSummaryFunction?: string; schemaId?: string; scope: string; + serviceBindingsTableId?: string; + serviceBindingsTableName?: string; }; } export interface ResourceModulePatch { apiName?: string | null; - builderBindingsTableId?: string | null; - builderBindingsTableName?: string | null; databaseId?: string | null; defaultCapabilities?: string[] | null; entityField?: string | null; @@ -17212,6 +17266,8 @@ export interface ResourceModulePatch { rollupResourceUsageSummaryFunction?: string | null; schemaId?: string | null; scope?: string | null; + serviceBindingsTableId?: string | null; + serviceBindingsTableName?: string | null; } export interface UpdateResourceModuleInput { clientMutationId?: string; @@ -17559,6 +17615,7 @@ export interface CreateStorageLogModuleInput { privateSchemaId?: string; privateSchemaName?: string; publicSchemaName?: string; + readStorageUsagePeriodFunction?: string; retention?: string; rollupFunctionName?: string; schemaId?: string; @@ -17580,6 +17637,7 @@ export interface StorageLogModulePatch { privateSchemaId?: string | null; privateSchemaName?: string | null; publicSchemaName?: string | null; + readStorageUsagePeriodFunction?: string | null; retention?: string | null; rollupFunctionName?: string | null; schemaId?: string | null; @@ -17619,7 +17677,6 @@ export interface CreateStorageModuleInput { filesTableId?: string; filesTableName?: string; hasAuditLog?: boolean; - hasConfirmUpload?: boolean; hasContentHash?: boolean; hasCustomKeys?: boolean; hasPathShares?: boolean; @@ -17664,7 +17721,6 @@ export interface StorageModulePatch { filesTableId?: string | null; filesTableName?: string | null; hasAuditLog?: boolean | null; - hasConfirmUpload?: boolean | null; hasContentHash?: boolean | null; hasCustomKeys?: boolean | null; hasPathShares?: boolean | null; @@ -18741,11 +18797,13 @@ export interface BlueprintConstructionInput { createdAt?: string; /** The database the blueprint was constructed into. */ databaseId: string; + /** The coded error ({"code", "context", "class"} as raised through errors.raise_error, or {"code": , "message"} for a database error) a failed construction ended with. NULL unless status is failed. */ + error?: Record; /** Unique identifier for this construction attempt. */ id?: string; /** The default schema used for tables that did not specify an explicit schema_name. NULL if not yet resolved. */ schemaId?: string; - /** Execution state of this construction attempt. pending: created but not yet started. constructing: currently executing. constructed: successfully completed. A failed construction raises and rolls back, so it leaves no row. */ + /** Execution state of this construction attempt. pending: enqueued, the blueprint:construct job has not started. constructing: the job is executing. constructed: successfully completed. failed: the job raised; the build rolled back and error carries its coded error. */ status?: string; /** Mapping of table names to created table UUIDs, populated after successful construction. Format: {"products": "uuid", "categories": "uuid", ...}. Defaults to empty object. */ tableMap?: Record; @@ -19165,6 +19223,8 @@ export interface DbUsageModuleInput { queryStatsLogTableName?: string; queryStatsSummaryTableId?: string; queryStatsSummaryTableName?: string; + readDbQueryStatsUsagePeriodFunction?: string; + readDbTableStatsUsagePeriodFunction?: string; retention?: string; rollupDbQueryStatsUsageSummaryFunction?: string; rollupDbTableStatsUsageSummaryFunction?: string; @@ -19211,6 +19271,7 @@ export interface DomainModuleInput { catalogModuleId?: string; databaseId: string; defaultCapabilities?: string[]; + defaultReservedSubdomains?: Record; domainEventsTableId?: string; domainEventsTableName?: string; domainVerificationsTableId?: string; @@ -19229,8 +19290,11 @@ export interface DomainModuleInput { privateSchemaName?: string; provisions?: Record; publicSchemaName?: string; + reservedSubdomainsTableId?: string; + reservedSubdomainsTableName?: string; schemaId?: string; scope: string; + sweepUnverifiedDomainsFunction?: string; } /** An input for mutations affecting `EmailSenderModule` */ export interface EmailSenderModuleInput { @@ -19463,7 +19527,6 @@ export interface EntityTypeProvisionInput { * - has_content_hash (boolean) enable content hash for dedup * - has_custom_keys (boolean) allow client-provided S3 keys * - has_audit_log (boolean) enable file events audit table - * - has_confirm_upload (boolean) enable HeadObject confirmation flow * - confirm_upload_delay (interval) delay before first confirmation attempt * - buckets (jsonb[]) array of initial bucket definitions to seed. * Each bucket: { name (required), description, is_public, allowed_mime_types, max_file_size, allowed_origins } @@ -20507,8 +20570,6 @@ export interface RepositoryModuleInput { /** An input for mutations affecting `ResourceModule` */ export interface ResourceModuleInput { apiName?: string; - builderBindingsTableId?: string; - builderBindingsTableName?: string; databaseId: string; defaultCapabilities?: string[]; entityField?: string; @@ -20546,6 +20607,8 @@ export interface ResourceModuleInput { rollupResourceUsageSummaryFunction?: string; schemaId?: string; scope: string; + serviceBindingsTableId?: string; + serviceBindingsTableName?: string; } /** An input for mutations affecting `RlsModule` */ export interface RlsModuleInput { @@ -20708,6 +20771,7 @@ export interface StorageLogModuleInput { privateSchemaId?: string; privateSchemaName?: string; publicSchemaName?: string; + readStorageUsagePeriodFunction?: string; retention?: string; rollupFunctionName?: string; schemaId?: string; @@ -20737,7 +20801,6 @@ export interface StorageModuleInput { filesTableId?: string; filesTableName?: string; hasAuditLog?: boolean; - hasConfirmUpload?: boolean; hasContentHash?: boolean; hasCustomKeys?: boolean; hasPathShares?: boolean; @@ -20945,6 +21008,8 @@ export interface BlueprintConstructionFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `error` field. */ + error?: JSONFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Negates the expression. */ @@ -21223,6 +21288,8 @@ export interface DomainModuleFilter { databaseId?: UUIDFilter; /** Filter by the object’s `defaultCapabilities` field. */ defaultCapabilities?: StringListFilter; + /** Filter by the object’s `defaultReservedSubdomains` field. */ + defaultReservedSubdomains?: JSONFilter; /** Filter by the object’s `domainEventsTableId` field. */ domainEventsTableId?: UUIDFilter; /** Filter by the object’s `domainEventsTableName` field. */ @@ -21263,6 +21330,10 @@ export interface DomainModuleFilter { provisions?: JSONFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; + /** Filter by the object’s `reservedSubdomainsTableId` field. */ + reservedSubdomainsTableId?: UUIDFilter; + /** Filter by the object’s `reservedSubdomainsTableName` field. */ + reservedSubdomainsTableName?: StringFilter; /** Filter by the object’s `routeModules` relation. */ routeModules?: DomainModuleToManyRouteModuleFilter; /** `routeModules` exist. */ @@ -21271,6 +21342,8 @@ export interface DomainModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; + /** Filter by the object’s `sweepUnverifiedDomainsFunction` field. */ + sweepUnverifiedDomainsFunction?: StringFilter; } /** A filter to be used against `RouteModule` object types. All fields are combined with a logical ‘and.’ */ export interface RouteModuleFilter { @@ -21884,10 +21957,6 @@ export interface ResourceModuleFilter { and?: ResourceModuleFilter[]; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; - /** Filter by the object’s `builderBindingsTableId` field. */ - builderBindingsTableId?: UUIDFilter; - /** Filter by the object’s `builderBindingsTableName` field. */ - builderBindingsTableName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `defaultCapabilities` field. */ @@ -21974,6 +22043,10 @@ export interface ResourceModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; + /** Filter by the object’s `serviceBindingsTableId` field. */ + serviceBindingsTableId?: UUIDFilter; + /** Filter by the object’s `serviceBindingsTableName` field. */ + serviceBindingsTableName?: StringFilter; } /** A filter to be used against `EmailSenderModule` object types. All fields are combined with a logical ‘and.’ */ export interface EmailSenderModuleFilter { @@ -22833,8 +22906,6 @@ export interface StorageModuleFilter { filesTableName?: StringFilter; /** Filter by the object’s `hasAuditLog` field. */ hasAuditLog?: BooleanFilter; - /** Filter by the object’s `hasConfirmUpload` field. */ - hasConfirmUpload?: BooleanFilter; /** Filter by the object’s `hasContentHash` field. */ hasContentHash?: BooleanFilter; /** Filter by the object’s `hasCustomKeys` field. */ diff --git a/sdk/constructive-react/src/modules/orm/mutation/index.ts b/sdk/constructive-react/src/modules/orm/mutation/index.ts index e59de99a2e..26ad9b2410 100644 --- a/sdk/constructive-react/src/modules/orm/mutation/index.ts +++ b/sdk/constructive-react/src/modules/orm/mutation/index.ts @@ -20,7 +20,7 @@ import type { import { connectionFieldsMap } from '../input-types'; /** * Variables for constructBlueprint - * Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). A table entry either names its table (table_name plus optional schema_name) or references one an installed module generated ("module": {"type": "agent", "scope": "org", "table": "message"}), which resolves through the module row's recorded table ids and raises when it matches nothing instead of creating an empty table. After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID. A failure raises its coded error to the caller and rolls back the whole construction, including the construction record. + * Requests a build of a blueprint: snapshots its definition into a pending blueprint_construction row, enqueues the blueprint:construct job that runs metaschema_private.construct_blueprint_run on it, and returns the construction id immediately. Poll the row: pending -> constructing -> constructed (table_map populated) or failed (error holds the coded error). schema_id is the default schema for tables without an explicit schema_name. */ export interface ConstructBlueprintVariables { input: ConstructBlueprintInput; diff --git a/sdk/constructive-react/src/modules/orm/query-builder.ts b/sdk/constructive-react/src/modules/orm/query-builder.ts index fd785bbae6..d6c981907f 100644 --- a/sdk/constructive-react/src/modules/orm/query-builder.ts +++ b/sdk/constructive-react/src/modules/orm/query-builder.ts @@ -140,9 +140,7 @@ export function buildSelections( ); const nestedSelect = nested.select; if (nestedSelect && typeof nestedSelect === 'object') { - const subSelections = Object.entries(nestedSelect) - .filter(([, v]) => v) - .map(([name]) => t.field({ name })); + const subSelections = buildSelections(nestedSelect, connectionFieldsMap); fields.push( t.field({ name: key, diff --git a/sdk/constructive-react/src/modules/orm/select-types.ts b/sdk/constructive-react/src/modules/orm/select-types.ts index 4b39d7e820..783c4603df 100644 --- a/sdk/constructive-react/src/modules/orm/select-types.ts +++ b/sdk/constructive-react/src/modules/orm/select-types.ts @@ -159,9 +159,13 @@ export type InferSelectResult = TSelect extends undefined ? K extends keyof TEntity ? NonNullable extends ConnectionResult ? ConnectionResult> - : - | InferSelectResult, NestedSelect> - | (null extends TEntity[K] ? null : never) + : NonNullable extends readonly (infer Item)[] + ? + | InferSelectResult, NestedSelect>[] + | (null extends TEntity[K] ? null : never) + : + | InferSelectResult, NestedSelect> + | (null extends TEntity[K] ? null : never) : never : K extends keyof TEntity ? TEntity[K] diff --git a/sdk/constructive-react/src/modules/schema-types.ts b/sdk/constructive-react/src/modules/schema-types.ts index 51f5f63ec2..933f60ea0e 100644 --- a/sdk/constructive-react/src/modules/schema-types.ts +++ b/sdk/constructive-react/src/modules/schema-types.ts @@ -534,6 +534,8 @@ export type BlueprintConstructionOrderBy = | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ERROR_ASC' + | 'ERROR_DESC' | 'ID_ASC' | 'ID_DESC' | 'NATURAL' @@ -1254,6 +1256,10 @@ export type DbUsageModuleOrderBy = | 'QUERY_STATS_SUMMARY_TABLE_ID_DESC' | 'QUERY_STATS_SUMMARY_TABLE_NAME_ASC' | 'QUERY_STATS_SUMMARY_TABLE_NAME_DESC' + | 'READ_DB_QUERY_STATS_USAGE_PERIOD_FUNCTION_ASC' + | 'READ_DB_QUERY_STATS_USAGE_PERIOD_FUNCTION_DESC' + | 'READ_DB_TABLE_STATS_USAGE_PERIOD_FUNCTION_ASC' + | 'READ_DB_TABLE_STATS_USAGE_PERIOD_FUNCTION_DESC' | 'RETENTION_ASC' | 'RETENTION_DESC' | 'ROLLUP_DB_QUERY_STATS_USAGE_SUMMARY_FUNCTION_ASC' @@ -1339,6 +1345,8 @@ export type DomainModuleOrderBy = | 'DATABASE_ID_DESC' | 'DEFAULT_CAPABILITIES_ASC' | 'DEFAULT_CAPABILITIES_DESC' + | 'DEFAULT_RESERVED_SUBDOMAINS_ASC' + | 'DEFAULT_RESERVED_SUBDOMAINS_DESC' | 'DOMAINS_TABLE_ID_ASC' | 'DOMAINS_TABLE_ID_DESC' | 'DOMAINS_TABLE_NAME_ASC' @@ -1378,10 +1386,16 @@ export type DomainModuleOrderBy = | 'PROVISIONS_DESC' | 'PUBLIC_SCHEMA_NAME_ASC' | 'PUBLIC_SCHEMA_NAME_DESC' + | 'RESERVED_SUBDOMAINS_TABLE_ID_ASC' + | 'RESERVED_SUBDOMAINS_TABLE_ID_DESC' + | 'RESERVED_SUBDOMAINS_TABLE_NAME_ASC' + | 'RESERVED_SUBDOMAINS_TABLE_NAME_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SCOPE_ASC' - | 'SCOPE_DESC'; + | 'SCOPE_DESC' + | 'SWEEP_UNVERIFIED_DOMAINS_FUNCTION_ASC' + | 'SWEEP_UNVERIFIED_DOMAINS_FUNCTION_DESC'; /** Methods to use when ordering `EmailSenderModule`. */ export type EmailSenderModuleOrderBy = | 'API_NAME_ASC' @@ -3275,10 +3289,6 @@ export type RepositoryModuleOrderBy = export type ResourceModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' - | 'BUILDER_BINDINGS_TABLE_ID_ASC' - | 'BUILDER_BINDINGS_TABLE_ID_DESC' - | 'BUILDER_BINDINGS_TABLE_NAME_ASC' - | 'BUILDER_BINDINGS_TABLE_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DEFAULT_CAPABILITIES_ASC' @@ -3355,7 +3365,11 @@ export type ResourceModuleOrderBy = | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SCOPE_ASC' - | 'SCOPE_DESC'; + | 'SCOPE_DESC' + | 'SERVICE_BINDINGS_TABLE_ID_ASC' + | 'SERVICE_BINDINGS_TABLE_ID_DESC' + | 'SERVICE_BINDINGS_TABLE_NAME_ASC' + | 'SERVICE_BINDINGS_TABLE_NAME_DESC'; /** Methods to use when ordering `RlsModule`. */ export type RlsModuleOrderBy = | 'API_NAME_ASC' @@ -3644,6 +3658,8 @@ export type StorageLogModuleOrderBy = | 'PRIVATE_SCHEMA_NAME_DESC' | 'PUBLIC_SCHEMA_NAME_ASC' | 'PUBLIC_SCHEMA_NAME_DESC' + | 'READ_STORAGE_USAGE_PERIOD_FUNCTION_ASC' + | 'READ_STORAGE_USAGE_PERIOD_FUNCTION_DESC' | 'RETENTION_ASC' | 'RETENTION_DESC' | 'ROLLUP_FUNCTION_NAME_ASC' @@ -3698,8 +3714,6 @@ export type StorageModuleOrderBy = | 'FILE_EVENTS_TABLE_ID_DESC' | 'HAS_AUDIT_LOG_ASC' | 'HAS_AUDIT_LOG_DESC' - | 'HAS_CONFIRM_UPLOAD_ASC' - | 'HAS_CONFIRM_UPLOAD_DESC' | 'HAS_CONTENT_HASH_ASC' | 'HAS_CONTENT_HASH_DESC' | 'HAS_CUSTOM_KEYS_ASC' @@ -4942,6 +4956,8 @@ export interface BlueprintConstructionFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `error` field. */ + error?: JSONFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Negates the expression. */ @@ -4969,11 +4985,13 @@ export interface BlueprintConstructionInput { createdAt?: string; /** The database the blueprint was constructed into. */ databaseId: string; + /** The coded error ({"code", "context", "class"} as raised through errors.raise_error, or {"code": , "message"} for a database error) a failed construction ended with. NULL unless status is failed. */ + error?: unknown; /** Unique identifier for this construction attempt. */ id?: string; /** The default schema used for tables that did not specify an explicit schema_name. NULL if not yet resolved. */ schemaId?: string; - /** Execution state of this construction attempt. pending: created but not yet started. constructing: currently executing. constructed: successfully completed. A failed construction raises and rolls back, so it leaves no row. */ + /** Execution state of this construction attempt. pending: enqueued, the blueprint:construct job has not started. constructing: the job is executing. constructed: successfully completed. failed: the job raised; the build rolled back and error carries its coded error. */ status?: string; /** Mapping of table names to created table UUIDs, populated after successful construction. Format: {"products": "uuid", "categories": "uuid", ...}. Defaults to empty object. */ tableMap?: unknown; @@ -4992,11 +5010,13 @@ export interface BlueprintConstructionPatch { createdAt?: string; /** The database the blueprint was constructed into. */ databaseId?: string; + /** The coded error ({"code", "context", "class"} as raised through errors.raise_error, or {"code": , "message"} for a database error) a failed construction ended with. NULL unless status is failed. */ + error?: unknown; /** Unique identifier for this construction attempt. */ id?: string; /** The default schema used for tables that did not specify an explicit schema_name. NULL if not yet resolved. */ schemaId?: string; - /** Execution state of this construction attempt. pending: created but not yet started. constructing: currently executing. constructed: successfully completed. A failed construction raises and rolls back, so it leaves no row. */ + /** Execution state of this construction attempt. pending: enqueued, the blueprint:construct job has not started. constructing: the job is executing. constructed: successfully completed. failed: the job raised; the build rolled back and error carries its coded error. */ status?: string; /** Mapping of table names to created table UUIDs, populated after successful construction. Format: {"products": "uuid", "categories": "uuid", ...}. Defaults to empty object. */ tableMap?: unknown; @@ -7163,6 +7183,10 @@ export interface DbUsageModuleFilter { queryStatsSummaryTableId?: UUIDFilter; /** Filter by the object’s `queryStatsSummaryTableName` field. */ queryStatsSummaryTableName?: StringFilter; + /** Filter by the object’s `readDbQueryStatsUsagePeriodFunction` field. */ + readDbQueryStatsUsagePeriodFunction?: StringFilter; + /** Filter by the object’s `readDbTableStatsUsagePeriodFunction` field. */ + readDbTableStatsUsagePeriodFunction?: StringFilter; /** Filter by the object’s `retention` field. */ retention?: StringFilter; /** Filter by the object’s `rollupDbQueryStatsUsageSummaryFunction` field. */ @@ -7202,6 +7226,8 @@ export interface DbUsageModuleInput { queryStatsLogTableName?: string; queryStatsSummaryTableId?: string; queryStatsSummaryTableName?: string; + readDbQueryStatsUsagePeriodFunction?: string; + readDbTableStatsUsagePeriodFunction?: string; retention?: string; rollupDbQueryStatsUsageSummaryFunction?: string; rollupDbTableStatsUsageSummaryFunction?: string; @@ -7232,6 +7258,8 @@ export interface DbUsageModulePatch { queryStatsLogTableName?: string; queryStatsSummaryTableId?: string; queryStatsSummaryTableName?: string; + readDbQueryStatsUsagePeriodFunction?: string; + readDbTableStatsUsagePeriodFunction?: string; retention?: string; rollupDbQueryStatsUsageSummaryFunction?: string; rollupDbTableStatsUsageSummaryFunction?: string; @@ -7745,6 +7773,8 @@ export interface DomainModuleFilter { databaseId?: UUIDFilter; /** Filter by the object’s `defaultCapabilities` field. */ defaultCapabilities?: StringListFilter; + /** Filter by the object’s `defaultReservedSubdomains` field. */ + defaultReservedSubdomains?: JSONFilter; /** Filter by the object’s `domainEventsTableId` field. */ domainEventsTableId?: UUIDFilter; /** Filter by the object’s `domainEventsTableName` field. */ @@ -7785,6 +7815,10 @@ export interface DomainModuleFilter { provisions?: JSONFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; + /** Filter by the object’s `reservedSubdomainsTableId` field. */ + reservedSubdomainsTableId?: UUIDFilter; + /** Filter by the object’s `reservedSubdomainsTableName` field. */ + reservedSubdomainsTableName?: StringFilter; /** Filter by the object’s `routeModules` relation. */ routeModules?: DomainModuleToManyRouteModuleFilter; /** `routeModules` exist. */ @@ -7793,6 +7827,8 @@ export interface DomainModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; + /** Filter by the object’s `sweepUnverifiedDomainsFunction` field. */ + sweepUnverifiedDomainsFunction?: StringFilter; } /** An input for mutations affecting `DomainModule` */ export interface DomainModuleInput { @@ -7800,6 +7836,7 @@ export interface DomainModuleInput { catalogModuleId?: string; databaseId: string; defaultCapabilities?: string[]; + defaultReservedSubdomains?: unknown; domainEventsTableId?: string; domainEventsTableName?: string; domainVerificationsTableId?: string; @@ -7818,8 +7855,11 @@ export interface DomainModuleInput { privateSchemaName?: string; provisions?: unknown; publicSchemaName?: string; + reservedSubdomainsTableId?: string; + reservedSubdomainsTableName?: string; schemaId?: string; scope: string; + sweepUnverifiedDomainsFunction?: string; } /** Represents an update to a `DomainModule`. Fields that are set will be updated. */ export interface DomainModulePatch { @@ -7827,6 +7867,7 @@ export interface DomainModulePatch { catalogModuleId?: string; databaseId?: string; defaultCapabilities?: string[]; + defaultReservedSubdomains?: unknown; domainEventsTableId?: string; domainEventsTableName?: string; domainVerificationsTableId?: string; @@ -7845,8 +7886,11 @@ export interface DomainModulePatch { privateSchemaName?: string; provisions?: unknown; publicSchemaName?: string; + reservedSubdomainsTableId?: string; + reservedSubdomainsTableName?: string; schemaId?: string; scope?: string; + sweepUnverifiedDomainsFunction?: string; } /** A filter to be used against many `RouteModule` object types. All fields are combined with a logical ‘and.’ */ export interface DomainModuleToManyRouteModuleFilter { @@ -8282,7 +8326,6 @@ export interface EntityTypeProvisionInput { * - has_content_hash (boolean) enable content hash for dedup * - has_custom_keys (boolean) allow client-provided S3 keys * - has_audit_log (boolean) enable file events audit table - * - has_confirm_upload (boolean) enable HeadObject confirmation flow * - confirm_upload_delay (interval) delay before first confirmation attempt * - buckets (jsonb[]) array of initial bucket definitions to seed. * Each bucket: { name (required), description, is_public, allowed_mime_types, max_file_size, allowed_origins } @@ -8529,7 +8572,6 @@ export interface EntityTypeProvisionPatch { * - has_content_hash (boolean) enable content hash for dedup * - has_custom_keys (boolean) allow client-provided S3 keys * - has_audit_log (boolean) enable file events audit table - * - has_confirm_upload (boolean) enable HeadObject confirmation flow * - confirm_upload_delay (interval) delay before first confirmation attempt * - buckets (jsonb[]) array of initial bucket definitions to seed. * Each bucket: { name (required), description, is_public, allowed_mime_types, max_file_size, allowed_origins } @@ -12760,10 +12802,6 @@ export interface ResourceModuleFilter { and?: ResourceModuleFilter[]; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; - /** Filter by the object’s `builderBindingsTableId` field. */ - builderBindingsTableId?: UUIDFilter; - /** Filter by the object’s `builderBindingsTableName` field. */ - builderBindingsTableName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `defaultCapabilities` field. */ @@ -12850,12 +12888,14 @@ export interface ResourceModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; + /** Filter by the object’s `serviceBindingsTableId` field. */ + serviceBindingsTableId?: UUIDFilter; + /** Filter by the object’s `serviceBindingsTableName` field. */ + serviceBindingsTableName?: StringFilter; } /** An input for mutations affecting `ResourceModule` */ export interface ResourceModuleInput { apiName?: string; - builderBindingsTableId?: string; - builderBindingsTableName?: string; databaseId: string; defaultCapabilities?: string[]; entityField?: string; @@ -12893,12 +12933,12 @@ export interface ResourceModuleInput { rollupResourceUsageSummaryFunction?: string; schemaId?: string; scope: string; + serviceBindingsTableId?: string; + serviceBindingsTableName?: string; } /** Represents an update to a `ResourceModule`. Fields that are set will be updated. */ export interface ResourceModulePatch { apiName?: string; - builderBindingsTableId?: string; - builderBindingsTableName?: string; databaseId?: string; defaultCapabilities?: string[]; entityField?: string; @@ -12936,6 +12976,8 @@ export interface ResourceModulePatch { rollupResourceUsageSummaryFunction?: string; schemaId?: string; scope?: string; + serviceBindingsTableId?: string; + serviceBindingsTableName?: string; } /** A filter to be used against `RlsModule` object types. All fields are combined with a logical ‘and.’ */ export interface RlsModuleFilter { @@ -13590,6 +13632,8 @@ export interface StorageLogModuleFilter { privateSchemaName?: StringFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; + /** Filter by the object’s `readStorageUsagePeriodFunction` field. */ + readStorageUsagePeriodFunction?: StringFilter; /** Filter by the object’s `retention` field. */ retention?: StringFilter; /** Filter by the object’s `rollupFunctionName` field. */ @@ -13620,6 +13664,7 @@ export interface StorageLogModuleInput { privateSchemaId?: string; privateSchemaName?: string; publicSchemaName?: string; + readStorageUsagePeriodFunction?: string; retention?: string; rollupFunctionName?: string; schemaId?: string; @@ -13642,6 +13687,7 @@ export interface StorageLogModulePatch { privateSchemaId?: string; privateSchemaName?: string; publicSchemaName?: string; + readStorageUsagePeriodFunction?: string; retention?: string; rollupFunctionName?: string; schemaId?: string; @@ -13695,8 +13741,6 @@ export interface StorageModuleFilter { filesTableName?: StringFilter; /** Filter by the object’s `hasAuditLog` field. */ hasAuditLog?: BooleanFilter; - /** Filter by the object’s `hasConfirmUpload` field. */ - hasConfirmUpload?: BooleanFilter; /** Filter by the object’s `hasContentHash` field. */ hasContentHash?: BooleanFilter; /** Filter by the object’s `hasCustomKeys` field. */ @@ -13770,7 +13814,6 @@ export interface StorageModuleInput { filesTableId?: string; filesTableName?: string; hasAuditLog?: boolean; - hasConfirmUpload?: boolean; hasContentHash?: boolean; hasCustomKeys?: boolean; hasPathShares?: boolean; @@ -13816,7 +13859,6 @@ export interface StorageModulePatch { filesTableId?: string; filesTableName?: string; hasAuditLog?: boolean; - hasConfirmUpload?: boolean; hasContentHash?: boolean; hasCustomKeys?: boolean; hasPathShares?: boolean; @@ -17317,21 +17359,27 @@ export interface UpdateWebhookModulePayload { /** Information about a database table */ export interface MetaTable { constraints: MetaConstraints; + /** Description written for this table, or null */ + description?: string | null; fields: MetaField[]; foreignKeyConstraints: MetaForeignKeyConstraint[]; - /** i18n metadata (null if no @i18n tag) */ + /** i18n metadata (null if the table is not translatable) */ i18n?: MetaI18n | null; indexes: MetaIndex[]; inflection: MetaInflection; + /** Whether this table only links rows of two other tables; the link appears in their manyToMany relations */ + isJunction: boolean; + /** 'table' when rows are stored in this table, 'view' when they come from a view of other tables */ + kind: string; /** Final GraphQL output type name */ name: string; primaryKeyConstraints: MetaPrimaryKeyConstraint[]; query: MetaQuery; - /** Realtime metadata (null if no @realtime tag) */ + /** Realtime metadata (null if the table has no change subscriptions) */ realtime?: MetaRealtime | null; relations: MetaRelations; schemaName: string; - /** Provisioning scope metadata (null if no @scope tag) */ + /** Provisioning scope metadata (null if the table has no scope) */ scope?: MetaScope | null; /** Search metadata (null if no search configured) */ search?: MetaSearch | null; @@ -17888,15 +17936,27 @@ export interface MetaConstraints { } /** Information about a table field/column */ export interface MetaField { + /** Values this field accepts, when the set is fixed; null otherwise. Set on a table's own fields only. */ + allowedValues?: string[] | null; /** PostgreSQL column name */ columnName: string; description?: string | null; /** Enum metadata if this field has an enum type */ enumValues?: MetaEnum | null; + /** Set when the field holds files; null otherwise. Set on a table's own fields only. */ + file?: MetaFileField | null; hasDefault: boolean; + /** Whether the value is always computed and cannot be written, even when a create or update input offers the field. Set on a table's own fields only. */ + isComputed?: boolean | null; isForeignKey: boolean; isNotNull: boolean; isPrimaryKey: boolean; + /** Whether a create must provide this field. Set on a table's own fields only. */ + isRequiredOnCreate?: boolean | null; + /** Whether a create may set this field. Set on a table's own fields only. */ + isWritableOnCreate?: boolean | null; + /** Whether an update may change this field. Set on a table's own fields only. */ + isWritableOnUpdate?: boolean | null; /** Final GraphQL field name */ name: string; type: MetaType; @@ -17910,7 +17970,7 @@ export interface MetaForeignKeyConstraint { referencedFields: string[]; referencedTable: string; } -/** i18n metadata for a table with @i18n tag */ +/** i18n metadata for a translatable table */ export interface MetaI18n { /** Fields that are translatable */ translatableFields: MetaI18nField[]; @@ -17925,7 +17985,7 @@ export interface MetaIndex { isUnique: boolean; name: string; } -/** Table inflection names */ +/** Type and field names generated for this table */ export interface MetaInflection { allRows: string; conditionType: string; @@ -17953,7 +18013,7 @@ export interface MetaQuery { one?: string | null; update?: string | null; } -/** Realtime metadata for a table with @realtime tag */ +/** Realtime metadata for a table with change subscriptions */ export interface MetaRealtime { /** The generated subscription field name (e.g. onPostChanged) */ subscriptionFieldName: string; @@ -17968,13 +18028,13 @@ export interface MetaRelations { } /** Provisioning scope metadata for a table */ export interface MetaScope { - /** SQL name of the entity table for entity scopes, else null */ + /** Name of the entity table for entity scopes, else null */ entityTable?: string | null; - /** Inflected scope key column (e.g. databaseId, orgId), null for global tiers */ + /** Field name of the scope key (e.g. databaseId, orgId), null for global tiers */ keyColumn?: string | null; /** Provisioning scope: 'platform', 'app', 'database', or an entity scope (e.g. 'org') */ scope: string; - /** Provenance of the scope metadata (always 'smartTag') */ + /** Where this scope metadata comes from */ source: string; /** Coarse bucket: 'global', 'database', or 'entity' */ tier: string; @@ -17992,17 +18052,17 @@ export interface MetaSearch { } /** Storage metadata for a table */ export interface MetaStorage { - /** GraphQL type name of the plane's buckets table */ + /** GraphQL type name of the paired buckets table */ bucketsType: string; /** Computed download-URL field on the files type; null on the buckets side */ downloadUrlField?: string | null; - /** GraphQL type name of the plane's files table */ + /** GraphQL type name of the paired files table */ filesType: string; /** Whether this table is a storage buckets table */ isBucketsTable: boolean; /** Whether this table is a storage files table */ isFilesTable: boolean; - /** The plane's GraphQL upload surface */ + /** Upload mutations and types for this storage */ upload: MetaStorageUpload; } /** Information about a unique constraint */ @@ -18017,6 +18077,15 @@ export interface MetaEnum { /** Allowed values for this enum */ values: string[]; } +/** How a field holds files */ +export interface MetaFileField { + /** GraphQL type name of the files table uploads are recorded in, when this API has exactly one; null otherwise */ + filesType?: string | null; + /** Whether the field holds a list of files */ + isMultiple: boolean; + /** image, upload, or attachment. An image or upload holds a file document; an attachment holds a link to a file. */ + kind: string; +} /** Information about a PostgreSQL type */ export interface MetaType { /** Scalar serialization contract (null for plain scalars) */ @@ -18025,7 +18094,13 @@ export interface MetaType { hasDefault?: boolean | null; isArray: boolean; isNotNull?: boolean | null; + /** Most characters a text value may hold, or most bits a bit string may hold; for a list, each item. Null when unbounded. */ + maxLength?: number | null; pgType: string; + /** Most significant digits a decimal number may hold. Null when unbounded. */ + precision?: number | null; + /** Digits a decimal number keeps after the decimal point. Null when unbounded. */ + scale?: number | null; subtype?: string | null; } /** Reference to a related table */ @@ -18044,6 +18119,8 @@ export interface MetaBelongsToRelation { fieldName?: string | null; isUnique: boolean; keys: MetaField[]; + /** Fields on the referenced table that keys point at, in the same order as keys */ + refKeys: MetaField[]; references: MetaRefTable; type?: string | null; } @@ -18053,6 +18130,8 @@ export interface MetaHasRelation { isUnique: boolean; keys: MetaField[]; referencedBy: MetaRefTable; + /** Fields on the related table that point at this table, in the same order as keys */ + remoteKeys: MetaField[]; type?: string | null; } /** A many-to-many relation via junction table */ @@ -18075,7 +18154,7 @@ export interface MetaSearchColumn { /** Column name (camelCase) */ name: string; } -/** Per-table search configuration from @searchConfig smart tag */ +/** Per-table search configuration */ export interface MetaSearchConfig { /** Exponential decay factor per day */ boostRecencyDecay?: number | null; @@ -18086,7 +18165,7 @@ export interface MetaSearchConfig { /** JSON-encoded per-adapter score weights */ weights?: string | null; } -/** The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from */ +/** The upload mutations and types for a storage table pair */ export interface MetaStorageUpload { /** Per-file input type inside the bulk input */ bulkFileInputType: string; @@ -18104,14 +18183,14 @@ export interface MetaStorageUpload { mutation: string; /** Payload type of the single upload mutation */ payloadType: string; - /** Whether the upload input requires ownerId (entity-keyed plane) */ + /** Whether the upload input requires ownerId */ requiresOwnerId: boolean; } -/** How a client must serialize/parse a scalar — the one field-type detail standard GraphQL introspection cannot describe. Null for plain scalars whose wire format is obvious from gqlType. */ +/** How a client must serialize and parse a scalar whose wire format gqlType alone does not settle. Null for plain scalars whose wire format is obvious from gqlType. */ export interface MetaScalarEncoding { /** For 'vector': declared length, else null. */ dimensions?: number | null; - /** For 'ltree': values are dot-separated path strings. */ + /** For 'ltree': true when values are dot-separated paths ('a.b.c'), false when they are slash-separated paths ('/a/b/c'). */ dotPath?: boolean | null; /** For 'vector': element scalar (e.g. 'float'). */ elementType?: string | null; diff --git a/sdk/constructive-react/src/modules/types.ts b/sdk/constructive-react/src/modules/types.ts index 7f47bb07b1..da4820be5a 100644 --- a/sdk/constructive-react/src/modules/types.ts +++ b/sdk/constructive-react/src/modules/types.ts @@ -226,6 +226,7 @@ export interface BlueprintConstruction { constructedDefinition: unknown | null; createdAt: string | null; databaseId: string | null; + error: unknown | null; id: string | null; schemaId: string | null; status: string | null; @@ -562,6 +563,8 @@ export interface DbUsageModule { queryStatsLogTableName: string | null; queryStatsSummaryTableId: string | null; queryStatsSummaryTableName: string | null; + readDbQueryStatsUsagePeriodFunction: string | null; + readDbTableStatsUsagePeriodFunction: string | null; retention: string | null; rollupDbQueryStatsUsageSummaryFunction: string | null; rollupDbTableStatsUsageSummaryFunction: string | null; @@ -604,6 +607,7 @@ export interface DomainModule { catalogModuleId: string | null; databaseId: string | null; defaultCapabilities: string[] | null; + defaultReservedSubdomains: unknown | null; domainEventsTableId: string | null; domainEventsTableName: string | null; domainVerificationsTableId: string | null; @@ -622,8 +626,11 @@ export interface DomainModule { privateSchemaName: string | null; provisions: unknown | null; publicSchemaName: string | null; + reservedSubdomainsTableId: string | null; + reservedSubdomainsTableName: string | null; schemaId: string | null; scope: string | null; + sweepUnverifiedDomainsFunction: string | null; } export interface EmailSenderModule { apiName: string | null; @@ -1551,8 +1558,6 @@ export interface RepositoryModule { } export interface ResourceModule { apiName: string | null; - builderBindingsTableId: string | null; - builderBindingsTableName: string | null; databaseId: string | null; defaultCapabilities: string[] | null; entityField: string | null; @@ -1590,6 +1595,8 @@ export interface ResourceModule { rollupResourceUsageSummaryFunction: string | null; schemaId: string | null; scope: string | null; + serviceBindingsTableId: string | null; + serviceBindingsTableName: string | null; } export interface RlsModule { apiName: string | null; @@ -1730,6 +1737,7 @@ export interface StorageLogModule { privateSchemaId: string | null; privateSchemaName: string | null; publicSchemaName: string | null; + readStorageUsagePeriodFunction: string | null; retention: string | null; rollupFunctionName: string | null; schemaId: string | null; @@ -1758,7 +1766,6 @@ export interface StorageModule { filesTableId: string | null; filesTableName: string | null; hasAuditLog: boolean | null; - hasConfirmUpload: boolean | null; hasContentHash: boolean | null; hasCustomKeys: boolean | null; hasPathShares: boolean | null; diff --git a/sdk/constructive-react/src/objects/hooks/README.md b/sdk/constructive-react/src/objects/hooks/README.md index 54fa125ed7..681f7d8b69 100644 --- a/sdk/constructive-react/src/objects/hooks/README.md +++ b/sdk/constructive-react/src/objects/hooks/README.md @@ -38,7 +38,6 @@ function App() { | `useUpdateCommitMutation` | Mutation | Commit history — each commit snapshots a tree root for a store | | `useDeleteCommitMutation` | Mutation | Commit history — each commit snapshots a tree root for a store | | `useGetAllTreeNodesQuery` | Query | List all getAllTreeNodes | -| `useCreateGetAllTreeNodesRecordMutation` | Mutation | Create a getAllTreeNodesRecord | | `useObjectsQuery` | Query | Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children | | `useObjectQuery` | Query | Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children | | `useCreateObjectMutation` | Mutation | Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children | @@ -98,11 +97,6 @@ const { data, isLoading } = useGetAllTreeNodesQuery({ selection: { fields: { data: true, path: true } }, }); -// Create a getAllTreeNodesRecord -const { mutate: create } = useCreateGetAllTreeNodesRecordMutation({ - selection: { fields: { id: true } }, -}); -create({ data: '', path: '' }); ``` ### Object diff --git a/sdk/constructive-react/src/objects/hooks/mutations/index.ts b/sdk/constructive-react/src/objects/hooks/mutations/index.ts index 6f5d50802d..7a612f46c3 100644 --- a/sdk/constructive-react/src/objects/hooks/mutations/index.ts +++ b/sdk/constructive-react/src/objects/hooks/mutations/index.ts @@ -6,7 +6,6 @@ export * from './useCreateCommitMutation'; export * from './useUpdateCommitMutation'; export * from './useDeleteCommitMutation'; -export * from './useCreateGetAllTreeNodesRecordMutation'; export * from './useCreateObjectMutation'; export * from './useUpdateObjectMutation'; export * from './useDeleteObjectMutation'; diff --git a/sdk/constructive-react/src/objects/hooks/mutations/useCreateGetAllTreeNodesRecordMutation.ts b/sdk/constructive-react/src/objects/hooks/mutations/useCreateGetAllTreeNodesRecordMutation.ts deleted file mode 100644 index 5a0447b6b9..0000000000 --- a/sdk/constructive-react/src/objects/hooks/mutations/useCreateGetAllTreeNodesRecordMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Create mutation hook for GetAllTreeNodesRecord - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { getAllTreeNodesRecordKeys } from '../query-keys'; -import { getAllTreeNodesRecordMutationKeys } from '../mutation-keys'; -import type { - GetAllTreeNodesRecordSelect, - GetAllTreeNodesRecordWithRelations, - CreateGetAllTreeNodesRecordInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - GetAllTreeNodesRecordSelect, - GetAllTreeNodesRecordWithRelations, - CreateGetAllTreeNodesRecordInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a GetAllTreeNodesRecord - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateGetAllTreeNodesRecordMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateGetAllTreeNodesRecordMutation( - params: { - selection: { - fields: S & GetAllTreeNodesRecordSelect; - } & HookStrictSelect, GetAllTreeNodesRecordSelect>; - } & Omit< - UseMutationOptions< - { - createGetAllTreeNodesRecord: { - getAllTreeNodesRecord: InferSelectResult; - }; - }, - Error, - CreateGetAllTreeNodesRecordInput['getAllTreeNodesRecord'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createGetAllTreeNodesRecord: { - getAllTreeNodesRecord: InferSelectResult; - }; - }, - Error, - CreateGetAllTreeNodesRecordInput['getAllTreeNodesRecord'] ->; -export function useCreateGetAllTreeNodesRecordMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: getAllTreeNodesRecordMutationKeys.create(), - mutationFn: (data: CreateGetAllTreeNodesRecordInput['getAllTreeNodesRecord']) => - getClient() - .getAllTreeNodesRecord.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: getAllTreeNodesRecordKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/objects/orm/README.md b/sdk/constructive-react/src/objects/orm/README.md index 866cd6f1ef..f5b1e0ead1 100644 --- a/sdk/constructive-react/src/objects/orm/README.md +++ b/sdk/constructive-react/src/objects/orm/README.md @@ -22,7 +22,7 @@ const db = createClient({ | Model | Operations | |-------|------------| | `commit` | findMany, findOne, create, update, delete | -| `getAllTreeNodesRecord` | findMany, findOne, create, update, delete | +| `getAllTreeNodesRecord` | findMany, findOne, update, delete | | `object` | findMany, findOne, create, update, delete | | `ref` | findMany, findOne, create, update, delete | | `store` | findMany, findOne, create, update, delete | @@ -86,9 +86,6 @@ const items = await db.getAllTreeNodesRecord.findMany({ select: { data: true, pa // Get one by id const item = await db.getAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: true } }).execute(); -// Create -const created = await db.getAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); - // Update const updated = await db.getAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); diff --git a/sdk/constructive-react/src/objects/orm/input-types.ts b/sdk/constructive-react/src/objects/orm/input-types.ts index fbe09b35cb..faa72ecfe0 100644 --- a/sdk/constructive-react/src/objects/orm/input-types.ts +++ b/sdk/constructive-react/src/objects/orm/input-types.ts @@ -558,13 +558,6 @@ export interface DeleteCommitInput { clientMutationId?: string; id: string; } -export interface CreateGetAllTreeNodesRecordInput { - clientMutationId?: string; - getAllTreeNodesRecord: { - data?: Record; - path?: string[]; - }; -} export interface GetAllTreeNodesRecordPatch { data?: Record | null; path?: string[] | null; diff --git a/sdk/constructive-react/src/objects/orm/models/getAllTreeNodesRecord.ts b/sdk/constructive-react/src/objects/orm/models/getAllTreeNodesRecord.ts index 00f51d01f7..275a902f66 100644 --- a/sdk/constructive-react/src/objects/orm/models/getAllTreeNodesRecord.ts +++ b/sdk/constructive-react/src/objects/orm/models/getAllTreeNodesRecord.ts @@ -29,7 +29,6 @@ import type { GetAllTreeNodesRecordSelect, GetAllTreeNodesRecordFilter, GetAllTreeNodesRecordsOrderBy, - CreateGetAllTreeNodesRecordInput, UpdateGetAllTreeNodesRecordInput, GetAllTreeNodesRecordPatch, } from '../input-types'; @@ -104,31 +103,4 @@ export class GetAllTreeNodesRecordModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createGetAllTreeNodesRecord: { - getAllTreeNodesRecord: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'GetAllTreeNodesRecord', - 'createGetAllTreeNodesRecord', - 'getAllTreeNodesRecord', - args.select, - args.data, - 'CreateGetAllTreeNodesRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'GetAllTreeNodesRecord', - fieldName: 'createGetAllTreeNodesRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/objects/orm/query-builder.ts b/sdk/constructive-react/src/objects/orm/query-builder.ts index fd785bbae6..d6c981907f 100644 --- a/sdk/constructive-react/src/objects/orm/query-builder.ts +++ b/sdk/constructive-react/src/objects/orm/query-builder.ts @@ -140,9 +140,7 @@ export function buildSelections( ); const nestedSelect = nested.select; if (nestedSelect && typeof nestedSelect === 'object') { - const subSelections = Object.entries(nestedSelect) - .filter(([, v]) => v) - .map(([name]) => t.field({ name })); + const subSelections = buildSelections(nestedSelect, connectionFieldsMap); fields.push( t.field({ name: key, diff --git a/sdk/constructive-react/src/objects/orm/select-types.ts b/sdk/constructive-react/src/objects/orm/select-types.ts index 4b39d7e820..783c4603df 100644 --- a/sdk/constructive-react/src/objects/orm/select-types.ts +++ b/sdk/constructive-react/src/objects/orm/select-types.ts @@ -159,9 +159,13 @@ export type InferSelectResult = TSelect extends undefined ? K extends keyof TEntity ? NonNullable extends ConnectionResult ? ConnectionResult> - : - | InferSelectResult, NestedSelect> - | (null extends TEntity[K] ? null : never) + : NonNullable extends readonly (infer Item)[] + ? + | InferSelectResult, NestedSelect>[] + | (null extends TEntity[K] ? null : never) + : + | InferSelectResult, NestedSelect> + | (null extends TEntity[K] ? null : never) : never : K extends keyof TEntity ? TEntity[K] diff --git a/sdk/constructive-react/src/objects/schema-types.ts b/sdk/constructive-react/src/objects/schema-types.ts index d5780ec824..b80f360e8f 100644 --- a/sdk/constructive-react/src/objects/schema-types.ts +++ b/sdk/constructive-react/src/objects/schema-types.ts @@ -594,21 +594,27 @@ export interface UpdateStorePayload { /** Information about a database table */ export interface MetaTable { constraints: MetaConstraints; + /** Description written for this table, or null */ + description?: string | null; fields: MetaField[]; foreignKeyConstraints: MetaForeignKeyConstraint[]; - /** i18n metadata (null if no @i18n tag) */ + /** i18n metadata (null if the table is not translatable) */ i18n?: MetaI18n | null; indexes: MetaIndex[]; inflection: MetaInflection; + /** Whether this table only links rows of two other tables; the link appears in their manyToMany relations */ + isJunction: boolean; + /** 'table' when rows are stored in this table, 'view' when they come from a view of other tables */ + kind: string; /** Final GraphQL output type name */ name: string; primaryKeyConstraints: MetaPrimaryKeyConstraint[]; query: MetaQuery; - /** Realtime metadata (null if no @realtime tag) */ + /** Realtime metadata (null if the table has no change subscriptions) */ realtime?: MetaRealtime | null; relations: MetaRelations; schemaName: string; - /** Provisioning scope metadata (null if no @scope tag) */ + /** Provisioning scope metadata (null if the table has no scope) */ scope?: MetaScope | null; /** Search metadata (null if no search configured) */ search?: MetaSearch | null; @@ -667,15 +673,27 @@ export interface MetaConstraints { } /** Information about a table field/column */ export interface MetaField { + /** Values this field accepts, when the set is fixed; null otherwise. Set on a table's own fields only. */ + allowedValues?: string[] | null; /** PostgreSQL column name */ columnName: string; description?: string | null; /** Enum metadata if this field has an enum type */ enumValues?: MetaEnum | null; + /** Set when the field holds files; null otherwise. Set on a table's own fields only. */ + file?: MetaFileField | null; hasDefault: boolean; + /** Whether the value is always computed and cannot be written, even when a create or update input offers the field. Set on a table's own fields only. */ + isComputed?: boolean | null; isForeignKey: boolean; isNotNull: boolean; isPrimaryKey: boolean; + /** Whether a create must provide this field. Set on a table's own fields only. */ + isRequiredOnCreate?: boolean | null; + /** Whether a create may set this field. Set on a table's own fields only. */ + isWritableOnCreate?: boolean | null; + /** Whether an update may change this field. Set on a table's own fields only. */ + isWritableOnUpdate?: boolean | null; /** Final GraphQL field name */ name: string; type: MetaType; @@ -689,7 +707,7 @@ export interface MetaForeignKeyConstraint { referencedFields: string[]; referencedTable: string; } -/** i18n metadata for a table with @i18n tag */ +/** i18n metadata for a translatable table */ export interface MetaI18n { /** Fields that are translatable */ translatableFields: MetaI18nField[]; @@ -704,7 +722,7 @@ export interface MetaIndex { isUnique: boolean; name: string; } -/** Table inflection names */ +/** Type and field names generated for this table */ export interface MetaInflection { allRows: string; conditionType: string; @@ -732,7 +750,7 @@ export interface MetaQuery { one?: string | null; update?: string | null; } -/** Realtime metadata for a table with @realtime tag */ +/** Realtime metadata for a table with change subscriptions */ export interface MetaRealtime { /** The generated subscription field name (e.g. onPostChanged) */ subscriptionFieldName: string; @@ -747,13 +765,13 @@ export interface MetaRelations { } /** Provisioning scope metadata for a table */ export interface MetaScope { - /** SQL name of the entity table for entity scopes, else null */ + /** Name of the entity table for entity scopes, else null */ entityTable?: string | null; - /** Inflected scope key column (e.g. databaseId, orgId), null for global tiers */ + /** Field name of the scope key (e.g. databaseId, orgId), null for global tiers */ keyColumn?: string | null; /** Provisioning scope: 'platform', 'app', 'database', or an entity scope (e.g. 'org') */ scope: string; - /** Provenance of the scope metadata (always 'smartTag') */ + /** Where this scope metadata comes from */ source: string; /** Coarse bucket: 'global', 'database', or 'entity' */ tier: string; @@ -771,17 +789,17 @@ export interface MetaSearch { } /** Storage metadata for a table */ export interface MetaStorage { - /** GraphQL type name of the plane's buckets table */ + /** GraphQL type name of the paired buckets table */ bucketsType: string; /** Computed download-URL field on the files type; null on the buckets side */ downloadUrlField?: string | null; - /** GraphQL type name of the plane's files table */ + /** GraphQL type name of the paired files table */ filesType: string; /** Whether this table is a storage buckets table */ isBucketsTable: boolean; /** Whether this table is a storage files table */ isFilesTable: boolean; - /** The plane's GraphQL upload surface */ + /** Upload mutations and types for this storage */ upload: MetaStorageUpload; } /** Information about a unique constraint */ @@ -796,6 +814,15 @@ export interface MetaEnum { /** Allowed values for this enum */ values: string[]; } +/** How a field holds files */ +export interface MetaFileField { + /** GraphQL type name of the files table uploads are recorded in, when this API has exactly one; null otherwise */ + filesType?: string | null; + /** Whether the field holds a list of files */ + isMultiple: boolean; + /** image, upload, or attachment. An image or upload holds a file document; an attachment holds a link to a file. */ + kind: string; +} /** Information about a PostgreSQL type */ export interface MetaType { /** Scalar serialization contract (null for plain scalars) */ @@ -804,7 +831,13 @@ export interface MetaType { hasDefault?: boolean | null; isArray: boolean; isNotNull?: boolean | null; + /** Most characters a text value may hold, or most bits a bit string may hold; for a list, each item. Null when unbounded. */ + maxLength?: number | null; pgType: string; + /** Most significant digits a decimal number may hold. Null when unbounded. */ + precision?: number | null; + /** Digits a decimal number keeps after the decimal point. Null when unbounded. */ + scale?: number | null; subtype?: string | null; } /** Reference to a related table */ @@ -823,6 +856,8 @@ export interface MetaBelongsToRelation { fieldName?: string | null; isUnique: boolean; keys: MetaField[]; + /** Fields on the referenced table that keys point at, in the same order as keys */ + refKeys: MetaField[]; references: MetaRefTable; type?: string | null; } @@ -832,6 +867,8 @@ export interface MetaHasRelation { isUnique: boolean; keys: MetaField[]; referencedBy: MetaRefTable; + /** Fields on the related table that point at this table, in the same order as keys */ + remoteKeys: MetaField[]; type?: string | null; } /** A many-to-many relation via junction table */ @@ -854,7 +891,7 @@ export interface MetaSearchColumn { /** Column name (camelCase) */ name: string; } -/** Per-table search configuration from @searchConfig smart tag */ +/** Per-table search configuration */ export interface MetaSearchConfig { /** Exponential decay factor per day */ boostRecencyDecay?: number | null; @@ -865,7 +902,7 @@ export interface MetaSearchConfig { /** JSON-encoded per-adapter score weights */ weights?: string | null; } -/** The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from */ +/** The upload mutations and types for a storage table pair */ export interface MetaStorageUpload { /** Per-file input type inside the bulk input */ bulkFileInputType: string; @@ -883,14 +920,14 @@ export interface MetaStorageUpload { mutation: string; /** Payload type of the single upload mutation */ payloadType: string; - /** Whether the upload input requires ownerId (entity-keyed plane) */ + /** Whether the upload input requires ownerId */ requiresOwnerId: boolean; } -/** How a client must serialize/parse a scalar — the one field-type detail standard GraphQL introspection cannot describe. Null for plain scalars whose wire format is obvious from gqlType. */ +/** How a client must serialize and parse a scalar whose wire format gqlType alone does not settle. Null for plain scalars whose wire format is obvious from gqlType. */ export interface MetaScalarEncoding { /** For 'vector': declared length, else null. */ dimensions?: number | null; - /** For 'ltree': values are dot-separated path strings. */ + /** For 'ltree': true when values are dot-separated paths ('a.b.c'), false when they are slash-separated paths ('/a/b/c'). */ dotPath?: boolean | null; /** For 'vector': element scalar (e.g. 'float'). */ elementType?: string | null; diff --git a/sdk/constructive-react/src/remote/README.md b/sdk/constructive-react/src/remote/README.md index 14fcdccd0f..62a6bee69e 100644 --- a/sdk/constructive-react/src/remote/README.md +++ b/sdk/constructive-react/src/remote/README.md @@ -9,7 +9,7 @@ ## Overview - **Tables:** 3 -- **Custom queries:** 0 +- **Custom queries:** 1 - **Custom mutations:** 2 **Generators:** ORM, React Query diff --git a/sdk/constructive-react/src/remote/hooks/README.md b/sdk/constructive-react/src/remote/hooks/README.md index 033ddc00a8..9eceb618a2 100644 --- a/sdk/constructive-react/src/remote/hooks/README.md +++ b/sdk/constructive-react/src/remote/hooks/README.md @@ -47,6 +47,7 @@ function App() { | `useCreateMachineSessionMutation` | Mutation | Command or terminal sessions running on an enrolled machine | | `useUpdateMachineSessionMutation` | Mutation | Command or terminal sessions running on an enrolled machine | | `useDeleteMachineSessionMutation` | Mutation | Command or terminal sessions running on an enrolled machine | +| `useCurrentDatabaseIdQuery` | Query | currentDatabaseId | | `useMachinesEnrollMutation` | Mutation | machinesEnroll | | `useProvisionBucketMutation` | Mutation | Reconcile an S3 bucket for a logical bucket in the database. Records the request on the bucket row via RLS; the bucket's job @@ -122,6 +123,13 @@ create({ agentMode: '', agentSessionRef: '', args: '', c ## Custom Operation Hooks +### `useCurrentDatabaseIdQuery` + +currentDatabaseId + +- **Type:** query +- **Arguments:** none + ### `useMachinesEnrollMutation` machinesEnroll diff --git a/sdk/constructive-react/src/remote/hooks/queries/index.ts b/sdk/constructive-react/src/remote/hooks/queries/index.ts index 43a5062bf0..06021972fc 100644 --- a/sdk/constructive-react/src/remote/hooks/queries/index.ts +++ b/sdk/constructive-react/src/remote/hooks/queries/index.ts @@ -9,3 +9,4 @@ export * from './useMachineMessagesQuery'; export * from './useMachineMessageQuery'; export * from './useMachineSessionsQuery'; export * from './useMachineSessionQuery'; +export * from './useCurrentDatabaseIdQuery'; diff --git a/sdk/constructive-react/src/remote/hooks/queries/useCurrentDatabaseIdQuery.ts b/sdk/constructive-react/src/remote/hooks/queries/useCurrentDatabaseIdQuery.ts new file mode 100644 index 0000000000..ba46df079d --- /dev/null +++ b/sdk/constructive-react/src/remote/hooks/queries/useCurrentDatabaseIdQuery.ts @@ -0,0 +1,90 @@ +/** + * Custom query hook for currentDatabaseId + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { customQueryKeys } from '../query-keys'; +/** Query key factory - re-exported from query-keys.ts */ +export const currentDatabaseIdQueryKey = customQueryKeys.currentDatabaseId; +/** + * Query hook for currentDatabaseId + * + * @example + * ```tsx + * const { data, isLoading } = useCurrentDatabaseIdQuery(); + * + * if (data?.currentDatabaseId) { + * console.log(data.currentDatabaseId); + * } + * ``` + */ +export function useCurrentDatabaseIdQuery< + TData = { + currentDatabaseId: string | null; + }, +>( + params?: Omit< + UseQueryOptions< + { + currentDatabaseId: string | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useCurrentDatabaseIdQuery< + TData = { + currentDatabaseId: string | null; + }, +>( + params?: Omit< + UseQueryOptions< + { + currentDatabaseId: string | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult { + const queryOptions = params ?? {}; + return useQuery({ + queryKey: currentDatabaseIdQueryKey(), + queryFn: () => getClient().query.currentDatabaseId().unwrap(), + ...queryOptions, + }); +} +/** + * Fetch currentDatabaseId without React hooks + * + * @example + * ```ts + * const data = await fetchCurrentDatabaseIdQuery(); + * ``` + */ +export async function fetchCurrentDatabaseIdQuery() { + return getClient().query.currentDatabaseId().unwrap(); +} +/** + * Prefetch currentDatabaseId for SSR or cache warming + * + * @example + * ```ts + * await prefetchCurrentDatabaseIdQuery(queryClient); + * ``` + */ +export async function prefetchCurrentDatabaseIdQuery(queryClient: QueryClient): Promise { + await queryClient.prefetchQuery({ + queryKey: currentDatabaseIdQueryKey(), + queryFn: () => getClient().query.currentDatabaseId().unwrap(), + }); +} diff --git a/sdk/constructive-react/src/remote/hooks/query-keys.ts b/sdk/constructive-react/src/remote/hooks/query-keys.ts index 371a742682..ff5492f281 100644 --- a/sdk/constructive-react/src/remote/hooks/query-keys.ts +++ b/sdk/constructive-react/src/remote/hooks/query-keys.ts @@ -46,6 +46,14 @@ export const machineSessionKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...machineSessionKeys.details(), id] as const, } as const; + +// ============================================================================ +// Custom Query Keys +// ============================================================================ + +export const customQueryKeys = { + /** Query key for currentDatabaseId */ currentDatabaseId: () => ['currentDatabaseId'] as const, +} as const; /** // ============================================================================ @@ -72,6 +80,7 @@ export const queryKeys = { machine: machineKeys, machineMessage: machineMessageKeys, machineSession: machineSessionKeys, + custom: customQueryKeys, } as const; /** Type representing all available query key scopes */ export type QueryKeyScope = keyof typeof queryKeys; diff --git a/sdk/constructive-react/src/remote/orm/README.md b/sdk/constructive-react/src/remote/orm/README.md index eb2fdd09aa..b76819b71e 100644 --- a/sdk/constructive-react/src/remote/orm/README.md +++ b/sdk/constructive-react/src/remote/orm/README.md @@ -169,6 +169,17 @@ const deleted = await db.machineSession.delete({ where: { id: '' } }).exec ## Custom Operations +### `db.query.currentDatabaseId` + +currentDatabaseId + +- **Type:** query +- **Arguments:** none + +```typescript +const result = await db.query.currentDatabaseId().execute(); +``` + ### `db.mutation.machinesEnroll` machinesEnroll diff --git a/sdk/constructive-react/src/remote/orm/index.ts b/sdk/constructive-react/src/remote/orm/index.ts index e166dd236a..554ce59ad1 100644 --- a/sdk/constructive-react/src/remote/orm/index.ts +++ b/sdk/constructive-react/src/remote/orm/index.ts @@ -8,12 +8,14 @@ import type { OrmClientConfig } from './client'; import { MachineModel } from './models/machine'; import { MachineMessageModel } from './models/machineMessage'; import { MachineSessionModel } from './models/machineSession'; +import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; export { GraphQLRequestError, FetchAdapter } from './client'; export { QueryBuilder } from './query-builder'; export * from './select-types'; export * from './models'; +export { createQueryOperations } from './query'; export { createMutationOperations } from './mutation'; /** * Create an ORM client instance @@ -44,6 +46,7 @@ export function createClient(config: OrmClientConfig) { machine: new MachineModel(client), machineMessage: new MachineMessageModel(client), machineSession: new MachineSessionModel(client), + query: createQueryOperations(client), mutation: createMutationOperations(client), }; } diff --git a/sdk/constructive-react/src/remote/orm/query-builder.ts b/sdk/constructive-react/src/remote/orm/query-builder.ts index fd785bbae6..d6c981907f 100644 --- a/sdk/constructive-react/src/remote/orm/query-builder.ts +++ b/sdk/constructive-react/src/remote/orm/query-builder.ts @@ -140,9 +140,7 @@ export function buildSelections( ); const nestedSelect = nested.select; if (nestedSelect && typeof nestedSelect === 'object') { - const subSelections = Object.entries(nestedSelect) - .filter(([, v]) => v) - .map(([name]) => t.field({ name })); + const subSelections = buildSelections(nestedSelect, connectionFieldsMap); fields.push( t.field({ name: key, diff --git a/sdk/constructive-react/src/remote/orm/query/index.ts b/sdk/constructive-react/src/remote/orm/query/index.ts new file mode 100644 index 0000000000..901e0de080 --- /dev/null +++ b/sdk/constructive-react/src/remote/orm/query/index.ts @@ -0,0 +1,32 @@ +/** + * Custom query operations + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { QueryBuilder, buildCustomDocument } from '../query-builder'; +import type { InferSelectResult, StrictSelect } from '../select-types'; +import { connectionFieldsMap } from '../input-types'; +export function createQueryOperations(client: OrmClient) { + return { + currentDatabaseId: (options?: { select?: Record }) => + new QueryBuilder<{ + currentDatabaseId: string | null; + }>({ + client, + operation: 'query', + operationName: 'CurrentDatabaseId', + fieldName: 'currentDatabaseId', + ...buildCustomDocument( + 'query', + 'CurrentDatabaseId', + 'currentDatabaseId', + options?.select, + undefined, + [], + connectionFieldsMap, + undefined + ), + }), + }; +} diff --git a/sdk/constructive-react/src/remote/orm/select-types.ts b/sdk/constructive-react/src/remote/orm/select-types.ts index 4b39d7e820..783c4603df 100644 --- a/sdk/constructive-react/src/remote/orm/select-types.ts +++ b/sdk/constructive-react/src/remote/orm/select-types.ts @@ -159,9 +159,13 @@ export type InferSelectResult = TSelect extends undefined ? K extends keyof TEntity ? NonNullable extends ConnectionResult ? ConnectionResult> - : - | InferSelectResult, NestedSelect> - | (null extends TEntity[K] ? null : never) + : NonNullable extends readonly (infer Item)[] + ? + | InferSelectResult, NestedSelect>[] + | (null extends TEntity[K] ? null : never) + : + | InferSelectResult, NestedSelect> + | (null extends TEntity[K] ? null : never) : never : K extends keyof TEntity ? TEntity[K] diff --git a/sdk/constructive-react/src/remote/schema-types.ts b/sdk/constructive-react/src/remote/schema-types.ts index 0ece215dde..cf115c911b 100644 --- a/sdk/constructive-react/src/remote/schema-types.ts +++ b/sdk/constructive-react/src/remote/schema-types.ts @@ -693,21 +693,27 @@ export interface UpdateMachineSessionPayload { /** Information about a database table */ export interface MetaTable { constraints: MetaConstraints; + /** Description written for this table, or null */ + description?: string | null; fields: MetaField[]; foreignKeyConstraints: MetaForeignKeyConstraint[]; - /** i18n metadata (null if no @i18n tag) */ + /** i18n metadata (null if the table is not translatable) */ i18n?: MetaI18n | null; indexes: MetaIndex[]; inflection: MetaInflection; + /** Whether this table only links rows of two other tables; the link appears in their manyToMany relations */ + isJunction: boolean; + /** 'table' when rows are stored in this table, 'view' when they come from a view of other tables */ + kind: string; /** Final GraphQL output type name */ name: string; primaryKeyConstraints: MetaPrimaryKeyConstraint[]; query: MetaQuery; - /** Realtime metadata (null if no @realtime tag) */ + /** Realtime metadata (null if the table has no change subscriptions) */ realtime?: MetaRealtime | null; relations: MetaRelations; schemaName: string; - /** Provisioning scope metadata (null if no @scope tag) */ + /** Provisioning scope metadata (null if the table has no scope) */ scope?: MetaScope | null; /** Search metadata (null if no search configured) */ search?: MetaSearch | null; @@ -754,15 +760,27 @@ export interface MetaConstraints { } /** Information about a table field/column */ export interface MetaField { + /** Values this field accepts, when the set is fixed; null otherwise. Set on a table's own fields only. */ + allowedValues?: string[] | null; /** PostgreSQL column name */ columnName: string; description?: string | null; /** Enum metadata if this field has an enum type */ enumValues?: MetaEnum | null; + /** Set when the field holds files; null otherwise. Set on a table's own fields only. */ + file?: MetaFileField | null; hasDefault: boolean; + /** Whether the value is always computed and cannot be written, even when a create or update input offers the field. Set on a table's own fields only. */ + isComputed?: boolean | null; isForeignKey: boolean; isNotNull: boolean; isPrimaryKey: boolean; + /** Whether a create must provide this field. Set on a table's own fields only. */ + isRequiredOnCreate?: boolean | null; + /** Whether a create may set this field. Set on a table's own fields only. */ + isWritableOnCreate?: boolean | null; + /** Whether an update may change this field. Set on a table's own fields only. */ + isWritableOnUpdate?: boolean | null; /** Final GraphQL field name */ name: string; type: MetaType; @@ -776,7 +794,7 @@ export interface MetaForeignKeyConstraint { referencedFields: string[]; referencedTable: string; } -/** i18n metadata for a table with @i18n tag */ +/** i18n metadata for a translatable table */ export interface MetaI18n { /** Fields that are translatable */ translatableFields: MetaI18nField[]; @@ -791,7 +809,7 @@ export interface MetaIndex { isUnique: boolean; name: string; } -/** Table inflection names */ +/** Type and field names generated for this table */ export interface MetaInflection { allRows: string; conditionType: string; @@ -819,7 +837,7 @@ export interface MetaQuery { one?: string | null; update?: string | null; } -/** Realtime metadata for a table with @realtime tag */ +/** Realtime metadata for a table with change subscriptions */ export interface MetaRealtime { /** The generated subscription field name (e.g. onPostChanged) */ subscriptionFieldName: string; @@ -834,13 +852,13 @@ export interface MetaRelations { } /** Provisioning scope metadata for a table */ export interface MetaScope { - /** SQL name of the entity table for entity scopes, else null */ + /** Name of the entity table for entity scopes, else null */ entityTable?: string | null; - /** Inflected scope key column (e.g. databaseId, orgId), null for global tiers */ + /** Field name of the scope key (e.g. databaseId, orgId), null for global tiers */ keyColumn?: string | null; /** Provisioning scope: 'platform', 'app', 'database', or an entity scope (e.g. 'org') */ scope: string; - /** Provenance of the scope metadata (always 'smartTag') */ + /** Where this scope metadata comes from */ source: string; /** Coarse bucket: 'global', 'database', or 'entity' */ tier: string; @@ -858,17 +876,17 @@ export interface MetaSearch { } /** Storage metadata for a table */ export interface MetaStorage { - /** GraphQL type name of the plane's buckets table */ + /** GraphQL type name of the paired buckets table */ bucketsType: string; /** Computed download-URL field on the files type; null on the buckets side */ downloadUrlField?: string | null; - /** GraphQL type name of the plane's files table */ + /** GraphQL type name of the paired files table */ filesType: string; /** Whether this table is a storage buckets table */ isBucketsTable: boolean; /** Whether this table is a storage files table */ isFilesTable: boolean; - /** The plane's GraphQL upload surface */ + /** Upload mutations and types for this storage */ upload: MetaStorageUpload; } /** Information about a unique constraint */ @@ -883,6 +901,15 @@ export interface MetaEnum { /** Allowed values for this enum */ values: string[]; } +/** How a field holds files */ +export interface MetaFileField { + /** GraphQL type name of the files table uploads are recorded in, when this API has exactly one; null otherwise */ + filesType?: string | null; + /** Whether the field holds a list of files */ + isMultiple: boolean; + /** image, upload, or attachment. An image or upload holds a file document; an attachment holds a link to a file. */ + kind: string; +} /** Information about a PostgreSQL type */ export interface MetaType { /** Scalar serialization contract (null for plain scalars) */ @@ -891,7 +918,13 @@ export interface MetaType { hasDefault?: boolean | null; isArray: boolean; isNotNull?: boolean | null; + /** Most characters a text value may hold, or most bits a bit string may hold; for a list, each item. Null when unbounded. */ + maxLength?: number | null; pgType: string; + /** Most significant digits a decimal number may hold. Null when unbounded. */ + precision?: number | null; + /** Digits a decimal number keeps after the decimal point. Null when unbounded. */ + scale?: number | null; subtype?: string | null; } /** Reference to a related table */ @@ -910,6 +943,8 @@ export interface MetaBelongsToRelation { fieldName?: string | null; isUnique: boolean; keys: MetaField[]; + /** Fields on the referenced table that keys point at, in the same order as keys */ + refKeys: MetaField[]; references: MetaRefTable; type?: string | null; } @@ -919,6 +954,8 @@ export interface MetaHasRelation { isUnique: boolean; keys: MetaField[]; referencedBy: MetaRefTable; + /** Fields on the related table that point at this table, in the same order as keys */ + remoteKeys: MetaField[]; type?: string | null; } /** A many-to-many relation via junction table */ @@ -941,7 +978,7 @@ export interface MetaSearchColumn { /** Column name (camelCase) */ name: string; } -/** Per-table search configuration from @searchConfig smart tag */ +/** Per-table search configuration */ export interface MetaSearchConfig { /** Exponential decay factor per day */ boostRecencyDecay?: number | null; @@ -952,7 +989,7 @@ export interface MetaSearchConfig { /** JSON-encoded per-adapter score weights */ weights?: string | null; } -/** The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from */ +/** The upload mutations and types for a storage table pair */ export interface MetaStorageUpload { /** Per-file input type inside the bulk input */ bulkFileInputType: string; @@ -970,14 +1007,14 @@ export interface MetaStorageUpload { mutation: string; /** Payload type of the single upload mutation */ payloadType: string; - /** Whether the upload input requires ownerId (entity-keyed plane) */ + /** Whether the upload input requires ownerId */ requiresOwnerId: boolean; } -/** How a client must serialize/parse a scalar — the one field-type detail standard GraphQL introspection cannot describe. Null for plain scalars whose wire format is obvious from gqlType. */ +/** How a client must serialize and parse a scalar whose wire format gqlType alone does not settle. Null for plain scalars whose wire format is obvious from gqlType. */ export interface MetaScalarEncoding { /** For 'vector': declared length, else null. */ dimensions?: number | null; - /** For 'ltree': values are dot-separated path strings. */ + /** For 'ltree': true when values are dot-separated paths ('a.b.c'), false when they are slash-separated paths ('/a/b/c'). */ dotPath?: boolean | null; /** For 'vector': element scalar (e.g. 'float'). */ elementType?: string | null; diff --git a/sdk/constructive-react/src/storage/hooks/README.md b/sdk/constructive-react/src/storage/hooks/README.md index f98635d8d2..76b36b4664 100644 --- a/sdk/constructive-react/src/storage/hooks/README.md +++ b/sdk/constructive-react/src/storage/hooks/README.md @@ -39,7 +39,6 @@ function App() { | `useDeleteBucketMutation` | Mutation | Logical storage containers that group files with shared access policies and CDN behavior | | `useFilesQuery` | Query | Individual file records within buckets, with immutable identity fields and mutable metadata | | `useFileQuery` | Query | Individual file records within buckets, with immutable identity fields and mutable metadata | -| `useCreateFileMutation` | Mutation | Individual file records within buckets, with immutable identity fields and mutable metadata | | `useUpdateFileMutation` | Mutation | Individual file records within buckets, with immutable identity fields and mutable metadata | | `useDeleteFileMutation` | Mutation | Individual file records within buckets, with immutable identity fields and mutable metadata | | `usePlatformBucketsQuery` | Query | Logical storage containers that group files with shared access policies and CDN behavior | @@ -49,7 +48,6 @@ function App() { | `useDeletePlatformBucketMutation` | Mutation | Logical storage containers that group files with shared access policies and CDN behavior | | `usePlatformFilesQuery` | Query | Individual file records within buckets, with immutable identity fields and mutable metadata | | `usePlatformFileQuery` | Query | Individual file records within buckets, with immutable identity fields and mutable metadata | -| `useCreatePlatformFileMutation` | Mutation | Individual file records within buckets, with immutable identity fields and mutable metadata | | `useUpdatePlatformFileMutation` | Mutation | Individual file records within buckets, with immutable identity fields and mutable metadata | | `useDeletePlatformFileMutation` | Mutation | Individual file records within buckets, with immutable identity fields and mutable metadata | | `useFilesRenameMutation` | Mutation | filesRename | @@ -85,7 +83,7 @@ const { data: item } = useBucketQuery({ const { mutate: create } = useCreateBucketMutation({ selection: { fields: { id: true } }, }); -create({ actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', databaseId: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxBulkFiles: '', maxFileSize: '', physicalName: '', provisionRequestedAt: '', stagingTtl: '', tags: '', type: '' }); +create({ actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', databaseId: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxFileSize: '', physicalName: '', provisionRequestedAt: '', stagingTtl: '', tags: '', type: '' }); ``` ### File @@ -93,20 +91,15 @@ create({ actorId: '', allowCustomKeys: '', allowedMimeTypes: '', - selection: { fields: { actorId: true, bucketId: true, contentHash: true, createdAt: true, databaseId: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }, + selection: { fields: { actorId: true, bucketId: true, contentHash: true, createdAt: true, databaseId: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, rejectionReason: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }, }); -// Create a file -const { mutate: create } = useCreateFileMutation({ - selection: { fields: { id: true } }, -}); -create({ actorId: '', bucketId: '', contentHash: '', databaseId: '', description: '', downloadUrl: '', expiryEnqueuedAt: '', filePath: '', filename: '', isPublic: '', key: '', mimeType: '', promotedAt: '', size: '', status: '', tags: '', upload: '' }); ``` ### PlatformBucket @@ -127,7 +120,7 @@ const { data: item } = usePlatformBucketQuery({ const { mutate: create } = useCreatePlatformBucketMutation({ selection: { fields: { id: true } }, }); -create({ actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxBulkFiles: '', maxFileSize: '', physicalName: '', provisionRequestedAt: '', stagingTtl: '', tags: '', type: '' }); +create({ actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxFileSize: '', physicalName: '', provisionRequestedAt: '', stagingTtl: '', tags: '', type: '' }); ``` ### PlatformFile @@ -135,20 +128,15 @@ create({ actorId: '', allowCustomKeys: '', allowedMimeTypes: '', - selection: { fields: { actorId: true, bucketId: true, contentHash: true, createdAt: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }, + selection: { fields: { actorId: true, bucketId: true, contentHash: true, createdAt: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, rejectionReason: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }, }); -// Create a platformFile -const { mutate: create } = useCreatePlatformFileMutation({ - selection: { fields: { id: true } }, -}); -create({ actorId: '', bucketId: '', contentHash: '', description: '', downloadUrl: '', expiryEnqueuedAt: '', filePath: '', filename: '', isPublic: '', key: '', mimeType: '', promotedAt: '', size: '', status: '', tags: '', upload: '' }); ``` ## Custom Operation Hooks diff --git a/sdk/constructive-react/src/storage/hooks/mutations/index.ts b/sdk/constructive-react/src/storage/hooks/mutations/index.ts index 4e6b23d8ce..669e451b24 100644 --- a/sdk/constructive-react/src/storage/hooks/mutations/index.ts +++ b/sdk/constructive-react/src/storage/hooks/mutations/index.ts @@ -6,13 +6,11 @@ export * from './useCreateBucketMutation'; export * from './useUpdateBucketMutation'; export * from './useDeleteBucketMutation'; -export * from './useCreateFileMutation'; export * from './useUpdateFileMutation'; export * from './useDeleteFileMutation'; export * from './useCreatePlatformBucketMutation'; export * from './useUpdatePlatformBucketMutation'; export * from './useDeletePlatformBucketMutation'; -export * from './useCreatePlatformFileMutation'; export * from './useUpdatePlatformFileMutation'; export * from './useDeletePlatformFileMutation'; export * from './useFilesRenameMutation'; diff --git a/sdk/constructive-react/src/storage/hooks/mutations/useCreateFileMutation.ts b/sdk/constructive-react/src/storage/hooks/mutations/useCreateFileMutation.ts deleted file mode 100644 index 5ffd68d655..0000000000 --- a/sdk/constructive-react/src/storage/hooks/mutations/useCreateFileMutation.ts +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Individual file records within buckets, with immutable identity fields and mutable metadata - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { fileKeys } from '../query-keys'; -import { fileMutationKeys } from '../mutation-keys'; -import type { FileSelect, FileWithRelations, CreateFileInput } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { FileSelect, FileWithRelations, CreateFileInput } from '../../orm/input-types'; -/** - * Individual file records within buckets, with immutable identity fields and mutable metadata - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateFileMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateFileMutation( - params: { - selection: { - fields: S & FileSelect; - } & HookStrictSelect, FileSelect>; - } & Omit< - UseMutationOptions< - { - createFile: { - file: InferSelectResult; - }; - }, - Error, - CreateFileInput['file'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createFile: { - file: InferSelectResult; - }; - }, - Error, - CreateFileInput['file'] ->; -export function useCreateFileMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: fileMutationKeys.create(), - mutationFn: (data: CreateFileInput['file']) => - getClient() - .file.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: fileKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/storage/hooks/mutations/useCreatePlatformFileMutation.ts b/sdk/constructive-react/src/storage/hooks/mutations/useCreatePlatformFileMutation.ts deleted file mode 100644 index cb39e8a539..0000000000 --- a/sdk/constructive-react/src/storage/hooks/mutations/useCreatePlatformFileMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Individual file records within buckets, with immutable identity fields and mutable metadata - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformFileKeys } from '../query-keys'; -import { platformFileMutationKeys } from '../mutation-keys'; -import type { - PlatformFileSelect, - PlatformFileWithRelations, - CreatePlatformFileInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - PlatformFileSelect, - PlatformFileWithRelations, - CreatePlatformFileInput, -} from '../../orm/input-types'; -/** - * Individual file records within buckets, with immutable identity fields and mutable metadata - * - * @example - * ```tsx - * const { mutate, isPending } = useCreatePlatformFileMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreatePlatformFileMutation( - params: { - selection: { - fields: S & PlatformFileSelect; - } & HookStrictSelect, PlatformFileSelect>; - } & Omit< - UseMutationOptions< - { - createPlatformFile: { - platformFile: InferSelectResult; - }; - }, - Error, - CreatePlatformFileInput['platformFile'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createPlatformFile: { - platformFile: InferSelectResult; - }; - }, - Error, - CreatePlatformFileInput['platformFile'] ->; -export function useCreatePlatformFileMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: platformFileMutationKeys.create(), - mutationFn: (data: CreatePlatformFileInput['platformFile']) => - getClient() - .platformFile.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: platformFileKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/storage/orm/README.md b/sdk/constructive-react/src/storage/orm/README.md index a4e42cc98d..76a3ee3519 100644 --- a/sdk/constructive-react/src/storage/orm/README.md +++ b/sdk/constructive-react/src/storage/orm/README.md @@ -22,9 +22,9 @@ const db = createClient({ | Model | Operations | |-------|------------| | `bucket` | findMany, findOne, create, update, delete | -| `file` | findMany, findOne, create, update, delete | +| `file` | findMany, findOne, update, delete | | `platformBucket` | findMany, findOne, create, update, delete | -| `platformFile` | findMany, findOne, create, update, delete | +| `platformFile` | findMany, findOne, update, delete | ## Table Operations @@ -47,7 +47,7 @@ CRUD operations for Bucket records. | `id` | UUID | No | | `isPublic` | Boolean | Yes | | `key` | String | Yes | -| `maxBulkFiles` | Int | Yes | +| `maxBulkFiles` | Int | No | | `maxFileSize` | BigInt | Yes | | `physicalName` | String | Yes | | `provisionRequestedAt` | Datetime | Yes | @@ -66,7 +66,7 @@ const items = await db.bucket.findMany({ select: { actorId: true, allowCustomKey const item = await db.bucket.findOne({ id: '', select: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, databaseId: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxBulkFiles: true, maxFileSize: true, physicalName: true, provisionRequestedAt: true, stagingTtl: true, tags: true, type: true, updatedAt: true } }).execute(); // Create -const created = await db.bucket.create({ data: { actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', databaseId: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxBulkFiles: '', maxFileSize: '', physicalName: '', provisionRequestedAt: '', stagingTtl: '', tags: '', type: '' }, select: { id: true } }).execute(); +const created = await db.bucket.create({ data: { actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', databaseId: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxFileSize: '', physicalName: '', provisionRequestedAt: '', stagingTtl: '', tags: '', type: '' }, select: { id: true } }).execute(); // Update const updated = await db.bucket.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -89,32 +89,32 @@ CRUD operations for File records. | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | | `description` | String | Yes | -| `downloadUrl` | String | Yes | +| `downloadUrl` | String | No | | `expiryEnqueuedAt` | Datetime | Yes | -| `filePath` | String | Yes | +| `filePath` | String | No | | `filename` | String | Yes | | `id` | UUID | No | | `isPublic` | Boolean | Yes | | `key` | String | Yes | | `mimeType` | String | Yes | | `promotedAt` | Datetime | Yes | +| `rejectionReason` | String | Yes | | `size` | BigInt | Yes | | `status` | FileStatus | Yes | | `tags` | String | Yes | | `updatedAt` | Datetime | No | | `upload` | ConstructiveInternalTypeUpload | Yes | +| `uploadUrl` | String | No | +| `uploadVersions` | FileVersion | No | **Operations:** ```typescript // List all file records -const items = await db.file.findMany({ select: { actorId: true, bucketId: true, contentHash: true, createdAt: true, databaseId: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }).execute(); +const items = await db.file.findMany({ select: { actorId: true, bucketId: true, contentHash: true, createdAt: true, databaseId: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, rejectionReason: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }).execute(); // Get one by id -const item = await db.file.findOne({ id: '', select: { actorId: true, bucketId: true, contentHash: true, createdAt: true, databaseId: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }).execute(); - -// Create -const created = await db.file.create({ data: { actorId: '', bucketId: '', contentHash: '', databaseId: '', description: '', downloadUrl: '', expiryEnqueuedAt: '', filePath: '', filename: '', isPublic: '', key: '', mimeType: '', promotedAt: '', size: '', status: '', tags: '', upload: '' }, select: { id: true } }).execute(); +const item = await db.file.findOne({ id: '', select: { actorId: true, bucketId: true, contentHash: true, createdAt: true, databaseId: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, rejectionReason: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }).execute(); // Update const updated = await db.file.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -141,7 +141,7 @@ CRUD operations for PlatformBucket records. | `id` | UUID | No | | `isPublic` | Boolean | Yes | | `key` | String | Yes | -| `maxBulkFiles` | Int | Yes | +| `maxBulkFiles` | Int | No | | `maxFileSize` | BigInt | Yes | | `physicalName` | String | Yes | | `provisionRequestedAt` | Datetime | Yes | @@ -160,7 +160,7 @@ const items = await db.platformBucket.findMany({ select: { actorId: true, allowC const item = await db.platformBucket.findOne({ id: '', select: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxBulkFiles: true, maxFileSize: true, physicalName: true, provisionRequestedAt: true, stagingTtl: true, tags: true, type: true, updatedAt: true } }).execute(); // Create -const created = await db.platformBucket.create({ data: { actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxBulkFiles: '', maxFileSize: '', physicalName: '', provisionRequestedAt: '', stagingTtl: '', tags: '', type: '' }, select: { id: true } }).execute(); +const created = await db.platformBucket.create({ data: { actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxFileSize: '', physicalName: '', provisionRequestedAt: '', stagingTtl: '', tags: '', type: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformBucket.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -182,32 +182,32 @@ CRUD operations for PlatformFile records. | `contentHash` | String | Yes | | `createdAt` | Datetime | No | | `description` | String | Yes | -| `downloadUrl` | String | Yes | +| `downloadUrl` | String | No | | `expiryEnqueuedAt` | Datetime | Yes | -| `filePath` | String | Yes | +| `filePath` | String | No | | `filename` | String | Yes | | `id` | UUID | No | | `isPublic` | Boolean | Yes | | `key` | String | Yes | | `mimeType` | String | Yes | | `promotedAt` | Datetime | Yes | +| `rejectionReason` | String | Yes | | `size` | BigInt | Yes | | `status` | FileStatus | Yes | | `tags` | String | Yes | | `updatedAt` | Datetime | No | | `upload` | ConstructiveInternalTypeUpload | Yes | +| `uploadUrl` | String | No | +| `uploadVersions` | FileVersion | No | **Operations:** ```typescript // List all platformFile records -const items = await db.platformFile.findMany({ select: { actorId: true, bucketId: true, contentHash: true, createdAt: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }).execute(); +const items = await db.platformFile.findMany({ select: { actorId: true, bucketId: true, contentHash: true, createdAt: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, rejectionReason: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }).execute(); // Get one by id -const item = await db.platformFile.findOne({ id: '', select: { actorId: true, bucketId: true, contentHash: true, createdAt: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }).execute(); - -// Create -const created = await db.platformFile.create({ data: { actorId: '', bucketId: '', contentHash: '', description: '', downloadUrl: '', expiryEnqueuedAt: '', filePath: '', filename: '', isPublic: '', key: '', mimeType: '', promotedAt: '', size: '', status: '', tags: '', upload: '' }, select: { id: true } }).execute(); +const item = await db.platformFile.findOne({ id: '', select: { actorId: true, bucketId: true, contentHash: true, createdAt: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, rejectionReason: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }).execute(); // Update const updated = await db.platformFile.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -295,7 +295,7 @@ Upload multiple files: resolves the bucket by key, creates file rows, and return | `input` | UploadFileBulkInput (required) | ```typescript -const result = await db.mutation.uploadFiles({ input: { bucketKey: '', files: '', isPublic: '' } }).execute(); +const result = await db.mutation.uploadFiles({ input: { bucketKey: '', databaseId: '', files: '', isPublic: '' } }).execute(); ``` ### `db.mutation.uploadPlatformFile` diff --git a/sdk/constructive-react/src/storage/orm/input-types.ts b/sdk/constructive-react/src/storage/orm/input-types.ts index ffb823c7ee..1351860637 100644 --- a/sdk/constructive-react/src/storage/orm/input-types.ts +++ b/sdk/constructive-react/src/storage/orm/input-types.ts @@ -232,7 +232,7 @@ export interface UUIDListFilter { } // ============ Enum Types ============ export type BucketType = 'PRIVATE' | 'PUBLIC' | 'TEMP'; -export type FileStatus = 'EXPIRED' | 'PROCESSED' | 'REJECTED' | 'REQUESTED' | 'UPLOADED'; +export type FileStatus = 'PROCESSED' | 'REJECTED' | 'REQUESTED' | 'UPLOADED'; // ============ Custom Scalar Types ============ export type ConstructiveInternalTypeUpload = unknown; /** Logical storage containers that group files with shared access policies and CDN behavior */ @@ -287,7 +287,7 @@ export interface File { databaseId?: string | null; /** Human-readable description or alt text for the file (mutable) */ description?: string | null; - /** URL to download this file. For public files, returns the public URL. For private files, returns a time-limited presigned URL. */ + /** URL to download this file. For public files, returns the public URL. For private files, returns a time-limited presigned URL. Null until the upload is confirmed (status uploaded or processed), and for a rejected file. */ downloadUrl?: string | null; /** When the staged-expiry sweep enqueued deletion of this file's object. NULL until it expires; set once so expiry is enqueued exactly once. */ expiryEnqueuedAt?: string | null; @@ -303,15 +303,21 @@ export interface File { mimeType?: string | null; /** When this file was promoted out of its staging bucket into its destination bucket. NULL for a file that was never staged, or is still staged. */ promotedAt?: string | null; + /** Why the upload was rejected (declared MIME, extension and magic bytes disagreed, size mismatch, ...). NULL unless status is rejected. */ + rejectionReason?: string | null; /** File size in bytes. Immutable after INSERT. */ size?: string | null; - /** File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). */ + /** File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes). A requested row whose bytes never arrive within upload_url_expiry_seconds is deleted by the confirm loop. */ status?: FileStatus | null; /** User-defined tags for categorization and search (mutable) */ tags?: string[] | null; updatedAt?: string | null; /** Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. */ upload?: ConstructiveInternalTypeUpload | null; + /** URL to fetch `upload`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + uploadUrl?: string | null; + /** The versions rendered beside `upload`, narrowest first, each with a URL. Empty when there are none. */ + uploadVersions?: FileVersion[] | null; } /** Logical storage containers that group files with shared access policies and CDN behavior */ export interface PlatformBucket { @@ -360,7 +366,7 @@ export interface PlatformFile { createdAt?: string | null; /** Human-readable description or alt text for the file (mutable) */ description?: string | null; - /** URL to download this file. For public files, returns the public URL. For private files, returns a time-limited presigned URL. */ + /** URL to download this file. For public files, returns the public URL. For private files, returns a time-limited presigned URL. Null until the upload is confirmed (status uploaded or processed), and for a rejected file. */ downloadUrl?: string | null; /** When the staged-expiry sweep enqueued deletion of this file's object. NULL until it expires; set once so expiry is enqueued exactly once. */ expiryEnqueuedAt?: string | null; @@ -376,15 +382,21 @@ export interface PlatformFile { mimeType?: string | null; /** When this file was promoted out of its staging bucket into its destination bucket. NULL for a file that was never staged, or is still staged. */ promotedAt?: string | null; + /** Why the upload was rejected (declared MIME, extension and magic bytes disagreed, size mismatch, ...). NULL unless status is rejected. */ + rejectionReason?: string | null; /** File size in bytes. Immutable after INSERT. */ size?: string | null; - /** File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). */ + /** File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes). A requested row whose bytes never arrive within upload_url_expiry_seconds is deleted by the confirm loop. */ status?: FileStatus | null; /** User-defined tags for categorization and search (mutable) */ tags?: string[] | null; updatedAt?: string | null; /** Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. */ upload?: ConstructiveInternalTypeUpload | null; + /** URL to fetch `upload`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + uploadUrl?: string | null; + /** The versions rendered beside `upload`, narrowest first, each with a URL. Empty when there are none. */ + uploadVersions?: FileVersion[] | null; } // ============ Relation Helper Types ============ export interface ConnectionResult { @@ -473,11 +485,21 @@ export type FileSelect = { key?: boolean; mimeType?: boolean; promotedAt?: boolean; + rejectionReason?: boolean; size?: boolean; status?: boolean; tags?: boolean; updatedAt?: boolean; upload?: boolean; + uploadUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + uploadVersions?: { + select: FileVersionSelect; + }; bucket?: { select: BucketSelect; }; @@ -532,11 +554,21 @@ export type PlatformFileSelect = { key?: boolean; mimeType?: boolean; promotedAt?: boolean; + rejectionReason?: boolean; size?: boolean; status?: boolean; tags?: boolean; updatedAt?: boolean; upload?: boolean; + uploadUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + uploadVersions?: { + select: FileVersionSelect; + }; bucket?: { select: PlatformBucketSelect; }; @@ -633,6 +665,8 @@ export interface FileFilter { or?: FileFilter[]; /** Filter by the object’s `promotedAt` field. */ promotedAt?: DatetimeFilter; + /** Filter by the object’s `rejectionReason` field. */ + rejectionReason?: StringFilter; /** Filter by the object’s `size` field. */ size?: BigIntFilter; /** Filter by the object’s `status` field. */ @@ -731,6 +765,8 @@ export interface PlatformFileFilter { or?: PlatformFileFilter[]; /** Filter by the object’s `promotedAt` field. */ promotedAt?: DatetimeFilter; + /** Filter by the object’s `rejectionReason` field. */ + rejectionReason?: StringFilter; /** Filter by the object’s `size` field. */ size?: BigIntFilter; /** Filter by the object’s `status` field. */ @@ -813,6 +849,8 @@ export type FileOrderBy = | 'PRIMARY_KEY_DESC' | 'PROMOTED_AT_ASC' | 'PROMOTED_AT_DESC' + | 'REJECTION_REASON_ASC' + | 'REJECTION_REASON_DESC' | 'SIZE_ASC' | 'SIZE_DESC' | 'STATUS_ASC' @@ -889,6 +927,8 @@ export type PlatformFileOrderBy = | 'PRIMARY_KEY_DESC' | 'PROMOTED_AT_ASC' | 'PROMOTED_AT_DESC' + | 'REJECTION_REASON_ASC' + | 'REJECTION_REASON_DESC' | 'SIZE_ASC' | 'SIZE_DESC' | 'STATUS_ASC' @@ -946,24 +986,6 @@ export interface DeleteBucketInput { clientMutationId?: string; id: string; } -export interface CreateFileInput { - clientMutationId?: string; - file: { - actorId: string; - bucketId: string; - contentHash?: string; - description?: string; - expiryEnqueuedAt?: string; - filename?: string; - key: string; - mimeType: string; - promotedAt?: string; - size: string; - status?: FileStatus; - tags?: string[]; - upload?: ConstructiveInternalTypeUpload; - }; -} export interface FilePatch { actorId?: string | null; bucketId?: string | null; @@ -976,11 +998,11 @@ export interface FilePatch { key?: string | null; mimeType?: string | null; promotedAt?: string | null; + rejectionReason?: string | null; size?: string | null; status?: FileStatus | null; tags?: string[] | null; upload?: ConstructiveInternalTypeUpload | null; - uploadUpload?: File | null; } export interface UpdateFileInput { clientMutationId?: string; @@ -1035,24 +1057,6 @@ export interface DeletePlatformBucketInput { clientMutationId?: string; id: string; } -export interface CreatePlatformFileInput { - clientMutationId?: string; - platformFile: { - actorId: string; - bucketId: string; - contentHash?: string; - description?: string; - expiryEnqueuedAt?: string; - filename?: string; - key: string; - mimeType: string; - promotedAt?: string; - size: string; - status?: FileStatus; - tags?: string[]; - upload?: ConstructiveInternalTypeUpload; - }; -} export interface PlatformFilePatch { actorId?: string | null; bucketId?: string | null; @@ -1064,11 +1068,11 @@ export interface PlatformFilePatch { key?: string | null; mimeType?: string | null; promotedAt?: string | null; + rejectionReason?: string | null; size?: string | null; status?: FileStatus | null; tags?: string[] | null; upload?: ConstructiveInternalTypeUpload | null; - uploadUpload?: File | null; } export interface UpdatePlatformFileInput { clientMutationId?: string; @@ -1117,6 +1121,8 @@ export interface UploadFileInput { contentHash: string; /** MIME type of the file */ contentType: string; + /** Database the file belongs to. Omit for the database of the current session; a caller who is not a member of the named database is refused. */ + databaseId?: string; /** Original filename (optional) */ filename?: string; /** Which default bucket to resolve when bucketKey is omitted: the public one (true) or the private one (default false). Ignored when bucketKey is given. */ @@ -1129,6 +1135,8 @@ export interface UploadFileInput { export interface UploadFileBulkInput { /** Bucket key (e.g., "public", "private"). Omit to use the database's default bucket for the requested access. */ bucketKey?: string; + /** Database the file belongs to. Omit for the database of the current session; a caller who is not a member of the named database is refused. */ + databaseId?: string; /** Array of files to upload */ files: UploadFileBulkFileInput[]; /** Which default bucket to resolve when bucketKey is omitted. Ignored when bucketKey is given. */ @@ -1359,38 +1367,6 @@ export interface IntervalInput { /** A quantity of years. */ years?: number; } -/** An input for mutations affecting `File` */ -export interface FileInput { - /** User who uploaded this file. Forced to current_user_id() on INSERT. Used for UPDATE/DELETE authorization. */ - actorId: string; - /** Bucket this file belongs to. Determines owner_id and is_public via inheritance trigger. */ - bucketId: string; - /** SHA-256 content hash for integrity verification and dedup. In default mode, equals the S3 key. In custom key mode, stored separately. */ - contentHash?: string; - createdAt?: string; - /** Human-readable description or alt text for the file (mutable) */ - description?: string; - /** When the staged-expiry sweep enqueued deletion of this file's object. NULL until it expires; set once so expiry is enqueued exactly once. */ - expiryEnqueuedAt?: string; - /** Original filename provided by the uploader. Used for display and Content-Disposition header on download. */ - filename?: string; - id?: string; - /** S3 object key for this file, unique within its bucket */ - key: string; - /** MIME type of the file (e.g. image/png, application/pdf). Immutable after INSERT. */ - mimeType: string; - /** When this file was promoted out of its staging bucket into its destination bucket. NULL for a file that was never staged, or is still staged. */ - promotedAt?: string; - /** File size in bytes. Immutable after INSERT. */ - size: string; - /** File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). */ - status?: FileStatus; - /** User-defined tags for categorization and search (mutable) */ - tags?: string[]; - updatedAt?: string; - /** Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. */ - upload?: ConstructiveInternalTypeUpload; -} /** An input for mutations affecting `PlatformBucket` */ export interface PlatformBucketInput { /** User who created this bucket. Forced to current_user_id() on INSERT. */ @@ -1425,38 +1401,6 @@ export interface PlatformBucketInput { type?: BucketType; updatedAt?: string; } -/** An input for mutations affecting `PlatformFile` */ -export interface PlatformFileInput { - /** User who uploaded this file. Forced to current_user_id() on INSERT. Used for UPDATE/DELETE authorization. */ - actorId: string; - /** Bucket this file belongs to. Determines owner_id and is_public via inheritance trigger. */ - bucketId: string; - /** SHA-256 content hash for integrity verification and dedup. In default mode, equals the S3 key. In custom key mode, stored separately. */ - contentHash?: string; - createdAt?: string; - /** Human-readable description or alt text for the file (mutable) */ - description?: string; - /** When the staged-expiry sweep enqueued deletion of this file's object. NULL until it expires; set once so expiry is enqueued exactly once. */ - expiryEnqueuedAt?: string; - /** Original filename provided by the uploader. Used for display and Content-Disposition header on download. */ - filename?: string; - id?: string; - /** S3 object key for this file, unique within its bucket */ - key: string; - /** MIME type of the file (e.g. image/png, application/pdf). Immutable after INSERT. */ - mimeType: string; - /** When this file was promoted out of its staging bucket into its destination bucket. NULL for a file that was never staged, or is still staged. */ - promotedAt?: string; - /** File size in bytes. Immutable after INSERT. */ - size: string; - /** File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). */ - status?: FileStatus; - /** User-defined tags for categorization and search (mutable) */ - tags?: string[]; - updatedAt?: string; - /** Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. */ - upload?: ConstructiveInternalTypeUpload; -} export interface UploadFileBulkFileInput { /** SHA-256 content hash (hex-encoded, 64 chars) */ contentHash: string; @@ -1574,6 +1518,8 @@ export interface FileFilter { or?: FileFilter[]; /** Filter by the object’s `promotedAt` field. */ promotedAt?: DatetimeFilter; + /** Filter by the object’s `rejectionReason` field. */ + rejectionReason?: StringFilter; /** Filter by the object’s `size` field. */ size?: BigIntFilter; /** Filter by the object’s `status` field. */ @@ -1674,6 +1620,8 @@ export interface PlatformFileFilter { or?: PlatformFileFilter[]; /** Filter by the object’s `promotedAt` field. */ promotedAt?: DatetimeFilter; + /** Filter by the object’s `rejectionReason` field. */ + rejectionReason?: StringFilter; /** Filter by the object’s `size` field. */ size?: BigIntFilter; /** Filter by the object’s `status` field. */ @@ -1956,6 +1904,8 @@ export interface UploadFilePayload { fileId: string; /** The S3 object key */ key: string; + /** The exact headers the PUT to uploadUrl must send (Content-Type and every header the URL is signed over, e.g. x-amz-checksum-sha256 and x-amz-meta-upload-id). Forward them as-is. Null if deduplicated. */ + uploadHeaders?: Record | null; /** Presigned PUT URL (null if deduplicated) */ uploadUrl?: string | null; } @@ -1965,6 +1915,7 @@ export type UploadFilePayloadSelect = { file?: boolean; fileId?: boolean; key?: boolean; + uploadHeaders?: boolean; uploadUrl?: boolean; }; export interface UploadFileBulkPayload { @@ -1986,6 +1937,8 @@ export interface UploadPlatformFilePayload { fileId: string; /** The S3 object key */ key: string; + /** The exact headers the PUT to uploadUrl must send (Content-Type and every header the URL is signed over, e.g. x-amz-checksum-sha256 and x-amz-meta-upload-id). Forward them as-is. Null if deduplicated. */ + uploadHeaders?: Record | null; /** Presigned PUT URL (null if deduplicated) */ uploadUrl?: string | null; } @@ -1995,6 +1948,7 @@ export type UploadPlatformFilePayloadSelect = { file?: boolean; fileId?: boolean; key?: boolean; + uploadHeaders?: boolean; uploadUrl?: boolean; }; export interface UploadPlatformFileBulkPayload { @@ -2050,21 +2004,6 @@ export type DeleteBucketPayloadSelect = { }; clientMutationId?: boolean; }; -export interface CreateFilePayload { - clientMutationId?: string | null; - /** The `File` that was created by this mutation. */ - file?: File | null; - fileEdge?: FileEdge | null; -} -export type CreateFilePayloadSelect = { - clientMutationId?: boolean; - file?: { - select: FileSelect; - }; - fileEdge?: { - select: FileEdgeSelect; - }; -}; export interface UpdateFilePayload { clientMutationId?: string | null; /** The `File` that was updated by this mutation. */ @@ -2140,21 +2079,6 @@ export type DeletePlatformBucketPayloadSelect = { select: PlatformBucketEdgeSelect; }; }; -export interface CreatePlatformFilePayload { - clientMutationId?: string | null; - /** The `PlatformFile` that was created by this mutation. */ - platformFile?: PlatformFile | null; - platformFileEdge?: PlatformFileEdge | null; -} -export type CreatePlatformFilePayloadSelect = { - clientMutationId?: boolean; - platformFile?: { - select: PlatformFileSelect; - }; - platformFileEdge?: { - select: PlatformFileEdgeSelect; - }; -}; export interface UpdatePlatformFilePayload { clientMutationId?: string | null; /** The `PlatformFile` that was updated by this mutation. */ @@ -2185,6 +2109,25 @@ export type DeletePlatformFilePayloadSelect = { select: PlatformFileEdgeSelect; }; }; +/** One version rendered beside a file, with a URL to fetch it. */ +export interface FileVersion { + format?: string | null; + height?: number | null; + key: string; + name?: string | null; + size?: number | null; + url: string; + width?: number | null; +} +export type FileVersionSelect = { + format?: boolean; + height?: boolean; + key?: boolean; + name?: boolean; + size?: boolean; + url?: boolean; + width?: boolean; +}; /** A `File` edge in the connection. */ export interface FileEdge { cursor?: string | null; @@ -2216,6 +2159,8 @@ export interface UploadFileBulkFilePayload { file?: Record | null; fileId: string; key: string; + /** The exact headers the PUT to uploadUrl must send. */ + uploadHeaders?: Record | null; uploadUrl?: string | null; } export type UploadFileBulkFilePayloadSelect = { @@ -2224,6 +2169,7 @@ export type UploadFileBulkFilePayloadSelect = { file?: boolean; fileId?: boolean; key?: boolean; + uploadHeaders?: boolean; uploadUrl?: boolean; }; export interface UploadPlatformFileBulkFilePayload { @@ -2233,6 +2179,8 @@ export interface UploadPlatformFileBulkFilePayload { file?: Record | null; fileId: string; key: string; + /** The exact headers the PUT to uploadUrl must send. */ + uploadHeaders?: Record | null; uploadUrl?: string | null; } export type UploadPlatformFileBulkFilePayloadSelect = { @@ -2241,6 +2189,7 @@ export type UploadPlatformFileBulkFilePayloadSelect = { file?: boolean; fileId?: boolean; key?: boolean; + uploadHeaders?: boolean; uploadUrl?: boolean; }; /** A `Bucket` edge in the connection. */ diff --git a/sdk/constructive-react/src/storage/orm/models/file.ts b/sdk/constructive-react/src/storage/orm/models/file.ts index a2d0e48ee3..e702b67170 100644 --- a/sdk/constructive-react/src/storage/orm/models/file.ts +++ b/sdk/constructive-react/src/storage/orm/models/file.ts @@ -29,7 +29,6 @@ import type { FileSelect, FileFilter, FileOrderBy, - CreateFileInput, UpdateFileInput, FilePatch, } from '../input-types'; @@ -144,33 +143,6 @@ export class FileModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createFile: { - file: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'File', - 'createFile', - 'file', - args.select, - args.data, - 'CreateFileInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'File', - fieldName: 'createFile', - document, - variables, - }); - } update( args: UpdateArgs< S, diff --git a/sdk/constructive-react/src/storage/orm/models/platformFile.ts b/sdk/constructive-react/src/storage/orm/models/platformFile.ts index bfc7890e99..921d7f3f92 100644 --- a/sdk/constructive-react/src/storage/orm/models/platformFile.ts +++ b/sdk/constructive-react/src/storage/orm/models/platformFile.ts @@ -29,7 +29,6 @@ import type { PlatformFileSelect, PlatformFileFilter, PlatformFileOrderBy, - CreatePlatformFileInput, UpdatePlatformFileInput, PlatformFilePatch, } from '../input-types'; @@ -144,33 +143,6 @@ export class PlatformFileModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformFile: { - platformFile: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformFile', - 'createPlatformFile', - 'platformFile', - args.select, - args.data, - 'CreatePlatformFileInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformFile', - fieldName: 'createPlatformFile', - document, - variables, - }); - } update( args: UpdateArgs< S, diff --git a/sdk/constructive-react/src/storage/orm/query-builder.ts b/sdk/constructive-react/src/storage/orm/query-builder.ts index fd785bbae6..d6c981907f 100644 --- a/sdk/constructive-react/src/storage/orm/query-builder.ts +++ b/sdk/constructive-react/src/storage/orm/query-builder.ts @@ -140,9 +140,7 @@ export function buildSelections( ); const nestedSelect = nested.select; if (nestedSelect && typeof nestedSelect === 'object') { - const subSelections = Object.entries(nestedSelect) - .filter(([, v]) => v) - .map(([name]) => t.field({ name })); + const subSelections = buildSelections(nestedSelect, connectionFieldsMap); fields.push( t.field({ name: key, diff --git a/sdk/constructive-react/src/storage/orm/select-types.ts b/sdk/constructive-react/src/storage/orm/select-types.ts index 4b39d7e820..783c4603df 100644 --- a/sdk/constructive-react/src/storage/orm/select-types.ts +++ b/sdk/constructive-react/src/storage/orm/select-types.ts @@ -159,9 +159,13 @@ export type InferSelectResult = TSelect extends undefined ? K extends keyof TEntity ? NonNullable extends ConnectionResult ? ConnectionResult> - : - | InferSelectResult, NestedSelect> - | (null extends TEntity[K] ? null : never) + : NonNullable extends readonly (infer Item)[] + ? + | InferSelectResult, NestedSelect>[] + | (null extends TEntity[K] ? null : never) + : + | InferSelectResult, NestedSelect> + | (null extends TEntity[K] ? null : never) : never : K extends keyof TEntity ? TEntity[K] diff --git a/sdk/constructive-react/src/storage/schema-types.ts b/sdk/constructive-react/src/storage/schema-types.ts index d5b64054a0..f05f4bf06f 100644 --- a/sdk/constructive-react/src/storage/schema-types.ts +++ b/sdk/constructive-react/src/storage/schema-types.ts @@ -101,6 +101,8 @@ export type FileOrderBy = | 'PRIMARY_KEY_DESC' | 'PROMOTED_AT_ASC' | 'PROMOTED_AT_DESC' + | 'REJECTION_REASON_ASC' + | 'REJECTION_REASON_DESC' | 'SIZE_ASC' | 'SIZE_DESC' | 'STATUS_ASC' @@ -111,7 +113,7 @@ export type FileOrderBy = | 'UPDATED_AT_DESC' | 'UPLOAD_ASC' | 'UPLOAD_DESC'; -export type FileStatus = 'EXPIRED' | 'PROCESSED' | 'REJECTED' | 'REQUESTED' | 'UPLOADED'; +export type FileStatus = 'PROCESSED' | 'REJECTED' | 'REQUESTED' | 'UPLOADED'; /** Methods to use when ordering `PlatformBucket`. */ export type PlatformBucketOrderBy = | 'ACTOR_ID_ASC' @@ -180,6 +182,8 @@ export type PlatformFileOrderBy = | 'PRIMARY_KEY_DESC' | 'PROMOTED_AT_ASC' | 'PROMOTED_AT_DESC' + | 'REJECTION_REASON_ASC' + | 'REJECTION_REASON_DESC' | 'SIZE_ASC' | 'SIZE_DESC' | 'STATUS_ASC' @@ -402,21 +406,11 @@ export interface CreateBucketInput { bucket: BucketInput; clientMutationId?: string; } -export interface CreateFileInput { - clientMutationId?: string; - /** The `File` to be created by this mutation. */ - file: FileInput; -} export interface CreatePlatformBucketInput { clientMutationId?: string; /** The `PlatformBucket` to be created by this mutation. */ platformBucket: PlatformBucketInput; } -export interface CreatePlatformFileInput { - clientMutationId?: string; - /** The `PlatformFile` to be created by this mutation. */ - platformFile: PlatformFileInput; -} export interface DeleteBucketInput { clientMutationId?: string; id: string; @@ -469,6 +463,8 @@ export interface FileFilter { or?: FileFilter[]; /** Filter by the object’s `promotedAt` field. */ promotedAt?: DatetimeFilter; + /** Filter by the object’s `rejectionReason` field. */ + rejectionReason?: StringFilter; /** Filter by the object’s `size` field. */ size?: BigIntFilter; /** Filter by the object’s `status` field. */ @@ -480,38 +476,6 @@ export interface FileFilter { /** Filter by the object’s `upload` field. */ upload?: ConstructiveInternalTypeUploadFilter; } -/** An input for mutations affecting `File` */ -export interface FileInput { - /** User who uploaded this file. Forced to current_user_id() on INSERT. Used for UPDATE/DELETE authorization. */ - actorId: string; - /** Bucket this file belongs to. Determines owner_id and is_public via inheritance trigger. */ - bucketId: string; - /** SHA-256 content hash for integrity verification and dedup. In default mode, equals the S3 key. In custom key mode, stored separately. */ - contentHash?: string; - createdAt?: string; - /** Human-readable description or alt text for the file (mutable) */ - description?: string; - /** When the staged-expiry sweep enqueued deletion of this file's object. NULL until it expires; set once so expiry is enqueued exactly once. */ - expiryEnqueuedAt?: string; - /** Original filename provided by the uploader. Used for display and Content-Disposition header on download. */ - filename?: string; - id?: string; - /** S3 object key for this file, unique within its bucket */ - key: string; - /** MIME type of the file (e.g. image/png, application/pdf). Immutable after INSERT. */ - mimeType: string; - /** When this file was promoted out of its staging bucket into its destination bucket. NULL for a file that was never staged, or is still staged. */ - promotedAt?: string; - /** File size in bytes. Immutable after INSERT. */ - size: string; - /** File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). */ - status?: FileStatus; - /** User-defined tags for categorization and search (mutable) */ - tags?: string[]; - updatedAt?: string; - /** Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. */ - upload?: ConstructiveInternalTypeUpload; -} /** Represents an update to a `File`. Fields that are set will be updated. */ export interface FilePatch { /** User who uploaded this file. Forced to current_user_id() on INSERT. Used for UPDATE/DELETE authorization. */ @@ -538,17 +502,17 @@ export interface FilePatch { mimeType?: string; /** When this file was promoted out of its staging bucket into its destination bucket. NULL for a file that was never staged, or is still staged. */ promotedAt?: string; + /** Why the upload was rejected (declared MIME, extension and magic bytes disagreed, size mismatch, ...). NULL unless status is rejected. */ + rejectionReason?: string; /** File size in bytes. Immutable after INSERT. */ size?: string; - /** File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). */ + /** File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes). A requested row whose bytes never arrive within upload_url_expiry_seconds is deleted by the confirm loop. */ status?: FileStatus; /** User-defined tags for categorization and search (mutable) */ tags?: string[]; updatedAt?: string; /** Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. */ upload?: ConstructiveInternalTypeUpload; - /** Upload for Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. */ - uploadUpload?: File; } /** A filter to be used against FileStatus fields. All fields are combined with a logical ‘and.’ */ export interface FileStatusFilter { @@ -799,6 +763,8 @@ export interface PlatformFileFilter { or?: PlatformFileFilter[]; /** Filter by the object’s `promotedAt` field. */ promotedAt?: DatetimeFilter; + /** Filter by the object’s `rejectionReason` field. */ + rejectionReason?: StringFilter; /** Filter by the object’s `size` field. */ size?: BigIntFilter; /** Filter by the object’s `status` field. */ @@ -810,38 +776,6 @@ export interface PlatformFileFilter { /** Filter by the object’s `upload` field. */ upload?: ConstructiveInternalTypeUploadFilter; } -/** An input for mutations affecting `PlatformFile` */ -export interface PlatformFileInput { - /** User who uploaded this file. Forced to current_user_id() on INSERT. Used for UPDATE/DELETE authorization. */ - actorId: string; - /** Bucket this file belongs to. Determines owner_id and is_public via inheritance trigger. */ - bucketId: string; - /** SHA-256 content hash for integrity verification and dedup. In default mode, equals the S3 key. In custom key mode, stored separately. */ - contentHash?: string; - createdAt?: string; - /** Human-readable description or alt text for the file (mutable) */ - description?: string; - /** When the staged-expiry sweep enqueued deletion of this file's object. NULL until it expires; set once so expiry is enqueued exactly once. */ - expiryEnqueuedAt?: string; - /** Original filename provided by the uploader. Used for display and Content-Disposition header on download. */ - filename?: string; - id?: string; - /** S3 object key for this file, unique within its bucket */ - key: string; - /** MIME type of the file (e.g. image/png, application/pdf). Immutable after INSERT. */ - mimeType: string; - /** When this file was promoted out of its staging bucket into its destination bucket. NULL for a file that was never staged, or is still staged. */ - promotedAt?: string; - /** File size in bytes. Immutable after INSERT. */ - size: string; - /** File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). */ - status?: FileStatus; - /** User-defined tags for categorization and search (mutable) */ - tags?: string[]; - updatedAt?: string; - /** Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. */ - upload?: ConstructiveInternalTypeUpload; -} /** Represents an update to a `PlatformFile`. Fields that are set will be updated. */ export interface PlatformFilePatch { /** User who uploaded this file. Forced to current_user_id() on INSERT. Used for UPDATE/DELETE authorization. */ @@ -866,17 +800,17 @@ export interface PlatformFilePatch { mimeType?: string; /** When this file was promoted out of its staging bucket into its destination bucket. NULL for a file that was never staged, or is still staged. */ promotedAt?: string; + /** Why the upload was rejected (declared MIME, extension and magic bytes disagreed, size mismatch, ...). NULL unless status is rejected. */ + rejectionReason?: string; /** File size in bytes. Immutable after INSERT. */ size?: string; - /** File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). */ + /** File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes). A requested row whose bytes never arrive within upload_url_expiry_seconds is deleted by the confirm loop. */ status?: FileStatus; /** User-defined tags for categorization and search (mutable) */ tags?: string[]; updatedAt?: string; /** Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. */ upload?: ConstructiveInternalTypeUpload; - /** Upload for Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. */ - uploadUpload?: File; } export interface PlatformFilesRenameInput { clientMutationId?: string; @@ -931,6 +865,8 @@ export interface UploadFileBulkFileInput { export interface UploadFileBulkInput { /** Bucket key (e.g., "public", "private"). Omit to use the database's default bucket for the requested access. */ bucketKey?: string; + /** Database the file belongs to. Omit for the database of the current session; a caller who is not a member of the named database is refused. */ + databaseId?: string; /** Array of files to upload */ files: UploadFileBulkFileInput[]; /** Which default bucket to resolve when bucketKey is omitted. Ignored when bucketKey is given. */ @@ -943,6 +879,8 @@ export interface UploadFileInput { contentHash: string; /** MIME type of the file */ contentType: string; + /** Database the file belongs to. Omit for the database of the current session; a caller who is not a member of the named database is refused. */ + databaseId?: string; /** Original filename (optional) */ filename?: string; /** Which default bucket to resolve when bucketKey is omitted: the public one (true) or the private one (default false). Ignored when bucketKey is given. */ @@ -1026,24 +964,12 @@ export interface CreateBucketPayload { bucketEdge?: BucketEdge | null; clientMutationId?: string | null; } -export interface CreateFilePayload { - clientMutationId?: string | null; - /** The `File` that was created by this mutation. */ - file?: File | null; - fileEdge?: FileEdge | null; -} export interface CreatePlatformBucketPayload { clientMutationId?: string | null; /** The `PlatformBucket` that was created by this mutation. */ platformBucket?: PlatformBucket | null; platformBucketEdge?: PlatformBucketEdge | null; } -export interface CreatePlatformFilePayload { - clientMutationId?: string | null; - /** The `PlatformFile` that was created by this mutation. */ - platformFile?: PlatformFile | null; - platformFileEdge?: PlatformFileEdge | null; -} export interface DeleteBucketPayload { /** The `Bucket` that was deleted by this mutation. */ bucket?: Bucket | null; @@ -1122,6 +1048,8 @@ export interface UploadFilePayload { fileId: string; /** The S3 object key */ key: string; + /** The exact headers the PUT to uploadUrl must send (Content-Type and every header the URL is signed over, e.g. x-amz-checksum-sha256 and x-amz-meta-upload-id). Forward them as-is. Null if deduplicated. */ + uploadHeaders?: unknown | null; /** Presigned PUT URL (null if deduplicated) */ uploadUrl?: string | null; } @@ -1139,6 +1067,8 @@ export interface UploadPlatformFilePayload { fileId: string; /** The S3 object key */ key: string; + /** The exact headers the PUT to uploadUrl must send (Content-Type and every header the URL is signed over, e.g. x-amz-checksum-sha256 and x-amz-meta-upload-id). Forward them as-is. Null if deduplicated. */ + uploadHeaders?: unknown | null; /** Presigned PUT URL (null if deduplicated) */ uploadUrl?: string | null; } @@ -1148,21 +1078,27 @@ export interface UploadPlatformFileBulkPayload { /** Information about a database table */ export interface MetaTable { constraints: MetaConstraints; + /** Description written for this table, or null */ + description?: string | null; fields: MetaField[]; foreignKeyConstraints: MetaForeignKeyConstraint[]; - /** i18n metadata (null if no @i18n tag) */ + /** i18n metadata (null if the table is not translatable) */ i18n?: MetaI18n | null; indexes: MetaIndex[]; inflection: MetaInflection; + /** Whether this table only links rows of two other tables; the link appears in their manyToMany relations */ + isJunction: boolean; + /** 'table' when rows are stored in this table, 'view' when they come from a view of other tables */ + kind: string; /** Final GraphQL output type name */ name: string; primaryKeyConstraints: MetaPrimaryKeyConstraint[]; query: MetaQuery; - /** Realtime metadata (null if no @realtime tag) */ + /** Realtime metadata (null if the table has no change subscriptions) */ realtime?: MetaRealtime | null; relations: MetaRelations; schemaName: string; - /** Provisioning scope metadata (null if no @scope tag) */ + /** Provisioning scope metadata (null if the table has no scope) */ scope?: MetaScope | null; /** Search metadata (null if no search configured) */ search?: MetaSearch | null; @@ -1214,6 +1150,8 @@ export interface UploadFileBulkFilePayload { file?: unknown | null; fileId: string; key: string; + /** The exact headers the PUT to uploadUrl must send. */ + uploadHeaders?: unknown | null; uploadUrl?: string | null; } export interface UploadPlatformFileBulkFilePayload { @@ -1223,6 +1161,8 @@ export interface UploadPlatformFileBulkFilePayload { file?: unknown | null; fileId: string; key: string; + /** The exact headers the PUT to uploadUrl must send. */ + uploadHeaders?: unknown | null; uploadUrl?: string | null; } /** Table constraints */ @@ -1233,15 +1173,27 @@ export interface MetaConstraints { } /** Information about a table field/column */ export interface MetaField { + /** Values this field accepts, when the set is fixed; null otherwise. Set on a table's own fields only. */ + allowedValues?: string[] | null; /** PostgreSQL column name */ columnName: string; description?: string | null; /** Enum metadata if this field has an enum type */ enumValues?: MetaEnum | null; + /** Set when the field holds files; null otherwise. Set on a table's own fields only. */ + file?: MetaFileField | null; hasDefault: boolean; + /** Whether the value is always computed and cannot be written, even when a create or update input offers the field. Set on a table's own fields only. */ + isComputed?: boolean | null; isForeignKey: boolean; isNotNull: boolean; isPrimaryKey: boolean; + /** Whether a create must provide this field. Set on a table's own fields only. */ + isRequiredOnCreate?: boolean | null; + /** Whether a create may set this field. Set on a table's own fields only. */ + isWritableOnCreate?: boolean | null; + /** Whether an update may change this field. Set on a table's own fields only. */ + isWritableOnUpdate?: boolean | null; /** Final GraphQL field name */ name: string; type: MetaType; @@ -1255,7 +1207,7 @@ export interface MetaForeignKeyConstraint { referencedFields: string[]; referencedTable: string; } -/** i18n metadata for a table with @i18n tag */ +/** i18n metadata for a translatable table */ export interface MetaI18n { /** Fields that are translatable */ translatableFields: MetaI18nField[]; @@ -1270,7 +1222,7 @@ export interface MetaIndex { isUnique: boolean; name: string; } -/** Table inflection names */ +/** Type and field names generated for this table */ export interface MetaInflection { allRows: string; conditionType: string; @@ -1298,7 +1250,7 @@ export interface MetaQuery { one?: string | null; update?: string | null; } -/** Realtime metadata for a table with @realtime tag */ +/** Realtime metadata for a table with change subscriptions */ export interface MetaRealtime { /** The generated subscription field name (e.g. onPostChanged) */ subscriptionFieldName: string; @@ -1313,13 +1265,13 @@ export interface MetaRelations { } /** Provisioning scope metadata for a table */ export interface MetaScope { - /** SQL name of the entity table for entity scopes, else null */ + /** Name of the entity table for entity scopes, else null */ entityTable?: string | null; - /** Inflected scope key column (e.g. databaseId, orgId), null for global tiers */ + /** Field name of the scope key (e.g. databaseId, orgId), null for global tiers */ keyColumn?: string | null; /** Provisioning scope: 'platform', 'app', 'database', or an entity scope (e.g. 'org') */ scope: string; - /** Provenance of the scope metadata (always 'smartTag') */ + /** Where this scope metadata comes from */ source: string; /** Coarse bucket: 'global', 'database', or 'entity' */ tier: string; @@ -1337,17 +1289,17 @@ export interface MetaSearch { } /** Storage metadata for a table */ export interface MetaStorage { - /** GraphQL type name of the plane's buckets table */ + /** GraphQL type name of the paired buckets table */ bucketsType: string; /** Computed download-URL field on the files type; null on the buckets side */ downloadUrlField?: string | null; - /** GraphQL type name of the plane's files table */ + /** GraphQL type name of the paired files table */ filesType: string; /** Whether this table is a storage buckets table */ isBucketsTable: boolean; /** Whether this table is a storage files table */ isFilesTable: boolean; - /** The plane's GraphQL upload surface */ + /** Upload mutations and types for this storage */ upload: MetaStorageUpload; } /** Information about a unique constraint */ @@ -1362,6 +1314,15 @@ export interface MetaEnum { /** Allowed values for this enum */ values: string[]; } +/** How a field holds files */ +export interface MetaFileField { + /** GraphQL type name of the files table uploads are recorded in, when this API has exactly one; null otherwise */ + filesType?: string | null; + /** Whether the field holds a list of files */ + isMultiple: boolean; + /** image, upload, or attachment. An image or upload holds a file document; an attachment holds a link to a file. */ + kind: string; +} /** Information about a PostgreSQL type */ export interface MetaType { /** Scalar serialization contract (null for plain scalars) */ @@ -1370,7 +1331,13 @@ export interface MetaType { hasDefault?: boolean | null; isArray: boolean; isNotNull?: boolean | null; + /** Most characters a text value may hold, or most bits a bit string may hold; for a list, each item. Null when unbounded. */ + maxLength?: number | null; pgType: string; + /** Most significant digits a decimal number may hold. Null when unbounded. */ + precision?: number | null; + /** Digits a decimal number keeps after the decimal point. Null when unbounded. */ + scale?: number | null; subtype?: string | null; } /** Reference to a related table */ @@ -1389,6 +1356,8 @@ export interface MetaBelongsToRelation { fieldName?: string | null; isUnique: boolean; keys: MetaField[]; + /** Fields on the referenced table that keys point at, in the same order as keys */ + refKeys: MetaField[]; references: MetaRefTable; type?: string | null; } @@ -1398,6 +1367,8 @@ export interface MetaHasRelation { isUnique: boolean; keys: MetaField[]; referencedBy: MetaRefTable; + /** Fields on the related table that point at this table, in the same order as keys */ + remoteKeys: MetaField[]; type?: string | null; } /** A many-to-many relation via junction table */ @@ -1420,7 +1391,7 @@ export interface MetaSearchColumn { /** Column name (camelCase) */ name: string; } -/** Per-table search configuration from @searchConfig smart tag */ +/** Per-table search configuration */ export interface MetaSearchConfig { /** Exponential decay factor per day */ boostRecencyDecay?: number | null; @@ -1431,7 +1402,7 @@ export interface MetaSearchConfig { /** JSON-encoded per-adapter score weights */ weights?: string | null; } -/** The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from */ +/** The upload mutations and types for a storage table pair */ export interface MetaStorageUpload { /** Per-file input type inside the bulk input */ bulkFileInputType: string; @@ -1449,14 +1420,14 @@ export interface MetaStorageUpload { mutation: string; /** Payload type of the single upload mutation */ payloadType: string; - /** Whether the upload input requires ownerId (entity-keyed plane) */ + /** Whether the upload input requires ownerId */ requiresOwnerId: boolean; } -/** How a client must serialize/parse a scalar — the one field-type detail standard GraphQL introspection cannot describe. Null for plain scalars whose wire format is obvious from gqlType. */ +/** How a client must serialize and parse a scalar whose wire format gqlType alone does not settle. Null for plain scalars whose wire format is obvious from gqlType. */ export interface MetaScalarEncoding { /** For 'vector': declared length, else null. */ dimensions?: number | null; - /** For 'ltree': values are dot-separated path strings. */ + /** For 'ltree': true when values are dot-separated paths ('a.b.c'), false when they are slash-separated paths ('/a/b/c'). */ dotPath?: boolean | null; /** For 'vector': element scalar (e.g. 'float'). */ elementType?: string | null; diff --git a/sdk/constructive-react/src/storage/types.ts b/sdk/constructive-react/src/storage/types.ts index 00e29c3935..b4c344cde1 100644 --- a/sdk/constructive-react/src/storage/types.ts +++ b/sdk/constructive-react/src/storage/types.ts @@ -5,6 +5,7 @@ */ import type { BucketType, FileStatus } from './schema-types'; export type ConstructiveInternalTypeUpload = unknown; +export type FileVersion = unknown; export interface Bucket { actorId: string | null; allowCustomKeys: boolean | null; @@ -42,11 +43,14 @@ export interface File { key: string | null; mimeType: string | null; promotedAt: string | null; + rejectionReason: string | null; size: string | null; status: FileStatus | null; tags: string[] | null; updatedAt: string | null; upload: ConstructiveInternalTypeUpload | null; + uploadUrl: string | null; + uploadVersions: FileVersion[] | null; } export interface PlatformBucket { actorId: string | null; @@ -83,11 +87,14 @@ export interface PlatformFile { key: string | null; mimeType: string | null; promotedAt: string | null; + rejectionReason: string | null; size: string | null; status: FileStatus | null; tags: string[] | null; updatedAt: string | null; upload: ConstructiveInternalTypeUpload | null; + uploadUrl: string | null; + uploadVersions: FileVersion[] | null; } export interface StringFilter { isNull?: boolean; diff --git a/sdk/constructive-react/src/usage/orm/query-builder.ts b/sdk/constructive-react/src/usage/orm/query-builder.ts index fd785bbae6..d6c981907f 100644 --- a/sdk/constructive-react/src/usage/orm/query-builder.ts +++ b/sdk/constructive-react/src/usage/orm/query-builder.ts @@ -140,9 +140,7 @@ export function buildSelections( ); const nestedSelect = nested.select; if (nestedSelect && typeof nestedSelect === 'object') { - const subSelections = Object.entries(nestedSelect) - .filter(([, v]) => v) - .map(([name]) => t.field({ name })); + const subSelections = buildSelections(nestedSelect, connectionFieldsMap); fields.push( t.field({ name: key, diff --git a/sdk/constructive-react/src/usage/orm/select-types.ts b/sdk/constructive-react/src/usage/orm/select-types.ts index 4b39d7e820..783c4603df 100644 --- a/sdk/constructive-react/src/usage/orm/select-types.ts +++ b/sdk/constructive-react/src/usage/orm/select-types.ts @@ -159,9 +159,13 @@ export type InferSelectResult = TSelect extends undefined ? K extends keyof TEntity ? NonNullable extends ConnectionResult ? ConnectionResult> - : - | InferSelectResult, NestedSelect> - | (null extends TEntity[K] ? null : never) + : NonNullable extends readonly (infer Item)[] + ? + | InferSelectResult, NestedSelect>[] + | (null extends TEntity[K] ? null : never) + : + | InferSelectResult, NestedSelect> + | (null extends TEntity[K] ? null : never) : never : K extends keyof TEntity ? TEntity[K] diff --git a/sdk/constructive-react/src/usage/schema-types.ts b/sdk/constructive-react/src/usage/schema-types.ts index b42936303d..fd7fca44b8 100644 --- a/sdk/constructive-react/src/usage/schema-types.ts +++ b/sdk/constructive-react/src/usage/schema-types.ts @@ -2307,21 +2307,27 @@ export interface UpdateOrgLimitWarningPayload { /** Information about a database table */ export interface MetaTable { constraints: MetaConstraints; + /** Description written for this table, or null */ + description?: string | null; fields: MetaField[]; foreignKeyConstraints: MetaForeignKeyConstraint[]; - /** i18n metadata (null if no @i18n tag) */ + /** i18n metadata (null if the table is not translatable) */ i18n?: MetaI18n | null; indexes: MetaIndex[]; inflection: MetaInflection; + /** Whether this table only links rows of two other tables; the link appears in their manyToMany relations */ + isJunction: boolean; + /** 'table' when rows are stored in this table, 'view' when they come from a view of other tables */ + kind: string; /** Final GraphQL output type name */ name: string; primaryKeyConstraints: MetaPrimaryKeyConstraint[]; query: MetaQuery; - /** Realtime metadata (null if no @realtime tag) */ + /** Realtime metadata (null if the table has no change subscriptions) */ realtime?: MetaRealtime | null; relations: MetaRelations; schemaName: string; - /** Provisioning scope metadata (null if no @scope tag) */ + /** Provisioning scope metadata (null if the table has no scope) */ scope?: MetaScope | null; /** Search metadata (null if no search configured) */ search?: MetaSearch | null; @@ -2458,15 +2464,27 @@ export interface MetaConstraints { } /** Information about a table field/column */ export interface MetaField { + /** Values this field accepts, when the set is fixed; null otherwise. Set on a table's own fields only. */ + allowedValues?: string[] | null; /** PostgreSQL column name */ columnName: string; description?: string | null; /** Enum metadata if this field has an enum type */ enumValues?: MetaEnum | null; + /** Set when the field holds files; null otherwise. Set on a table's own fields only. */ + file?: MetaFileField | null; hasDefault: boolean; + /** Whether the value is always computed and cannot be written, even when a create or update input offers the field. Set on a table's own fields only. */ + isComputed?: boolean | null; isForeignKey: boolean; isNotNull: boolean; isPrimaryKey: boolean; + /** Whether a create must provide this field. Set on a table's own fields only. */ + isRequiredOnCreate?: boolean | null; + /** Whether a create may set this field. Set on a table's own fields only. */ + isWritableOnCreate?: boolean | null; + /** Whether an update may change this field. Set on a table's own fields only. */ + isWritableOnUpdate?: boolean | null; /** Final GraphQL field name */ name: string; type: MetaType; @@ -2480,7 +2498,7 @@ export interface MetaForeignKeyConstraint { referencedFields: string[]; referencedTable: string; } -/** i18n metadata for a table with @i18n tag */ +/** i18n metadata for a translatable table */ export interface MetaI18n { /** Fields that are translatable */ translatableFields: MetaI18nField[]; @@ -2495,7 +2513,7 @@ export interface MetaIndex { isUnique: boolean; name: string; } -/** Table inflection names */ +/** Type and field names generated for this table */ export interface MetaInflection { allRows: string; conditionType: string; @@ -2523,7 +2541,7 @@ export interface MetaQuery { one?: string | null; update?: string | null; } -/** Realtime metadata for a table with @realtime tag */ +/** Realtime metadata for a table with change subscriptions */ export interface MetaRealtime { /** The generated subscription field name (e.g. onPostChanged) */ subscriptionFieldName: string; @@ -2538,13 +2556,13 @@ export interface MetaRelations { } /** Provisioning scope metadata for a table */ export interface MetaScope { - /** SQL name of the entity table for entity scopes, else null */ + /** Name of the entity table for entity scopes, else null */ entityTable?: string | null; - /** Inflected scope key column (e.g. databaseId, orgId), null for global tiers */ + /** Field name of the scope key (e.g. databaseId, orgId), null for global tiers */ keyColumn?: string | null; /** Provisioning scope: 'platform', 'app', 'database', or an entity scope (e.g. 'org') */ scope: string; - /** Provenance of the scope metadata (always 'smartTag') */ + /** Where this scope metadata comes from */ source: string; /** Coarse bucket: 'global', 'database', or 'entity' */ tier: string; @@ -2562,17 +2580,17 @@ export interface MetaSearch { } /** Storage metadata for a table */ export interface MetaStorage { - /** GraphQL type name of the plane's buckets table */ + /** GraphQL type name of the paired buckets table */ bucketsType: string; /** Computed download-URL field on the files type; null on the buckets side */ downloadUrlField?: string | null; - /** GraphQL type name of the plane's files table */ + /** GraphQL type name of the paired files table */ filesType: string; /** Whether this table is a storage buckets table */ isBucketsTable: boolean; /** Whether this table is a storage files table */ isFilesTable: boolean; - /** The plane's GraphQL upload surface */ + /** Upload mutations and types for this storage */ upload: MetaStorageUpload; } /** Information about a unique constraint */ @@ -2587,6 +2605,15 @@ export interface MetaEnum { /** Allowed values for this enum */ values: string[]; } +/** How a field holds files */ +export interface MetaFileField { + /** GraphQL type name of the files table uploads are recorded in, when this API has exactly one; null otherwise */ + filesType?: string | null; + /** Whether the field holds a list of files */ + isMultiple: boolean; + /** image, upload, or attachment. An image or upload holds a file document; an attachment holds a link to a file. */ + kind: string; +} /** Information about a PostgreSQL type */ export interface MetaType { /** Scalar serialization contract (null for plain scalars) */ @@ -2595,7 +2622,13 @@ export interface MetaType { hasDefault?: boolean | null; isArray: boolean; isNotNull?: boolean | null; + /** Most characters a text value may hold, or most bits a bit string may hold; for a list, each item. Null when unbounded. */ + maxLength?: number | null; pgType: string; + /** Most significant digits a decimal number may hold. Null when unbounded. */ + precision?: number | null; + /** Digits a decimal number keeps after the decimal point. Null when unbounded. */ + scale?: number | null; subtype?: string | null; } /** Reference to a related table */ @@ -2614,6 +2647,8 @@ export interface MetaBelongsToRelation { fieldName?: string | null; isUnique: boolean; keys: MetaField[]; + /** Fields on the referenced table that keys point at, in the same order as keys */ + refKeys: MetaField[]; references: MetaRefTable; type?: string | null; } @@ -2623,6 +2658,8 @@ export interface MetaHasRelation { isUnique: boolean; keys: MetaField[]; referencedBy: MetaRefTable; + /** Fields on the related table that point at this table, in the same order as keys */ + remoteKeys: MetaField[]; type?: string | null; } /** A many-to-many relation via junction table */ @@ -2645,7 +2682,7 @@ export interface MetaSearchColumn { /** Column name (camelCase) */ name: string; } -/** Per-table search configuration from @searchConfig smart tag */ +/** Per-table search configuration */ export interface MetaSearchConfig { /** Exponential decay factor per day */ boostRecencyDecay?: number | null; @@ -2656,7 +2693,7 @@ export interface MetaSearchConfig { /** JSON-encoded per-adapter score weights */ weights?: string | null; } -/** The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from */ +/** The upload mutations and types for a storage table pair */ export interface MetaStorageUpload { /** Per-file input type inside the bulk input */ bulkFileInputType: string; @@ -2674,14 +2711,14 @@ export interface MetaStorageUpload { mutation: string; /** Payload type of the single upload mutation */ payloadType: string; - /** Whether the upload input requires ownerId (entity-keyed plane) */ + /** Whether the upload input requires ownerId */ requiresOwnerId: boolean; } -/** How a client must serialize/parse a scalar — the one field-type detail standard GraphQL introspection cannot describe. Null for plain scalars whose wire format is obvious from gqlType. */ +/** How a client must serialize and parse a scalar whose wire format gqlType alone does not settle. Null for plain scalars whose wire format is obvious from gqlType. */ export interface MetaScalarEncoding { /** For 'vector': declared length, else null. */ dimensions?: number | null; - /** For 'ltree': values are dot-separated path strings. */ + /** For 'ltree': true when values are dot-separated paths ('a.b.c'), false when they are slash-separated paths ('/a/b/c'). */ dotPath?: boolean | null; /** For 'vector': element scalar (e.g. 'float'). */ elementType?: string | null; diff --git a/sdk/constructive-sdk/schemas/admin.graphql b/sdk/constructive-sdk/schemas/admin.graphql index 6bdd4ad99b..5df04aceba 100644 --- a/sdk/constructive-sdk/schemas/admin.graphql +++ b/sdk/constructive-sdk/schemas/admin.graphql @@ -3464,6 +3464,17 @@ type DeleteOrgOwnerGrantPayload { query: Query } +"""One version rendered beside a file, with a URL to fetch it.""" +type FileVersion { + format: String + height: Int + key: String! + name: String + size: Int + url: String! + width: Int +} + """ A filter to be used against Int fields. All fields are combined with a logical ‘and.’ """ @@ -3780,6 +3791,11 @@ type MetaBelongsToRelation { fieldName: String isUnique: Boolean! keys: [MetaField!]! + + """ + Fields on the referenced table that keys point at, in the same order as keys + """ + refKeys: [MetaField!]! references: MetaRefTable! type: String } @@ -3802,22 +3818,66 @@ type MetaEnum { """Information about a table field/column""" type MetaField { + """ + Values this field accepts, when the set is fixed; null otherwise. Set on a table's own fields only. + """ + allowedValues: [String!] + """PostgreSQL column name""" columnName: String! description: String """Enum metadata if this field has an enum type""" enumValues: MetaEnum + + """ + Set when the field holds files; null otherwise. Set on a table's own fields only. + """ + file: MetaFileField hasDefault: Boolean! + + """ + Whether the value is always computed and cannot be written, even when a create or update input offers the field. Set on a table's own fields only. + """ + isComputed: Boolean isForeignKey: Boolean! isNotNull: Boolean! isPrimaryKey: Boolean! + """ + Whether a create must provide this field. Set on a table's own fields only. + """ + isRequiredOnCreate: Boolean + + """Whether a create may set this field. Set on a table's own fields only.""" + isWritableOnCreate: Boolean + + """ + Whether an update may change this field. Set on a table's own fields only. + """ + isWritableOnUpdate: Boolean + """Final GraphQL field name""" name: String! type: MetaType! } +"""How a field holds files""" +type MetaFileField { + """ + GraphQL type name of the files table uploads are recorded in, when this API has exactly one; null otherwise + """ + filesType: String + + """Whether the field holds a list of files""" + isMultiple: Boolean! + + """ + image, upload, or attachment. An image or upload holds a file document; an attachment holds a link to a file. + """ + kind: String! +} + """Information about a foreign key constraint""" type MetaForeignKeyConstraint { fields: [MetaField!]! @@ -3834,10 +3894,15 @@ type MetaHasRelation { isUnique: Boolean! keys: [MetaField!]! referencedBy: MetaRefTable! + + """ + Fields on the related table that point at this table, in the same order as keys + """ + remoteKeys: [MetaField!]! type: String } -"""i18n metadata for a table with @i18n tag""" +"""i18n metadata for a translatable table""" type MetaI18n { """Fields that are translatable""" translatableFields: [MetaI18nField!]! @@ -3864,7 +3929,7 @@ type MetaIndex { name: String! } -"""Table inflection names""" +"""Type and field names generated for this table""" type MetaInflection { allRows: String! conditionType: String! @@ -3909,7 +3974,7 @@ type MetaQuery { update: String } -"""Realtime metadata for a table with @realtime tag""" +"""Realtime metadata for a table with change subscriptions""" type MetaRealtime { """The generated subscription field name (e.g. onPostChanged)""" subscriptionFieldName: String! @@ -3930,13 +3995,15 @@ type MetaRelations { } """ -How a client must serialize/parse a scalar — the one field-type detail standard GraphQL introspection cannot describe. Null for plain scalars whose wire format is obvious from gqlType. +How a client must serialize and parse a scalar whose wire format gqlType alone does not settle. Null for plain scalars whose wire format is obvious from gqlType. """ type MetaScalarEncoding { """For 'vector': declared length, else null.""" dimensions: Int - """For 'ltree': values are dot-separated path strings.""" + """ + For 'ltree': true when values are dot-separated paths ('a.b.c'), false when they are slash-separated paths ('/a/b/c'). + """ dotPath: Boolean """For 'vector': element scalar (e.g. 'float').""" @@ -3961,11 +4028,11 @@ type MetaSchema { """Provisioning scope metadata for a table""" type MetaScope { - """SQL name of the entity table for entity scopes, else null""" + """Name of the entity table for entity scopes, else null""" entityTable: String """ - Inflected scope key column (e.g. databaseId, orgId), null for global tiers + Field name of the scope key (e.g. databaseId, orgId), null for global tiers """ keyColumn: String @@ -3974,7 +4041,7 @@ type MetaScope { """ scope: String! - """Provenance of the scope metadata (always 'smartTag')""" + """Where this scope metadata comes from""" source: String! """Coarse bucket: 'global', 'database', or 'entity'""" @@ -4005,7 +4072,7 @@ type MetaSearchColumn { name: String! } -"""Per-table search configuration from @searchConfig smart tag""" +"""Per-table search configuration""" type MetaSearchConfig { """Exponential decay factor per day""" boostRecencyDecay: Float @@ -4022,7 +4089,7 @@ type MetaSearchConfig { """Storage metadata for a table""" type MetaStorage { - """GraphQL type name of the plane's buckets table""" + """GraphQL type name of the paired buckets table""" bucketsType: String! """ @@ -4030,7 +4097,7 @@ type MetaStorage { """ downloadUrlField: String - """GraphQL type name of the plane's files table""" + """GraphQL type name of the paired files table""" filesType: String! """Whether this table is a storage buckets table""" @@ -4039,13 +4106,11 @@ type MetaStorage { """Whether this table is a storage files table""" isFilesTable: Boolean! - """The plane's GraphQL upload surface""" + """Upload mutations and types for this storage""" upload: MetaStorageUpload! } -""" -The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from -""" +"""The upload mutations and types for a storage table pair""" type MetaStorageUpload { """Per-file input type inside the bulk input""" bulkFileInputType: String! @@ -4071,32 +4136,45 @@ type MetaStorageUpload { """Payload type of the single upload mutation""" payloadType: String! - """Whether the upload input requires ownerId (entity-keyed plane)""" + """Whether the upload input requires ownerId""" requiresOwnerId: Boolean! } """Information about a database table""" type MetaTable { constraints: MetaConstraints! + + """Description written for this table, or null""" + description: String fields: [MetaField!]! foreignKeyConstraints: [MetaForeignKeyConstraint!]! - """i18n metadata (null if no @i18n tag)""" + """i18n metadata (null if the table is not translatable)""" i18n: MetaI18n indexes: [MetaIndex!]! inflection: MetaInflection! + """ + Whether this table only links rows of two other tables; the link appears in their manyToMany relations + """ + isJunction: Boolean! + + """ + 'table' when rows are stored in this table, 'view' when they come from a view of other tables + """ + kind: String! + """Final GraphQL output type name""" name: String! primaryKeyConstraints: [MetaPrimaryKeyConstraint!]! query: MetaQuery! - """Realtime metadata (null if no @realtime tag)""" + """Realtime metadata (null if the table has no change subscriptions)""" realtime: MetaRealtime relations: MetaRelations! schemaName: String! - """Provisioning scope metadata (null if no @scope tag)""" + """Provisioning scope metadata (null if the table has no scope)""" scope: MetaScope """Search metadata (null if no search configured)""" @@ -4118,7 +4196,22 @@ type MetaType { hasDefault: Boolean isArray: Boolean! isNotNull: Boolean + + """ + Most characters a text value may hold, or most bits a bit string may hold; for a list, each item. Null when unbounded. + """ + maxLength: Int pgType: String! + + """ + Most significant digits a decimal number may hold. Null when unbounded. + """ + precision: Int + + """ + Digits a decimal number keeps after the decimal point. Null when unbounded. + """ + scale: Int subtype: String } @@ -6399,6 +6492,21 @@ type OrgMemberProfile { """Profile picture visible to other entity members""" profilePicture: ConstructiveInternalTypeImage + """ + URL to fetch `profilePicture`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. + """ + profilePictureUrl( + """ + The width the file will be shown at, in device pixels. Without a version that wide, the source. + """ + width: Int + ): String + + """ + The versions rendered beside `profilePicture`, narrowest first, each with a URL. Empty when there are none. + """ + profilePictureVersions: [FileVersion!] + """Job title or role description visible to other entity members""" title: String updatedAt: Datetime @@ -6572,9 +6680,6 @@ input OrgMemberProfilePatch { """Profile picture visible to other entity members""" profilePicture: ConstructiveInternalTypeImage - """Upload for Profile picture visible to other entity members""" - profilePictureUpload: Upload - """Job title or role description visible to other entity members""" title: String updatedAt: Datetime @@ -9640,7 +9745,4 @@ type UpdateOrgOwnerGrantPayload { Our root query field type. Allows us to run any query from our mutation payload. """ query: Query -} - -"""The `Upload` scalar type represents a file upload.""" -scalar Upload \ No newline at end of file +} \ No newline at end of file diff --git a/sdk/constructive-sdk/schemas/agent.graphql b/sdk/constructive-sdk/schemas/agent.graphql index bb8461a2b1..f12fa8f459 100644 --- a/sdk/constructive-sdk/schemas/agent.graphql +++ b/sdk/constructive-sdk/schemas/agent.graphql @@ -1602,6 +1602,12 @@ type AgentResource { """ descriptionTrgmSimilarity: Float embedding: Vector + embeddingModel: String + + """ + TRGM similarity when searching `embeddingModel`. Returns null when no trgm search filter is active. + """ + embeddingModelTrgmSimilarity: Float embeddingUpdatedAt: Datetime """ @@ -1775,7 +1781,7 @@ input AgentResourceChunkInput { embedding: Vector """ - Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. """ embeddingText: String id: UUID @@ -1828,7 +1834,7 @@ input AgentResourceChunkPatch { embedding: Vector """ - Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. """ embeddingText: String id: UUID @@ -1899,6 +1905,9 @@ input AgentResourceFilter { """Filter by the object’s `embedding` field.""" embedding: VectorFilter + """Filter by the object’s `embeddingModel` field.""" + embeddingModel: StringTrgmFilter + """Filter by the object’s `embeddingUpdatedAt` field.""" embeddingUpdatedAt: DatetimeFilter @@ -1941,6 +1950,9 @@ input AgentResourceFilter { """TRGM search on the `description` column.""" trgmDescription: TrgmSearchInput + """TRGM search on the `embedding_model` column.""" + trgmEmbeddingModel: TrgmSearchInput + """TRGM search on the `kind` column.""" trgmKind: TrgmSearchInput @@ -1991,7 +2003,7 @@ input AgentResourceInput { embedding: Vector """ - Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. """ embeddingText: String id: UUID @@ -2043,6 +2055,10 @@ enum AgentResourceOrderBy { DESCRIPTION_TRGM_SIMILARITY_DESC EMBEDDING_ASC EMBEDDING_DESC + EMBEDDING_MODEL_ASC + EMBEDDING_MODEL_DESC + EMBEDDING_MODEL_TRGM_SIMILARITY_ASC + EMBEDDING_MODEL_TRGM_SIMILARITY_DESC EMBEDDING_UPDATED_AT_ASC EMBEDDING_UPDATED_AT_DESC EMBEDDING_VECTOR_DISTANCE_ASC @@ -2105,7 +2121,7 @@ input AgentResourcePatch { embedding: Vector """ - Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. """ embeddingText: String id: UUID @@ -5848,6 +5864,11 @@ type MetaBelongsToRelation { fieldName: String isUnique: Boolean! keys: [MetaField!]! + + """ + Fields on the referenced table that keys point at, in the same order as keys + """ + refKeys: [MetaField!]! references: MetaRefTable! type: String } @@ -5870,22 +5891,66 @@ type MetaEnum { """Information about a table field/column""" type MetaField { + """ + Values this field accepts, when the set is fixed; null otherwise. Set on a table's own fields only. + """ + allowedValues: [String!] + """PostgreSQL column name""" columnName: String! description: String """Enum metadata if this field has an enum type""" enumValues: MetaEnum + + """ + Set when the field holds files; null otherwise. Set on a table's own fields only. + """ + file: MetaFileField hasDefault: Boolean! + + """ + Whether the value is always computed and cannot be written, even when a create or update input offers the field. Set on a table's own fields only. + """ + isComputed: Boolean isForeignKey: Boolean! isNotNull: Boolean! isPrimaryKey: Boolean! + """ + Whether a create must provide this field. Set on a table's own fields only. + """ + isRequiredOnCreate: Boolean + + """Whether a create may set this field. Set on a table's own fields only.""" + isWritableOnCreate: Boolean + + """ + Whether an update may change this field. Set on a table's own fields only. + """ + isWritableOnUpdate: Boolean + """Final GraphQL field name""" name: String! type: MetaType! } +"""How a field holds files""" +type MetaFileField { + """ + GraphQL type name of the files table uploads are recorded in, when this API has exactly one; null otherwise + """ + filesType: String + + """Whether the field holds a list of files""" + isMultiple: Boolean! + + """ + image, upload, or attachment. An image or upload holds a file document; an attachment holds a link to a file. + """ + kind: String! +} + """Information about a foreign key constraint""" type MetaForeignKeyConstraint { fields: [MetaField!]! @@ -5902,10 +5967,15 @@ type MetaHasRelation { isUnique: Boolean! keys: [MetaField!]! referencedBy: MetaRefTable! + + """ + Fields on the related table that point at this table, in the same order as keys + """ + remoteKeys: [MetaField!]! type: String } -"""i18n metadata for a table with @i18n tag""" +"""i18n metadata for a translatable table""" type MetaI18n { """Fields that are translatable""" translatableFields: [MetaI18nField!]! @@ -5932,7 +6002,7 @@ type MetaIndex { name: String! } -"""Table inflection names""" +"""Type and field names generated for this table""" type MetaInflection { allRows: String! conditionType: String! @@ -5977,7 +6047,7 @@ type MetaQuery { update: String } -"""Realtime metadata for a table with @realtime tag""" +"""Realtime metadata for a table with change subscriptions""" type MetaRealtime { """The generated subscription field name (e.g. onPostChanged)""" subscriptionFieldName: String! @@ -5998,13 +6068,15 @@ type MetaRelations { } """ -How a client must serialize/parse a scalar — the one field-type detail standard GraphQL introspection cannot describe. Null for plain scalars whose wire format is obvious from gqlType. +How a client must serialize and parse a scalar whose wire format gqlType alone does not settle. Null for plain scalars whose wire format is obvious from gqlType. """ type MetaScalarEncoding { """For 'vector': declared length, else null.""" dimensions: Int - """For 'ltree': values are dot-separated path strings.""" + """ + For 'ltree': true when values are dot-separated paths ('a.b.c'), false when they are slash-separated paths ('/a/b/c'). + """ dotPath: Boolean """For 'vector': element scalar (e.g. 'float').""" @@ -6029,11 +6101,11 @@ type MetaSchema { """Provisioning scope metadata for a table""" type MetaScope { - """SQL name of the entity table for entity scopes, else null""" + """Name of the entity table for entity scopes, else null""" entityTable: String """ - Inflected scope key column (e.g. databaseId, orgId), null for global tiers + Field name of the scope key (e.g. databaseId, orgId), null for global tiers """ keyColumn: String @@ -6042,7 +6114,7 @@ type MetaScope { """ scope: String! - """Provenance of the scope metadata (always 'smartTag')""" + """Where this scope metadata comes from""" source: String! """Coarse bucket: 'global', 'database', or 'entity'""" @@ -6073,7 +6145,7 @@ type MetaSearchColumn { name: String! } -"""Per-table search configuration from @searchConfig smart tag""" +"""Per-table search configuration""" type MetaSearchConfig { """Exponential decay factor per day""" boostRecencyDecay: Float @@ -6090,7 +6162,7 @@ type MetaSearchConfig { """Storage metadata for a table""" type MetaStorage { - """GraphQL type name of the plane's buckets table""" + """GraphQL type name of the paired buckets table""" bucketsType: String! """ @@ -6098,7 +6170,7 @@ type MetaStorage { """ downloadUrlField: String - """GraphQL type name of the plane's files table""" + """GraphQL type name of the paired files table""" filesType: String! """Whether this table is a storage buckets table""" @@ -6107,13 +6179,11 @@ type MetaStorage { """Whether this table is a storage files table""" isFilesTable: Boolean! - """The plane's GraphQL upload surface""" + """Upload mutations and types for this storage""" upload: MetaStorageUpload! } -""" -The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from -""" +"""The upload mutations and types for a storage table pair""" type MetaStorageUpload { """Per-file input type inside the bulk input""" bulkFileInputType: String! @@ -6139,32 +6209,45 @@ type MetaStorageUpload { """Payload type of the single upload mutation""" payloadType: String! - """Whether the upload input requires ownerId (entity-keyed plane)""" + """Whether the upload input requires ownerId""" requiresOwnerId: Boolean! } """Information about a database table""" type MetaTable { constraints: MetaConstraints! + + """Description written for this table, or null""" + description: String fields: [MetaField!]! foreignKeyConstraints: [MetaForeignKeyConstraint!]! - """i18n metadata (null if no @i18n tag)""" + """i18n metadata (null if the table is not translatable)""" i18n: MetaI18n indexes: [MetaIndex!]! inflection: MetaInflection! + """ + Whether this table only links rows of two other tables; the link appears in their manyToMany relations + """ + isJunction: Boolean! + + """ + 'table' when rows are stored in this table, 'view' when they come from a view of other tables + """ + kind: String! + """Final GraphQL output type name""" name: String! primaryKeyConstraints: [MetaPrimaryKeyConstraint!]! query: MetaQuery! - """Realtime metadata (null if no @realtime tag)""" + """Realtime metadata (null if the table has no change subscriptions)""" realtime: MetaRealtime relations: MetaRelations! schemaName: String! - """Provisioning scope metadata (null if no @scope tag)""" + """Provisioning scope metadata (null if the table has no scope)""" scope: MetaScope """Search metadata (null if no search configured)""" @@ -6186,7 +6269,22 @@ type MetaType { hasDefault: Boolean isArray: Boolean! isNotNull: Boolean + + """ + Most characters a text value may hold, or most bits a bit string may hold; for a list, each item. Null when unbounded. + """ + maxLength: Int pgType: String! + + """ + Most significant digits a decimal number may hold. Null when unbounded. + """ + precision: Int + + """ + Digits a decimal number keeps after the decimal point. Null when unbounded. + """ + scale: Int subtype: String } @@ -8341,6 +8439,12 @@ type PlatformAgentResource { """ descriptionTrgmSimilarity: Float embedding: Vector + embeddingModel: String + + """ + TRGM similarity when searching `embeddingModel`. Returns null when no trgm search filter is active. + """ + embeddingModelTrgmSimilarity: Float embeddingUpdatedAt: Datetime """ @@ -8532,7 +8636,7 @@ input PlatformAgentResourceChunkInput { embedding: Vector """ - Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. """ embeddingText: String id: UUID @@ -8578,7 +8682,7 @@ input PlatformAgentResourceChunkPatch { embedding: Vector """ - Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. """ embeddingText: String id: UUID @@ -8643,6 +8747,9 @@ input PlatformAgentResourceFilter { """Filter by the object’s `embedding` field.""" embedding: VectorFilter + """Filter by the object’s `embeddingModel` field.""" + embeddingModel: StringTrgmFilter + """Filter by the object’s `embeddingUpdatedAt` field.""" embeddingUpdatedAt: DatetimeFilter @@ -8691,6 +8798,9 @@ input PlatformAgentResourceFilter { """TRGM search on the `description` column.""" trgmDescription: TrgmSearchInput + """TRGM search on the `embedding_model` column.""" + trgmEmbeddingModel: TrgmSearchInput + """TRGM search on the `kind` column.""" trgmKind: TrgmSearchInput @@ -8738,7 +8848,7 @@ input PlatformAgentResourceInput { embedding: Vector """ - Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. """ embeddingText: String id: UUID @@ -8788,6 +8898,10 @@ enum PlatformAgentResourceOrderBy { DESCRIPTION_TRGM_SIMILARITY_DESC EMBEDDING_ASC EMBEDDING_DESC + EMBEDDING_MODEL_ASC + EMBEDDING_MODEL_DESC + EMBEDDING_MODEL_TRGM_SIMILARITY_ASC + EMBEDDING_MODEL_TRGM_SIMILARITY_DESC EMBEDDING_UPDATED_AT_ASC EMBEDDING_UPDATED_AT_DESC EMBEDDING_VECTOR_DISTANCE_ASC @@ -8847,7 +8961,7 @@ input PlatformAgentResourcePatch { embedding: Vector """ - Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. """ embeddingText: String id: UUID @@ -12770,10 +12884,15 @@ input VectorNearbyInput { metric: VectorMetric """ - Natural language text to embed server-side for similarity search. Mutually exclusive with `vector` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + The model that produced `vector`. On a column that records the model of each row's vector, only rows embedded with this model are compared; vectors of two models are not comparable. Filled in server-side when `text` is embedded. + """ + model: String + + """ + Natural language text to embed server-side for similarity search. Provide exactly one of `text` or `vector`; sending both or neither is an error. Blank text on its own counts as not given. Requires the LLM plugin to be configured with an embedding provider. """ text: String """Query vector for similarity search.""" - vector: [Float!]! + vector: [Float!] } \ No newline at end of file diff --git a/sdk/constructive-sdk/schemas/api.graphql b/sdk/constructive-sdk/schemas/api.graphql index bb6ff2a4e3..92450e7e3e 100644 --- a/sdk/constructive-sdk/schemas/api.graphql +++ b/sdk/constructive-sdk/schemas/api.graphql @@ -97,9 +97,6 @@ type Api { """Database that owns this resource (database-scoped isolation)""" databaseId: UUID! - - """Database this API surface serves""" - dbname: String id: UUID! """Whether other scopes may see and route to this API surface""" @@ -110,6 +107,7 @@ type Api { """Authenticated role the API executes as""" roleName: String + serviceHostname: String updatedAt: Datetime } @@ -224,9 +222,6 @@ input ApiFilter { """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter - """Filter by the object’s `dbname` field.""" - dbname: StringFilter - """Filter by the object’s `id` field.""" id: UUIDFilter @@ -260,9 +255,6 @@ input ApiInput { """Database that owns this resource (database-scoped isolation)""" databaseId: UUID! - - """Database this API surface serves""" - dbname: String id: UUID """Whether other scopes may see and route to this API surface""" @@ -286,8 +278,6 @@ enum ApiOrderBy { CREATED_AT_DESC DATABASE_ID_ASC DATABASE_ID_DESC - DBNAME_ASC - DBNAME_DESC ID_ASC ID_DESC IS_PUBLISHED_ASC @@ -314,9 +304,6 @@ input ApiPatch { """Database that owns this resource (database-scoped isolation)""" databaseId: UUID - - """Database this API surface serves""" - dbname: String id: UUID """Whether other scopes may see and route to this API surface""" @@ -495,11 +482,6 @@ type ApiSetting { """ enableConnectionFilter: Boolean - """ - Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) - """ - enableDirectUploads: Boolean - """ Override: enable internationalization plugin (NULL = inherit from database_settings) """ @@ -662,9 +644,6 @@ input ApiSettingFilter { """Filter by the object’s `enableConnectionFilter` field.""" enableConnectionFilter: BooleanFilter - """Filter by the object’s `enableDirectUploads` field.""" - enableDirectUploads: BooleanFilter - """Filter by the object’s `enableI18N` field.""" enableI18N: BooleanFilter @@ -765,11 +744,6 @@ input ApiSettingInput { """ enableConnectionFilter: Boolean - """ - Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) - """ - enableDirectUploads: Boolean - """ Override: enable internationalization plugin (NULL = inherit from database_settings) """ @@ -892,8 +866,6 @@ enum ApiSettingOrderBy { ENABLE_BULK_DESC ENABLE_CONNECTION_FILTER_ASC ENABLE_CONNECTION_FILTER_DESC - ENABLE_DIRECT_UPLOADS_ASC - ENABLE_DIRECT_UPLOADS_DESC ENABLE_I18N_ASC ENABLE_I18N_DESC ENABLE_INTROSPECTION_ASC @@ -971,11 +943,6 @@ input ApiSettingPatch { """ enableConnectionFilter: Boolean - """ - Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) - """ - enableDirectUploads: Boolean - """ Override: enable internationalization plugin (NULL = inherit from database_settings) """ @@ -3517,6 +3484,41 @@ type CreatePlatformPagePayload { query: Query } +"""All input for the create `PlatformReservedSubdomain` mutation.""" +input CreatePlatformReservedSubdomainInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `PlatformReservedSubdomain` to be created by this mutation.""" + platformReservedSubdomain: PlatformReservedSubdomainInput! +} + +"""The output of our create `PlatformReservedSubdomain` mutation.""" +type CreatePlatformReservedSubdomainPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformReservedSubdomain` that was created by this mutation.""" + platformReservedSubdomain: PlatformReservedSubdomain + + """An edge for our `PlatformReservedSubdomain`. May be used by Relay 1.""" + platformReservedSubdomainEdge( + """The method to use when ordering `PlatformReservedSubdomain`.""" + orderBy: [PlatformReservedSubdomainOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformReservedSubdomainEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + """All input for the create `PlatformSiteAppLink` mutation.""" input CreatePlatformSiteAppLinkInput { """ @@ -6354,9 +6356,6 @@ type DatabaseSetting { """Enable connection filter (where argument) in the GraphQL API""" enableConnectionFilter: Boolean! - """Enable direct (multipart) file upload mutations in the GraphQL API""" - enableDirectUploads: Boolean! - """ Enable internationalization plugin (localeStrings field, translation table discovery) in the GraphQL API """ @@ -6517,9 +6516,6 @@ input DatabaseSettingFilter { """Filter by the object’s `enableConnectionFilter` field.""" enableConnectionFilter: BooleanFilter - """Filter by the object’s `enableDirectUploads` field.""" - enableDirectUploads: BooleanFilter - """Filter by the object’s `enableI18N` field.""" enableI18N: BooleanFilter @@ -6629,9 +6625,6 @@ input DatabaseSettingInput { """Enable connection filter (where argument) in the GraphQL API""" enableConnectionFilter: Boolean - """Enable direct (multipart) file upload mutations in the GraphQL API""" - enableDirectUploads: Boolean - """ Enable internationalization plugin (localeStrings field, translation table discovery) in the GraphQL API """ @@ -6751,8 +6744,6 @@ enum DatabaseSettingOrderBy { ENABLE_BULK_DESC ENABLE_CONNECTION_FILTER_ASC ENABLE_CONNECTION_FILTER_DESC - ENABLE_DIRECT_UPLOADS_ASC - ENABLE_DIRECT_UPLOADS_DESC ENABLE_I18N_ASC ENABLE_I18N_DESC ENABLE_INTROSPECTION_ASC @@ -6838,9 +6829,6 @@ input DatabaseSettingPatch { """Enable connection filter (where argument) in the GraphQL API""" enableConnectionFilter: Boolean - """Enable direct (multipart) file upload mutations in the GraphQL API""" - enableDirectUploads: Boolean - """ Enable internationalization plugin (localeStrings field, translation table discovery) in the GraphQL API """ @@ -9271,6 +9259,39 @@ type DeletePlatformPagePayload { query: Query } +"""All input for the `deletePlatformReservedSubdomain` mutation.""" +input DeletePlatformReservedSubdomainInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `PlatformReservedSubdomain` mutation.""" +type DeletePlatformReservedSubdomainPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformReservedSubdomain` that was deleted by this mutation.""" + platformReservedSubdomain: PlatformReservedSubdomain + + """An edge for our `PlatformReservedSubdomain`. May be used by Relay 1.""" + platformReservedSubdomainEdge( + """The method to use when ordering `PlatformReservedSubdomain`.""" + orderBy: [PlatformReservedSubdomainOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformReservedSubdomainEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + """All input for the `deletePlatformSiteAppLink` mutation.""" input DeletePlatformSiteAppLinkInput { """ @@ -14025,6 +14046,17 @@ input FieldToManySpatialRelationFilter { some: SpatialRelationFilter } +"""One version rendered beside a file, with a URL to fetch it.""" +type FileVersion { + format: String + height: Int + key: String! + name: String + size: Int + url: String! + width: Int +} + """ A filter to be used against Float fields. All fields are combined with a logical ‘and.’ """ @@ -15795,6 +15827,11 @@ type MetaBelongsToRelation { fieldName: String isUnique: Boolean! keys: [MetaField!]! + + """ + Fields on the referenced table that keys point at, in the same order as keys + """ + refKeys: [MetaField!]! references: MetaRefTable! type: String } @@ -15817,22 +15854,66 @@ type MetaEnum { """Information about a table field/column""" type MetaField { + """ + Values this field accepts, when the set is fixed; null otherwise. Set on a table's own fields only. + """ + allowedValues: [String!] + """PostgreSQL column name""" columnName: String! description: String """Enum metadata if this field has an enum type""" enumValues: MetaEnum + + """ + Set when the field holds files; null otherwise. Set on a table's own fields only. + """ + file: MetaFileField hasDefault: Boolean! + + """ + Whether the value is always computed and cannot be written, even when a create or update input offers the field. Set on a table's own fields only. + """ + isComputed: Boolean isForeignKey: Boolean! isNotNull: Boolean! isPrimaryKey: Boolean! + """ + Whether a create must provide this field. Set on a table's own fields only. + """ + isRequiredOnCreate: Boolean + + """Whether a create may set this field. Set on a table's own fields only.""" + isWritableOnCreate: Boolean + + """ + Whether an update may change this field. Set on a table's own fields only. + """ + isWritableOnUpdate: Boolean + """Final GraphQL field name""" name: String! type: MetaType! } +"""How a field holds files""" +type MetaFileField { + """ + GraphQL type name of the files table uploads are recorded in, when this API has exactly one; null otherwise + """ + filesType: String + + """Whether the field holds a list of files""" + isMultiple: Boolean! + + """ + image, upload, or attachment. An image or upload holds a file document; an attachment holds a link to a file. + """ + kind: String! +} + """Information about a foreign key constraint""" type MetaForeignKeyConstraint { fields: [MetaField!]! @@ -15849,10 +15930,15 @@ type MetaHasRelation { isUnique: Boolean! keys: [MetaField!]! referencedBy: MetaRefTable! + + """ + Fields on the related table that point at this table, in the same order as keys + """ + remoteKeys: [MetaField!]! type: String } -"""i18n metadata for a table with @i18n tag""" +"""i18n metadata for a translatable table""" type MetaI18n { """Fields that are translatable""" translatableFields: [MetaI18nField!]! @@ -15879,7 +15965,7 @@ type MetaIndex { name: String! } -"""Table inflection names""" +"""Type and field names generated for this table""" type MetaInflection { allRows: String! conditionType: String! @@ -15924,7 +16010,7 @@ type MetaQuery { update: String } -"""Realtime metadata for a table with @realtime tag""" +"""Realtime metadata for a table with change subscriptions""" type MetaRealtime { """The generated subscription field name (e.g. onPostChanged)""" subscriptionFieldName: String! @@ -15945,13 +16031,15 @@ type MetaRelations { } """ -How a client must serialize/parse a scalar — the one field-type detail standard GraphQL introspection cannot describe. Null for plain scalars whose wire format is obvious from gqlType. +How a client must serialize and parse a scalar whose wire format gqlType alone does not settle. Null for plain scalars whose wire format is obvious from gqlType. """ type MetaScalarEncoding { """For 'vector': declared length, else null.""" dimensions: Int - """For 'ltree': values are dot-separated path strings.""" + """ + For 'ltree': true when values are dot-separated paths ('a.b.c'), false when they are slash-separated paths ('/a/b/c'). + """ dotPath: Boolean """For 'vector': element scalar (e.g. 'float').""" @@ -15976,11 +16064,11 @@ type MetaSchema { """Provisioning scope metadata for a table""" type MetaScope { - """SQL name of the entity table for entity scopes, else null""" + """Name of the entity table for entity scopes, else null""" entityTable: String """ - Inflected scope key column (e.g. databaseId, orgId), null for global tiers + Field name of the scope key (e.g. databaseId, orgId), null for global tiers """ keyColumn: String @@ -15989,7 +16077,7 @@ type MetaScope { """ scope: String! - """Provenance of the scope metadata (always 'smartTag')""" + """Where this scope metadata comes from""" source: String! """Coarse bucket: 'global', 'database', or 'entity'""" @@ -16020,7 +16108,7 @@ type MetaSearchColumn { name: String! } -"""Per-table search configuration from @searchConfig smart tag""" +"""Per-table search configuration""" type MetaSearchConfig { """Exponential decay factor per day""" boostRecencyDecay: Float @@ -16037,7 +16125,7 @@ type MetaSearchConfig { """Storage metadata for a table""" type MetaStorage { - """GraphQL type name of the plane's buckets table""" + """GraphQL type name of the paired buckets table""" bucketsType: String! """ @@ -16045,7 +16133,7 @@ type MetaStorage { """ downloadUrlField: String - """GraphQL type name of the plane's files table""" + """GraphQL type name of the paired files table""" filesType: String! """Whether this table is a storage buckets table""" @@ -16054,13 +16142,11 @@ type MetaStorage { """Whether this table is a storage files table""" isFilesTable: Boolean! - """The plane's GraphQL upload surface""" + """Upload mutations and types for this storage""" upload: MetaStorageUpload! } -""" -The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from -""" +"""The upload mutations and types for a storage table pair""" type MetaStorageUpload { """Per-file input type inside the bulk input""" bulkFileInputType: String! @@ -16086,32 +16172,45 @@ type MetaStorageUpload { """Payload type of the single upload mutation""" payloadType: String! - """Whether the upload input requires ownerId (entity-keyed plane)""" + """Whether the upload input requires ownerId""" requiresOwnerId: Boolean! } """Information about a database table""" type MetaTable { constraints: MetaConstraints! + + """Description written for this table, or null""" + description: String fields: [MetaField!]! foreignKeyConstraints: [MetaForeignKeyConstraint!]! - """i18n metadata (null if no @i18n tag)""" + """i18n metadata (null if the table is not translatable)""" i18n: MetaI18n indexes: [MetaIndex!]! inflection: MetaInflection! + """ + Whether this table only links rows of two other tables; the link appears in their manyToMany relations + """ + isJunction: Boolean! + + """ + 'table' when rows are stored in this table, 'view' when they come from a view of other tables + """ + kind: String! + """Final GraphQL output type name""" name: String! primaryKeyConstraints: [MetaPrimaryKeyConstraint!]! query: MetaQuery! - """Realtime metadata (null if no @realtime tag)""" + """Realtime metadata (null if the table has no change subscriptions)""" realtime: MetaRealtime relations: MetaRelations! schemaName: String! - """Provisioning scope metadata (null if no @scope tag)""" + """Provisioning scope metadata (null if the table has no scope)""" scope: MetaScope """Search metadata (null if no search configured)""" @@ -16133,7 +16232,22 @@ type MetaType { hasDefault: Boolean isArray: Boolean! isNotNull: Boolean + + """ + Most characters a text value may hold, or most bits a bit string may hold; for a list, each item. Null when unbounded. + """ + maxLength: Int pgType: String! + + """ + Most significant digits a decimal number may hold. Null when unbounded. + """ + precision: Int + + """ + Digits a decimal number keeps after the decimal point. Null when unbounded. + """ + scale: Int subtype: String } @@ -16567,6 +16681,14 @@ type Mutation { input: CreatePlatformPageInput! ): CreatePlatformPagePayload + """Creates a single `PlatformReservedSubdomain`.""" + createPlatformReservedSubdomain( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePlatformReservedSubdomainInput! + ): CreatePlatformReservedSubdomainPayload + """Creates a single `PlatformSite`.""" createPlatformSite( """ @@ -17247,6 +17369,14 @@ type Mutation { input: DeletePlatformPageInput! ): DeletePlatformPagePayload + """Deletes a single `PlatformReservedSubdomain` using a unique key.""" + deletePlatformReservedSubdomain( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformReservedSubdomainInput! + ): DeletePlatformReservedSubdomainPayload + """Deletes a single `PlatformSite` using a unique key.""" deletePlatformSite( """ @@ -18131,6 +18261,16 @@ type Mutation { input: UpdatePlatformPageInput! ): UpdatePlatformPagePayload + """ + Updates a single `PlatformReservedSubdomain` using a unique key and a patch. + """ + updatePlatformReservedSubdomain( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformReservedSubdomainInput! + ): UpdatePlatformReservedSubdomainPayload + """Updates a single `PlatformSite` using a unique key and a patch.""" updatePlatformSite( """ @@ -19101,9 +19241,6 @@ type PlatformApi { """Module-specific configuration for this API surface""" config: JSON createdAt: Datetime - - """Database this API surface serves""" - dbname: String id: UUID! """Whether other scopes may see and route to this API surface""" @@ -19153,6 +19290,7 @@ type PlatformApi { """Authenticated role the API executes as""" roleName: String + serviceHostname: String updatedAt: Datetime } @@ -19198,9 +19336,6 @@ input PlatformApiFilter { """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter - """Filter by the object’s `dbname` field.""" - dbname: StringFilter - """Filter by the object’s `id` field.""" id: UUIDFilter @@ -19249,9 +19384,6 @@ input PlatformApiInput { """Module-specific configuration for this API surface""" config: JSON createdAt: Datetime - - """Database this API surface serves""" - dbname: String id: UUID """Whether other scopes may see and route to this API surface""" @@ -19273,8 +19405,6 @@ enum PlatformApiOrderBy { CONFIG_DESC CREATED_AT_ASC CREATED_AT_DESC - DBNAME_ASC - DBNAME_DESC ID_ASC ID_DESC IS_PUBLISHED_ASC @@ -19300,9 +19430,6 @@ input PlatformApiPatch { """Module-specific configuration for this API surface""" config: JSON createdAt: Datetime - - """Database this API surface serves""" - dbname: String id: UUID """Whether other scopes may see and route to this API surface""" @@ -19470,11 +19597,6 @@ type PlatformApiSetting { """ enableConnectionFilter: Boolean - """ - Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) - """ - enableDirectUploads: Boolean - """ Override: enable internationalization plugin (NULL = inherit from database_settings) """ @@ -19636,9 +19758,6 @@ input PlatformApiSettingFilter { """Filter by the object’s `enableConnectionFilter` field.""" enableConnectionFilter: BooleanFilter - """Filter by the object’s `enableDirectUploads` field.""" - enableDirectUploads: BooleanFilter - """Filter by the object’s `enableI18N` field.""" enableI18N: BooleanFilter @@ -19736,11 +19855,6 @@ input PlatformApiSettingInput { """ enableConnectionFilter: Boolean - """ - Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) - """ - enableDirectUploads: Boolean - """ Override: enable internationalization plugin (NULL = inherit from database_settings) """ @@ -19861,8 +19975,6 @@ enum PlatformApiSettingOrderBy { ENABLE_BULK_DESC ENABLE_CONNECTION_FILTER_ASC ENABLE_CONNECTION_FILTER_DESC - ENABLE_DIRECT_UPLOADS_ASC - ENABLE_DIRECT_UPLOADS_DESC ENABLE_I18N_ASC ENABLE_I18N_DESC ENABLE_INTROSPECTION_ASC @@ -19937,11 +20049,6 @@ input PlatformApiSettingPatch { """ enableConnectionFilter: Boolean - """ - Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) - """ - enableDirectUploads: Boolean - """ Override: enable internationalization plugin (NULL = inherit from database_settings) """ @@ -22591,6 +22698,151 @@ type PlatformProvisionSitePreviewPayload { result: PlatformRoute } +"""Subdomain labels no tenant may claim under a platform apex""" +type PlatformReservedSubdomain { + createdAt: Datetime + createdByPrincipal: UUID + id: UUID! + + """Lowercase subdomain label, or the label prefix/suffix the match names""" + label: String! + + """How the label matches a claimed label: exact, prefix or suffix""" + match: String! + + """Why the label is reserved (free text, e.g. platform, brand, lookalike)""" + reason: String + updatedAt: Datetime + updatedByPrincipal: UUID +} + +"""A connection to a list of `PlatformReservedSubdomain` values.""" +type PlatformReservedSubdomainConnection { + """ + A list of edges which contains the `PlatformReservedSubdomain` and cursor to aid in pagination. + """ + edges: [PlatformReservedSubdomainEdge]! + + """A list of `PlatformReservedSubdomain` objects.""" + nodes: [PlatformReservedSubdomain]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PlatformReservedSubdomain` you could get from the connection. + """ + totalCount: Int! +} + +"""A `PlatformReservedSubdomain` edge in the connection.""" +type PlatformReservedSubdomainEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlatformReservedSubdomain` at the end of the edge.""" + node: PlatformReservedSubdomain +} + +""" +A filter to be used against `PlatformReservedSubdomain` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformReservedSubdomainFilter { + """Checks for all expressions in this list.""" + and: [PlatformReservedSubdomainFilter!] + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `label` field.""" + label: StringFilter + + """Filter by the object’s `match` field.""" + match: StringFilter + + """Negates the expression.""" + not: PlatformReservedSubdomainFilter + + """Checks for any expressions in this list.""" + or: [PlatformReservedSubdomainFilter!] + + """Filter by the object’s `reason` field.""" + reason: StringFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter +} + +"""An input for mutations affecting `PlatformReservedSubdomain`""" +input PlatformReservedSubdomainInput { + createdAt: Datetime + createdByPrincipal: UUID + id: UUID + + """Lowercase subdomain label, or the label prefix/suffix the match names""" + label: String! + + """How the label matches a claimed label: exact, prefix or suffix""" + match: String + + """Why the label is reserved (free text, e.g. platform, brand, lookalike)""" + reason: String + updatedAt: Datetime + updatedByPrincipal: UUID +} + +"""Methods to use when ordering `PlatformReservedSubdomain`.""" +enum PlatformReservedSubdomainOrderBy { + CREATED_AT_ASC + CREATED_AT_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC + ID_ASC + ID_DESC + LABEL_ASC + LABEL_DESC + MATCH_ASC + MATCH_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + REASON_ASC + REASON_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC +} + +""" +Represents an update to a `PlatformReservedSubdomain`. Fields that are set will be updated. +""" +input PlatformReservedSubdomainPatch { + createdAt: Datetime + createdByPrincipal: UUID + id: UUID + + """Lowercase subdomain label, or the label prefix/suffix the match names""" + label: String + + """How the label matches a claimed label: exact, prefix or suffix""" + match: String + + """Why the label is reserved (free text, e.g. platform, brand, lookalike)""" + reason: String + updatedAt: Datetime + updatedByPrincipal: UUID +} + """Routes binding a domain hostname and path to a typed catalog target""" type PlatformRoute { """ @@ -23672,6 +23924,21 @@ type PlatformSiteMetadatum { """Apple touch icon image (home-screen bookmark)""" appleTouchIcon: ConstructiveInternalTypeImage + """ + URL to fetch `appleTouchIcon`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. + """ + appleTouchIconUrl( + """ + The width the file will be shown at, in device pixels. Without a version that wide, the source. + """ + width: Int + ): String + + """ + The versions rendered beside `appleTouchIcon`, narrowest first, each with a URL. Empty when there are none. + """ + appleTouchIconVersions: [FileVersion!] + """Canonical URL emitted in for this site""" canonicalUrl: String @@ -23686,14 +23953,59 @@ type PlatformSiteMetadatum { """Site favicon image""" favicon: ConstructiveInternalTypeImage + + """ + URL to fetch `favicon`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. + """ + faviconUrl( + """ + The width the file will be shown at, in device pixels. Without a version that wide, the source. + """ + width: Int + ): String + + """ + The versions rendered beside `favicon`, narrowest first, each with a URL. Empty when there are none. + """ + faviconVersions: [FileVersion!] id: UUID! """Primary site logo image""" logo: ConstructiveInternalTypeImage + """ + URL to fetch `logo`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. + """ + logoUrl( + """ + The width the file will be shown at, in device pixels. Without a version that wide, the source. + """ + width: Int + ): String + + """ + The versions rendered beside `logo`, narrowest first, each with a URL. Empty when there are none. + """ + logoVersions: [FileVersion!] + """Open Graph image used when sharing site links""" ogImage: ConstructiveInternalTypeImage + """ + URL to fetch `ogImage`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. + """ + ogImageUrl( + """ + The width the file will be shown at, in device pixels. Without a version that wide, the source. + """ + width: Int + ): String + + """ + The versions rendered beside `ogImage`, narrowest first, each with a URL. Empty when there are none. + """ + ogImageVersions: [FileVersion!] + """robots meta directive (e.g. index,follow / noindex,nofollow)""" robots: String @@ -23902,9 +24214,6 @@ input PlatformSiteMetadatumPatch { """Apple touch icon image (home-screen bookmark)""" appleTouchIcon: ConstructiveInternalTypeImage - """Upload for Apple touch icon image (home-screen bookmark)""" - appleTouchIconUpload: Upload - """Canonical URL emitted in for this site""" canonicalUrl: String @@ -23919,23 +24228,14 @@ input PlatformSiteMetadatumPatch { """Site favicon image""" favicon: ConstructiveInternalTypeImage - - """Upload for Site favicon image""" - faviconUpload: Upload id: UUID """Primary site logo image""" logo: ConstructiveInternalTypeImage - """Upload for Primary site logo image""" - logoUpload: Upload - """Open Graph image used when sharing site links""" ogImage: ConstructiveInternalTypeImage - """Upload for Open Graph image used when sharing site links""" - ogImageUpload: Upload - """robots meta directive (e.g. index,follow / noindex,nofollow)""" robots: String @@ -25711,7 +26011,6 @@ type Query { Metadata about the database schema, including tables, fields, indexes, and constraints. Useful for code generation tools. """ _meta: MetaSchema - apiSchemaNames(targetApiId: UUID): JSON """Reads and enables pagination through a set of `ApiSchema`.""" apiSchemas( @@ -27118,6 +27417,37 @@ type Query { where: PlatformPageFilter ): PlatformPageConnection + """ + Reads and enables pagination through a set of `PlatformReservedSubdomain`. + """ + platformReservedSubdomains( + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """The method to use when ordering `PlatformReservedSubdomain`.""" + orderBy: [PlatformReservedSubdomainOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformReservedSubdomainFilter + ): PlatformReservedSubdomainConnection + """Reads and enables pagination through a set of `PlatformSiteAppLink`.""" platformSiteAppLinks( """Read all values in the set after (below) this cursor.""" @@ -27497,9 +27827,6 @@ type Query { """ where: RedirectFilter ): RedirectConnection - resolveDeepLink(linkSlug: String, targetSiteId: UUID): JSON - resolveRoute(requestHost: String, requestMethod: String, requestPath: String): ResolveRouteRecord - resolveSiteAppLinks(targetSiteId: UUID): JSON """Reads and enables pagination through a set of `RlsSetting`.""" rlsSettings( @@ -28609,26 +28936,6 @@ type RequestDatabasePayload { result: DatabaseProvisionModule } -type ResolveRouteRecord { - domainId: UUID - hostname: String - matchedPath: String - matchedWildcard: Boolean - method: String - priority: Int - resolvedConfig: JSON - routeBindingId: UUID - servingLane: String - targetCatalogId: UUID - targetModule: String - targetOwnerKey: UUID - targetOwnerScope: String - targetSourceId: UUID - tlsSecretName: String - tlsStatus: String - verificationStatus: String -} - """ RLS module runtime configuration; typed references to the authenticate/current_role function plumbing """ @@ -31239,6 +31546,21 @@ type SiteMetadatum { """Apple touch icon image (home-screen bookmark)""" appleTouchIcon: ConstructiveInternalTypeImage + """ + URL to fetch `appleTouchIcon`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. + """ + appleTouchIconUrl( + """ + The width the file will be shown at, in device pixels. Without a version that wide, the source. + """ + width: Int + ): String + + """ + The versions rendered beside `appleTouchIcon`, narrowest first, each with a URL. Empty when there are none. + """ + appleTouchIconVersions: [FileVersion!] + """Canonical URL emitted in for this site""" canonicalUrl: String @@ -31256,14 +31578,59 @@ type SiteMetadatum { """Site favicon image""" favicon: ConstructiveInternalTypeImage + + """ + URL to fetch `favicon`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. + """ + faviconUrl( + """ + The width the file will be shown at, in device pixels. Without a version that wide, the source. + """ + width: Int + ): String + + """ + The versions rendered beside `favicon`, narrowest first, each with a URL. Empty when there are none. + """ + faviconVersions: [FileVersion!] id: UUID! """Primary site logo image""" logo: ConstructiveInternalTypeImage + """ + URL to fetch `logo`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. + """ + logoUrl( + """ + The width the file will be shown at, in device pixels. Without a version that wide, the source. + """ + width: Int + ): String + + """ + The versions rendered beside `logo`, narrowest first, each with a URL. Empty when there are none. + """ + logoVersions: [FileVersion!] + """Open Graph image used when sharing site links""" ogImage: ConstructiveInternalTypeImage + """ + URL to fetch `ogImage`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. + """ + ogImageUrl( + """ + The width the file will be shown at, in device pixels. Without a version that wide, the source. + """ + width: Int + ): String + + """ + The versions rendered beside `ogImage`, narrowest first, each with a URL. Empty when there are none. + """ + ogImageVersions: [FileVersion!] + """robots meta directive (e.g. index,follow / noindex,nofollow)""" robots: String @@ -31476,9 +31843,6 @@ input SiteMetadatumPatch { """Apple touch icon image (home-screen bookmark)""" appleTouchIcon: ConstructiveInternalTypeImage - """Upload for Apple touch icon image (home-screen bookmark)""" - appleTouchIconUpload: Upload - """Canonical URL emitted in for this site""" canonicalUrl: String @@ -31496,23 +31860,14 @@ input SiteMetadatumPatch { """Site favicon image""" favicon: ConstructiveInternalTypeImage - - """Upload for Site favicon image""" - faviconUpload: Upload id: UUID """Primary site logo image""" logo: ConstructiveInternalTypeImage - """Upload for Primary site logo image""" - logoUpload: Upload - """Open Graph image used when sharing site links""" ogImage: ConstructiveInternalTypeImage - """Upload for Open Graph image used when sharing site links""" - ogImageUpload: Upload - """robots meta directive (e.g. index,follow / noindex,nofollow)""" robots: String @@ -37294,6 +37649,44 @@ type UpdatePlatformPagePayload { query: Query } +"""All input for the `updatePlatformReservedSubdomain` mutation.""" +input UpdatePlatformReservedSubdomainInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `PlatformReservedSubdomain` being updated. + """ + platformReservedSubdomainPatch: PlatformReservedSubdomainPatch! +} + +"""The output of our update `PlatformReservedSubdomain` mutation.""" +type UpdatePlatformReservedSubdomainPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformReservedSubdomain` that was updated by this mutation.""" + platformReservedSubdomain: PlatformReservedSubdomain + + """An edge for our `PlatformReservedSubdomain`. May be used by Relay 1.""" + platformReservedSubdomainEdge( + """The method to use when ordering `PlatformReservedSubdomain`.""" + orderBy: [PlatformReservedSubdomainOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformReservedSubdomainEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + """All input for the `updatePlatformSiteAppLink` mutation.""" input UpdatePlatformSiteAppLinkInput { """ @@ -38814,9 +39207,6 @@ type UpdateWebauthnSettingPayload { ): WebauthnSettingEdge } -"""The `Upload` scalar type represents a file upload.""" -scalar Upload - type View { category: ObjectCategory! checkOption: String diff --git a/sdk/constructive-sdk/schemas/auth.graphql b/sdk/constructive-sdk/schemas/auth.graphql index d529ed5b31..7a6a8c0199 100644 --- a/sdk/constructive-sdk/schemas/auth.graphql +++ b/sdk/constructive-sdk/schemas/auth.graphql @@ -2250,6 +2250,67 @@ type EnableTotpPayload { result: String } +"""All input for the `ensureAuthCsrf` mutation.""" +input EnsureAuthCsrfInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + existingToken: String +} + +"""The output of our `ensureAuthCsrf` mutation.""" +type EnsureAuthCsrfPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + result: String +} + +"""All input for the `exchangeNativeHandoff` mutation.""" +input ExchangeNativeHandoffInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + code: String + codeVerifier: String + credentialKind: String +} + +"""The output of our `exchangeNativeHandoff` mutation.""" +type ExchangeNativeHandoffPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + result: ExchangeNativeHandoffRecord +} + +type ExchangeNativeHandoffRecord { + accessToken: String + accessTokenExpiresAt: Datetime + id: UUID + isVerified: Boolean + totpEnabled: Boolean + userId: UUID +} + """All input for the `extendTokenExpires` mutation.""" input ExtendTokenExpiresInput { amount: IntervalInput @@ -2282,6 +2343,17 @@ type ExtendTokenExpiresRecord { sessionId: UUID } +"""One version rendered beside a file, with a URL to fetch it.""" +type FileVersion { + format: String + height: Int + key: String! + name: String + size: Int + url: String! + width: Int +} + """All input for the `forgotPassword` mutation.""" input ForgotPasswordInput { """ @@ -2714,7 +2786,7 @@ input LinkIdentityInput { payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - ticket: String! + ticket: String } """The output of our `linkIdentity` mutation.""" @@ -2737,6 +2809,11 @@ type MetaBelongsToRelation { fieldName: String isUnique: Boolean! keys: [MetaField!]! + + """ + Fields on the referenced table that keys point at, in the same order as keys + """ + refKeys: [MetaField!]! references: MetaRefTable! type: String } @@ -2759,22 +2836,66 @@ type MetaEnum { """Information about a table field/column""" type MetaField { + """ + Values this field accepts, when the set is fixed; null otherwise. Set on a table's own fields only. + """ + allowedValues: [String!] + """PostgreSQL column name""" columnName: String! description: String """Enum metadata if this field has an enum type""" enumValues: MetaEnum + + """ + Set when the field holds files; null otherwise. Set on a table's own fields only. + """ + file: MetaFileField hasDefault: Boolean! + + """ + Whether the value is always computed and cannot be written, even when a create or update input offers the field. Set on a table's own fields only. + """ + isComputed: Boolean isForeignKey: Boolean! isNotNull: Boolean! isPrimaryKey: Boolean! + """ + Whether a create must provide this field. Set on a table's own fields only. + """ + isRequiredOnCreate: Boolean + + """Whether a create may set this field. Set on a table's own fields only.""" + isWritableOnCreate: Boolean + + """ + Whether an update may change this field. Set on a table's own fields only. + """ + isWritableOnUpdate: Boolean + """Final GraphQL field name""" name: String! type: MetaType! } +"""How a field holds files""" +type MetaFileField { + """ + GraphQL type name of the files table uploads are recorded in, when this API has exactly one; null otherwise + """ + filesType: String + + """Whether the field holds a list of files""" + isMultiple: Boolean! + + """ + image, upload, or attachment. An image or upload holds a file document; an attachment holds a link to a file. + """ + kind: String! +} + """Information about a foreign key constraint""" type MetaForeignKeyConstraint { fields: [MetaField!]! @@ -2791,10 +2912,15 @@ type MetaHasRelation { isUnique: Boolean! keys: [MetaField!]! referencedBy: MetaRefTable! + + """ + Fields on the related table that point at this table, in the same order as keys + """ + remoteKeys: [MetaField!]! type: String } -"""i18n metadata for a table with @i18n tag""" +"""i18n metadata for a translatable table""" type MetaI18n { """Fields that are translatable""" translatableFields: [MetaI18nField!]! @@ -2821,7 +2947,7 @@ type MetaIndex { name: String! } -"""Table inflection names""" +"""Type and field names generated for this table""" type MetaInflection { allRows: String! conditionType: String! @@ -2866,7 +2992,7 @@ type MetaQuery { update: String } -"""Realtime metadata for a table with @realtime tag""" +"""Realtime metadata for a table with change subscriptions""" type MetaRealtime { """The generated subscription field name (e.g. onPostChanged)""" subscriptionFieldName: String! @@ -2887,13 +3013,15 @@ type MetaRelations { } """ -How a client must serialize/parse a scalar — the one field-type detail standard GraphQL introspection cannot describe. Null for plain scalars whose wire format is obvious from gqlType. +How a client must serialize and parse a scalar whose wire format gqlType alone does not settle. Null for plain scalars whose wire format is obvious from gqlType. """ type MetaScalarEncoding { """For 'vector': declared length, else null.""" dimensions: Int - """For 'ltree': values are dot-separated path strings.""" + """ + For 'ltree': true when values are dot-separated paths ('a.b.c'), false when they are slash-separated paths ('/a/b/c'). + """ dotPath: Boolean """For 'vector': element scalar (e.g. 'float').""" @@ -2918,11 +3046,11 @@ type MetaSchema { """Provisioning scope metadata for a table""" type MetaScope { - """SQL name of the entity table for entity scopes, else null""" + """Name of the entity table for entity scopes, else null""" entityTable: String """ - Inflected scope key column (e.g. databaseId, orgId), null for global tiers + Field name of the scope key (e.g. databaseId, orgId), null for global tiers """ keyColumn: String @@ -2931,7 +3059,7 @@ type MetaScope { """ scope: String! - """Provenance of the scope metadata (always 'smartTag')""" + """Where this scope metadata comes from""" source: String! """Coarse bucket: 'global', 'database', or 'entity'""" @@ -2962,7 +3090,7 @@ type MetaSearchColumn { name: String! } -"""Per-table search configuration from @searchConfig smart tag""" +"""Per-table search configuration""" type MetaSearchConfig { """Exponential decay factor per day""" boostRecencyDecay: Float @@ -2979,7 +3107,7 @@ type MetaSearchConfig { """Storage metadata for a table""" type MetaStorage { - """GraphQL type name of the plane's buckets table""" + """GraphQL type name of the paired buckets table""" bucketsType: String! """ @@ -2987,7 +3115,7 @@ type MetaStorage { """ downloadUrlField: String - """GraphQL type name of the plane's files table""" + """GraphQL type name of the paired files table""" filesType: String! """Whether this table is a storage buckets table""" @@ -2996,13 +3124,11 @@ type MetaStorage { """Whether this table is a storage files table""" isFilesTable: Boolean! - """The plane's GraphQL upload surface""" + """Upload mutations and types for this storage""" upload: MetaStorageUpload! } -""" -The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from -""" +"""The upload mutations and types for a storage table pair""" type MetaStorageUpload { """Per-file input type inside the bulk input""" bulkFileInputType: String! @@ -3028,32 +3154,45 @@ type MetaStorageUpload { """Payload type of the single upload mutation""" payloadType: String! - """Whether the upload input requires ownerId (entity-keyed plane)""" + """Whether the upload input requires ownerId""" requiresOwnerId: Boolean! } """Information about a database table""" type MetaTable { constraints: MetaConstraints! + + """Description written for this table, or null""" + description: String fields: [MetaField!]! foreignKeyConstraints: [MetaForeignKeyConstraint!]! - """i18n metadata (null if no @i18n tag)""" + """i18n metadata (null if the table is not translatable)""" i18n: MetaI18n indexes: [MetaIndex!]! inflection: MetaInflection! + """ + Whether this table only links rows of two other tables; the link appears in their manyToMany relations + """ + isJunction: Boolean! + + """ + 'table' when rows are stored in this table, 'view' when they come from a view of other tables + """ + kind: String! + """Final GraphQL output type name""" name: String! primaryKeyConstraints: [MetaPrimaryKeyConstraint!]! query: MetaQuery! - """Realtime metadata (null if no @realtime tag)""" + """Realtime metadata (null if the table has no change subscriptions)""" realtime: MetaRealtime relations: MetaRelations! schemaName: String! - """Provisioning scope metadata (null if no @scope tag)""" + """Provisioning scope metadata (null if the table has no scope)""" scope: MetaScope """Search metadata (null if no search configured)""" @@ -3075,7 +3214,22 @@ type MetaType { hasDefault: Boolean isArray: Boolean! isNotNull: Boolean + + """ + Most characters a text value may hold, or most bits a bit string may hold; for a list, each item. Null when unbounded. + """ + maxLength: Int pgType: String! + + """ + Most significant digits a decimal number may hold. Null when unbounded. + """ + precision: Int + + """ + Digits a decimal number keeps after the decimal point. Null when unbounded. + """ + scale: Int subtype: String } @@ -3156,6 +3310,10 @@ type Mutation { """ input: ConfirmTotpSetupInput! ): ConfirmTotpSetupPayload + + """ + Mint an API key for the current user; the plaintext key is returned once. access_level: full_access (default) or read_only. mfa_level: none (default) or verified; verified needs a fresh MFA proof on the calling session. A key minted while authenticated by another API key never outlives that key. + """ createApiKey( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. @@ -3390,6 +3548,18 @@ type Mutation { """ input: EnableTotpInput! ): EnableTotpPayload + ensureAuthCsrf( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: EnsureAuthCsrfInput! + ): EnsureAuthCsrfPayload + exchangeNativeHandoff( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: ExchangeNativeHandoffInput! + ): ExchangeNativeHandoffPayload extendTokenExpires( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. @@ -3447,6 +3617,12 @@ type Mutation { """ input: RequestCrossOriginTokenInput! ): RequestCrossOriginTokenPayload + requestDeviceApproval( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: RequestDeviceApprovalInput! + ): RequestDeviceApprovalPayload requestMagicLink( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. @@ -4928,6 +5104,7 @@ type Query { """ where: RoleTypeFilter ): RoleTypeConnection + signInOptions: SignInOptionsRecord """Reads and enables pagination through a set of `UserConnectedAccount`.""" userConnectedAccounts( @@ -5137,6 +5314,33 @@ type RequestCrossOriginTokenPayload { result: String } +"""All input for the `requestDeviceApproval` mutation.""" +input RequestDeviceApprovalInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + deviceToken: String + next: String + userId: UUID +} + +"""The output of our `requestDeviceApproval` mutation.""" +type RequestDeviceApprovalPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + result: Boolean +} + """All input for the `requestMagicLink` mutation.""" input RequestMagicLinkInput { """ @@ -5144,7 +5348,9 @@ input RequestMagicLinkInput { payload verbatim. May be used to track mutations by the client. """ clientMutationId: String + codeChallenge: String email: String + nativeRedirectUri: String next: String } @@ -5501,6 +5707,7 @@ input SetPasswordInput { clientMutationId: String currentPassword: String newPassword: String + signOutOtherSessions: Boolean } """The output of our `setPassword` mutation.""" @@ -5656,13 +5863,36 @@ type SignInMagicLinkPayload { type SignInMagicLinkRecord { accessToken: String accessTokenExpiresAt: Datetime + codeChallenge: String deviceApprovalRequired: Boolean mfaChallengeToken: String mfaRequired: Boolean + nativeRedirectUri: String outDeviceToken: String userId: UUID } +type SignInOptionsRecord { + allowAnonymousSessions: Boolean + allowEmailOtpSignIn: Boolean + allowIdentitySignIn: Boolean + allowIdentitySignUp: Boolean + allowMagicLinkSignIn: Boolean + allowMagicLinkSignUp: Boolean + allowPasswordSignIn: Boolean + allowPasswordSignUp: Boolean + allowSignUp: Boolean + allowSmsSignIn: Boolean + allowSmsSignUp: Boolean + allowWebauthnSignIn: Boolean + allowWebauthnSignUp: Boolean + allowWebauthnUsernameless: Boolean + enableCaptcha: Boolean + identityProviders: JSON + requireMfa: Boolean + signUpRequiresInvite: Boolean +} + """The output of our `signIn` mutation.""" type SignInPayload { """ @@ -5799,6 +6029,8 @@ type SignUpMagicLinkPayload { type SignUpMagicLinkRecord { accessToken: String accessTokenExpiresAt: Datetime + codeChallenge: String + nativeRedirectUri: String outDeviceToken: String userId: UUID } @@ -6629,9 +6861,6 @@ type UpdateWebauthnCredentialPayload { ): WebauthnCredentialEdge } -"""The `Upload` scalar type represents a file upload.""" -scalar Upload - type User { """Reads and enables pagination through a set of `AuditLogAuth`.""" authAuditLog( @@ -6793,6 +7022,21 @@ type User { ): PrincipalConnection! profilePicture: ConstructiveInternalTypeImage + """ + URL to fetch `profilePicture`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. + """ + profilePictureUrl( + """ + The width the file will be shown at, in device pixels. Without a version that wide, the source. + """ + width: Int + ): String + + """ + The versions rendered beside `profilePicture`, narrowest first, each with a URL. Empty when there are none. + """ + profilePictureVersions: [FileVersion!] + """Reads a single `RoleType` that is related to this `User`.""" roleType: RoleType @@ -7149,9 +7393,6 @@ input UserPatch { displayName: String id: UUID profilePicture: ConstructiveInternalTypeImage - - """File upload for the `profilePicture` field.""" - profilePictureUpload: Upload type: Int updatedAt: Datetime username: String @@ -7548,6 +7789,7 @@ input VerifyEmailInput { """ clientMutationId: String emailId: UUID + password: String token: String } diff --git a/sdk/constructive-sdk/schemas/cluster.graphql b/sdk/constructive-sdk/schemas/cluster.graphql index 10a94a76bd..18ce76defd 100644 --- a/sdk/constructive-sdk/schemas/cluster.graphql +++ b/sdk/constructive-sdk/schemas/cluster.graphql @@ -12,6 +12,11 @@ type MetaBelongsToRelation { fieldName: String isUnique: Boolean! keys: [MetaField!]! + + """ + Fields on the referenced table that keys point at, in the same order as keys + """ + refKeys: [MetaField!]! references: MetaRefTable! type: String } @@ -34,22 +39,66 @@ type MetaEnum { """Information about a table field/column""" type MetaField { + """ + Values this field accepts, when the set is fixed; null otherwise. Set on a table's own fields only. + """ + allowedValues: [String!] + """PostgreSQL column name""" columnName: String! description: String """Enum metadata if this field has an enum type""" enumValues: MetaEnum + + """ + Set when the field holds files; null otherwise. Set on a table's own fields only. + """ + file: MetaFileField hasDefault: Boolean! + + """ + Whether the value is always computed and cannot be written, even when a create or update input offers the field. Set on a table's own fields only. + """ + isComputed: Boolean isForeignKey: Boolean! isNotNull: Boolean! isPrimaryKey: Boolean! + """ + Whether a create must provide this field. Set on a table's own fields only. + """ + isRequiredOnCreate: Boolean + + """Whether a create may set this field. Set on a table's own fields only.""" + isWritableOnCreate: Boolean + + """ + Whether an update may change this field. Set on a table's own fields only. + """ + isWritableOnUpdate: Boolean + """Final GraphQL field name""" name: String! type: MetaType! } +"""How a field holds files""" +type MetaFileField { + """ + GraphQL type name of the files table uploads are recorded in, when this API has exactly one; null otherwise + """ + filesType: String + + """Whether the field holds a list of files""" + isMultiple: Boolean! + + """ + image, upload, or attachment. An image or upload holds a file document; an attachment holds a link to a file. + """ + kind: String! +} + """Information about a foreign key constraint""" type MetaForeignKeyConstraint { fields: [MetaField!]! @@ -66,10 +115,15 @@ type MetaHasRelation { isUnique: Boolean! keys: [MetaField!]! referencedBy: MetaRefTable! + + """ + Fields on the related table that point at this table, in the same order as keys + """ + remoteKeys: [MetaField!]! type: String } -"""i18n metadata for a table with @i18n tag""" +"""i18n metadata for a translatable table""" type MetaI18n { """Fields that are translatable""" translatableFields: [MetaI18nField!]! @@ -96,7 +150,7 @@ type MetaIndex { name: String! } -"""Table inflection names""" +"""Type and field names generated for this table""" type MetaInflection { allRows: String! conditionType: String! @@ -141,7 +195,7 @@ type MetaQuery { update: String } -"""Realtime metadata for a table with @realtime tag""" +"""Realtime metadata for a table with change subscriptions""" type MetaRealtime { """The generated subscription field name (e.g. onPostChanged)""" subscriptionFieldName: String! @@ -162,13 +216,15 @@ type MetaRelations { } """ -How a client must serialize/parse a scalar — the one field-type detail standard GraphQL introspection cannot describe. Null for plain scalars whose wire format is obvious from gqlType. +How a client must serialize and parse a scalar whose wire format gqlType alone does not settle. Null for plain scalars whose wire format is obvious from gqlType. """ type MetaScalarEncoding { """For 'vector': declared length, else null.""" dimensions: Int - """For 'ltree': values are dot-separated path strings.""" + """ + For 'ltree': true when values are dot-separated paths ('a.b.c'), false when they are slash-separated paths ('/a/b/c'). + """ dotPath: Boolean """For 'vector': element scalar (e.g. 'float').""" @@ -193,11 +249,11 @@ type MetaSchema { """Provisioning scope metadata for a table""" type MetaScope { - """SQL name of the entity table for entity scopes, else null""" + """Name of the entity table for entity scopes, else null""" entityTable: String """ - Inflected scope key column (e.g. databaseId, orgId), null for global tiers + Field name of the scope key (e.g. databaseId, orgId), null for global tiers """ keyColumn: String @@ -206,7 +262,7 @@ type MetaScope { """ scope: String! - """Provenance of the scope metadata (always 'smartTag')""" + """Where this scope metadata comes from""" source: String! """Coarse bucket: 'global', 'database', or 'entity'""" @@ -237,7 +293,7 @@ type MetaSearchColumn { name: String! } -"""Per-table search configuration from @searchConfig smart tag""" +"""Per-table search configuration""" type MetaSearchConfig { """Exponential decay factor per day""" boostRecencyDecay: Float @@ -254,7 +310,7 @@ type MetaSearchConfig { """Storage metadata for a table""" type MetaStorage { - """GraphQL type name of the plane's buckets table""" + """GraphQL type name of the paired buckets table""" bucketsType: String! """ @@ -262,7 +318,7 @@ type MetaStorage { """ downloadUrlField: String - """GraphQL type name of the plane's files table""" + """GraphQL type name of the paired files table""" filesType: String! """Whether this table is a storage buckets table""" @@ -271,13 +327,11 @@ type MetaStorage { """Whether this table is a storage files table""" isFilesTable: Boolean! - """The plane's GraphQL upload surface""" + """Upload mutations and types for this storage""" upload: MetaStorageUpload! } -""" -The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from -""" +"""The upload mutations and types for a storage table pair""" type MetaStorageUpload { """Per-file input type inside the bulk input""" bulkFileInputType: String! @@ -303,32 +357,45 @@ type MetaStorageUpload { """Payload type of the single upload mutation""" payloadType: String! - """Whether the upload input requires ownerId (entity-keyed plane)""" + """Whether the upload input requires ownerId""" requiresOwnerId: Boolean! } """Information about a database table""" type MetaTable { constraints: MetaConstraints! + + """Description written for this table, or null""" + description: String fields: [MetaField!]! foreignKeyConstraints: [MetaForeignKeyConstraint!]! - """i18n metadata (null if no @i18n tag)""" + """i18n metadata (null if the table is not translatable)""" i18n: MetaI18n indexes: [MetaIndex!]! inflection: MetaInflection! + """ + Whether this table only links rows of two other tables; the link appears in their manyToMany relations + """ + isJunction: Boolean! + + """ + 'table' when rows are stored in this table, 'view' when they come from a view of other tables + """ + kind: String! + """Final GraphQL output type name""" name: String! primaryKeyConstraints: [MetaPrimaryKeyConstraint!]! query: MetaQuery! - """Realtime metadata (null if no @realtime tag)""" + """Realtime metadata (null if the table has no change subscriptions)""" realtime: MetaRealtime relations: MetaRelations! schemaName: String! - """Provisioning scope metadata (null if no @scope tag)""" + """Provisioning scope metadata (null if the table has no scope)""" scope: MetaScope """Search metadata (null if no search configured)""" @@ -350,7 +417,22 @@ type MetaType { hasDefault: Boolean isArray: Boolean! isNotNull: Boolean + + """ + Most characters a text value may hold, or most bits a bit string may hold; for a list, each item. Null when unbounded. + """ + maxLength: Int pgType: String! + + """ + Most significant digits a decimal number may hold. Null when unbounded. + """ + precision: Int + + """ + Digits a decimal number keeps after the decimal point. Null when unbounded. + """ + scale: Int subtype: String } diff --git a/sdk/constructive-sdk/schemas/compute.graphql b/sdk/constructive-sdk/schemas/compute.graphql index e91946b76c..5a6708dac6 100644 --- a/sdk/constructive-sdk/schemas/compute.graphql +++ b/sdk/constructive-sdk/schemas/compute.graphql @@ -367,6 +367,21 @@ type Build { """Build log object in storage; step rows slice it by byte range""" logs: ConstructiveInternalTypeUpload + """ + URL to fetch `logs`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. + """ + logsUrl( + """ + The width the file will be shown at, in device pixels. Without a version that wide, the source. + """ + width: Int + ): String + + """ + The versions rendered beside `logs`, narrowest first, each with a URL. Empty when there are none. + """ + logsVersions: [FileVersion!] + """Matrix shard identity; NULL for a non-matrix build""" matrixKey: String @@ -694,11 +709,6 @@ input BuildPatch { """Build log object in storage; step rows slice it by byte range""" logs: ConstructiveInternalTypeUpload - """ - Upload for Build log object in storage; step rows slice it by byte range - """ - logsUpload: Upload - """Matrix shard identity; NULL for a non-matrix build""" matrixKey: String @@ -1013,255 +1023,6 @@ input BuildStepPatch { summary: JSON } -""" -Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST -""" -type BuilderBinding { - createdAt: Datetime - createdBy: UUID - createdByPrincipal: UUID - - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID! - id: UUID! - - """ - BuildKit resource installation serving this binding; may belong to another resource scope - """ - installationId: UUID! - - """Most recent projection failure""" - lastError: String - - """Reconciler detail (projection timestamps and diagnostics)""" - metadata: JSON - - """Reads a single `Namespace` that is related to this `BuilderBinding`.""" - namespace: Namespace - - """Namespace whose builds use this BuildKit installation""" - namespaceId: UUID! - - """ - BuildKit address last projected into the namespace (NULL = never projected) - """ - observedHost: String - - """Lane this binding applies to (NULL = the scope's default lane)""" - realm: String - - """Projection state of BUILDKIT_HOST: pending, active, failed""" - status: String! - updatedAt: Datetime - updatedBy: UUID - updatedByPrincipal: UUID -} - -"""A connection to a list of `BuilderBinding` values.""" -type BuilderBindingConnection { - """ - A list of edges which contains the `BuilderBinding` and cursor to aid in pagination. - """ - edges: [BuilderBindingEdge]! - - """A list of `BuilderBinding` objects.""" - nodes: [BuilderBinding]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `BuilderBinding` you could get from the connection.""" - totalCount: Int! -} - -"""A `BuilderBinding` edge in the connection.""" -type BuilderBindingEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `BuilderBinding` at the end of the edge.""" - node: BuilderBinding -} - -""" -A filter to be used against `BuilderBinding` object types. All fields are combined with a logical ‘and.’ -""" -input BuilderBindingFilter { - """Checks for all expressions in this list.""" - and: [BuilderBindingFilter!] - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `createdBy` field.""" - createdBy: UUIDFilter - - """Filter by the object’s `createdByPrincipal` field.""" - createdByPrincipal: UUIDFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `installationId` field.""" - installationId: UUIDFilter - - """Filter by the object’s `lastError` field.""" - lastError: StringFilter - - """Filter by the object’s `metadata` field.""" - metadata: JSONFilter - - """Filter by the object’s `namespace` relation.""" - namespace: NamespaceFilter - - """Filter by the object’s `namespaceId` field.""" - namespaceId: UUIDFilter - - """Negates the expression.""" - not: BuilderBindingFilter - - """Filter by the object’s `observedHost` field.""" - observedHost: StringFilter - - """Checks for any expressions in this list.""" - or: [BuilderBindingFilter!] - - """Filter by the object’s `realm` field.""" - realm: StringFilter - - """Filter by the object’s `status` field.""" - status: StringFilter - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter - - """Filter by the object’s `updatedBy` field.""" - updatedBy: UUIDFilter - - """Filter by the object’s `updatedByPrincipal` field.""" - updatedByPrincipal: UUIDFilter -} - -"""An input for mutations affecting `BuilderBinding`""" -input BuilderBindingInput { - createdAt: Datetime - createdBy: UUID - createdByPrincipal: UUID - - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID! - id: UUID - - """ - BuildKit resource installation serving this binding; may belong to another resource scope - """ - installationId: UUID! - - """Most recent projection failure""" - lastError: String - - """Reconciler detail (projection timestamps and diagnostics)""" - metadata: JSON - - """Namespace whose builds use this BuildKit installation""" - namespaceId: UUID! - - """ - BuildKit address last projected into the namespace (NULL = never projected) - """ - observedHost: String - - """Lane this binding applies to (NULL = the scope's default lane)""" - realm: String - - """Projection state of BUILDKIT_HOST: pending, active, failed""" - status: String - updatedAt: Datetime - updatedBy: UUID - updatedByPrincipal: UUID -} - -"""Methods to use when ordering `BuilderBinding`.""" -enum BuilderBindingOrderBy { - CREATED_AT_ASC - CREATED_AT_DESC - CREATED_BY_ASC - CREATED_BY_DESC - CREATED_BY_PRINCIPAL_ASC - CREATED_BY_PRINCIPAL_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - ID_ASC - ID_DESC - INSTALLATION_ID_ASC - INSTALLATION_ID_DESC - LAST_ERROR_ASC - LAST_ERROR_DESC - METADATA_ASC - METADATA_DESC - NAMESPACE_ID_ASC - NAMESPACE_ID_DESC - NATURAL - OBSERVED_HOST_ASC - OBSERVED_HOST_DESC - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - REALM_ASC - REALM_DESC - STATUS_ASC - STATUS_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - UPDATED_BY_ASC - UPDATED_BY_DESC - UPDATED_BY_PRINCIPAL_ASC - UPDATED_BY_PRINCIPAL_DESC -} - -""" -Represents an update to a `BuilderBinding`. Fields that are set will be updated. -""" -input BuilderBindingPatch { - createdAt: Datetime - createdBy: UUID - createdByPrincipal: UUID - - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID - id: UUID - - """ - BuildKit resource installation serving this binding; may belong to another resource scope - """ - installationId: UUID - - """Most recent projection failure""" - lastError: String - - """Reconciler detail (projection timestamps and diagnostics)""" - metadata: JSON - - """Namespace whose builds use this BuildKit installation""" - namespaceId: UUID - - """ - BuildKit address last projected into the namespace (NULL = never projected) - """ - observedHost: String - - """Lane this binding applies to (NULL = the scope's default lane)""" - realm: String - - """Projection state of BUILDKIT_HOST: pending, active, failed""" - status: String - updatedAt: Datetime - updatedBy: UUID - updatedByPrincipal: UUID -} - scalar ConstructiveInternalTypeImage """ @@ -1784,41 +1545,6 @@ type CreateBuildStepPayload { query: Query } -"""All input for the create `BuilderBinding` mutation.""" -input CreateBuilderBindingInput { - """The `BuilderBinding` to be created by this mutation.""" - builderBinding: BuilderBindingInput! - - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String -} - -"""The output of our create `BuilderBinding` mutation.""" -type CreateBuilderBindingPayload { - """The `BuilderBinding` that was created by this mutation.""" - builderBinding: BuilderBinding - - """An edge for our `BuilderBinding`. May be used by Relay 1.""" - builderBindingEdge( - """The method to use when ordering `BuilderBinding`.""" - orderBy: [BuilderBindingOrderBy!]! = [PRIMARY_KEY_ASC] - ): BuilderBindingEdge - - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - """All input for the create `ContentPreset` mutation.""" input CreateContentPresetInput { """ @@ -3235,41 +2961,6 @@ type CreatePlatformBuildStepPayload { query: Query } -"""All input for the create `PlatformBuilderBinding` mutation.""" -input CreatePlatformBuilderBindingInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `PlatformBuilderBinding` to be created by this mutation.""" - platformBuilderBinding: PlatformBuilderBindingInput! -} - -"""The output of our create `PlatformBuilderBinding` mutation.""" -type CreatePlatformBuilderBindingPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `PlatformBuilderBinding` that was created by this mutation.""" - platformBuilderBinding: PlatformBuilderBinding - - """An edge for our `PlatformBuilderBinding`. May be used by Relay 1.""" - platformBuilderBindingEdge( - """The method to use when ordering `PlatformBuilderBinding`.""" - orderBy: [PlatformBuilderBindingOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlatformBuilderBindingEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - """All input for the create `PlatformFunctionApiBinding` mutation.""" input CreatePlatformFunctionApiBindingInput { """ @@ -4661,6 +4352,41 @@ type CreatePlatformResourceUsageSummaryPayload { query: Query } +"""All input for the create `PlatformServiceBinding` mutation.""" +input CreatePlatformServiceBindingInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `PlatformServiceBinding` to be created by this mutation.""" + platformServiceBinding: PlatformServiceBindingInput! +} + +"""The output of our create `PlatformServiceBinding` mutation.""" +type CreatePlatformServiceBindingPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformServiceBinding` that was created by this mutation.""" + platformServiceBinding: PlatformServiceBinding + + """An edge for our `PlatformServiceBinding`. May be used by Relay 1.""" + platformServiceBindingEdge( + """The method to use when ordering `PlatformServiceBinding`.""" + orderBy: [PlatformServiceBindingOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformServiceBindingEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + """All input for the create `PlatformWebhookEndpoint` mutation.""" input CreatePlatformWebhookEndpointInput { """ @@ -5431,6 +5157,41 @@ type CreateResourceUsageSummaryPayload { ): ResourceUsageSummaryEdge } +"""All input for the create `ServiceBinding` mutation.""" +input CreateServiceBindingInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `ServiceBinding` to be created by this mutation.""" + serviceBinding: ServiceBindingInput! +} + +"""The output of our create `ServiceBinding` mutation.""" +type CreateServiceBindingPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """The `ServiceBinding` that was created by this mutation.""" + serviceBinding: ServiceBinding + + """An edge for our `ServiceBinding`. May be used by Relay 1.""" + serviceBindingEdge( + """The method to use when ordering `ServiceBinding`.""" + orderBy: [ServiceBindingOrderBy!]! = [PRIMARY_KEY_ASC] + ): ServiceBindingEdge +} + """All input for the create `WebhookEndpoint` mutation.""" input CreateWebhookEndpointInput { """ @@ -8643,39 +8404,6 @@ type DeleteBuildStepPayload { query: Query } -"""All input for the `deleteBuilderBinding` mutation.""" -input DeleteBuilderBindingInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `BuilderBinding` mutation.""" -type DeleteBuilderBindingPayload { - """The `BuilderBinding` that was deleted by this mutation.""" - builderBinding: BuilderBinding - - """An edge for our `BuilderBinding`. May be used by Relay 1.""" - builderBindingEdge( - """The method to use when ordering `BuilderBinding`.""" - orderBy: [BuilderBindingOrderBy!]! = [PRIMARY_KEY_ASC] - ): BuilderBindingEdge - - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - """All input for the `deleteContentPreset` mutation.""" input DeleteContentPresetInput { """ @@ -10167,39 +9895,6 @@ type DeletePlatformBuildStepPayload { query: Query } -"""All input for the `deletePlatformBuilderBinding` mutation.""" -input DeletePlatformBuilderBindingInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `PlatformBuilderBinding` mutation.""" -type DeletePlatformBuilderBindingPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `PlatformBuilderBinding` that was deleted by this mutation.""" - platformBuilderBinding: PlatformBuilderBinding - - """An edge for our `PlatformBuilderBinding`. May be used by Relay 1.""" - platformBuilderBindingEdge( - """The method to use when ordering `PlatformBuilderBinding`.""" - orderBy: [PlatformBuilderBindingOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlatformBuilderBindingEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - """All input for the `deletePlatformFunctionApiBinding` mutation.""" input DeletePlatformFunctionApiBindingInput { """ @@ -11572,6 +11267,39 @@ type DeletePlatformResourceUsageSummaryPayload { query: Query } +"""All input for the `deletePlatformServiceBinding` mutation.""" +input DeletePlatformServiceBindingInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `PlatformServiceBinding` mutation.""" +type DeletePlatformServiceBindingPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformServiceBinding` that was deleted by this mutation.""" + platformServiceBinding: PlatformServiceBinding + + """An edge for our `PlatformServiceBinding`. May be used by Relay 1.""" + platformServiceBindingEdge( + """The method to use when ordering `PlatformServiceBinding`.""" + orderBy: [PlatformServiceBindingOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformServiceBindingEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + """All input for the `deletePlatformWebhookEndpoint` mutation.""" input DeletePlatformWebhookEndpointInput { """ @@ -12315,6 +12043,39 @@ type DeleteResourceUsageSummaryPayload { ): ResourceUsageSummaryEdge } +"""All input for the `deleteServiceBinding` mutation.""" +input DeleteServiceBindingInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `ServiceBinding` mutation.""" +type DeleteServiceBindingPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """The `ServiceBinding` that was deleted by this mutation.""" + serviceBinding: ServiceBinding + + """An edge for our `ServiceBinding`. May be used by Relay 1.""" + serviceBindingEdge( + """The method to use when ordering `ServiceBinding`.""" + orderBy: [ServiceBindingOrderBy!]! = [PRIMARY_KEY_ASC] + ): ServiceBindingEdge +} + """All input for the `deleteWebhookEndpoint` mutation.""" input DeleteWebhookEndpointInput { """ @@ -12381,6 +12142,17 @@ type DeleteWebhookEventPayload { ): WebhookEventEdge } +"""One version rendered beside a file, with a URL to fetch it.""" +type FileVersion { + format: String + height: Int + key: String! + name: String + size: Int + url: String! + width: Int +} + """A full-text search tsvector value represented as a string.""" scalar FullText @@ -13930,7 +13702,7 @@ type FunctionDeployment { """ Reads a single `Namespace` that is related to this `FunctionDeployment`. """ - namespace: Namespace + namespaceByNamespaceIdAndDatabaseId: Namespace """Target namespace for this deployment (maps to a K8s namespace)""" namespaceId: UUID! @@ -14239,8 +14011,8 @@ input FunctionDeploymentFilter { """Filter by the object’s `lastErrorAt` field.""" lastErrorAt: DatetimeFilter - """Filter by the object’s `namespace` relation.""" - namespace: NamespaceFilter + """Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation.""" + namespaceByNamespaceIdAndDatabaseId: NamespaceFilter """Filter by the object’s `namespaceId` field.""" namespaceId: UUIDFilter @@ -19584,6 +19356,21 @@ type IntegrationProvider { """ logo: ConstructiveInternalTypeImage + """ + URL to fetch `logo`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. + """ + logoUrl( + """ + The width the file will be shown at, in device pixels. Without a version that wide, the source. + """ + width: Int + ): String + + """ + The versions rendered beside `logo`, narrowest first, each with a URL. Empty when there are none. + """ + logoVersions: [FileVersion!] + """Human-readable brand name (e.g. 'Mailgun', 'PostgreSQL')""" name: String! @@ -19775,11 +19562,6 @@ input IntegrationProviderPatch { """ logo: ConstructiveInternalTypeImage - """ - Upload for Provider logo as an image domain value (url, id, key, bucket, provider) - """ - logoUpload: Upload - """Human-readable brand name (e.g. 'Mailgun', 'PostgreSQL')""" name: String @@ -19963,6 +19745,11 @@ type MetaBelongsToRelation { fieldName: String isUnique: Boolean! keys: [MetaField!]! + + """ + Fields on the referenced table that keys point at, in the same order as keys + """ + refKeys: [MetaField!]! references: MetaRefTable! type: String } @@ -19985,22 +19772,66 @@ type MetaEnum { """Information about a table field/column""" type MetaField { + """ + Values this field accepts, when the set is fixed; null otherwise. Set on a table's own fields only. + """ + allowedValues: [String!] + """PostgreSQL column name""" columnName: String! description: String """Enum metadata if this field has an enum type""" enumValues: MetaEnum + + """ + Set when the field holds files; null otherwise. Set on a table's own fields only. + """ + file: MetaFileField hasDefault: Boolean! + + """ + Whether the value is always computed and cannot be written, even when a create or update input offers the field. Set on a table's own fields only. + """ + isComputed: Boolean isForeignKey: Boolean! isNotNull: Boolean! isPrimaryKey: Boolean! + """ + Whether a create must provide this field. Set on a table's own fields only. + """ + isRequiredOnCreate: Boolean + + """Whether a create may set this field. Set on a table's own fields only.""" + isWritableOnCreate: Boolean + + """ + Whether an update may change this field. Set on a table's own fields only. + """ + isWritableOnUpdate: Boolean + """Final GraphQL field name""" name: String! type: MetaType! } +"""How a field holds files""" +type MetaFileField { + """ + GraphQL type name of the files table uploads are recorded in, when this API has exactly one; null otherwise + """ + filesType: String + + """Whether the field holds a list of files""" + isMultiple: Boolean! + + """ + image, upload, or attachment. An image or upload holds a file document; an attachment holds a link to a file. + """ + kind: String! +} + """Information about a foreign key constraint""" type MetaForeignKeyConstraint { fields: [MetaField!]! @@ -20017,10 +19848,15 @@ type MetaHasRelation { isUnique: Boolean! keys: [MetaField!]! referencedBy: MetaRefTable! + + """ + Fields on the related table that point at this table, in the same order as keys + """ + remoteKeys: [MetaField!]! type: String } -"""i18n metadata for a table with @i18n tag""" +"""i18n metadata for a translatable table""" type MetaI18n { """Fields that are translatable""" translatableFields: [MetaI18nField!]! @@ -20047,7 +19883,7 @@ type MetaIndex { name: String! } -"""Table inflection names""" +"""Type and field names generated for this table""" type MetaInflection { allRows: String! conditionType: String! @@ -20092,7 +19928,7 @@ type MetaQuery { update: String } -"""Realtime metadata for a table with @realtime tag""" +"""Realtime metadata for a table with change subscriptions""" type MetaRealtime { """The generated subscription field name (e.g. onPostChanged)""" subscriptionFieldName: String! @@ -20113,13 +19949,15 @@ type MetaRelations { } """ -How a client must serialize/parse a scalar — the one field-type detail standard GraphQL introspection cannot describe. Null for plain scalars whose wire format is obvious from gqlType. +How a client must serialize and parse a scalar whose wire format gqlType alone does not settle. Null for plain scalars whose wire format is obvious from gqlType. """ type MetaScalarEncoding { """For 'vector': declared length, else null.""" dimensions: Int - """For 'ltree': values are dot-separated path strings.""" + """ + For 'ltree': true when values are dot-separated paths ('a.b.c'), false when they are slash-separated paths ('/a/b/c'). + """ dotPath: Boolean """For 'vector': element scalar (e.g. 'float').""" @@ -20144,11 +19982,11 @@ type MetaSchema { """Provisioning scope metadata for a table""" type MetaScope { - """SQL name of the entity table for entity scopes, else null""" + """Name of the entity table for entity scopes, else null""" entityTable: String """ - Inflected scope key column (e.g. databaseId, orgId), null for global tiers + Field name of the scope key (e.g. databaseId, orgId), null for global tiers """ keyColumn: String @@ -20157,7 +19995,7 @@ type MetaScope { """ scope: String! - """Provenance of the scope metadata (always 'smartTag')""" + """Where this scope metadata comes from""" source: String! """Coarse bucket: 'global', 'database', or 'entity'""" @@ -20188,7 +20026,7 @@ type MetaSearchColumn { name: String! } -"""Per-table search configuration from @searchConfig smart tag""" +"""Per-table search configuration""" type MetaSearchConfig { """Exponential decay factor per day""" boostRecencyDecay: Float @@ -20205,7 +20043,7 @@ type MetaSearchConfig { """Storage metadata for a table""" type MetaStorage { - """GraphQL type name of the plane's buckets table""" + """GraphQL type name of the paired buckets table""" bucketsType: String! """ @@ -20213,7 +20051,7 @@ type MetaStorage { """ downloadUrlField: String - """GraphQL type name of the plane's files table""" + """GraphQL type name of the paired files table""" filesType: String! """Whether this table is a storage buckets table""" @@ -20222,13 +20060,11 @@ type MetaStorage { """Whether this table is a storage files table""" isFilesTable: Boolean! - """The plane's GraphQL upload surface""" + """Upload mutations and types for this storage""" upload: MetaStorageUpload! } -""" -The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from -""" +"""The upload mutations and types for a storage table pair""" type MetaStorageUpload { """Per-file input type inside the bulk input""" bulkFileInputType: String! @@ -20254,32 +20090,45 @@ type MetaStorageUpload { """Payload type of the single upload mutation""" payloadType: String! - """Whether the upload input requires ownerId (entity-keyed plane)""" + """Whether the upload input requires ownerId""" requiresOwnerId: Boolean! } """Information about a database table""" type MetaTable { constraints: MetaConstraints! + + """Description written for this table, or null""" + description: String fields: [MetaField!]! foreignKeyConstraints: [MetaForeignKeyConstraint!]! - """i18n metadata (null if no @i18n tag)""" + """i18n metadata (null if the table is not translatable)""" i18n: MetaI18n indexes: [MetaIndex!]! inflection: MetaInflection! + """ + Whether this table only links rows of two other tables; the link appears in their manyToMany relations + """ + isJunction: Boolean! + + """ + 'table' when rows are stored in this table, 'view' when they come from a view of other tables + """ + kind: String! + """Final GraphQL output type name""" name: String! primaryKeyConstraints: [MetaPrimaryKeyConstraint!]! query: MetaQuery! - """Realtime metadata (null if no @realtime tag)""" + """Realtime metadata (null if the table has no change subscriptions)""" realtime: MetaRealtime relations: MetaRelations! schemaName: String! - """Provisioning scope metadata (null if no @scope tag)""" + """Provisioning scope metadata (null if the table has no scope)""" scope: MetaScope """Search metadata (null if no search configured)""" @@ -20301,7 +20150,22 @@ type MetaType { hasDefault: Boolean isArray: Boolean! isNotNull: Boolean + + """ + Most characters a text value may hold, or most bits a bit string may hold; for a list, each item. Null when unbounded. + """ + maxLength: Int pgType: String! + + """ + Most significant digits a decimal number may hold. Null when unbounded. + """ + precision: Int + + """ + Digits a decimal number keeps after the decimal point. Null when unbounded. + """ + scale: Int subtype: String } @@ -20368,14 +20232,6 @@ type Mutation { input: CreateBuildStepInput! ): CreateBuildStepPayload - """Creates a single `BuilderBinding`.""" - createBuilderBinding( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateBuilderBindingInput! - ): CreateBuilderBindingPayload - """Creates a single `ContentPreset`.""" createContentPreset( """ @@ -20686,14 +20542,6 @@ type Mutation { input: CreatePlatformBuildStepInput! ): CreatePlatformBuildStepPayload - """Creates a single `PlatformBuilderBinding`.""" - createPlatformBuilderBinding( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePlatformBuilderBindingInput! - ): CreatePlatformBuilderBindingPayload - """Creates a single `PlatformFunctionApiBinding`.""" createPlatformFunctionApiBinding( """ @@ -21006,6 +20854,14 @@ type Mutation { input: CreatePlatformResourceUsageSummaryInput! ): CreatePlatformResourceUsageSummaryPayload + """Creates a single `PlatformServiceBinding`.""" + createPlatformServiceBinding( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePlatformServiceBindingInput! + ): CreatePlatformServiceBindingPayload + """Creates a single `PlatformWebhookEndpoint`.""" createPlatformWebhookEndpoint( """ @@ -21182,6 +21038,14 @@ type Mutation { input: CreateResourceUsageSummaryInput! ): CreateResourceUsageSummaryPayload + """Creates a single `ServiceBinding`.""" + createServiceBinding( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateServiceBindingInput! + ): CreateServiceBindingPayload + """Creates a single `WebhookEndpoint`.""" createWebhookEndpoint( """ @@ -21322,14 +21186,6 @@ type Mutation { input: DeleteBuildStepInput! ): DeleteBuildStepPayload - """Deletes a single `BuilderBinding` using a unique key.""" - deleteBuilderBinding( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteBuilderBindingInput! - ): DeleteBuilderBindingPayload - """Deletes a single `ContentPreset` using a unique key.""" deleteContentPreset( """ @@ -21658,14 +21514,6 @@ type Mutation { input: DeletePlatformBuildStepInput! ): DeletePlatformBuildStepPayload - """Deletes a single `PlatformBuilderBinding` using a unique key.""" - deletePlatformBuilderBinding( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeletePlatformBuilderBindingInput! - ): DeletePlatformBuilderBindingPayload - """Deletes a single `PlatformFunctionApiBinding` using a unique key.""" deletePlatformFunctionApiBinding( """ @@ -21982,6 +21830,14 @@ type Mutation { input: DeletePlatformResourceUsageSummaryInput! ): DeletePlatformResourceUsageSummaryPayload + """Deletes a single `PlatformServiceBinding` using a unique key.""" + deletePlatformServiceBinding( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformServiceBindingInput! + ): DeletePlatformServiceBindingPayload + """Deletes a single `PlatformWebhookEndpoint` using a unique key.""" deletePlatformWebhookEndpoint( """ @@ -22158,6 +22014,14 @@ type Mutation { input: DeleteResourceUsageSummaryInput! ): DeleteResourceUsageSummaryPayload + """Deletes a single `ServiceBinding` using a unique key.""" + deleteServiceBinding( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteServiceBindingInput! + ): DeleteServiceBindingPayload + """Deletes a single `WebhookEndpoint` using a unique key.""" deleteWebhookEndpoint( """ @@ -22421,14 +22285,6 @@ type Mutation { input: UpdateBuildStepInput! ): UpdateBuildStepPayload - """Updates a single `BuilderBinding` using a unique key and a patch.""" - updateBuilderBinding( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateBuilderBindingInput! - ): UpdateBuilderBindingPayload - """Updates a single `ContentPreset` using a unique key and a patch.""" updateContentPreset( """ @@ -22775,16 +22631,6 @@ type Mutation { input: UpdatePlatformBuildStepInput! ): UpdatePlatformBuildStepPayload - """ - Updates a single `PlatformBuilderBinding` using a unique key and a patch. - """ - updatePlatformBuilderBinding( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlatformBuilderBindingInput! - ): UpdatePlatformBuilderBindingPayload - """ Updates a single `PlatformFunctionApiBinding` using a unique key and a patch. """ @@ -23151,6 +22997,16 @@ type Mutation { input: UpdatePlatformResourceUsageSummaryInput! ): UpdatePlatformResourceUsageSummaryPayload + """ + Updates a single `PlatformServiceBinding` using a unique key and a patch. + """ + updatePlatformServiceBinding( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformServiceBindingInput! + ): UpdatePlatformServiceBindingPayload + """ Updates a single `PlatformWebhookEndpoint` using a unique key and a patch. """ @@ -23337,6 +23193,14 @@ type Mutation { input: UpdateResourceUsageSummaryInput! ): UpdateResourceUsageSummaryPayload + """Updates a single `ServiceBinding` using a unique key and a patch.""" + updateServiceBinding( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateServiceBindingInput! + ): UpdateServiceBindingPayload + """Updates a single `WebhookEndpoint` using a unique key and a patch.""" updateWebhookEndpoint( """ @@ -23367,35 +23231,6 @@ type Namespace { """Freeform metadata for tooling and operational notes""" annotations: JSON! - """Reads and enables pagination through a set of `BuilderBinding`.""" - builderBindings( - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """The method to use when ordering `BuilderBinding`.""" - orderBy: [BuilderBindingOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: BuilderBindingFilter - ): BuilderBindingConnection! - """ Cluster this namespace is projected onto; NULL = the cluster the reconciler runs in """ @@ -23409,7 +23244,7 @@ type Namespace { description: String """Reads and enables pagination through a set of `FunctionDeployment`.""" - functionDeployments( + functionDeploymentsByNamespaceIdAndDatabaseId( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -23461,7 +23296,7 @@ type Namespace { namespaceName: String! """Reads and enables pagination through a set of `RegistryBinding`.""" - registryBindings( + registryBindingsByNamespaceIdAndDatabaseId( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -23490,7 +23325,7 @@ type Namespace { ): RegistryBindingConnection! """Reads and enables pagination through a set of `ResourceDefinition`.""" - resourceDefinitions( + resourceDefinitionsByNamespaceIdAndDatabaseId( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -23519,7 +23354,7 @@ type Namespace { ): ResourceDefinitionConnection! """Reads and enables pagination through a set of `ResourceInstallation`.""" - resourceInstallations( + resourceInstallationsByNamespaceIdAndDatabaseId( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -23548,7 +23383,7 @@ type Namespace { ): ResourceInstallationConnection! """Reads and enables pagination through a set of `Resource`.""" - resources( + resourcesByNamespaceIdAndDatabaseId( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -23576,6 +23411,35 @@ type Namespace { where: ResourceFilter ): ResourceConnection! + """Reads and enables pagination through a set of `ServiceBinding`.""" + serviceBindingsByNamespaceIdAndDatabaseId( + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """The method to use when ordering `ServiceBinding`.""" + orderBy: [ServiceBindingOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: ServiceBindingFilter + ): ServiceBindingConnection! + """ Namespace provisioning lifecycle status: pending, provisioning, active, failed """ @@ -23583,7 +23447,7 @@ type Namespace { updatedAt: Datetime """Reads and enables pagination through a set of `WebhookEndpoint`.""" - webhookEndpoints( + webhookEndpointsByNamespaceIdAndDatabaseId( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -23832,12 +23696,6 @@ input NamespaceFilter { """Filter by the object’s `annotations` field.""" annotations: JSONFilter - """Filter by the object’s `builderBindings` relation.""" - builderBindings: NamespaceToManyBuilderBindingFilter - - """`builderBindings` exist.""" - builderBindingsExist: Boolean - """Filter by the object’s `clusterId` field.""" clusterId: UUIDFilter @@ -23850,11 +23708,13 @@ input NamespaceFilter { """Filter by the object’s `description` field.""" description: StringFilter - """Filter by the object’s `functionDeployments` relation.""" - functionDeployments: NamespaceToManyFunctionDeploymentFilter + """ + Filter by the object’s `functionDeploymentsByNamespaceIdAndDatabaseId` relation. + """ + functionDeploymentsByNamespaceIdAndDatabaseId: NamespaceToManyFunctionDeploymentFilter - """`functionDeployments` exist.""" - functionDeploymentsExist: Boolean + """`functionDeploymentsByNamespaceIdAndDatabaseId` exist.""" + functionDeploymentsByNamespaceIdAndDatabaseIdExist: Boolean """Filter by the object’s `id` field.""" id: UUIDFilter @@ -23883,29 +23743,43 @@ input NamespaceFilter { """Checks for any expressions in this list.""" or: [NamespaceFilter!] - """Filter by the object’s `registryBindings` relation.""" - registryBindings: NamespaceToManyRegistryBindingFilter + """ + Filter by the object’s `registryBindingsByNamespaceIdAndDatabaseId` relation. + """ + registryBindingsByNamespaceIdAndDatabaseId: NamespaceToManyRegistryBindingFilter - """`registryBindings` exist.""" - registryBindingsExist: Boolean + """`registryBindingsByNamespaceIdAndDatabaseId` exist.""" + registryBindingsByNamespaceIdAndDatabaseIdExist: Boolean - """Filter by the object’s `resourceDefinitions` relation.""" - resourceDefinitions: NamespaceToManyResourceDefinitionFilter + """ + Filter by the object’s `resourceDefinitionsByNamespaceIdAndDatabaseId` relation. + """ + resourceDefinitionsByNamespaceIdAndDatabaseId: NamespaceToManyResourceDefinitionFilter - """`resourceDefinitions` exist.""" - resourceDefinitionsExist: Boolean + """`resourceDefinitionsByNamespaceIdAndDatabaseId` exist.""" + resourceDefinitionsByNamespaceIdAndDatabaseIdExist: Boolean - """Filter by the object’s `resourceInstallations` relation.""" - resourceInstallations: NamespaceToManyResourceInstallationFilter + """ + Filter by the object’s `resourceInstallationsByNamespaceIdAndDatabaseId` relation. + """ + resourceInstallationsByNamespaceIdAndDatabaseId: NamespaceToManyResourceInstallationFilter - """`resourceInstallations` exist.""" - resourceInstallationsExist: Boolean + """`resourceInstallationsByNamespaceIdAndDatabaseId` exist.""" + resourceInstallationsByNamespaceIdAndDatabaseIdExist: Boolean - """Filter by the object’s `resources` relation.""" - resources: NamespaceToManyResourceFilter + """Filter by the object’s `resourcesByNamespaceIdAndDatabaseId` relation.""" + resourcesByNamespaceIdAndDatabaseId: NamespaceToManyResourceFilter - """`resources` exist.""" - resourcesExist: Boolean + """`resourcesByNamespaceIdAndDatabaseId` exist.""" + resourcesByNamespaceIdAndDatabaseIdExist: Boolean + + """ + Filter by the object’s `serviceBindingsByNamespaceIdAndDatabaseId` relation. + """ + serviceBindingsByNamespaceIdAndDatabaseId: NamespaceToManyServiceBindingFilter + + """`serviceBindingsByNamespaceIdAndDatabaseId` exist.""" + serviceBindingsByNamespaceIdAndDatabaseIdExist: Boolean """Filter by the object’s `status` field.""" status: StringFilter @@ -23913,11 +23787,13 @@ input NamespaceFilter { """Filter by the object’s `updatedAt` field.""" updatedAt: DatetimeFilter - """Filter by the object’s `webhookEndpoints` relation.""" - webhookEndpoints: NamespaceToManyWebhookEndpointFilter + """ + Filter by the object’s `webhookEndpointsByNamespaceIdAndDatabaseId` relation. + """ + webhookEndpointsByNamespaceIdAndDatabaseId: NamespaceToManyWebhookEndpointFilter - """`webhookEndpoints` exist.""" - webhookEndpointsExist: Boolean + """`webhookEndpointsByNamespaceIdAndDatabaseId` exist.""" + webhookEndpointsByNamespaceIdAndDatabaseIdExist: Boolean } """An input for mutations affecting `Namespace`""" @@ -24051,20 +23927,6 @@ input NamespacePatch { updatedAt: Datetime } -""" -A filter to be used against many `BuilderBinding` object types. All fields are combined with a logical ‘and.’ -""" -input NamespaceToManyBuilderBindingFilter { - """Filters to entities where every related entity matches.""" - every: BuilderBindingFilter - - """Filters to entities where no related entity matches.""" - none: BuilderBindingFilter - - """Filters to entities where at least one related entity matches.""" - some: BuilderBindingFilter -} - """ A filter to be used against many `FunctionDeployment` object types. All fields are combined with a logical ‘and.’ """ @@ -24135,6 +23997,20 @@ input NamespaceToManyResourceInstallationFilter { some: ResourceInstallationFilter } +""" +A filter to be used against many `ServiceBinding` object types. All fields are combined with a logical ‘and.’ +""" +input NamespaceToManyServiceBindingFilter { + """Filters to entities where every related entity matches.""" + every: ServiceBindingFilter + + """Filters to entities where no related entity matches.""" + none: ServiceBindingFilter + + """Filters to entities where at least one related entity matches.""" + some: ServiceBindingFilter +} + """ A filter to be used against many `WebhookEndpoint` object types. All fields are combined with a logical ‘and.’ """ @@ -24209,6 +24085,21 @@ type PlatformBuild { """Build log object in storage; step rows slice it by byte range""" logs: ConstructiveInternalTypeUpload + """ + URL to fetch `logs`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. + """ + logsUrl( + """ + The width the file will be shown at, in device pixels. Without a version that wide, the source. + """ + width: Int + ): String + + """ + The versions rendered beside `logs`, narrowest first, each with a URL. Empty when there are none. + """ + logsVersions: [FileVersion!] + """Matrix shard identity; NULL for a non-matrix build""" matrixKey: String @@ -24534,11 +24425,6 @@ input PlatformBuildPatch { """Build log object in storage; step rows slice it by byte range""" logs: ConstructiveInternalTypeUpload - """ - Upload for Build log object in storage; step rows slice it by byte range - """ - logsUpload: Upload - """Matrix shard identity; NULL for a non-matrix build""" matrixKey: String @@ -24844,245 +24730,6 @@ input PlatformBuildStepPatch { summary: JSON } -""" -Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST -""" -type PlatformBuilderBinding { - createdAt: Datetime - createdBy: UUID - createdByPrincipal: UUID - id: UUID! - - """ - BuildKit resource installation serving this binding; may belong to another resource scope - """ - installationId: UUID! - - """Most recent projection failure""" - lastError: String - - """Reconciler detail (projection timestamps and diagnostics)""" - metadata: JSON - - """ - Reads a single `PlatformNamespace` that is related to this `PlatformBuilderBinding`. - """ - namespace: PlatformNamespace - - """Namespace whose builds use this BuildKit installation""" - namespaceId: UUID! - - """ - BuildKit address last projected into the namespace (NULL = never projected) - """ - observedHost: String - - """Lane this binding applies to (NULL = the scope's default lane)""" - realm: String - - """Projection state of BUILDKIT_HOST: pending, active, failed""" - status: String! - updatedAt: Datetime - updatedBy: UUID - updatedByPrincipal: UUID -} - -"""A connection to a list of `PlatformBuilderBinding` values.""" -type PlatformBuilderBindingConnection { - """ - A list of edges which contains the `PlatformBuilderBinding` and cursor to aid in pagination. - """ - edges: [PlatformBuilderBindingEdge]! - - """A list of `PlatformBuilderBinding` objects.""" - nodes: [PlatformBuilderBinding]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `PlatformBuilderBinding` you could get from the connection. - """ - totalCount: Int! -} - -"""A `PlatformBuilderBinding` edge in the connection.""" -type PlatformBuilderBindingEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `PlatformBuilderBinding` at the end of the edge.""" - node: PlatformBuilderBinding -} - -""" -A filter to be used against `PlatformBuilderBinding` object types. All fields are combined with a logical ‘and.’ -""" -input PlatformBuilderBindingFilter { - """Checks for all expressions in this list.""" - and: [PlatformBuilderBindingFilter!] - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `createdBy` field.""" - createdBy: UUIDFilter - - """Filter by the object’s `createdByPrincipal` field.""" - createdByPrincipal: UUIDFilter - - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `installationId` field.""" - installationId: UUIDFilter - - """Filter by the object’s `lastError` field.""" - lastError: StringFilter - - """Filter by the object’s `metadata` field.""" - metadata: JSONFilter - - """Filter by the object’s `namespace` relation.""" - namespace: PlatformNamespaceFilter - - """Filter by the object’s `namespaceId` field.""" - namespaceId: UUIDFilter - - """Negates the expression.""" - not: PlatformBuilderBindingFilter - - """Filter by the object’s `observedHost` field.""" - observedHost: StringFilter - - """Checks for any expressions in this list.""" - or: [PlatformBuilderBindingFilter!] - - """Filter by the object’s `realm` field.""" - realm: StringFilter - - """Filter by the object’s `status` field.""" - status: StringFilter - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter - - """Filter by the object’s `updatedBy` field.""" - updatedBy: UUIDFilter - - """Filter by the object’s `updatedByPrincipal` field.""" - updatedByPrincipal: UUIDFilter -} - -"""An input for mutations affecting `PlatformBuilderBinding`""" -input PlatformBuilderBindingInput { - createdAt: Datetime - createdBy: UUID - createdByPrincipal: UUID - id: UUID - - """ - BuildKit resource installation serving this binding; may belong to another resource scope - """ - installationId: UUID! - - """Most recent projection failure""" - lastError: String - - """Reconciler detail (projection timestamps and diagnostics)""" - metadata: JSON - - """Namespace whose builds use this BuildKit installation""" - namespaceId: UUID! - - """ - BuildKit address last projected into the namespace (NULL = never projected) - """ - observedHost: String - - """Lane this binding applies to (NULL = the scope's default lane)""" - realm: String - - """Projection state of BUILDKIT_HOST: pending, active, failed""" - status: String - updatedAt: Datetime - updatedBy: UUID - updatedByPrincipal: UUID -} - -"""Methods to use when ordering `PlatformBuilderBinding`.""" -enum PlatformBuilderBindingOrderBy { - CREATED_AT_ASC - CREATED_AT_DESC - CREATED_BY_ASC - CREATED_BY_DESC - CREATED_BY_PRINCIPAL_ASC - CREATED_BY_PRINCIPAL_DESC - ID_ASC - ID_DESC - INSTALLATION_ID_ASC - INSTALLATION_ID_DESC - LAST_ERROR_ASC - LAST_ERROR_DESC - METADATA_ASC - METADATA_DESC - NAMESPACE_ID_ASC - NAMESPACE_ID_DESC - NATURAL - OBSERVED_HOST_ASC - OBSERVED_HOST_DESC - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - REALM_ASC - REALM_DESC - STATUS_ASC - STATUS_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - UPDATED_BY_ASC - UPDATED_BY_DESC - UPDATED_BY_PRINCIPAL_ASC - UPDATED_BY_PRINCIPAL_DESC -} - -""" -Represents an update to a `PlatformBuilderBinding`. Fields that are set will be updated. -""" -input PlatformBuilderBindingPatch { - createdAt: Datetime - createdBy: UUID - createdByPrincipal: UUID - id: UUID - - """ - BuildKit resource installation serving this binding; may belong to another resource scope - """ - installationId: UUID - - """Most recent projection failure""" - lastError: String - - """Reconciler detail (projection timestamps and diagnostics)""" - metadata: JSON - - """Namespace whose builds use this BuildKit installation""" - namespaceId: UUID - - """ - BuildKit address last projected into the namespace (NULL = never projected) - """ - observedHost: String - - """Lane this binding applies to (NULL = the scope's default lane)""" - realm: String - - """Projection state of BUILDKIT_HOST: pending, active, failed""" - status: String - updatedAt: Datetime - updatedBy: UUID - updatedByPrincipal: UUID -} - """ Join table binding function definitions to API endpoints with per-binding alias and config """ @@ -30310,37 +29957,6 @@ type PlatformNamespace { """ namespaceName: String! - """ - Reads and enables pagination through a set of `PlatformBuilderBinding`. - """ - platformBuilderBindingsByNamespaceId( - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """The method to use when ordering `PlatformBuilderBinding`.""" - orderBy: [PlatformBuilderBindingOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: PlatformBuilderBindingFilter - ): PlatformBuilderBindingConnection! - """ Reads and enables pagination through a set of `PlatformFunctionDeployment`. """ @@ -30494,6 +30110,37 @@ type PlatformNamespace { where: PlatformResourceFilter ): PlatformResourceConnection! + """ + Reads and enables pagination through a set of `PlatformServiceBinding`. + """ + platformServiceBindingsByNamespaceId( + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """The method to use when ordering `PlatformServiceBinding`.""" + orderBy: [PlatformServiceBindingOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformServiceBindingFilter + ): PlatformServiceBindingConnection! + """ Reads and enables pagination through a set of `PlatformWebhookEndpoint`. """ @@ -30778,14 +30425,6 @@ input PlatformNamespaceFilter { """Checks for any expressions in this list.""" or: [PlatformNamespaceFilter!] - """ - Filter by the object’s `platformBuilderBindingsByNamespaceId` relation. - """ - platformBuilderBindingsByNamespaceId: PlatformNamespaceToManyPlatformBuilderBindingFilter - - """`platformBuilderBindingsByNamespaceId` exist.""" - platformBuilderBindingsByNamespaceIdExist: Boolean - """ Filter by the object’s `platformFunctionDeploymentsByNamespaceId` relation. """ @@ -30824,6 +30463,14 @@ input PlatformNamespaceFilter { """`platformResourcesByNamespaceId` exist.""" platformResourcesByNamespaceIdExist: Boolean + """ + Filter by the object’s `platformServiceBindingsByNamespaceId` relation. + """ + platformServiceBindingsByNamespaceId: PlatformNamespaceToManyPlatformServiceBindingFilter + + """`platformServiceBindingsByNamespaceId` exist.""" + platformServiceBindingsByNamespaceIdExist: Boolean + """ Filter by the object’s `platformWebhookEndpointsByNamespaceId` relation. """ @@ -30962,20 +30609,6 @@ input PlatformNamespacePatch { updatedAt: Datetime } -""" -A filter to be used against many `PlatformBuilderBinding` object types. All fields are combined with a logical ‘and.’ -""" -input PlatformNamespaceToManyPlatformBuilderBindingFilter { - """Filters to entities where every related entity matches.""" - every: PlatformBuilderBindingFilter - - """Filters to entities where no related entity matches.""" - none: PlatformBuilderBindingFilter - - """Filters to entities where at least one related entity matches.""" - some: PlatformBuilderBindingFilter -} - """ A filter to be used against many `PlatformFunctionDeployment` object types. All fields are combined with a logical ‘and.’ """ @@ -31046,6 +30679,20 @@ input PlatformNamespaceToManyPlatformResourceInstallationFilter { some: PlatformResourceInstallationFilter } +""" +A filter to be used against many `PlatformServiceBinding` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformNamespaceToManyPlatformServiceBindingFilter { + """Filters to entities where every related entity matches.""" + every: PlatformServiceBindingFilter + + """Filters to entities where no related entity matches.""" + none: PlatformServiceBindingFilter + + """Filters to entities where at least one related entity matches.""" + some: PlatformServiceBindingFilter +} + """ A filter to be used against many `PlatformWebhookEndpoint` object types. All fields are combined with a logical ‘and.’ """ @@ -31123,6 +30770,12 @@ type PlatformProposal { """When this is wanted by (NULL when nothing is promised)""" dueAt: Datetime embedding: Vector + embeddingModel: String + + """ + TRGM similarity when searching `embeddingModel`. Returns null when no trgm search filter is active. + """ + embeddingModelTrgmSimilarity: Float embeddingUpdatedAt: Datetime """ @@ -31443,6 +31096,21 @@ type PlatformProposalComment { """Files referenced by the comment body, in the order they were attached""" attachments: [ConstructiveInternalTypeUpload] + """ + URL to fetch `attachments`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. + """ + attachmentsUrl( + """ + The width the file will be shown at, in device pixels. Without a version that wide, the source. + """ + width: Int + ): [String] + + """ + The versions rendered beside `attachments`, narrowest first, each with a URL. Empty when there are none. + """ + attachmentsVersions: [[FileVersion!]] + """Comment text""" body: String! @@ -31454,6 +31122,12 @@ type PlatformProposalComment { createdBy: UUID createdByPrincipal: UUID embedding: Vector + embeddingModel: String + + """ + TRGM similarity when searching `embeddingModel`. Returns null when no trgm search filter is active. + """ + embeddingModelTrgmSimilarity: Float embeddingUpdatedAt: Datetime """ @@ -31589,6 +31263,9 @@ input PlatformProposalCommentFilter { """Filter by the object’s `embedding` field.""" embedding: VectorFilter + """Filter by the object’s `embeddingModel` field.""" + embeddingModel: StringTrgmFilter + """Filter by the object’s `embeddingUpdatedAt` field.""" embeddingUpdatedAt: DatetimeFilter @@ -31633,6 +31310,9 @@ input PlatformProposalCommentFilter { """TRGM search on the `body` column.""" trgmBody: TrgmSearchInput + """TRGM search on the `embedding_model` column.""" + trgmEmbeddingModel: TrgmSearchInput + """TRGM search on the `path` column.""" trgmPath: TrgmSearchInput @@ -31677,7 +31357,7 @@ input PlatformProposalCommentInput { embedding: Vector """ - Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. """ embeddingText: String id: UUID @@ -31719,6 +31399,10 @@ enum PlatformProposalCommentOrderBy { CREATED_BY_PRINCIPAL_DESC EMBEDDING_ASC EMBEDDING_DESC + EMBEDDING_MODEL_ASC + EMBEDDING_MODEL_DESC + EMBEDDING_MODEL_TRGM_SIMILARITY_ASC + EMBEDDING_MODEL_TRGM_SIMILARITY_DESC EMBEDDING_UPDATED_AT_ASC EMBEDDING_UPDATED_AT_DESC EMBEDDING_VECTOR_DISTANCE_ASC @@ -31772,7 +31456,7 @@ input PlatformProposalCommentPatch { embedding: Vector """ - Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. """ embeddingText: String id: UUID @@ -32062,6 +31746,9 @@ input PlatformProposalFilter { """Filter by the object’s `embedding` field.""" embedding: VectorFilter + """Filter by the object’s `embeddingModel` field.""" + embeddingModel: StringTrgmFilter + """Filter by the object’s `embeddingUpdatedAt` field.""" embeddingUpdatedAt: DatetimeFilter @@ -32181,6 +31868,9 @@ input PlatformProposalFilter { """TRGM search on the `closed_reason` column.""" trgmClosedReason: TrgmSearchInput + """TRGM search on the `embedding_model` column.""" + trgmEmbeddingModel: TrgmSearchInput + """TRGM search on the `kind` column.""" trgmKind: TrgmSearchInput @@ -32254,7 +31944,7 @@ input PlatformProposalInput { embedding: Vector """ - Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. """ embeddingText: String id: UUID @@ -32342,6 +32032,10 @@ enum PlatformProposalOrderBy { DUE_AT_DESC EMBEDDING_ASC EMBEDDING_DESC + EMBEDDING_MODEL_ASC + EMBEDDING_MODEL_DESC + EMBEDDING_MODEL_TRGM_SIMILARITY_ASC + EMBEDDING_MODEL_TRGM_SIMILARITY_DESC EMBEDDING_UPDATED_AT_ASC EMBEDDING_UPDATED_AT_DESC EMBEDDING_VECTOR_DISTANCE_ASC @@ -32437,7 +32131,7 @@ input PlatformProposalPatch { embedding: Vector """ - Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. """ embeddingText: String id: UUID @@ -33145,7 +32839,7 @@ input PlatformProposalsChunkInput { embedding: Vector """ - Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. """ embeddingText: String id: UUID @@ -33197,7 +32891,7 @@ input PlatformProposalsChunkPatch { embedding: Vector """ - Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. """ embeddingText: String id: UUID @@ -34147,6 +33841,12 @@ type PlatformRepository { """ descriptionTrgmSimilarity: Float embedding: Vector + embeddingModel: String + + """ + TRGM similarity when searching `embeddingModel`. Returns null when no trgm search filter is active. + """ + embeddingModelTrgmSimilarity: Float embeddingUpdatedAt: Datetime """ @@ -34717,6 +34417,9 @@ input PlatformRepositoryFilter { """Filter by the object’s `embedding` field.""" embedding: VectorFilter + """Filter by the object’s `embeddingModel` field.""" + embeddingModel: StringTrgmFilter + """Filter by the object’s `embeddingUpdatedAt` field.""" embeddingUpdatedAt: DatetimeFilter @@ -34798,6 +34501,9 @@ input PlatformRepositoryFilter { """TRGM search on the `description` column.""" trgmDescription: TrgmSearchInput + """TRGM search on the `embedding_model` column.""" + trgmEmbeddingModel: TrgmSearchInput + """TRGM search on the `external_id` column.""" trgmExternalId: TrgmSearchInput @@ -34857,7 +34563,7 @@ input PlatformRepositoryInput { embedding: Vector """ - Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. """ embeddingText: String @@ -34916,6 +34622,10 @@ enum PlatformRepositoryOrderBy { DESCRIPTION_TRGM_SIMILARITY_DESC EMBEDDING_ASC EMBEDDING_DESC + EMBEDDING_MODEL_ASC + EMBEDDING_MODEL_DESC + EMBEDDING_MODEL_TRGM_SIMILARITY_ASC + EMBEDDING_MODEL_TRGM_SIMILARITY_DESC EMBEDDING_UPDATED_AT_ASC EMBEDDING_UPDATED_AT_DESC EMBEDDING_VECTOR_DISTANCE_ASC @@ -34983,7 +34693,7 @@ input PlatformRepositoryPatch { embedding: Vector """ - Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. """ embeddingText: String @@ -38783,6 +38493,285 @@ enum PlatformResourcesResolvedRequirementOrderBy { SLUG_DESC } +""" +Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config +""" +type PlatformServiceBinding { + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID + id: UUID! + + """ + Resource installation serving this binding, in the installations table of installation_scope + """ + installationId: UUID! + + """ + Scope whose installations table holds installation_id: this scope or platform + """ + installationScope: String! + + """ + Service this binding projects: builder (BUILDKIT_HOST) or git (GIT_PROVIDER + GIT_SERVICE_URL) + """ + kind: String! + + """Most recent projection failure""" + lastError: String + + """Reconciler detail (projection timestamps and diagnostics)""" + metadata: JSON + + """ + Reads a single `PlatformNamespace` that is related to this `PlatformServiceBinding`. + """ + namespace: PlatformNamespace + + """Namespace whose builds use this BuildKit installation""" + namespaceId: UUID! + + """ + Service address last projected into the namespace (NULL = never projected) + """ + observedHost: String + + """Lane this binding applies to (NULL = the scope's default lane)""" + realm: String + + """Projection state of the bound address: pending, active, failed""" + status: String! + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID +} + +"""A connection to a list of `PlatformServiceBinding` values.""" +type PlatformServiceBindingConnection { + """ + A list of edges which contains the `PlatformServiceBinding` and cursor to aid in pagination. + """ + edges: [PlatformServiceBindingEdge]! + + """A list of `PlatformServiceBinding` objects.""" + nodes: [PlatformServiceBinding]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PlatformServiceBinding` you could get from the connection. + """ + totalCount: Int! +} + +"""A `PlatformServiceBinding` edge in the connection.""" +type PlatformServiceBindingEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlatformServiceBinding` at the end of the edge.""" + node: PlatformServiceBinding +} + +""" +A filter to be used against `PlatformServiceBinding` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformServiceBindingFilter { + """Checks for all expressions in this list.""" + and: [PlatformServiceBindingFilter!] + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `createdBy` field.""" + createdBy: UUIDFilter + + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `installationId` field.""" + installationId: UUIDFilter + + """Filter by the object’s `installationScope` field.""" + installationScope: StringFilter + + """Filter by the object’s `kind` field.""" + kind: StringFilter + + """Filter by the object’s `lastError` field.""" + lastError: StringFilter + + """Filter by the object’s `metadata` field.""" + metadata: JSONFilter + + """Filter by the object’s `namespace` relation.""" + namespace: PlatformNamespaceFilter + + """Filter by the object’s `namespaceId` field.""" + namespaceId: UUIDFilter + + """Negates the expression.""" + not: PlatformServiceBindingFilter + + """Filter by the object’s `observedHost` field.""" + observedHost: StringFilter + + """Checks for any expressions in this list.""" + or: [PlatformServiceBindingFilter!] + + """Filter by the object’s `realm` field.""" + realm: StringFilter + + """Filter by the object’s `status` field.""" + status: StringFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `updatedBy` field.""" + updatedBy: UUIDFilter + + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter +} + +"""An input for mutations affecting `PlatformServiceBinding`""" +input PlatformServiceBindingInput { + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID + id: UUID + + """ + Resource installation serving this binding, in the installations table of installation_scope + """ + installationId: UUID! + + """ + Scope whose installations table holds installation_id: this scope or platform + """ + installationScope: String! + + """ + Service this binding projects: builder (BUILDKIT_HOST) or git (GIT_PROVIDER + GIT_SERVICE_URL) + """ + kind: String! + + """Most recent projection failure""" + lastError: String + + """Reconciler detail (projection timestamps and diagnostics)""" + metadata: JSON + + """Namespace whose builds use this BuildKit installation""" + namespaceId: UUID! + + """ + Service address last projected into the namespace (NULL = never projected) + """ + observedHost: String + + """Lane this binding applies to (NULL = the scope's default lane)""" + realm: String + + """Projection state of the bound address: pending, active, failed""" + status: String + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID +} + +"""Methods to use when ordering `PlatformServiceBinding`.""" +enum PlatformServiceBindingOrderBy { + CREATED_AT_ASC + CREATED_AT_DESC + CREATED_BY_ASC + CREATED_BY_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC + ID_ASC + ID_DESC + INSTALLATION_ID_ASC + INSTALLATION_ID_DESC + INSTALLATION_SCOPE_ASC + INSTALLATION_SCOPE_DESC + KIND_ASC + KIND_DESC + LAST_ERROR_ASC + LAST_ERROR_DESC + METADATA_ASC + METADATA_DESC + NAMESPACE_ID_ASC + NAMESPACE_ID_DESC + NATURAL + OBSERVED_HOST_ASC + OBSERVED_HOST_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + REALM_ASC + REALM_DESC + STATUS_ASC + STATUS_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + UPDATED_BY_ASC + UPDATED_BY_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC +} + +""" +Represents an update to a `PlatformServiceBinding`. Fields that are set will be updated. +""" +input PlatformServiceBindingPatch { + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID + id: UUID + + """ + Resource installation serving this binding, in the installations table of installation_scope + """ + installationId: UUID + + """ + Scope whose installations table holds installation_id: this scope or platform + """ + installationScope: String + + """ + Service this binding projects: builder (BUILDKIT_HOST) or git (GIT_PROVIDER + GIT_SERVICE_URL) + """ + kind: String + + """Most recent projection failure""" + lastError: String + + """Reconciler detail (projection timestamps and diagnostics)""" + metadata: JSON + + """Namespace whose builds use this BuildKit installation""" + namespaceId: UUID + + """ + Service address last projected into the namespace (NULL = never projected) + """ + observedHost: String + + """Lane this binding applies to (NULL = the scope's default lane)""" + realm: String + + """Projection state of the bound address: pending, active, failed""" + status: String + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID +} + """ Webhook route authority: (host, path) -> function task_identifier invoked through the webhook channel, with provider, signing-secret reference, and replay window """ @@ -39456,6 +39445,12 @@ type Proposal { """When this is wanted by (NULL when nothing is promised)""" dueAt: Datetime embedding: Vector + embeddingModel: String + + """ + TRGM similarity when searching `embeddingModel`. Returns null when no trgm search filter is active. + """ + embeddingModelTrgmSimilarity: Float embeddingUpdatedAt: Datetime """ @@ -39733,6 +39728,21 @@ type ProposalComment { """Files referenced by the comment body, in the order they were attached""" attachments: [ConstructiveInternalTypeUpload] + """ + URL to fetch `attachments`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. + """ + attachmentsUrl( + """ + The width the file will be shown at, in device pixels. Without a version that wide, the source. + """ + width: Int + ): [String] + + """ + The versions rendered beside `attachments`, narrowest first, each with a URL. Empty when there are none. + """ + attachmentsVersions: [[FileVersion!]] + """Comment text""" body: String! @@ -39747,6 +39757,12 @@ type ProposalComment { """Database that owns this resource (database-scoped isolation)""" databaseId: UUID! embedding: Vector + embeddingModel: String + + """ + TRGM similarity when searching `embeddingModel`. Returns null when no trgm search filter is active. + """ + embeddingModelTrgmSimilarity: Float embeddingUpdatedAt: Datetime """ @@ -39881,6 +39897,9 @@ input ProposalCommentFilter { """Filter by the object’s `embedding` field.""" embedding: VectorFilter + """Filter by the object’s `embeddingModel` field.""" + embeddingModel: StringTrgmFilter + """Filter by the object’s `embeddingUpdatedAt` field.""" embeddingUpdatedAt: DatetimeFilter @@ -39923,6 +39942,9 @@ input ProposalCommentFilter { """TRGM search on the `body` column.""" trgmBody: TrgmSearchInput + """TRGM search on the `embedding_model` column.""" + trgmEmbeddingModel: TrgmSearchInput + """TRGM search on the `path` column.""" trgmPath: TrgmSearchInput @@ -39967,7 +39989,7 @@ input ProposalCommentInput { embedding: Vector """ - Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. """ embeddingText: String id: UUID @@ -40011,6 +40033,10 @@ enum ProposalCommentOrderBy { DATABASE_ID_DESC EMBEDDING_ASC EMBEDDING_DESC + EMBEDDING_MODEL_ASC + EMBEDDING_MODEL_DESC + EMBEDDING_MODEL_TRGM_SIMILARITY_ASC + EMBEDDING_MODEL_TRGM_SIMILARITY_DESC EMBEDDING_UPDATED_AT_ASC EMBEDDING_UPDATED_AT_DESC EMBEDDING_VECTOR_DISTANCE_ASC @@ -40067,7 +40093,7 @@ input ProposalCommentPatch { embedding: Vector """ - Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. """ embeddingText: String id: UUID @@ -40373,6 +40399,9 @@ input ProposalFilter { """Filter by the object’s `embedding` field.""" embedding: VectorFilter + """Filter by the object’s `embeddingModel` field.""" + embeddingModel: StringTrgmFilter + """Filter by the object’s `embeddingUpdatedAt` field.""" embeddingUpdatedAt: DatetimeFilter @@ -40478,6 +40507,9 @@ input ProposalFilter { """TRGM search on the `closed_reason` column.""" trgmClosedReason: TrgmSearchInput + """TRGM search on the `embedding_model` column.""" + trgmEmbeddingModel: TrgmSearchInput + """TRGM search on the `kind` column.""" trgmKind: TrgmSearchInput @@ -40551,7 +40583,7 @@ input ProposalInput { embedding: Vector """ - Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. """ embeddingText: String id: UUID @@ -40641,6 +40673,10 @@ enum ProposalOrderBy { DUE_AT_DESC EMBEDDING_ASC EMBEDDING_DESC + EMBEDDING_MODEL_ASC + EMBEDDING_MODEL_DESC + EMBEDDING_MODEL_TRGM_SIMILARITY_ASC + EMBEDDING_MODEL_TRGM_SIMILARITY_DESC EMBEDDING_UPDATED_AT_ASC EMBEDDING_UPDATED_AT_DESC EMBEDDING_VECTOR_DISTANCE_ASC @@ -40739,7 +40775,7 @@ input ProposalPatch { embedding: Vector """ - Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. """ embeddingText: String id: UUID @@ -41472,7 +41508,7 @@ input ProposalsChunkInput { embedding: Vector """ - Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. """ embeddingText: String id: UUID @@ -41531,7 +41567,7 @@ input ProposalsChunkPatch { embedding: Vector """ - Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. """ embeddingText: String id: UUID @@ -41601,35 +41637,6 @@ type Query { where: BuildStepFilter ): BuildStepConnection - """Reads and enables pagination through a set of `BuilderBinding`.""" - builderBindings( - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """The method to use when ordering `BuilderBinding`.""" - orderBy: [BuilderBindingOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: BuilderBindingFilter - ): BuilderBindingConnection - """Reads and enables pagination through a set of `Build`.""" builds( """Read all values in the set after (below) this cursor.""" @@ -42877,37 +42884,6 @@ type Query { where: PlatformBuildStepFilter ): PlatformBuildStepConnection - """ - Reads and enables pagination through a set of `PlatformBuilderBinding`. - """ - platformBuilderBindings( - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """The method to use when ordering `PlatformBuilderBinding`.""" - orderBy: [PlatformBuilderBindingOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: PlatformBuilderBindingFilter - ): PlatformBuilderBindingConnection - """Reads and enables pagination through a set of `PlatformBuild`.""" platformBuilds( """Read all values in the set after (below) this cursor.""" @@ -44326,6 +44302,37 @@ type Query { where: PlatformResourcesResolvedRequirementFilter ): PlatformResourcesResolvedRequirementConnection + """ + Reads and enables pagination through a set of `PlatformServiceBinding`. + """ + platformServiceBindings( + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """The method to use when ordering `PlatformServiceBinding`.""" + orderBy: [PlatformServiceBindingOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformServiceBindingFilter + ): PlatformServiceBindingConnection + """ Reads and enables pagination through a set of `PlatformWebhookEndpoint`. """ @@ -45151,6 +45158,35 @@ type Query { where: ResourcesResolvedRequirementFilter ): ResourcesResolvedRequirementConnection + """Reads and enables pagination through a set of `ServiceBinding`.""" + serviceBindings( + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """The method to use when ordering `ServiceBinding`.""" + orderBy: [ServiceBindingOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: ServiceBindingFilter + ): ServiceBindingConnection + """Reads and enables pagination through a set of `WebhookEndpoint`.""" webhookEndpoints( """Read all values in the set after (below) this cursor.""" @@ -45358,7 +45394,7 @@ type RegistryBinding { metadata: JSON """Reads a single `Namespace` that is related to this `RegistryBinding`.""" - namespace: Namespace + namespaceByNamespaceIdAndDatabaseId: Namespace """Namespace the registry credentials are projected into""" namespaceId: UUID! @@ -45447,8 +45483,8 @@ input RegistryBindingFilter { """Filter by the object’s `metadata` field.""" metadata: JSONFilter - """Filter by the object’s `namespace` relation.""" - namespace: NamespaceFilter + """Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation.""" + namespaceByNamespaceIdAndDatabaseId: NamespaceFilter """Filter by the object’s `namespaceId` field.""" namespaceId: UUIDFilter @@ -46211,6 +46247,12 @@ type Repository { """ descriptionTrgmSimilarity: Float embedding: Vector + embeddingModel: String + + """ + TRGM similarity when searching `embeddingModel`. Returns null when no trgm search filter is active. + """ + embeddingModelTrgmSimilarity: Float embeddingUpdatedAt: Datetime """ @@ -46764,6 +46806,9 @@ input RepositoryFilter { """Filter by the object’s `embedding` field.""" embedding: VectorFilter + """Filter by the object’s `embeddingModel` field.""" + embeddingModel: StringTrgmFilter + """Filter by the object’s `embeddingUpdatedAt` field.""" embeddingUpdatedAt: DatetimeFilter @@ -46833,6 +46878,9 @@ input RepositoryFilter { """TRGM search on the `description` column.""" trgmDescription: TrgmSearchInput + """TRGM search on the `embedding_model` column.""" + trgmEmbeddingModel: TrgmSearchInput + """TRGM search on the `external_id` column.""" trgmExternalId: TrgmSearchInput @@ -46895,7 +46943,7 @@ input RepositoryInput { embedding: Vector """ - Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. """ embeddingText: String @@ -46956,6 +47004,10 @@ enum RepositoryOrderBy { DESCRIPTION_TRGM_SIMILARITY_DESC EMBEDDING_ASC EMBEDDING_DESC + EMBEDDING_MODEL_ASC + EMBEDDING_MODEL_DESC + EMBEDDING_MODEL_TRGM_SIMILARITY_ASC + EMBEDDING_MODEL_TRGM_SIMILARITY_DESC EMBEDDING_UPDATED_AT_ASC EMBEDDING_UPDATED_AT_DESC EMBEDDING_VECTOR_DISTANCE_ASC @@ -47026,7 +47078,7 @@ input RepositoryPatch { embedding: Vector """ - Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. """ embeddingText: String @@ -47775,7 +47827,7 @@ type Resource { name: String! """Reads a single `Namespace` that is related to this `Resource`.""" - namespace: Namespace + namespaceByNamespaceIdAndDatabaseId: Namespace """ Namespace this resource belongs to (security boundary, maps to K8s namespace) @@ -48066,7 +48118,7 @@ type ResourceDefinition { """ Reads a single `Namespace` that is related to this `ResourceDefinition`. """ - namespace: Namespace + namespaceByNamespaceIdAndDatabaseId: Namespace """ Namespace this definition belongs to (security boundary, maps to K8s namespace) @@ -48200,8 +48252,8 @@ input ResourceDefinitionFilter { """Filter by the object’s `name` field.""" name: StringFilter - """Filter by the object’s `namespace` relation.""" - namespace: NamespaceFilter + """Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation.""" + namespaceByNamespaceIdAndDatabaseId: NamespaceFilter """Filter by the object’s `namespaceId` field.""" namespaceId: UUIDFilter @@ -48697,8 +48749,8 @@ input ResourceFilter { """Filter by the object’s `name` field.""" name: StringFilter - """Filter by the object’s `namespace` relation.""" - namespace: NamespaceFilter + """Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation.""" + namespaceByNamespaceIdAndDatabaseId: NamespaceFilter """Filter by the object’s `namespaceId` field.""" namespaceId: UUIDFilter @@ -48879,7 +48931,7 @@ type ResourceInstallation { """ Reads a single `Namespace` that is related to this `ResourceInstallation`. """ - namespace: Namespace + namespaceByNamespaceIdAndDatabaseId: Namespace """Namespace this installation belongs to (security boundary)""" namespaceId: UUID! @@ -49025,8 +49077,8 @@ input ResourceInstallationFilter { """Filter by the object’s `name` field.""" name: StringFilter - """Filter by the object’s `namespace` relation.""" - namespace: NamespaceFilter + """Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation.""" + namespaceByNamespaceIdAndDatabaseId: NamespaceFilter """Filter by the object’s `namespaceId` field.""" namespaceId: UUIDFilter @@ -50981,6 +51033,295 @@ type SaveGraphPayload { result: UUID } +""" +Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config +""" +type ServiceBinding { + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + id: UUID! + + """ + Resource installation serving this binding, in the installations table of installation_scope + """ + installationId: UUID! + + """ + Scope whose installations table holds installation_id: this scope or platform + """ + installationScope: String! + + """ + Service this binding projects: builder (BUILDKIT_HOST) or git (GIT_PROVIDER + GIT_SERVICE_URL) + """ + kind: String! + + """Most recent projection failure""" + lastError: String + + """Reconciler detail (projection timestamps and diagnostics)""" + metadata: JSON + + """Reads a single `Namespace` that is related to this `ServiceBinding`.""" + namespaceByNamespaceIdAndDatabaseId: Namespace + + """Namespace whose builds use this BuildKit installation""" + namespaceId: UUID! + + """ + Service address last projected into the namespace (NULL = never projected) + """ + observedHost: String + + """Lane this binding applies to (NULL = the scope's default lane)""" + realm: String + + """Projection state of the bound address: pending, active, failed""" + status: String! + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID +} + +"""A connection to a list of `ServiceBinding` values.""" +type ServiceBindingConnection { + """ + A list of edges which contains the `ServiceBinding` and cursor to aid in pagination. + """ + edges: [ServiceBindingEdge]! + + """A list of `ServiceBinding` objects.""" + nodes: [ServiceBinding]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `ServiceBinding` you could get from the connection.""" + totalCount: Int! +} + +"""A `ServiceBinding` edge in the connection.""" +type ServiceBindingEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `ServiceBinding` at the end of the edge.""" + node: ServiceBinding +} + +""" +A filter to be used against `ServiceBinding` object types. All fields are combined with a logical ‘and.’ +""" +input ServiceBindingFilter { + """Checks for all expressions in this list.""" + and: [ServiceBindingFilter!] + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `createdBy` field.""" + createdBy: UUIDFilter + + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `installationId` field.""" + installationId: UUIDFilter + + """Filter by the object’s `installationScope` field.""" + installationScope: StringFilter + + """Filter by the object’s `kind` field.""" + kind: StringFilter + + """Filter by the object’s `lastError` field.""" + lastError: StringFilter + + """Filter by the object’s `metadata` field.""" + metadata: JSONFilter + + """Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation.""" + namespaceByNamespaceIdAndDatabaseId: NamespaceFilter + + """Filter by the object’s `namespaceId` field.""" + namespaceId: UUIDFilter + + """Negates the expression.""" + not: ServiceBindingFilter + + """Filter by the object’s `observedHost` field.""" + observedHost: StringFilter + + """Checks for any expressions in this list.""" + or: [ServiceBindingFilter!] + + """Filter by the object’s `realm` field.""" + realm: StringFilter + + """Filter by the object’s `status` field.""" + status: StringFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `updatedBy` field.""" + updatedBy: UUIDFilter + + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter +} + +"""An input for mutations affecting `ServiceBinding`""" +input ServiceBindingInput { + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + id: UUID + + """ + Resource installation serving this binding, in the installations table of installation_scope + """ + installationId: UUID! + + """ + Scope whose installations table holds installation_id: this scope or platform + """ + installationScope: String! + + """ + Service this binding projects: builder (BUILDKIT_HOST) or git (GIT_PROVIDER + GIT_SERVICE_URL) + """ + kind: String! + + """Most recent projection failure""" + lastError: String + + """Reconciler detail (projection timestamps and diagnostics)""" + metadata: JSON + + """Namespace whose builds use this BuildKit installation""" + namespaceId: UUID! + + """ + Service address last projected into the namespace (NULL = never projected) + """ + observedHost: String + + """Lane this binding applies to (NULL = the scope's default lane)""" + realm: String + + """Projection state of the bound address: pending, active, failed""" + status: String + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID +} + +"""Methods to use when ordering `ServiceBinding`.""" +enum ServiceBindingOrderBy { + CREATED_AT_ASC + CREATED_AT_DESC + CREATED_BY_ASC + CREATED_BY_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + ID_ASC + ID_DESC + INSTALLATION_ID_ASC + INSTALLATION_ID_DESC + INSTALLATION_SCOPE_ASC + INSTALLATION_SCOPE_DESC + KIND_ASC + KIND_DESC + LAST_ERROR_ASC + LAST_ERROR_DESC + METADATA_ASC + METADATA_DESC + NAMESPACE_ID_ASC + NAMESPACE_ID_DESC + NATURAL + OBSERVED_HOST_ASC + OBSERVED_HOST_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + REALM_ASC + REALM_DESC + STATUS_ASC + STATUS_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + UPDATED_BY_ASC + UPDATED_BY_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC +} + +""" +Represents an update to a `ServiceBinding`. Fields that are set will be updated. +""" +input ServiceBindingPatch { + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID + id: UUID + + """ + Resource installation serving this binding, in the installations table of installation_scope + """ + installationId: UUID + + """ + Scope whose installations table holds installation_id: this scope or platform + """ + installationScope: String + + """ + Service this binding projects: builder (BUILDKIT_HOST) or git (GIT_PROVIDER + GIT_SERVICE_URL) + """ + kind: String + + """Most recent projection failure""" + lastError: String + + """Reconciler detail (projection timestamps and diagnostics)""" + metadata: JSON + + """Namespace whose builds use this BuildKit installation""" + namespaceId: UUID + + """ + Service address last projected into the namespace (NULL = never projected) + """ + observedHost: String + + """Lane this binding applies to (NULL = the scope's default lane)""" + realm: String + + """Projection state of the bound address: pending, active, failed""" + status: String + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID +} + """All input for the `setAndCommit` mutation.""" input SetAndCommitInput { """ @@ -51657,44 +51998,6 @@ type UpdateBuildStepPayload { query: Query } -"""All input for the `updateBuilderBinding` mutation.""" -input UpdateBuilderBindingInput { - """ - An object where the defined keys will be set on the `BuilderBinding` being updated. - """ - builderBindingPatch: BuilderBindingPatch! - - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our update `BuilderBinding` mutation.""" -type UpdateBuilderBindingPayload { - """The `BuilderBinding` that was updated by this mutation.""" - builderBinding: BuilderBinding - - """An edge for our `BuilderBinding`. May be used by Relay 1.""" - builderBindingEdge( - """The method to use when ordering `BuilderBinding`.""" - orderBy: [BuilderBindingOrderBy!]! = [PRIMARY_KEY_ASC] - ): BuilderBindingEdge - - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - """All input for the `updateContentPreset` mutation.""" input UpdateContentPresetInput { """ @@ -53386,44 +53689,6 @@ type UpdatePlatformBuildStepPayload { query: Query } -"""All input for the `updatePlatformBuilderBinding` mutation.""" -input UpdatePlatformBuilderBindingInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `PlatformBuilderBinding` being updated. - """ - platformBuilderBindingPatch: PlatformBuilderBindingPatch! -} - -"""The output of our update `PlatformBuilderBinding` mutation.""" -type UpdatePlatformBuilderBindingPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `PlatformBuilderBinding` that was updated by this mutation.""" - platformBuilderBinding: PlatformBuilderBinding - - """An edge for our `PlatformBuilderBinding`. May be used by Relay 1.""" - platformBuilderBindingEdge( - """The method to use when ordering `PlatformBuilderBinding`.""" - orderBy: [PlatformBuilderBindingOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlatformBuilderBindingEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - """All input for the `updatePlatformFunctionApiBinding` mutation.""" input UpdatePlatformFunctionApiBindingInput { """ @@ -54991,6 +55256,44 @@ type UpdatePlatformResourceUsageSummaryPayload { query: Query } +"""All input for the `updatePlatformServiceBinding` mutation.""" +input UpdatePlatformServiceBindingInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `PlatformServiceBinding` being updated. + """ + platformServiceBindingPatch: PlatformServiceBindingPatch! +} + +"""The output of our update `PlatformServiceBinding` mutation.""" +type UpdatePlatformServiceBindingPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformServiceBinding` that was updated by this mutation.""" + platformServiceBinding: PlatformServiceBinding + + """An edge for our `PlatformServiceBinding`. May be used by Relay 1.""" + platformServiceBindingEdge( + """The method to use when ordering `PlatformServiceBinding`.""" + orderBy: [PlatformServiceBindingOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformServiceBindingEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + """All input for the `updatePlatformWebhookEndpoint` mutation.""" input UpdatePlatformWebhookEndpointInput { """ @@ -55844,6 +56147,44 @@ type UpdateResourceUsageSummaryPayload { ): ResourceUsageSummaryEdge } +"""All input for the `updateServiceBinding` mutation.""" +input UpdateServiceBindingInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `ServiceBinding` being updated. + """ + serviceBindingPatch: ServiceBindingPatch! +} + +"""The output of our update `ServiceBinding` mutation.""" +type UpdateServiceBindingPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """The `ServiceBinding` that was updated by this mutation.""" + serviceBinding: ServiceBinding + + """An edge for our `ServiceBinding`. May be used by Relay 1.""" + serviceBindingEdge( + """The method to use when ordering `ServiceBinding`.""" + orderBy: [ServiceBindingOrderBy!]! = [PRIMARY_KEY_ASC] + ): ServiceBindingEdge +} + """All input for the `updateWebhookEndpoint` mutation.""" input UpdateWebhookEndpointInput { """ @@ -55920,9 +56261,6 @@ type UpdateWebhookEventPayload { ): WebhookEventEdge } -"""The `Upload` scalar type represents a file upload.""" -scalar Upload - """All input for the `validateFunctionGraph` mutation.""" input ValidateFunctionGraphInput { """ @@ -56015,12 +56353,17 @@ input VectorNearbyInput { metric: VectorMetric """ - Natural language text to embed server-side for similarity search. Mutually exclusive with `vector` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + The model that produced `vector`. On a column that records the model of each row's vector, only rows embedded with this model are compared; vectors of two models are not comparable. Filled in server-side when `text` is embedded. + """ + model: String + + """ + Natural language text to embed server-side for similarity search. Provide exactly one of `text` or `vector`; sending both or neither is an error. Blank text on its own counts as not given. Requires the LLM plugin to be configured with an embedding provider. """ text: String """Query vector for similarity search.""" - vector: [Float!]! + vector: [Float!] } """ @@ -56053,7 +56396,7 @@ type WebhookEndpoint { id: UUID! """Reads a single `Namespace` that is related to this `WebhookEndpoint`.""" - namespace: Namespace + namespaceByNamespaceIdAndDatabaseId: Namespace """Namespace that owns this endpoint and contains its signing secret""" namespaceId: UUID! @@ -56171,8 +56514,8 @@ input WebhookEndpointFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `namespace` relation.""" - namespace: NamespaceFilter + """Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation.""" + namespaceByNamespaceIdAndDatabaseId: NamespaceFilter """Filter by the object’s `namespaceId` field.""" namespaceId: UUIDFilter diff --git a/sdk/constructive-sdk/schemas/config.graphql b/sdk/constructive-sdk/schemas/config.graphql index 63617187f9..05d9bad36d 100644 --- a/sdk/constructive-sdk/schemas/config.graphql +++ b/sdk/constructive-sdk/schemas/config.graphql @@ -1217,6 +1217,11 @@ type MetaBelongsToRelation { fieldName: String isUnique: Boolean! keys: [MetaField!]! + + """ + Fields on the referenced table that keys point at, in the same order as keys + """ + refKeys: [MetaField!]! references: MetaRefTable! type: String } @@ -1239,22 +1244,66 @@ type MetaEnum { """Information about a table field/column""" type MetaField { + """ + Values this field accepts, when the set is fixed; null otherwise. Set on a table's own fields only. + """ + allowedValues: [String!] + """PostgreSQL column name""" columnName: String! description: String """Enum metadata if this field has an enum type""" enumValues: MetaEnum + + """ + Set when the field holds files; null otherwise. Set on a table's own fields only. + """ + file: MetaFileField hasDefault: Boolean! + + """ + Whether the value is always computed and cannot be written, even when a create or update input offers the field. Set on a table's own fields only. + """ + isComputed: Boolean isForeignKey: Boolean! isNotNull: Boolean! isPrimaryKey: Boolean! + """ + Whether a create must provide this field. Set on a table's own fields only. + """ + isRequiredOnCreate: Boolean + + """Whether a create may set this field. Set on a table's own fields only.""" + isWritableOnCreate: Boolean + + """ + Whether an update may change this field. Set on a table's own fields only. + """ + isWritableOnUpdate: Boolean + """Final GraphQL field name""" name: String! type: MetaType! } +"""How a field holds files""" +type MetaFileField { + """ + GraphQL type name of the files table uploads are recorded in, when this API has exactly one; null otherwise + """ + filesType: String + + """Whether the field holds a list of files""" + isMultiple: Boolean! + + """ + image, upload, or attachment. An image or upload holds a file document; an attachment holds a link to a file. + """ + kind: String! +} + """Information about a foreign key constraint""" type MetaForeignKeyConstraint { fields: [MetaField!]! @@ -1271,10 +1320,15 @@ type MetaHasRelation { isUnique: Boolean! keys: [MetaField!]! referencedBy: MetaRefTable! + + """ + Fields on the related table that point at this table, in the same order as keys + """ + remoteKeys: [MetaField!]! type: String } -"""i18n metadata for a table with @i18n tag""" +"""i18n metadata for a translatable table""" type MetaI18n { """Fields that are translatable""" translatableFields: [MetaI18nField!]! @@ -1301,7 +1355,7 @@ type MetaIndex { name: String! } -"""Table inflection names""" +"""Type and field names generated for this table""" type MetaInflection { allRows: String! conditionType: String! @@ -1346,7 +1400,7 @@ type MetaQuery { update: String } -"""Realtime metadata for a table with @realtime tag""" +"""Realtime metadata for a table with change subscriptions""" type MetaRealtime { """The generated subscription field name (e.g. onPostChanged)""" subscriptionFieldName: String! @@ -1367,13 +1421,15 @@ type MetaRelations { } """ -How a client must serialize/parse a scalar — the one field-type detail standard GraphQL introspection cannot describe. Null for plain scalars whose wire format is obvious from gqlType. +How a client must serialize and parse a scalar whose wire format gqlType alone does not settle. Null for plain scalars whose wire format is obvious from gqlType. """ type MetaScalarEncoding { """For 'vector': declared length, else null.""" dimensions: Int - """For 'ltree': values are dot-separated path strings.""" + """ + For 'ltree': true when values are dot-separated paths ('a.b.c'), false when they are slash-separated paths ('/a/b/c'). + """ dotPath: Boolean """For 'vector': element scalar (e.g. 'float').""" @@ -1398,11 +1454,11 @@ type MetaSchema { """Provisioning scope metadata for a table""" type MetaScope { - """SQL name of the entity table for entity scopes, else null""" + """Name of the entity table for entity scopes, else null""" entityTable: String """ - Inflected scope key column (e.g. databaseId, orgId), null for global tiers + Field name of the scope key (e.g. databaseId, orgId), null for global tiers """ keyColumn: String @@ -1411,7 +1467,7 @@ type MetaScope { """ scope: String! - """Provenance of the scope metadata (always 'smartTag')""" + """Where this scope metadata comes from""" source: String! """Coarse bucket: 'global', 'database', or 'entity'""" @@ -1442,7 +1498,7 @@ type MetaSearchColumn { name: String! } -"""Per-table search configuration from @searchConfig smart tag""" +"""Per-table search configuration""" type MetaSearchConfig { """Exponential decay factor per day""" boostRecencyDecay: Float @@ -1459,7 +1515,7 @@ type MetaSearchConfig { """Storage metadata for a table""" type MetaStorage { - """GraphQL type name of the plane's buckets table""" + """GraphQL type name of the paired buckets table""" bucketsType: String! """ @@ -1467,7 +1523,7 @@ type MetaStorage { """ downloadUrlField: String - """GraphQL type name of the plane's files table""" + """GraphQL type name of the paired files table""" filesType: String! """Whether this table is a storage buckets table""" @@ -1476,13 +1532,11 @@ type MetaStorage { """Whether this table is a storage files table""" isFilesTable: Boolean! - """The plane's GraphQL upload surface""" + """Upload mutations and types for this storage""" upload: MetaStorageUpload! } -""" -The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from -""" +"""The upload mutations and types for a storage table pair""" type MetaStorageUpload { """Per-file input type inside the bulk input""" bulkFileInputType: String! @@ -1508,32 +1562,45 @@ type MetaStorageUpload { """Payload type of the single upload mutation""" payloadType: String! - """Whether the upload input requires ownerId (entity-keyed plane)""" + """Whether the upload input requires ownerId""" requiresOwnerId: Boolean! } """Information about a database table""" type MetaTable { constraints: MetaConstraints! + + """Description written for this table, or null""" + description: String fields: [MetaField!]! foreignKeyConstraints: [MetaForeignKeyConstraint!]! - """i18n metadata (null if no @i18n tag)""" + """i18n metadata (null if the table is not translatable)""" i18n: MetaI18n indexes: [MetaIndex!]! inflection: MetaInflection! + """ + Whether this table only links rows of two other tables; the link appears in their manyToMany relations + """ + isJunction: Boolean! + + """ + 'table' when rows are stored in this table, 'view' when they come from a view of other tables + """ + kind: String! + """Final GraphQL output type name""" name: String! primaryKeyConstraints: [MetaPrimaryKeyConstraint!]! query: MetaQuery! - """Realtime metadata (null if no @realtime tag)""" + """Realtime metadata (null if the table has no change subscriptions)""" realtime: MetaRealtime relations: MetaRelations! schemaName: String! - """Provisioning scope metadata (null if no @scope tag)""" + """Provisioning scope metadata (null if the table has no scope)""" scope: MetaScope """Search metadata (null if no search configured)""" @@ -1555,7 +1622,22 @@ type MetaType { hasDefault: Boolean isArray: Boolean! isNotNull: Boolean + + """ + Most characters a text value may hold, or most bits a bit string may hold; for a list, each item. Null when unbounded. + """ + maxLength: Int pgType: String! + + """ + Most significant digits a decimal number may hold. Null when unbounded. + """ + precision: Int + + """ + Digits a decimal number keeps after the decimal point. Null when unbounded. + """ + scale: Int subtype: String } diff --git a/sdk/constructive-sdk/schemas/infra.graphql b/sdk/constructive-sdk/schemas/infra.graphql index 49c184eb27..87112525a5 100644 --- a/sdk/constructive-sdk/schemas/infra.graphql +++ b/sdk/constructive-sdk/schemas/infra.graphql @@ -1360,6 +1360,11 @@ type MetaBelongsToRelation { fieldName: String isUnique: Boolean! keys: [MetaField!]! + + """ + Fields on the referenced table that keys point at, in the same order as keys + """ + refKeys: [MetaField!]! references: MetaRefTable! type: String } @@ -1382,22 +1387,66 @@ type MetaEnum { """Information about a table field/column""" type MetaField { + """ + Values this field accepts, when the set is fixed; null otherwise. Set on a table's own fields only. + """ + allowedValues: [String!] + """PostgreSQL column name""" columnName: String! description: String """Enum metadata if this field has an enum type""" enumValues: MetaEnum + + """ + Set when the field holds files; null otherwise. Set on a table's own fields only. + """ + file: MetaFileField hasDefault: Boolean! + + """ + Whether the value is always computed and cannot be written, even when a create or update input offers the field. Set on a table's own fields only. + """ + isComputed: Boolean isForeignKey: Boolean! isNotNull: Boolean! isPrimaryKey: Boolean! + """ + Whether a create must provide this field. Set on a table's own fields only. + """ + isRequiredOnCreate: Boolean + + """Whether a create may set this field. Set on a table's own fields only.""" + isWritableOnCreate: Boolean + + """ + Whether an update may change this field. Set on a table's own fields only. + """ + isWritableOnUpdate: Boolean + """Final GraphQL field name""" name: String! type: MetaType! } +"""How a field holds files""" +type MetaFileField { + """ + GraphQL type name of the files table uploads are recorded in, when this API has exactly one; null otherwise + """ + filesType: String + + """Whether the field holds a list of files""" + isMultiple: Boolean! + + """ + image, upload, or attachment. An image or upload holds a file document; an attachment holds a link to a file. + """ + kind: String! +} + """Information about a foreign key constraint""" type MetaForeignKeyConstraint { fields: [MetaField!]! @@ -1414,10 +1463,15 @@ type MetaHasRelation { isUnique: Boolean! keys: [MetaField!]! referencedBy: MetaRefTable! + + """ + Fields on the related table that point at this table, in the same order as keys + """ + remoteKeys: [MetaField!]! type: String } -"""i18n metadata for a table with @i18n tag""" +"""i18n metadata for a translatable table""" type MetaI18n { """Fields that are translatable""" translatableFields: [MetaI18nField!]! @@ -1444,7 +1498,7 @@ type MetaIndex { name: String! } -"""Table inflection names""" +"""Type and field names generated for this table""" type MetaInflection { allRows: String! conditionType: String! @@ -1489,7 +1543,7 @@ type MetaQuery { update: String } -"""Realtime metadata for a table with @realtime tag""" +"""Realtime metadata for a table with change subscriptions""" type MetaRealtime { """The generated subscription field name (e.g. onPostChanged)""" subscriptionFieldName: String! @@ -1510,13 +1564,15 @@ type MetaRelations { } """ -How a client must serialize/parse a scalar — the one field-type detail standard GraphQL introspection cannot describe. Null for plain scalars whose wire format is obvious from gqlType. +How a client must serialize and parse a scalar whose wire format gqlType alone does not settle. Null for plain scalars whose wire format is obvious from gqlType. """ type MetaScalarEncoding { """For 'vector': declared length, else null.""" dimensions: Int - """For 'ltree': values are dot-separated path strings.""" + """ + For 'ltree': true when values are dot-separated paths ('a.b.c'), false when they are slash-separated paths ('/a/b/c'). + """ dotPath: Boolean """For 'vector': element scalar (e.g. 'float').""" @@ -1541,11 +1597,11 @@ type MetaSchema { """Provisioning scope metadata for a table""" type MetaScope { - """SQL name of the entity table for entity scopes, else null""" + """Name of the entity table for entity scopes, else null""" entityTable: String """ - Inflected scope key column (e.g. databaseId, orgId), null for global tiers + Field name of the scope key (e.g. databaseId, orgId), null for global tiers """ keyColumn: String @@ -1554,7 +1610,7 @@ type MetaScope { """ scope: String! - """Provenance of the scope metadata (always 'smartTag')""" + """Where this scope metadata comes from""" source: String! """Coarse bucket: 'global', 'database', or 'entity'""" @@ -1585,7 +1641,7 @@ type MetaSearchColumn { name: String! } -"""Per-table search configuration from @searchConfig smart tag""" +"""Per-table search configuration""" type MetaSearchConfig { """Exponential decay factor per day""" boostRecencyDecay: Float @@ -1602,7 +1658,7 @@ type MetaSearchConfig { """Storage metadata for a table""" type MetaStorage { - """GraphQL type name of the plane's buckets table""" + """GraphQL type name of the paired buckets table""" bucketsType: String! """ @@ -1610,7 +1666,7 @@ type MetaStorage { """ downloadUrlField: String - """GraphQL type name of the plane's files table""" + """GraphQL type name of the paired files table""" filesType: String! """Whether this table is a storage buckets table""" @@ -1619,13 +1675,11 @@ type MetaStorage { """Whether this table is a storage files table""" isFilesTable: Boolean! - """The plane's GraphQL upload surface""" + """Upload mutations and types for this storage""" upload: MetaStorageUpload! } -""" -The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from -""" +"""The upload mutations and types for a storage table pair""" type MetaStorageUpload { """Per-file input type inside the bulk input""" bulkFileInputType: String! @@ -1651,32 +1705,45 @@ type MetaStorageUpload { """Payload type of the single upload mutation""" payloadType: String! - """Whether the upload input requires ownerId (entity-keyed plane)""" + """Whether the upload input requires ownerId""" requiresOwnerId: Boolean! } """Information about a database table""" type MetaTable { constraints: MetaConstraints! + + """Description written for this table, or null""" + description: String fields: [MetaField!]! foreignKeyConstraints: [MetaForeignKeyConstraint!]! - """i18n metadata (null if no @i18n tag)""" + """i18n metadata (null if the table is not translatable)""" i18n: MetaI18n indexes: [MetaIndex!]! inflection: MetaInflection! + """ + Whether this table only links rows of two other tables; the link appears in their manyToMany relations + """ + isJunction: Boolean! + + """ + 'table' when rows are stored in this table, 'view' when they come from a view of other tables + """ + kind: String! + """Final GraphQL output type name""" name: String! primaryKeyConstraints: [MetaPrimaryKeyConstraint!]! query: MetaQuery! - """Realtime metadata (null if no @realtime tag)""" + """Realtime metadata (null if the table has no change subscriptions)""" realtime: MetaRealtime relations: MetaRelations! schemaName: String! - """Provisioning scope metadata (null if no @scope tag)""" + """Provisioning scope metadata (null if the table has no scope)""" scope: MetaScope """Search metadata (null if no search configured)""" @@ -1698,7 +1765,22 @@ type MetaType { hasDefault: Boolean isArray: Boolean! isNotNull: Boolean + + """ + Most characters a text value may hold, or most bits a bit string may hold; for a list, each item. Null when unbounded. + """ + maxLength: Int pgType: String! + + """ + Most significant digits a decimal number may hold. Null when unbounded. + """ + precision: Int + + """ + Digits a decimal number keeps after the decimal point. Null when unbounded. + """ + scale: Int subtype: String } diff --git a/sdk/constructive-sdk/schemas/modules.graphql b/sdk/constructive-sdk/schemas/modules.graphql index 48fd532478..dba95fd5c5 100644 --- a/sdk/constructive-sdk/schemas/modules.graphql +++ b/sdk/constructive-sdk/schemas/modules.graphql @@ -2020,7 +2020,7 @@ type BlueprintConnection { } """ -Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts. +Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here as pending and a blueprint:construct job builds it in the background. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts, including failed ones. """ type BlueprintConstruction { """ @@ -2047,6 +2047,11 @@ type BlueprintConstruction { """The database the blueprint was constructed into.""" databaseId: UUID! + """ + The coded error ({"code", "context", "class"} as raised through errors.raise_error, or {"code": , "message"} for a database error) a failed construction ended with. NULL unless status is failed. + """ + error: JSON + """Unique identifier for this construction attempt.""" id: UUID! @@ -2056,7 +2061,7 @@ type BlueprintConstruction { schemaId: UUID """ - Execution state of this construction attempt. pending: created but not yet started. constructing: currently executing. constructed: successfully completed. A failed construction raises and rolls back, so it leaves no row. + Execution state of this construction attempt. pending: enqueued, the blueprint:construct job has not started. constructing: the job is executing. constructed: successfully completed. failed: the job raised; the build rolled back and error carries its coded error. """ status: String! @@ -2122,6 +2127,9 @@ input BlueprintConstructionFilter { """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter + """Filter by the object’s `error` field.""" + error: JSONFilter + """Filter by the object’s `id` field.""" id: UUIDFilter @@ -2165,6 +2173,11 @@ input BlueprintConstructionInput { """The database the blueprint was constructed into.""" databaseId: UUID! + """ + The coded error ({"code", "context", "class"} as raised through errors.raise_error, or {"code": , "message"} for a database error) a failed construction ended with. NULL unless status is failed. + """ + error: JSON + """Unique identifier for this construction attempt.""" id: UUID @@ -2174,7 +2187,7 @@ input BlueprintConstructionInput { schemaId: UUID """ - Execution state of this construction attempt. pending: created but not yet started. constructing: currently executing. constructed: successfully completed. A failed construction raises and rolls back, so it leaves no row. + Execution state of this construction attempt. pending: enqueued, the blueprint:construct job has not started. constructing: the job is executing. constructed: successfully completed. failed: the job raised; the build rolled back and error carries its coded error. """ status: String @@ -2199,6 +2212,8 @@ enum BlueprintConstructionOrderBy { CREATED_AT_DESC DATABASE_ID_ASC DATABASE_ID_DESC + ERROR_ASC + ERROR_DESC ID_ASC ID_DESC NATURAL @@ -2237,6 +2252,11 @@ input BlueprintConstructionPatch { """The database the blueprint was constructed into.""" databaseId: UUID + """ + The coded error ({"code", "context", "class"} as raised through errors.raise_error, or {"code": , "message"} for a database error) a failed construction ended with. NULL unless status is failed. + """ + error: JSON + """Unique identifier for this construction attempt.""" id: UUID @@ -2246,7 +2266,7 @@ input BlueprintConstructionPatch { schemaId: UUID """ - Execution state of this construction attempt. pending: created but not yet started. constructing: currently executing. constructed: successfully completed. A failed construction raises and rolls back, so it leaves no row. + Execution state of this construction attempt. pending: enqueued, the blueprint:construct job has not started. constructing: the job is executing. constructed: successfully completed. failed: the job raised; the build rolled back and error carries its coded error. """ status: String @@ -9776,6 +9796,8 @@ type DbUsageModule { queryStatsLogTableName: String! queryStatsSummaryTableId: UUID! queryStatsSummaryTableName: String! + readDbQueryStatsUsagePeriodFunction: String! + readDbTableStatsUsagePeriodFunction: String! retention: String! rollupDbQueryStatsUsageSummaryFunction: String! rollupDbTableStatsUsageSummaryFunction: String! @@ -9880,6 +9902,12 @@ input DbUsageModuleFilter { """Filter by the object’s `queryStatsSummaryTableName` field.""" queryStatsSummaryTableName: StringFilter + """Filter by the object’s `readDbQueryStatsUsagePeriodFunction` field.""" + readDbQueryStatsUsagePeriodFunction: StringFilter + + """Filter by the object’s `readDbTableStatsUsagePeriodFunction` field.""" + readDbTableStatsUsagePeriodFunction: StringFilter + """Filter by the object’s `retention` field.""" retention: StringFilter @@ -9928,6 +9956,8 @@ input DbUsageModuleInput { queryStatsLogTableName: String queryStatsSummaryTableId: UUID queryStatsSummaryTableName: String + readDbQueryStatsUsagePeriodFunction: String + readDbTableStatsUsagePeriodFunction: String retention: String rollupDbQueryStatsUsageSummaryFunction: String rollupDbTableStatsUsageSummaryFunction: String @@ -9980,6 +10010,10 @@ enum DbUsageModuleOrderBy { QUERY_STATS_SUMMARY_TABLE_ID_DESC QUERY_STATS_SUMMARY_TABLE_NAME_ASC QUERY_STATS_SUMMARY_TABLE_NAME_DESC + READ_DB_QUERY_STATS_USAGE_PERIOD_FUNCTION_ASC + READ_DB_QUERY_STATS_USAGE_PERIOD_FUNCTION_DESC + READ_DB_TABLE_STATS_USAGE_PERIOD_FUNCTION_ASC + READ_DB_TABLE_STATS_USAGE_PERIOD_FUNCTION_DESC RETENTION_ASC RETENTION_DESC ROLLUP_DB_QUERY_STATS_USAGE_SUMMARY_FUNCTION_ASC @@ -10022,6 +10056,8 @@ input DbUsageModulePatch { queryStatsLogTableName: String queryStatsSummaryTableId: UUID queryStatsSummaryTableName: String + readDbQueryStatsUsagePeriodFunction: String + readDbTableStatsUsagePeriodFunction: String retention: String rollupDbQueryStatsUsageSummaryFunction: String rollupDbTableStatsUsageSummaryFunction: String @@ -13309,6 +13345,7 @@ type DomainModule { catalogModuleId: UUID databaseId: UUID! defaultCapabilities: [String] + defaultReservedSubdomains: JSON domainEventsTableId: UUID! domainEventsTableName: String! domainVerificationsTableId: UUID! @@ -13327,6 +13364,8 @@ type DomainModule { privateSchemaName: String provisions: JSON publicSchemaName: String + reservedSubdomainsTableId: UUID + reservedSubdomainsTableName: String! """Reads and enables pagination through a set of `RouteModule`.""" routeModules( @@ -13358,6 +13397,7 @@ type DomainModule { ): RouteModuleConnection! schemaId: UUID! scope: String! + sweepUnverifiedDomainsFunction: String } """A connection to a list of `DomainModule` values.""" @@ -13411,6 +13451,9 @@ input DomainModuleFilter { """Filter by the object’s `defaultCapabilities` field.""" defaultCapabilities: StringListFilter + """Filter by the object’s `defaultReservedSubdomains` field.""" + defaultReservedSubdomains: JSONFilter + """Filter by the object’s `domainEventsTableId` field.""" domainEventsTableId: UUIDFilter @@ -13471,6 +13514,12 @@ input DomainModuleFilter { """Filter by the object’s `publicSchemaName` field.""" publicSchemaName: StringFilter + """Filter by the object’s `reservedSubdomainsTableId` field.""" + reservedSubdomainsTableId: UUIDFilter + + """Filter by the object’s `reservedSubdomainsTableName` field.""" + reservedSubdomainsTableName: StringFilter + """Filter by the object’s `routeModules` relation.""" routeModules: DomainModuleToManyRouteModuleFilter @@ -13482,6 +13531,9 @@ input DomainModuleFilter { """Filter by the object’s `scope` field.""" scope: StringFilter + + """Filter by the object’s `sweepUnverifiedDomainsFunction` field.""" + sweepUnverifiedDomainsFunction: StringFilter } """An input for mutations affecting `DomainModule`""" @@ -13490,6 +13542,7 @@ input DomainModuleInput { catalogModuleId: UUID databaseId: UUID! defaultCapabilities: [String] + defaultReservedSubdomains: JSON domainEventsTableId: UUID domainEventsTableName: String domainVerificationsTableId: UUID @@ -13508,8 +13561,11 @@ input DomainModuleInput { privateSchemaName: String provisions: JSON publicSchemaName: String + reservedSubdomainsTableId: UUID + reservedSubdomainsTableName: String schemaId: UUID scope: String! + sweepUnverifiedDomainsFunction: String } """Methods to use when ordering `DomainModule`.""" @@ -13522,6 +13578,8 @@ enum DomainModuleOrderBy { DATABASE_ID_DESC DEFAULT_CAPABILITIES_ASC DEFAULT_CAPABILITIES_DESC + DEFAULT_RESERVED_SUBDOMAINS_ASC + DEFAULT_RESERVED_SUBDOMAINS_DESC DOMAINS_TABLE_ID_ASC DOMAINS_TABLE_ID_DESC DOMAINS_TABLE_NAME_ASC @@ -13561,10 +13619,16 @@ enum DomainModuleOrderBy { PROVISIONS_DESC PUBLIC_SCHEMA_NAME_ASC PUBLIC_SCHEMA_NAME_DESC + RESERVED_SUBDOMAINS_TABLE_ID_ASC + RESERVED_SUBDOMAINS_TABLE_ID_DESC + RESERVED_SUBDOMAINS_TABLE_NAME_ASC + RESERVED_SUBDOMAINS_TABLE_NAME_DESC SCHEMA_ID_ASC SCHEMA_ID_DESC SCOPE_ASC SCOPE_DESC + SWEEP_UNVERIFIED_DOMAINS_FUNCTION_ASC + SWEEP_UNVERIFIED_DOMAINS_FUNCTION_DESC } """ @@ -13575,6 +13639,7 @@ input DomainModulePatch { catalogModuleId: UUID databaseId: UUID defaultCapabilities: [String] + defaultReservedSubdomains: JSON domainEventsTableId: UUID domainEventsTableName: String domainVerificationsTableId: UUID @@ -13593,8 +13658,11 @@ input DomainModulePatch { privateSchemaName: String provisions: JSON publicSchemaName: String + reservedSubdomainsTableId: UUID + reservedSubdomainsTableName: String schemaId: UUID scope: String + sweepUnverifiedDomainsFunction: String } """ @@ -14210,7 +14278,6 @@ type EntityTypeProvision { - has_content_hash (boolean) enable content hash for dedup - has_custom_keys (boolean) allow client-provided S3 keys - has_audit_log (boolean) enable file events audit table - - has_confirm_upload (boolean) enable HeadObject confirmation flow - confirm_upload_delay (interval) delay before first confirmation attempt - buckets (jsonb[]) array of initial bucket definitions to seed. Each bucket: { name (required), description, is_public, allowed_mime_types, max_file_size, allowed_origins } @@ -14636,7 +14703,6 @@ input EntityTypeProvisionInput { - has_content_hash (boolean) enable content hash for dedup - has_custom_keys (boolean) allow client-provided S3 keys - has_audit_log (boolean) enable file events audit table - - has_confirm_upload (boolean) enable HeadObject confirmation flow - confirm_upload_delay (interval) delay before first confirmation attempt - buckets (jsonb[]) array of initial bucket definitions to seed. Each bucket: { name (required), description, is_public, allowed_mime_types, max_file_size, allowed_origins } @@ -14994,7 +15060,6 @@ input EntityTypeProvisionPatch { - has_content_hash (boolean) enable content hash for dedup - has_custom_keys (boolean) allow client-provided S3 keys - has_audit_log (boolean) enable file events audit table - - has_confirm_upload (boolean) enable HeadObject confirmation flow - confirm_upload_delay (interval) delay before first confirmation attempt - buckets (jsonb[]) array of initial bucket definitions to seed. Each bucket: { name (required), description, is_public, allowed_mime_types, max_file_size, allowed_origins } @@ -21392,6 +21457,11 @@ type MetaBelongsToRelation { fieldName: String isUnique: Boolean! keys: [MetaField!]! + + """ + Fields on the referenced table that keys point at, in the same order as keys + """ + refKeys: [MetaField!]! references: MetaRefTable! type: String } @@ -21414,22 +21484,66 @@ type MetaEnum { """Information about a table field/column""" type MetaField { + """ + Values this field accepts, when the set is fixed; null otherwise. Set on a table's own fields only. + """ + allowedValues: [String!] + """PostgreSQL column name""" columnName: String! description: String """Enum metadata if this field has an enum type""" enumValues: MetaEnum + + """ + Set when the field holds files; null otherwise. Set on a table's own fields only. + """ + file: MetaFileField hasDefault: Boolean! + + """ + Whether the value is always computed and cannot be written, even when a create or update input offers the field. Set on a table's own fields only. + """ + isComputed: Boolean isForeignKey: Boolean! isNotNull: Boolean! isPrimaryKey: Boolean! + """ + Whether a create must provide this field. Set on a table's own fields only. + """ + isRequiredOnCreate: Boolean + + """Whether a create may set this field. Set on a table's own fields only.""" + isWritableOnCreate: Boolean + + """ + Whether an update may change this field. Set on a table's own fields only. + """ + isWritableOnUpdate: Boolean + """Final GraphQL field name""" name: String! type: MetaType! } +"""How a field holds files""" +type MetaFileField { + """ + GraphQL type name of the files table uploads are recorded in, when this API has exactly one; null otherwise + """ + filesType: String + + """Whether the field holds a list of files""" + isMultiple: Boolean! + + """ + image, upload, or attachment. An image or upload holds a file document; an attachment holds a link to a file. + """ + kind: String! +} + """Information about a foreign key constraint""" type MetaForeignKeyConstraint { fields: [MetaField!]! @@ -21446,10 +21560,15 @@ type MetaHasRelation { isUnique: Boolean! keys: [MetaField!]! referencedBy: MetaRefTable! + + """ + Fields on the related table that point at this table, in the same order as keys + """ + remoteKeys: [MetaField!]! type: String } -"""i18n metadata for a table with @i18n tag""" +"""i18n metadata for a translatable table""" type MetaI18n { """Fields that are translatable""" translatableFields: [MetaI18nField!]! @@ -21476,7 +21595,7 @@ type MetaIndex { name: String! } -"""Table inflection names""" +"""Type and field names generated for this table""" type MetaInflection { allRows: String! conditionType: String! @@ -21521,7 +21640,7 @@ type MetaQuery { update: String } -"""Realtime metadata for a table with @realtime tag""" +"""Realtime metadata for a table with change subscriptions""" type MetaRealtime { """The generated subscription field name (e.g. onPostChanged)""" subscriptionFieldName: String! @@ -21542,13 +21661,15 @@ type MetaRelations { } """ -How a client must serialize/parse a scalar — the one field-type detail standard GraphQL introspection cannot describe. Null for plain scalars whose wire format is obvious from gqlType. +How a client must serialize and parse a scalar whose wire format gqlType alone does not settle. Null for plain scalars whose wire format is obvious from gqlType. """ type MetaScalarEncoding { """For 'vector': declared length, else null.""" dimensions: Int - """For 'ltree': values are dot-separated path strings.""" + """ + For 'ltree': true when values are dot-separated paths ('a.b.c'), false when they are slash-separated paths ('/a/b/c'). + """ dotPath: Boolean """For 'vector': element scalar (e.g. 'float').""" @@ -21573,11 +21694,11 @@ type MetaSchema { """Provisioning scope metadata for a table""" type MetaScope { - """SQL name of the entity table for entity scopes, else null""" + """Name of the entity table for entity scopes, else null""" entityTable: String """ - Inflected scope key column (e.g. databaseId, orgId), null for global tiers + Field name of the scope key (e.g. databaseId, orgId), null for global tiers """ keyColumn: String @@ -21586,7 +21707,7 @@ type MetaScope { """ scope: String! - """Provenance of the scope metadata (always 'smartTag')""" + """Where this scope metadata comes from""" source: String! """Coarse bucket: 'global', 'database', or 'entity'""" @@ -21617,7 +21738,7 @@ type MetaSearchColumn { name: String! } -"""Per-table search configuration from @searchConfig smart tag""" +"""Per-table search configuration""" type MetaSearchConfig { """Exponential decay factor per day""" boostRecencyDecay: Float @@ -21634,7 +21755,7 @@ type MetaSearchConfig { """Storage metadata for a table""" type MetaStorage { - """GraphQL type name of the plane's buckets table""" + """GraphQL type name of the paired buckets table""" bucketsType: String! """ @@ -21642,7 +21763,7 @@ type MetaStorage { """ downloadUrlField: String - """GraphQL type name of the plane's files table""" + """GraphQL type name of the paired files table""" filesType: String! """Whether this table is a storage buckets table""" @@ -21651,13 +21772,11 @@ type MetaStorage { """Whether this table is a storage files table""" isFilesTable: Boolean! - """The plane's GraphQL upload surface""" + """Upload mutations and types for this storage""" upload: MetaStorageUpload! } -""" -The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from -""" +"""The upload mutations and types for a storage table pair""" type MetaStorageUpload { """Per-file input type inside the bulk input""" bulkFileInputType: String! @@ -21683,32 +21802,45 @@ type MetaStorageUpload { """Payload type of the single upload mutation""" payloadType: String! - """Whether the upload input requires ownerId (entity-keyed plane)""" + """Whether the upload input requires ownerId""" requiresOwnerId: Boolean! } """Information about a database table""" type MetaTable { constraints: MetaConstraints! + + """Description written for this table, or null""" + description: String fields: [MetaField!]! foreignKeyConstraints: [MetaForeignKeyConstraint!]! - """i18n metadata (null if no @i18n tag)""" + """i18n metadata (null if the table is not translatable)""" i18n: MetaI18n indexes: [MetaIndex!]! inflection: MetaInflection! + """ + Whether this table only links rows of two other tables; the link appears in their manyToMany relations + """ + isJunction: Boolean! + + """ + 'table' when rows are stored in this table, 'view' when they come from a view of other tables + """ + kind: String! + """Final GraphQL output type name""" name: String! primaryKeyConstraints: [MetaPrimaryKeyConstraint!]! query: MetaQuery! - """Realtime metadata (null if no @realtime tag)""" + """Realtime metadata (null if the table has no change subscriptions)""" realtime: MetaRealtime relations: MetaRelations! schemaName: String! - """Provisioning scope metadata (null if no @scope tag)""" + """Provisioning scope metadata (null if the table has no scope)""" scope: MetaScope """Search metadata (null if no search configured)""" @@ -21730,7 +21862,22 @@ type MetaType { hasDefault: Boolean isArray: Boolean! isNotNull: Boolean + + """ + Most characters a text value may hold, or most bits a bit string may hold; for a list, each item. Null when unbounded. + """ + maxLength: Int pgType: String! + + """ + Most significant digits a decimal number may hold. Null when unbounded. + """ + precision: Int + + """ + Digits a decimal number keeps after the decimal point. Null when unbounded. + """ + scale: Int subtype: String } @@ -21745,7 +21892,7 @@ The root mutation type which contains root level fields which mutate data. """ type Mutation { """ - Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). A table entry either names its table (table_name plus optional schema_name) or references one an installed module generated ("module": {"type": "agent", "scope": "org", "table": "message"}), which resolves through the module row's recorded table ids and raises when it matches nothing instead of creating an empty table. After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID. A failure raises its coded error to the caller and rolls back the whole construction, including the construction record. + Requests a build of a blueprint: snapshots its definition into a pending blueprint_construction row, enqueues the blueprint:construct job that runs metaschema_private.construct_blueprint_run on it, and returns the construction id immediately. Poll the row: pending -> constructing -> constructed (table_map populated) or failed (error holds the coded error). schema_id is the default schema for tables without an explicit schema_name. """ constructBlueprint( """ @@ -30289,8 +30436,6 @@ input RepositoryModulePatch { type ResourceModule { apiName: String - builderBindingsTableId: UUID! - builderBindingsTableName: String! databaseId: UUID! defaultCapabilities: [String] entityField: String @@ -30338,6 +30483,8 @@ type ResourceModule { rollupResourceUsageSummaryFunction: String! schemaId: UUID! scope: String! + serviceBindingsTableId: UUID! + serviceBindingsTableName: String! } """A connection to a list of `ResourceModule` values.""" @@ -30376,12 +30523,6 @@ input ResourceModuleFilter { """Filter by the object’s `apiName` field.""" apiName: StringFilter - """Filter by the object’s `builderBindingsTableId` field.""" - builderBindingsTableId: UUIDFilter - - """Filter by the object’s `builderBindingsTableName` field.""" - builderBindingsTableName: StringFilter - """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter @@ -30510,13 +30651,17 @@ input ResourceModuleFilter { """Filter by the object’s `scope` field.""" scope: StringFilter + + """Filter by the object’s `serviceBindingsTableId` field.""" + serviceBindingsTableId: UUIDFilter + + """Filter by the object’s `serviceBindingsTableName` field.""" + serviceBindingsTableName: StringFilter } """An input for mutations affecting `ResourceModule`""" input ResourceModuleInput { apiName: String - builderBindingsTableId: UUID - builderBindingsTableName: String databaseId: UUID! defaultCapabilities: [String] entityField: String @@ -30554,16 +30699,14 @@ input ResourceModuleInput { rollupResourceUsageSummaryFunction: String schemaId: UUID scope: String! + serviceBindingsTableId: UUID + serviceBindingsTableName: String } """Methods to use when ordering `ResourceModule`.""" enum ResourceModuleOrderBy { API_NAME_ASC API_NAME_DESC - BUILDER_BINDINGS_TABLE_ID_ASC - BUILDER_BINDINGS_TABLE_ID_DESC - BUILDER_BINDINGS_TABLE_NAME_ASC - BUILDER_BINDINGS_TABLE_NAME_DESC DATABASE_ID_ASC DATABASE_ID_DESC DEFAULT_CAPABILITIES_ASC @@ -30641,6 +30784,10 @@ enum ResourceModuleOrderBy { SCHEMA_ID_DESC SCOPE_ASC SCOPE_DESC + SERVICE_BINDINGS_TABLE_ID_ASC + SERVICE_BINDINGS_TABLE_ID_DESC + SERVICE_BINDINGS_TABLE_NAME_ASC + SERVICE_BINDINGS_TABLE_NAME_DESC } """ @@ -30648,8 +30795,6 @@ Represents an update to a `ResourceModule`. Fields that are set will be updated. """ input ResourceModulePatch { apiName: String - builderBindingsTableId: UUID - builderBindingsTableName: String databaseId: UUID defaultCapabilities: [String] entityField: String @@ -30687,6 +30832,8 @@ input ResourceModulePatch { rollupResourceUsageSummaryFunction: String schemaId: UUID scope: String + serviceBindingsTableId: UUID + serviceBindingsTableName: String } type RlsModule { @@ -32319,6 +32466,7 @@ type StorageLogModule { privateSchemaId: UUID! privateSchemaName: String publicSchemaName: String + readStorageUsagePeriodFunction: String! retention: String! rollupFunctionName: String! schemaId: UUID! @@ -32403,6 +32551,9 @@ input StorageLogModuleFilter { """Filter by the object’s `publicSchemaName` field.""" publicSchemaName: StringFilter + """Filter by the object’s `readStorageUsagePeriodFunction` field.""" + readStorageUsagePeriodFunction: StringFilter + """Filter by the object’s `retention` field.""" retention: StringFilter @@ -32441,6 +32592,7 @@ input StorageLogModuleInput { privateSchemaId: UUID privateSchemaName: String publicSchemaName: String + readStorageUsagePeriodFunction: String retention: String rollupFunctionName: String schemaId: UUID @@ -32478,6 +32630,8 @@ enum StorageLogModuleOrderBy { PRIVATE_SCHEMA_NAME_DESC PUBLIC_SCHEMA_NAME_ASC PUBLIC_SCHEMA_NAME_DESC + READ_STORAGE_USAGE_PERIOD_FUNCTION_ASC + READ_STORAGE_USAGE_PERIOD_FUNCTION_DESC RETENTION_ASC RETENTION_DESC ROLLUP_FUNCTION_NAME_ASC @@ -32511,6 +32665,7 @@ input StorageLogModulePatch { privateSchemaId: UUID privateSchemaName: String publicSchemaName: String + readStorageUsagePeriodFunction: String retention: String rollupFunctionName: String schemaId: UUID @@ -32569,7 +32724,6 @@ type StorageModule { filesTableId: UUID! filesTableName: String! hasAuditLog: Boolean! - hasConfirmUpload: Boolean! hasContentHash: Boolean! hasCustomKeys: Boolean! hasPathShares: Boolean! @@ -32689,9 +32843,6 @@ input StorageModuleFilter { """Filter by the object’s `hasAuditLog` field.""" hasAuditLog: BooleanFilter - """Filter by the object’s `hasConfirmUpload` field.""" - hasConfirmUpload: BooleanFilter - """Filter by the object’s `hasContentHash` field.""" hasContentHash: BooleanFilter @@ -32791,7 +32942,6 @@ input StorageModuleInput { filesTableId: UUID filesTableName: String hasAuditLog: Boolean - hasConfirmUpload: Boolean hasContentHash: Boolean hasCustomKeys: Boolean hasPathShares: Boolean @@ -32856,8 +33006,6 @@ enum StorageModuleOrderBy { FILE_EVENTS_TABLE_ID_DESC HAS_AUDIT_LOG_ASC HAS_AUDIT_LOG_DESC - HAS_CONFIRM_UPLOAD_ASC - HAS_CONFIRM_UPLOAD_DESC HAS_CONTENT_HASH_ASC HAS_CONTENT_HASH_DESC HAS_CUSTOM_KEYS_ASC @@ -32933,7 +33081,6 @@ input StorageModulePatch { filesTableId: UUID filesTableName: String hasAuditLog: Boolean - hasConfirmUpload: Boolean hasContentHash: Boolean hasCustomKeys: Boolean hasPathShares: Boolean diff --git a/sdk/constructive-sdk/schemas/objects.graphql b/sdk/constructive-sdk/schemas/objects.graphql index 97828c7c0a..88dca959c7 100644 --- a/sdk/constructive-sdk/schemas/objects.graphql +++ b/sdk/constructive-sdk/schemas/objects.graphql @@ -710,6 +710,11 @@ type MetaBelongsToRelation { fieldName: String isUnique: Boolean! keys: [MetaField!]! + + """ + Fields on the referenced table that keys point at, in the same order as keys + """ + refKeys: [MetaField!]! references: MetaRefTable! type: String } @@ -732,22 +737,66 @@ type MetaEnum { """Information about a table field/column""" type MetaField { + """ + Values this field accepts, when the set is fixed; null otherwise. Set on a table's own fields only. + """ + allowedValues: [String!] + """PostgreSQL column name""" columnName: String! description: String """Enum metadata if this field has an enum type""" enumValues: MetaEnum + + """ + Set when the field holds files; null otherwise. Set on a table's own fields only. + """ + file: MetaFileField hasDefault: Boolean! + + """ + Whether the value is always computed and cannot be written, even when a create or update input offers the field. Set on a table's own fields only. + """ + isComputed: Boolean isForeignKey: Boolean! isNotNull: Boolean! isPrimaryKey: Boolean! + """ + Whether a create must provide this field. Set on a table's own fields only. + """ + isRequiredOnCreate: Boolean + + """Whether a create may set this field. Set on a table's own fields only.""" + isWritableOnCreate: Boolean + + """ + Whether an update may change this field. Set on a table's own fields only. + """ + isWritableOnUpdate: Boolean + """Final GraphQL field name""" name: String! type: MetaType! } +"""How a field holds files""" +type MetaFileField { + """ + GraphQL type name of the files table uploads are recorded in, when this API has exactly one; null otherwise + """ + filesType: String + + """Whether the field holds a list of files""" + isMultiple: Boolean! + + """ + image, upload, or attachment. An image or upload holds a file document; an attachment holds a link to a file. + """ + kind: String! +} + """Information about a foreign key constraint""" type MetaForeignKeyConstraint { fields: [MetaField!]! @@ -764,10 +813,15 @@ type MetaHasRelation { isUnique: Boolean! keys: [MetaField!]! referencedBy: MetaRefTable! + + """ + Fields on the related table that point at this table, in the same order as keys + """ + remoteKeys: [MetaField!]! type: String } -"""i18n metadata for a table with @i18n tag""" +"""i18n metadata for a translatable table""" type MetaI18n { """Fields that are translatable""" translatableFields: [MetaI18nField!]! @@ -794,7 +848,7 @@ type MetaIndex { name: String! } -"""Table inflection names""" +"""Type and field names generated for this table""" type MetaInflection { allRows: String! conditionType: String! @@ -839,7 +893,7 @@ type MetaQuery { update: String } -"""Realtime metadata for a table with @realtime tag""" +"""Realtime metadata for a table with change subscriptions""" type MetaRealtime { """The generated subscription field name (e.g. onPostChanged)""" subscriptionFieldName: String! @@ -860,13 +914,15 @@ type MetaRelations { } """ -How a client must serialize/parse a scalar — the one field-type detail standard GraphQL introspection cannot describe. Null for plain scalars whose wire format is obvious from gqlType. +How a client must serialize and parse a scalar whose wire format gqlType alone does not settle. Null for plain scalars whose wire format is obvious from gqlType. """ type MetaScalarEncoding { """For 'vector': declared length, else null.""" dimensions: Int - """For 'ltree': values are dot-separated path strings.""" + """ + For 'ltree': true when values are dot-separated paths ('a.b.c'), false when they are slash-separated paths ('/a/b/c'). + """ dotPath: Boolean """For 'vector': element scalar (e.g. 'float').""" @@ -891,11 +947,11 @@ type MetaSchema { """Provisioning scope metadata for a table""" type MetaScope { - """SQL name of the entity table for entity scopes, else null""" + """Name of the entity table for entity scopes, else null""" entityTable: String """ - Inflected scope key column (e.g. databaseId, orgId), null for global tiers + Field name of the scope key (e.g. databaseId, orgId), null for global tiers """ keyColumn: String @@ -904,7 +960,7 @@ type MetaScope { """ scope: String! - """Provenance of the scope metadata (always 'smartTag')""" + """Where this scope metadata comes from""" source: String! """Coarse bucket: 'global', 'database', or 'entity'""" @@ -935,7 +991,7 @@ type MetaSearchColumn { name: String! } -"""Per-table search configuration from @searchConfig smart tag""" +"""Per-table search configuration""" type MetaSearchConfig { """Exponential decay factor per day""" boostRecencyDecay: Float @@ -952,7 +1008,7 @@ type MetaSearchConfig { """Storage metadata for a table""" type MetaStorage { - """GraphQL type name of the plane's buckets table""" + """GraphQL type name of the paired buckets table""" bucketsType: String! """ @@ -960,7 +1016,7 @@ type MetaStorage { """ downloadUrlField: String - """GraphQL type name of the plane's files table""" + """GraphQL type name of the paired files table""" filesType: String! """Whether this table is a storage buckets table""" @@ -969,13 +1025,11 @@ type MetaStorage { """Whether this table is a storage files table""" isFilesTable: Boolean! - """The plane's GraphQL upload surface""" + """Upload mutations and types for this storage""" upload: MetaStorageUpload! } -""" -The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from -""" +"""The upload mutations and types for a storage table pair""" type MetaStorageUpload { """Per-file input type inside the bulk input""" bulkFileInputType: String! @@ -1001,32 +1055,45 @@ type MetaStorageUpload { """Payload type of the single upload mutation""" payloadType: String! - """Whether the upload input requires ownerId (entity-keyed plane)""" + """Whether the upload input requires ownerId""" requiresOwnerId: Boolean! } """Information about a database table""" type MetaTable { constraints: MetaConstraints! + + """Description written for this table, or null""" + description: String fields: [MetaField!]! foreignKeyConstraints: [MetaForeignKeyConstraint!]! - """i18n metadata (null if no @i18n tag)""" + """i18n metadata (null if the table is not translatable)""" i18n: MetaI18n indexes: [MetaIndex!]! inflection: MetaInflection! + """ + Whether this table only links rows of two other tables; the link appears in their manyToMany relations + """ + isJunction: Boolean! + + """ + 'table' when rows are stored in this table, 'view' when they come from a view of other tables + """ + kind: String! + """Final GraphQL output type name""" name: String! primaryKeyConstraints: [MetaPrimaryKeyConstraint!]! query: MetaQuery! - """Realtime metadata (null if no @realtime tag)""" + """Realtime metadata (null if the table has no change subscriptions)""" realtime: MetaRealtime relations: MetaRelations! schemaName: String! - """Provisioning scope metadata (null if no @scope tag)""" + """Provisioning scope metadata (null if the table has no scope)""" scope: MetaScope """Search metadata (null if no search configured)""" @@ -1048,7 +1115,22 @@ type MetaType { hasDefault: Boolean isArray: Boolean! isNotNull: Boolean + + """ + Most characters a text value may hold, or most bits a bit string may hold; for a list, each item. Null when unbounded. + """ + maxLength: Int pgType: String! + + """ + Most significant digits a decimal number may hold. Null when unbounded. + """ + precision: Int + + """ + Digits a decimal number keeps after the decimal point. Null when unbounded. + """ + scale: Int subtype: String } diff --git a/sdk/constructive-sdk/schemas/remote.graphql b/sdk/constructive-sdk/schemas/remote.graphql index 8fae919c48..18bb1fa01c 100644 --- a/sdk/constructive-sdk/schemas/remote.graphql +++ b/sdk/constructive-sdk/schemas/remote.graphql @@ -1536,6 +1536,11 @@ type MetaBelongsToRelation { fieldName: String isUnique: Boolean! keys: [MetaField!]! + + """ + Fields on the referenced table that keys point at, in the same order as keys + """ + refKeys: [MetaField!]! references: MetaRefTable! type: String } @@ -1558,22 +1563,66 @@ type MetaEnum { """Information about a table field/column""" type MetaField { + """ + Values this field accepts, when the set is fixed; null otherwise. Set on a table's own fields only. + """ + allowedValues: [String!] + """PostgreSQL column name""" columnName: String! description: String """Enum metadata if this field has an enum type""" enumValues: MetaEnum + + """ + Set when the field holds files; null otherwise. Set on a table's own fields only. + """ + file: MetaFileField hasDefault: Boolean! + + """ + Whether the value is always computed and cannot be written, even when a create or update input offers the field. Set on a table's own fields only. + """ + isComputed: Boolean isForeignKey: Boolean! isNotNull: Boolean! isPrimaryKey: Boolean! + """ + Whether a create must provide this field. Set on a table's own fields only. + """ + isRequiredOnCreate: Boolean + + """Whether a create may set this field. Set on a table's own fields only.""" + isWritableOnCreate: Boolean + + """ + Whether an update may change this field. Set on a table's own fields only. + """ + isWritableOnUpdate: Boolean + """Final GraphQL field name""" name: String! type: MetaType! } +"""How a field holds files""" +type MetaFileField { + """ + GraphQL type name of the files table uploads are recorded in, when this API has exactly one; null otherwise + """ + filesType: String + + """Whether the field holds a list of files""" + isMultiple: Boolean! + + """ + image, upload, or attachment. An image or upload holds a file document; an attachment holds a link to a file. + """ + kind: String! +} + """Information about a foreign key constraint""" type MetaForeignKeyConstraint { fields: [MetaField!]! @@ -1590,10 +1639,15 @@ type MetaHasRelation { isUnique: Boolean! keys: [MetaField!]! referencedBy: MetaRefTable! + + """ + Fields on the related table that point at this table, in the same order as keys + """ + remoteKeys: [MetaField!]! type: String } -"""i18n metadata for a table with @i18n tag""" +"""i18n metadata for a translatable table""" type MetaI18n { """Fields that are translatable""" translatableFields: [MetaI18nField!]! @@ -1620,7 +1674,7 @@ type MetaIndex { name: String! } -"""Table inflection names""" +"""Type and field names generated for this table""" type MetaInflection { allRows: String! conditionType: String! @@ -1665,7 +1719,7 @@ type MetaQuery { update: String } -"""Realtime metadata for a table with @realtime tag""" +"""Realtime metadata for a table with change subscriptions""" type MetaRealtime { """The generated subscription field name (e.g. onPostChanged)""" subscriptionFieldName: String! @@ -1686,13 +1740,15 @@ type MetaRelations { } """ -How a client must serialize/parse a scalar — the one field-type detail standard GraphQL introspection cannot describe. Null for plain scalars whose wire format is obvious from gqlType. +How a client must serialize and parse a scalar whose wire format gqlType alone does not settle. Null for plain scalars whose wire format is obvious from gqlType. """ type MetaScalarEncoding { """For 'vector': declared length, else null.""" dimensions: Int - """For 'ltree': values are dot-separated path strings.""" + """ + For 'ltree': true when values are dot-separated paths ('a.b.c'), false when they are slash-separated paths ('/a/b/c'). + """ dotPath: Boolean """For 'vector': element scalar (e.g. 'float').""" @@ -1717,11 +1773,11 @@ type MetaSchema { """Provisioning scope metadata for a table""" type MetaScope { - """SQL name of the entity table for entity scopes, else null""" + """Name of the entity table for entity scopes, else null""" entityTable: String """ - Inflected scope key column (e.g. databaseId, orgId), null for global tiers + Field name of the scope key (e.g. databaseId, orgId), null for global tiers """ keyColumn: String @@ -1730,7 +1786,7 @@ type MetaScope { """ scope: String! - """Provenance of the scope metadata (always 'smartTag')""" + """Where this scope metadata comes from""" source: String! """Coarse bucket: 'global', 'database', or 'entity'""" @@ -1761,7 +1817,7 @@ type MetaSearchColumn { name: String! } -"""Per-table search configuration from @searchConfig smart tag""" +"""Per-table search configuration""" type MetaSearchConfig { """Exponential decay factor per day""" boostRecencyDecay: Float @@ -1778,7 +1834,7 @@ type MetaSearchConfig { """Storage metadata for a table""" type MetaStorage { - """GraphQL type name of the plane's buckets table""" + """GraphQL type name of the paired buckets table""" bucketsType: String! """ @@ -1786,7 +1842,7 @@ type MetaStorage { """ downloadUrlField: String - """GraphQL type name of the plane's files table""" + """GraphQL type name of the paired files table""" filesType: String! """Whether this table is a storage buckets table""" @@ -1795,13 +1851,11 @@ type MetaStorage { """Whether this table is a storage files table""" isFilesTable: Boolean! - """The plane's GraphQL upload surface""" + """Upload mutations and types for this storage""" upload: MetaStorageUpload! } -""" -The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from -""" +"""The upload mutations and types for a storage table pair""" type MetaStorageUpload { """Per-file input type inside the bulk input""" bulkFileInputType: String! @@ -1827,32 +1881,45 @@ type MetaStorageUpload { """Payload type of the single upload mutation""" payloadType: String! - """Whether the upload input requires ownerId (entity-keyed plane)""" + """Whether the upload input requires ownerId""" requiresOwnerId: Boolean! } """Information about a database table""" type MetaTable { constraints: MetaConstraints! + + """Description written for this table, or null""" + description: String fields: [MetaField!]! foreignKeyConstraints: [MetaForeignKeyConstraint!]! - """i18n metadata (null if no @i18n tag)""" + """i18n metadata (null if the table is not translatable)""" i18n: MetaI18n indexes: [MetaIndex!]! inflection: MetaInflection! + """ + Whether this table only links rows of two other tables; the link appears in their manyToMany relations + """ + isJunction: Boolean! + + """ + 'table' when rows are stored in this table, 'view' when they come from a view of other tables + """ + kind: String! + """Final GraphQL output type name""" name: String! primaryKeyConstraints: [MetaPrimaryKeyConstraint!]! query: MetaQuery! - """Realtime metadata (null if no @realtime tag)""" + """Realtime metadata (null if the table has no change subscriptions)""" realtime: MetaRealtime relations: MetaRelations! schemaName: String! - """Provisioning scope metadata (null if no @scope tag)""" + """Provisioning scope metadata (null if the table has no scope)""" scope: MetaScope """Search metadata (null if no search configured)""" @@ -1874,7 +1941,22 @@ type MetaType { hasDefault: Boolean isArray: Boolean! isNotNull: Boolean + + """ + Most characters a text value may hold, or most bits a bit string may hold; for a list, each item. Null when unbounded. + """ + maxLength: Int pgType: String! + + """ + Most significant digits a decimal number may hold. Null when unbounded. + """ + precision: Int + + """ + Digits a decimal number keeps after the decimal point. Null when unbounded. + """ + scale: Int subtype: String } @@ -2028,6 +2110,7 @@ type Query { Metadata about the database schema, including tables, fields, indexes, and constraints. Useful for code generation tools. """ _meta: MetaSchema + currentDatabaseId: UUID """Reads and enables pagination through a set of `MachineMessage`.""" machineMessages( diff --git a/sdk/constructive-sdk/schemas/storage.graphql b/sdk/constructive-sdk/schemas/storage.graphql index b773833ded..e2e1b26487 100644 --- a/sdk/constructive-sdk/schemas/storage.graphql +++ b/sdk/constructive-sdk/schemas/storage.graphql @@ -709,41 +709,6 @@ type CreateBucketPayload { query: Query } -"""All input for the create `File` mutation.""" -input CreateFileInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `File` to be created by this mutation.""" - file: FileInput! -} - -"""The output of our create `File` mutation.""" -type CreateFilePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `File` that was created by this mutation.""" - file: File - - """An edge for our `File`. May be used by Relay 1.""" - fileEdge( - """The method to use when ordering `File`.""" - orderBy: [FileOrderBy!]! = [PRIMARY_KEY_ASC] - ): FileEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - """All input for the create `PlatformBucket` mutation.""" input CreatePlatformBucketInput { """ @@ -779,41 +744,6 @@ type CreatePlatformBucketPayload { query: Query } -"""All input for the create `PlatformFile` mutation.""" -input CreatePlatformFileInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `PlatformFile` to be created by this mutation.""" - platformFile: PlatformFileInput! -} - -"""The output of our create `PlatformFile` mutation.""" -type CreatePlatformFilePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `PlatformFile` that was created by this mutation.""" - platformFile: PlatformFile - - """An edge for our `PlatformFile`. May be used by Relay 1.""" - platformFileEdge( - """The method to use when ordering `PlatformFile`.""" - orderBy: [PlatformFileOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlatformFileEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - """A location in a connection that can be used for resuming pagination.""" scalar Cursor @@ -1030,7 +960,7 @@ type File { description: String """ - URL to download this file. For public files, returns the public URL. For private files, returns a time-limited presigned URL. + URL to download this file. For public files, returns the public URL. For private files, returns a time-limited presigned URL. Null until the upload is confirmed (status uploaded or processed), and for a rejected file. """ downloadUrl: String @@ -1064,11 +994,16 @@ type File { """ promotedAt: Datetime + """ + Why the upload was rejected (declared MIME, extension and magic bytes disagreed, size mismatch, ...). NULL unless status is rejected. + """ + rejectionReason: String + """File size in bytes. Immutable after INSERT.""" size: BigInt! """ - File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). + File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes). A requested row whose bytes never arrive within upload_url_expiry_seconds is deleted by the confirm loop. """ status: FileStatus! @@ -1080,6 +1015,21 @@ type File { Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. """ upload: ConstructiveInternalTypeUpload + + """ + URL to fetch `upload`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. + """ + uploadUrl( + """ + The width the file will be shown at, in device pixels. Without a version that wide, the source. + """ + width: Int + ): String + + """ + The versions rendered beside `upload`, narrowest first, each with a URL. Empty when there are none. + """ + uploadVersions: [FileVersion!] } """A connection to a list of `File` values.""" @@ -1163,6 +1113,9 @@ input FileFilter { """Filter by the object’s `promotedAt` field.""" promotedAt: DatetimeFilter + """Filter by the object’s `rejectionReason` field.""" + rejectionReason: StringFilter + """Filter by the object’s `size` field.""" size: BigIntFilter @@ -1179,69 +1132,6 @@ input FileFilter { upload: ConstructiveInternalTypeUploadFilter } -"""An input for mutations affecting `File`""" -input FileInput { - """ - User who uploaded this file. Forced to current_user_id() on INSERT. Used for UPDATE/DELETE authorization. - """ - actorId: UUID! - - """ - Bucket this file belongs to. Determines owner_id and is_public via inheritance trigger. - """ - bucketId: UUID! - - """ - SHA-256 content hash for integrity verification and dedup. In default mode, equals the S3 key. In custom key mode, stored separately. - """ - contentHash: String - createdAt: Datetime - - """Human-readable description or alt text for the file (mutable)""" - description: String - - """ - When the staged-expiry sweep enqueued deletion of this file's object. NULL until it expires; set once so expiry is enqueued exactly once. - """ - expiryEnqueuedAt: Datetime - - """ - Original filename provided by the uploader. Used for display and Content-Disposition header on download. - """ - filename: String - id: UUID - - """S3 object key for this file, unique within its bucket""" - key: String! - - """ - MIME type of the file (e.g. image/png, application/pdf). Immutable after INSERT. - """ - mimeType: String! - - """ - When this file was promoted out of its staging bucket into its destination bucket. NULL for a file that was never staged, or is still staged. - """ - promotedAt: Datetime - - """File size in bytes. Immutable after INSERT.""" - size: BigInt! - - """ - File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). - """ - status: FileStatus - - """User-defined tags for categorization and search (mutable)""" - tags: [String] - updatedAt: Datetime - - """ - Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. - """ - upload: ConstructiveInternalTypeUpload -} - """Methods to use when ordering `File`.""" enum FileOrderBy { ACTOR_ID_ASC @@ -1273,6 +1163,8 @@ enum FileOrderBy { PRIMARY_KEY_DESC PROMOTED_AT_ASC PROMOTED_AT_DESC + REJECTION_REASON_ASC + REJECTION_REASON_DESC SIZE_ASC SIZE_DESC STATUS_ASC @@ -1338,11 +1230,16 @@ input FilePatch { """ promotedAt: Datetime + """ + Why the upload was rejected (declared MIME, extension and magic bytes disagreed, size mismatch, ...). NULL unless status is rejected. + """ + rejectionReason: String + """File size in bytes. Immutable after INSERT.""" size: BigInt """ - File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). + File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes). A requested row whose bytes never arrive within upload_url_expiry_seconds is deleted by the confirm loop. """ status: FileStatus @@ -1354,15 +1251,9 @@ input FilePatch { Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. """ upload: ConstructiveInternalTypeUpload - - """ - Upload for Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. - """ - uploadUpload: Upload } enum FileStatus { - EXPIRED PROCESSED REJECTED REQUESTED @@ -1411,6 +1302,17 @@ input FileStatusFilter { notIn: [FileStatus!] } +"""One version rendered beside a file, with a URL to fetch it.""" +type FileVersion { + format: String + height: Int + key: String! + name: String + size: Int + url: String! + width: Int +} + """All input for the `filesRename` mutation.""" input FilesRenameInput { """ @@ -1549,6 +1451,11 @@ type MetaBelongsToRelation { fieldName: String isUnique: Boolean! keys: [MetaField!]! + + """ + Fields on the referenced table that keys point at, in the same order as keys + """ + refKeys: [MetaField!]! references: MetaRefTable! type: String } @@ -1571,22 +1478,66 @@ type MetaEnum { """Information about a table field/column""" type MetaField { + """ + Values this field accepts, when the set is fixed; null otherwise. Set on a table's own fields only. + """ + allowedValues: [String!] + """PostgreSQL column name""" columnName: String! description: String """Enum metadata if this field has an enum type""" enumValues: MetaEnum + + """ + Set when the field holds files; null otherwise. Set on a table's own fields only. + """ + file: MetaFileField hasDefault: Boolean! + + """ + Whether the value is always computed and cannot be written, even when a create or update input offers the field. Set on a table's own fields only. + """ + isComputed: Boolean isForeignKey: Boolean! isNotNull: Boolean! isPrimaryKey: Boolean! + """ + Whether a create must provide this field. Set on a table's own fields only. + """ + isRequiredOnCreate: Boolean + + """Whether a create may set this field. Set on a table's own fields only.""" + isWritableOnCreate: Boolean + + """ + Whether an update may change this field. Set on a table's own fields only. + """ + isWritableOnUpdate: Boolean + """Final GraphQL field name""" name: String! type: MetaType! } +"""How a field holds files""" +type MetaFileField { + """ + GraphQL type name of the files table uploads are recorded in, when this API has exactly one; null otherwise + """ + filesType: String + + """Whether the field holds a list of files""" + isMultiple: Boolean! + + """ + image, upload, or attachment. An image or upload holds a file document; an attachment holds a link to a file. + """ + kind: String! +} + """Information about a foreign key constraint""" type MetaForeignKeyConstraint { fields: [MetaField!]! @@ -1603,10 +1554,15 @@ type MetaHasRelation { isUnique: Boolean! keys: [MetaField!]! referencedBy: MetaRefTable! + + """ + Fields on the related table that point at this table, in the same order as keys + """ + remoteKeys: [MetaField!]! type: String } -"""i18n metadata for a table with @i18n tag""" +"""i18n metadata for a translatable table""" type MetaI18n { """Fields that are translatable""" translatableFields: [MetaI18nField!]! @@ -1633,7 +1589,7 @@ type MetaIndex { name: String! } -"""Table inflection names""" +"""Type and field names generated for this table""" type MetaInflection { allRows: String! conditionType: String! @@ -1678,7 +1634,7 @@ type MetaQuery { update: String } -"""Realtime metadata for a table with @realtime tag""" +"""Realtime metadata for a table with change subscriptions""" type MetaRealtime { """The generated subscription field name (e.g. onPostChanged)""" subscriptionFieldName: String! @@ -1699,13 +1655,15 @@ type MetaRelations { } """ -How a client must serialize/parse a scalar — the one field-type detail standard GraphQL introspection cannot describe. Null for plain scalars whose wire format is obvious from gqlType. +How a client must serialize and parse a scalar whose wire format gqlType alone does not settle. Null for plain scalars whose wire format is obvious from gqlType. """ type MetaScalarEncoding { """For 'vector': declared length, else null.""" dimensions: Int - """For 'ltree': values are dot-separated path strings.""" + """ + For 'ltree': true when values are dot-separated paths ('a.b.c'), false when they are slash-separated paths ('/a/b/c'). + """ dotPath: Boolean """For 'vector': element scalar (e.g. 'float').""" @@ -1730,11 +1688,11 @@ type MetaSchema { """Provisioning scope metadata for a table""" type MetaScope { - """SQL name of the entity table for entity scopes, else null""" + """Name of the entity table for entity scopes, else null""" entityTable: String """ - Inflected scope key column (e.g. databaseId, orgId), null for global tiers + Field name of the scope key (e.g. databaseId, orgId), null for global tiers """ keyColumn: String @@ -1743,7 +1701,7 @@ type MetaScope { """ scope: String! - """Provenance of the scope metadata (always 'smartTag')""" + """Where this scope metadata comes from""" source: String! """Coarse bucket: 'global', 'database', or 'entity'""" @@ -1774,7 +1732,7 @@ type MetaSearchColumn { name: String! } -"""Per-table search configuration from @searchConfig smart tag""" +"""Per-table search configuration""" type MetaSearchConfig { """Exponential decay factor per day""" boostRecencyDecay: Float @@ -1791,7 +1749,7 @@ type MetaSearchConfig { """Storage metadata for a table""" type MetaStorage { - """GraphQL type name of the plane's buckets table""" + """GraphQL type name of the paired buckets table""" bucketsType: String! """ @@ -1799,7 +1757,7 @@ type MetaStorage { """ downloadUrlField: String - """GraphQL type name of the plane's files table""" + """GraphQL type name of the paired files table""" filesType: String! """Whether this table is a storage buckets table""" @@ -1808,13 +1766,11 @@ type MetaStorage { """Whether this table is a storage files table""" isFilesTable: Boolean! - """The plane's GraphQL upload surface""" + """Upload mutations and types for this storage""" upload: MetaStorageUpload! } -""" -The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from -""" +"""The upload mutations and types for a storage table pair""" type MetaStorageUpload { """Per-file input type inside the bulk input""" bulkFileInputType: String! @@ -1840,32 +1796,45 @@ type MetaStorageUpload { """Payload type of the single upload mutation""" payloadType: String! - """Whether the upload input requires ownerId (entity-keyed plane)""" + """Whether the upload input requires ownerId""" requiresOwnerId: Boolean! } """Information about a database table""" type MetaTable { constraints: MetaConstraints! + + """Description written for this table, or null""" + description: String fields: [MetaField!]! foreignKeyConstraints: [MetaForeignKeyConstraint!]! - """i18n metadata (null if no @i18n tag)""" + """i18n metadata (null if the table is not translatable)""" i18n: MetaI18n indexes: [MetaIndex!]! inflection: MetaInflection! + """ + Whether this table only links rows of two other tables; the link appears in their manyToMany relations + """ + isJunction: Boolean! + + """ + 'table' when rows are stored in this table, 'view' when they come from a view of other tables + """ + kind: String! + """Final GraphQL output type name""" name: String! primaryKeyConstraints: [MetaPrimaryKeyConstraint!]! query: MetaQuery! - """Realtime metadata (null if no @realtime tag)""" + """Realtime metadata (null if the table has no change subscriptions)""" realtime: MetaRealtime relations: MetaRelations! schemaName: String! - """Provisioning scope metadata (null if no @scope tag)""" + """Provisioning scope metadata (null if the table has no scope)""" scope: MetaScope """Search metadata (null if no search configured)""" @@ -1887,7 +1856,22 @@ type MetaType { hasDefault: Boolean isArray: Boolean! isNotNull: Boolean + + """ + Most characters a text value may hold, or most bits a bit string may hold; for a list, each item. Null when unbounded. + """ + maxLength: Int pgType: String! + + """ + Most significant digits a decimal number may hold. Null when unbounded. + """ + precision: Int + + """ + Digits a decimal number keeps after the decimal point. Null when unbounded. + """ + scale: Int subtype: String } @@ -1909,14 +1893,6 @@ type Mutation { input: CreateBucketInput! ): CreateBucketPayload - """Creates a single `File`.""" - createFile( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateFileInput! - ): CreateFilePayload - """Creates a single `PlatformBucket`.""" createPlatformBucket( """ @@ -1925,14 +1901,6 @@ type Mutation { input: CreatePlatformBucketInput! ): CreatePlatformBucketPayload - """Creates a single `PlatformFile`.""" - createPlatformFile( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePlatformFileInput! - ): CreatePlatformFilePayload - """Deletes a single `Bucket` using a unique key.""" deleteBucket( """ @@ -2577,7 +2545,7 @@ type PlatformFile { description: String """ - URL to download this file. For public files, returns the public URL. For private files, returns a time-limited presigned URL. + URL to download this file. For public files, returns the public URL. For private files, returns a time-limited presigned URL. Null until the upload is confirmed (status uploaded or processed), and for a rejected file. """ downloadUrl: String @@ -2611,11 +2579,16 @@ type PlatformFile { """ promotedAt: Datetime + """ + Why the upload was rejected (declared MIME, extension and magic bytes disagreed, size mismatch, ...). NULL unless status is rejected. + """ + rejectionReason: String + """File size in bytes. Immutable after INSERT.""" size: BigInt! """ - File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). + File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes). A requested row whose bytes never arrive within upload_url_expiry_seconds is deleted by the confirm loop. """ status: FileStatus! @@ -2627,6 +2600,21 @@ type PlatformFile { Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. """ upload: ConstructiveInternalTypeUpload + + """ + URL to fetch `upload`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. + """ + uploadUrl( + """ + The width the file will be shown at, in device pixels. Without a version that wide, the source. + """ + width: Int + ): String + + """ + The versions rendered beside `upload`, narrowest first, each with a URL. Empty when there are none. + """ + uploadVersions: [FileVersion!] } """A connection to a list of `PlatformFile` values.""" @@ -2707,6 +2695,9 @@ input PlatformFileFilter { """Filter by the object’s `promotedAt` field.""" promotedAt: DatetimeFilter + """Filter by the object’s `rejectionReason` field.""" + rejectionReason: StringFilter + """Filter by the object’s `size` field.""" size: BigIntFilter @@ -2723,69 +2714,6 @@ input PlatformFileFilter { upload: ConstructiveInternalTypeUploadFilter } -"""An input for mutations affecting `PlatformFile`""" -input PlatformFileInput { - """ - User who uploaded this file. Forced to current_user_id() on INSERT. Used for UPDATE/DELETE authorization. - """ - actorId: UUID! - - """ - Bucket this file belongs to. Determines owner_id and is_public via inheritance trigger. - """ - bucketId: UUID! - - """ - SHA-256 content hash for integrity verification and dedup. In default mode, equals the S3 key. In custom key mode, stored separately. - """ - contentHash: String - createdAt: Datetime - - """Human-readable description or alt text for the file (mutable)""" - description: String - - """ - When the staged-expiry sweep enqueued deletion of this file's object. NULL until it expires; set once so expiry is enqueued exactly once. - """ - expiryEnqueuedAt: Datetime - - """ - Original filename provided by the uploader. Used for display and Content-Disposition header on download. - """ - filename: String - id: UUID - - """S3 object key for this file, unique within its bucket""" - key: String! - - """ - MIME type of the file (e.g. image/png, application/pdf). Immutable after INSERT. - """ - mimeType: String! - - """ - When this file was promoted out of its staging bucket into its destination bucket. NULL for a file that was never staged, or is still staged. - """ - promotedAt: Datetime - - """File size in bytes. Immutable after INSERT.""" - size: BigInt! - - """ - File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). - """ - status: FileStatus - - """User-defined tags for categorization and search (mutable)""" - tags: [String] - updatedAt: Datetime - - """ - Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. - """ - upload: ConstructiveInternalTypeUpload -} - """Methods to use when ordering `PlatformFile`.""" enum PlatformFileOrderBy { ACTOR_ID_ASC @@ -2815,6 +2743,8 @@ enum PlatformFileOrderBy { PRIMARY_KEY_DESC PROMOTED_AT_ASC PROMOTED_AT_DESC + REJECTION_REASON_ASC + REJECTION_REASON_DESC SIZE_ASC SIZE_DESC STATUS_ASC @@ -2879,11 +2809,16 @@ input PlatformFilePatch { """ promotedAt: Datetime + """ + Why the upload was rejected (declared MIME, extension and magic bytes disagreed, size mismatch, ...). NULL unless status is rejected. + """ + rejectionReason: String + """File size in bytes. Immutable after INSERT.""" size: BigInt """ - File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). + File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes). A requested row whose bytes never arrive within upload_url_expiry_seconds is deleted by the confirm loop. """ status: FileStatus @@ -2895,11 +2830,6 @@ input PlatformFilePatch { Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. """ upload: ConstructiveInternalTypeUpload - - """ - Upload for Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. - """ - uploadUpload: Upload } """All input for the `platformFilesRename` mutation.""" @@ -3477,9 +3407,6 @@ type UpdatePlatformFilePayload { query: Query } -"""The `Upload` scalar type represents a file upload.""" -scalar Upload - input UploadFileBulkFileInput { """SHA-256 content hash (hex-encoded, 64 chars)""" contentHash: String! @@ -3505,6 +3432,9 @@ type UploadFileBulkFilePayload { file: JSON fileId: String! key: String! + + """The exact headers the PUT to uploadUrl must send.""" + uploadHeaders: JSON uploadUrl: String } @@ -3514,6 +3444,11 @@ input UploadFileBulkInput { """ bucketKey: String + """ + Database the file belongs to. Omit for the database of the current session; a caller who is not a member of the named database is refused. + """ + databaseId: UUID + """Array of files to upload""" files: [UploadFileBulkFileInput!]! @@ -3539,6 +3474,11 @@ input UploadFileInput { """MIME type of the file""" contentType: String! + """ + Database the file belongs to. Omit for the database of the current session; a caller who is not a member of the named database is refused. + """ + databaseId: UUID + """Original filename (optional)""" filename: String @@ -3572,6 +3512,11 @@ type UploadFilePayload { """The S3 object key""" key: String! + """ + The exact headers the PUT to uploadUrl must send (Content-Type and every header the URL is signed over, e.g. x-amz-checksum-sha256 and x-amz-meta-upload-id). Forward them as-is. Null if deduplicated. + """ + uploadHeaders: JSON + """Presigned PUT URL (null if deduplicated)""" uploadUrl: String } @@ -3601,6 +3546,9 @@ type UploadPlatformFileBulkFilePayload { file: JSON fileId: String! key: String! + + """The exact headers the PUT to uploadUrl must send.""" + uploadHeaders: JSON uploadUrl: String } @@ -3668,6 +3616,11 @@ type UploadPlatformFilePayload { """The S3 object key""" key: String! + """ + The exact headers the PUT to uploadUrl must send (Content-Type and every header the URL is signed over, e.g. x-amz-checksum-sha256 and x-amz-meta-upload-id). Forward them as-is. Null if deduplicated. + """ + uploadHeaders: JSON + """Presigned PUT URL (null if deduplicated)""" uploadUrl: String } \ No newline at end of file diff --git a/sdk/constructive-sdk/schemas/usage.graphql b/sdk/constructive-sdk/schemas/usage.graphql index 10ae242d21..bd5e0da887 100644 --- a/sdk/constructive-sdk/schemas/usage.graphql +++ b/sdk/constructive-sdk/schemas/usage.graphql @@ -3247,6 +3247,11 @@ type MetaBelongsToRelation { fieldName: String isUnique: Boolean! keys: [MetaField!]! + + """ + Fields on the referenced table that keys point at, in the same order as keys + """ + refKeys: [MetaField!]! references: MetaRefTable! type: String } @@ -3269,22 +3274,66 @@ type MetaEnum { """Information about a table field/column""" type MetaField { + """ + Values this field accepts, when the set is fixed; null otherwise. Set on a table's own fields only. + """ + allowedValues: [String!] + """PostgreSQL column name""" columnName: String! description: String """Enum metadata if this field has an enum type""" enumValues: MetaEnum + + """ + Set when the field holds files; null otherwise. Set on a table's own fields only. + """ + file: MetaFileField hasDefault: Boolean! + + """ + Whether the value is always computed and cannot be written, even when a create or update input offers the field. Set on a table's own fields only. + """ + isComputed: Boolean isForeignKey: Boolean! isNotNull: Boolean! isPrimaryKey: Boolean! + """ + Whether a create must provide this field. Set on a table's own fields only. + """ + isRequiredOnCreate: Boolean + + """Whether a create may set this field. Set on a table's own fields only.""" + isWritableOnCreate: Boolean + + """ + Whether an update may change this field. Set on a table's own fields only. + """ + isWritableOnUpdate: Boolean + """Final GraphQL field name""" name: String! type: MetaType! } +"""How a field holds files""" +type MetaFileField { + """ + GraphQL type name of the files table uploads are recorded in, when this API has exactly one; null otherwise + """ + filesType: String + + """Whether the field holds a list of files""" + isMultiple: Boolean! + + """ + image, upload, or attachment. An image or upload holds a file document; an attachment holds a link to a file. + """ + kind: String! +} + """Information about a foreign key constraint""" type MetaForeignKeyConstraint { fields: [MetaField!]! @@ -3301,10 +3350,15 @@ type MetaHasRelation { isUnique: Boolean! keys: [MetaField!]! referencedBy: MetaRefTable! + + """ + Fields on the related table that point at this table, in the same order as keys + """ + remoteKeys: [MetaField!]! type: String } -"""i18n metadata for a table with @i18n tag""" +"""i18n metadata for a translatable table""" type MetaI18n { """Fields that are translatable""" translatableFields: [MetaI18nField!]! @@ -3331,7 +3385,7 @@ type MetaIndex { name: String! } -"""Table inflection names""" +"""Type and field names generated for this table""" type MetaInflection { allRows: String! conditionType: String! @@ -3376,7 +3430,7 @@ type MetaQuery { update: String } -"""Realtime metadata for a table with @realtime tag""" +"""Realtime metadata for a table with change subscriptions""" type MetaRealtime { """The generated subscription field name (e.g. onPostChanged)""" subscriptionFieldName: String! @@ -3397,13 +3451,15 @@ type MetaRelations { } """ -How a client must serialize/parse a scalar — the one field-type detail standard GraphQL introspection cannot describe. Null for plain scalars whose wire format is obvious from gqlType. +How a client must serialize and parse a scalar whose wire format gqlType alone does not settle. Null for plain scalars whose wire format is obvious from gqlType. """ type MetaScalarEncoding { """For 'vector': declared length, else null.""" dimensions: Int - """For 'ltree': values are dot-separated path strings.""" + """ + For 'ltree': true when values are dot-separated paths ('a.b.c'), false when they are slash-separated paths ('/a/b/c'). + """ dotPath: Boolean """For 'vector': element scalar (e.g. 'float').""" @@ -3428,11 +3484,11 @@ type MetaSchema { """Provisioning scope metadata for a table""" type MetaScope { - """SQL name of the entity table for entity scopes, else null""" + """Name of the entity table for entity scopes, else null""" entityTable: String """ - Inflected scope key column (e.g. databaseId, orgId), null for global tiers + Field name of the scope key (e.g. databaseId, orgId), null for global tiers """ keyColumn: String @@ -3441,7 +3497,7 @@ type MetaScope { """ scope: String! - """Provenance of the scope metadata (always 'smartTag')""" + """Where this scope metadata comes from""" source: String! """Coarse bucket: 'global', 'database', or 'entity'""" @@ -3472,7 +3528,7 @@ type MetaSearchColumn { name: String! } -"""Per-table search configuration from @searchConfig smart tag""" +"""Per-table search configuration""" type MetaSearchConfig { """Exponential decay factor per day""" boostRecencyDecay: Float @@ -3489,7 +3545,7 @@ type MetaSearchConfig { """Storage metadata for a table""" type MetaStorage { - """GraphQL type name of the plane's buckets table""" + """GraphQL type name of the paired buckets table""" bucketsType: String! """ @@ -3497,7 +3553,7 @@ type MetaStorage { """ downloadUrlField: String - """GraphQL type name of the plane's files table""" + """GraphQL type name of the paired files table""" filesType: String! """Whether this table is a storage buckets table""" @@ -3506,13 +3562,11 @@ type MetaStorage { """Whether this table is a storage files table""" isFilesTable: Boolean! - """The plane's GraphQL upload surface""" + """Upload mutations and types for this storage""" upload: MetaStorageUpload! } -""" -The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from -""" +"""The upload mutations and types for a storage table pair""" type MetaStorageUpload { """Per-file input type inside the bulk input""" bulkFileInputType: String! @@ -3538,32 +3592,45 @@ type MetaStorageUpload { """Payload type of the single upload mutation""" payloadType: String! - """Whether the upload input requires ownerId (entity-keyed plane)""" + """Whether the upload input requires ownerId""" requiresOwnerId: Boolean! } """Information about a database table""" type MetaTable { constraints: MetaConstraints! + + """Description written for this table, or null""" + description: String fields: [MetaField!]! foreignKeyConstraints: [MetaForeignKeyConstraint!]! - """i18n metadata (null if no @i18n tag)""" + """i18n metadata (null if the table is not translatable)""" i18n: MetaI18n indexes: [MetaIndex!]! inflection: MetaInflection! + """ + Whether this table only links rows of two other tables; the link appears in their manyToMany relations + """ + isJunction: Boolean! + + """ + 'table' when rows are stored in this table, 'view' when they come from a view of other tables + """ + kind: String! + """Final GraphQL output type name""" name: String! primaryKeyConstraints: [MetaPrimaryKeyConstraint!]! query: MetaQuery! - """Realtime metadata (null if no @realtime tag)""" + """Realtime metadata (null if the table has no change subscriptions)""" realtime: MetaRealtime relations: MetaRelations! schemaName: String! - """Provisioning scope metadata (null if no @scope tag)""" + """Provisioning scope metadata (null if the table has no scope)""" scope: MetaScope """Search metadata (null if no search configured)""" @@ -3585,7 +3652,22 @@ type MetaType { hasDefault: Boolean isArray: Boolean! isNotNull: Boolean + + """ + Most characters a text value may hold, or most bits a bit string may hold; for a list, each item. Null when unbounded. + """ + maxLength: Int pgType: String! + + """ + Most significant digits a decimal number may hold. Null when unbounded. + """ + precision: Int + + """ + Digits a decimal number keeps after the decimal point. Null when unbounded. + """ + scale: Int subtype: String } diff --git a/sdk/constructive-sdk/src/admin/orm/README.md b/sdk/constructive-sdk/src/admin/orm/README.md index 0a5e8c1664..37cf602ec8 100644 --- a/sdk/constructive-sdk/src/admin/orm/README.md +++ b/sdk/constructive-sdk/src/admin/orm/README.md @@ -31,16 +31,16 @@ const db = createClient({ | `appMembershipDefault` | findMany, findOne, create, update, delete | | `appOwnerGrant` | findMany, findOne, create, update, delete | | `membershipType` | findMany, findOne, create, update, delete | -| `myPendingAppInvitesRecord` | findMany, findOne, create, update, delete | -| `myPendingOrgInvitesRecord` | findMany, findOne, create, update, delete | +| `myPendingAppInvitesRecord` | findMany, findOne, update, delete | +| `myPendingOrgInvitesRecord` | findMany, findOne, update, delete | | `orgAdminGrant` | findMany, findOne, create, update, delete | | `orgCapabilityDefaultCapability` | findMany, findOne, create, update, delete | | `orgCapabilityDefaultGrant` | findMany, findOne, create, update, delete | | `orgChartEdge` | findMany, findOne, create, update, delete | | `orgChartEdgeGrant` | findMany, findOne, create, update, delete | | `orgClaimedInvite` | findMany, findOne, create, update, delete | -| `orgGetManagersRecord` | findMany, findOne, create, update, delete | -| `orgGetSubordinatesRecord` | findMany, findOne, create, update, delete | +| `orgGetManagersRecord` | findMany, findOne, update, delete | +| `orgGetSubordinatesRecord` | findMany, findOne, update, delete | | `orgGrant` | findMany, findOne, create, update, delete | | `orgInvite` | findMany, findOne, create, update, delete | | `orgMember` | findMany, findOne, create, update, delete | @@ -438,9 +438,6 @@ const items = await db.myPendingAppInvitesRecord.findMany({ select: { channel: t // Get one by id const item = await db.myPendingAppInvitesRecord.findOne({ id: '', select: { channel: true, createdAt: true, expiresAt: true, id: true, senderId: true } }).execute(); -// Create -const created = await db.myPendingAppInvitesRecord.create({ data: { channel: '', expiresAt: '', senderId: '' }, select: { id: true } }).execute(); - // Update const updated = await db.myPendingAppInvitesRecord.update({ where: { id: '' }, data: { channel: '' }, select: { id: true } }).execute(); @@ -472,9 +469,6 @@ const items = await db.myPendingOrgInvitesRecord.findMany({ select: { channel: t // Get one by id const item = await db.myPendingOrgInvitesRecord.findOne({ id: '', select: { channel: true, createdAt: true, entityId: true, expiresAt: true, id: true, senderId: true } }).execute(); -// Create -const created = await db.myPendingOrgInvitesRecord.create({ data: { channel: '', entityId: '', expiresAt: '', senderId: '' }, select: { id: true } }).execute(); - // Update const updated = await db.myPendingOrgInvitesRecord.update({ where: { id: '' }, data: { channel: '' }, select: { id: true } }).execute(); @@ -713,9 +707,6 @@ const items = await db.orgGetManagersRecord.findMany({ select: { depth: true, us // Get one by id const item = await db.orgGetManagersRecord.findOne({ id: '', select: { depth: true, userId: true } }).execute(); -// Create -const created = await db.orgGetManagersRecord.create({ data: { depth: '', userId: '' }, select: { id: true } }).execute(); - // Update const updated = await db.orgGetManagersRecord.update({ where: { id: '' }, data: { depth: '' }, select: { id: true } }).execute(); @@ -743,9 +734,6 @@ const items = await db.orgGetSubordinatesRecord.findMany({ select: { depth: true // Get one by id const item = await db.orgGetSubordinatesRecord.findOne({ id: '', select: { depth: true, userId: true } }).execute(); -// Create -const created = await db.orgGetSubordinatesRecord.create({ data: { depth: '', userId: '' }, select: { id: true } }).execute(); - // Update const updated = await db.orgGetSubordinatesRecord.update({ where: { id: '' }, data: { depth: '' }, select: { id: true } }).execute(); @@ -884,6 +872,8 @@ CRUD operations for OrgMemberProfile records. | `id` | UUID | No | | `membershipId` | UUID | Yes | | `profilePicture` | ConstructiveInternalTypeImage | Yes | +| `profilePictureUrl` | String | No | +| `profilePictureVersions` | FileVersion | No | | `title` | String | Yes | | `updatedAt` | Datetime | No | diff --git a/sdk/constructive-sdk/src/admin/orm/input-types.ts b/sdk/constructive-sdk/src/admin/orm/input-types.ts index 9bc1f6a8e9..03690156c2 100644 --- a/sdk/constructive-sdk/src/admin/orm/input-types.ts +++ b/sdk/constructive-sdk/src/admin/orm/input-types.ts @@ -576,6 +576,10 @@ export interface OrgMemberProfile { membershipId?: string | null; /** Profile picture visible to other entity members */ profilePicture?: ConstructiveInternalTypeImage | null; + /** URL to fetch `profilePicture`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + profilePictureUrl?: string | null; + /** The versions rendered beside `profilePicture`, narrowest first, each with a URL. Empty when there are none. */ + profilePictureVersions?: FileVersion[] | null; /** Job title or role description visible to other entity members */ title?: string | null; updatedAt?: string | null; @@ -987,6 +991,15 @@ export type OrgMemberProfileSelect = { id?: boolean; membershipId?: boolean; profilePicture?: boolean; + profilePictureUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + profilePictureVersions?: { + select: FileVersionSelect; + }; title?: boolean; updatedAt?: boolean; membership?: { @@ -2582,14 +2595,6 @@ export interface DeleteMembershipTypeInput { clientMutationId?: string; id: number; } -export interface CreateMyPendingAppInvitesRecordInput { - clientMutationId?: string; - myPendingAppInvitesRecord: { - channel?: string; - expiresAt?: string; - senderId: string; - }; -} export interface MyPendingAppInvitesRecordPatch { channel?: string | null; expiresAt?: string | null; @@ -2604,15 +2609,6 @@ export interface DeleteMyPendingAppInvitesRecordInput { clientMutationId?: string; id: string; } -export interface CreateMyPendingOrgInvitesRecordInput { - clientMutationId?: string; - myPendingOrgInvitesRecord: { - channel?: string; - entityId: string; - expiresAt?: string; - senderId: string; - }; -} export interface MyPendingOrgInvitesRecordPatch { channel?: string | null; entityId?: string | null; @@ -2776,13 +2772,6 @@ export interface DeleteOrgClaimedInviteInput { clientMutationId?: string; id: string; } -export interface CreateOrgGetManagersRecordInput { - clientMutationId?: string; - orgGetManagersRecord: { - depth?: number; - userId: string; - }; -} export interface OrgGetManagersRecordPatch { depth?: number | null; userId?: string | null; @@ -2796,13 +2785,6 @@ export interface DeleteOrgGetManagersRecordInput { clientMutationId?: string; id: string; } -export interface CreateOrgGetSubordinatesRecordInput { - clientMutationId?: string; - orgGetSubordinatesRecord: { - depth?: number; - userId: string; - }; -} export interface OrgGetSubordinatesRecordPatch { depth?: number | null; userId?: string | null; @@ -2931,7 +2913,6 @@ export interface OrgMemberProfilePatch { entityId?: string | null; membershipId?: string | null; profilePicture?: ConstructiveInternalTypeImage | null; - profilePictureUpload?: File | null; title?: string | null; } export interface UpdateOrgMemberProfileInput { @@ -4883,6 +4864,25 @@ export type DeleteOrgOwnerGrantPayloadSelect = { select: OrgOwnerGrantEdgeSelect; }; }; +/** One version rendered beside a file, with a URL to fetch it. */ +export interface FileVersion { + format?: string | null; + height?: number | null; + key: string; + name?: string | null; + size?: number | null; + url: string; + width?: number | null; +} +export type FileVersionSelect = { + format?: boolean; + height?: boolean; + key?: boolean; + name?: boolean; + size?: boolean; + url?: boolean; + width?: boolean; +}; export interface ProvisionAppUserRecord { created?: boolean | null; inviteId?: string | null; diff --git a/sdk/constructive-sdk/src/admin/orm/models/myPendingAppInvitesRecord.ts b/sdk/constructive-sdk/src/admin/orm/models/myPendingAppInvitesRecord.ts index 498d67ae85..dc0fa5a44f 100644 --- a/sdk/constructive-sdk/src/admin/orm/models/myPendingAppInvitesRecord.ts +++ b/sdk/constructive-sdk/src/admin/orm/models/myPendingAppInvitesRecord.ts @@ -29,7 +29,6 @@ import type { MyPendingAppInvitesRecordSelect, MyPendingAppInvitesRecordFilter, MyPendingAppInvitesRecordsOrderBy, - CreateMyPendingAppInvitesRecordInput, UpdateMyPendingAppInvitesRecordInput, MyPendingAppInvitesRecordPatch, } from '../input-types'; @@ -146,31 +145,4 @@ export class MyPendingAppInvitesRecordModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createMyPendingAppInvitesRecord: { - myPendingAppInvitesRecord: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'MyPendingAppInvitesRecord', - 'createMyPendingAppInvitesRecord', - 'myPendingAppInvitesRecord', - args.select, - args.data, - 'CreateMyPendingAppInvitesRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'MyPendingAppInvitesRecord', - fieldName: 'createMyPendingAppInvitesRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/admin/orm/models/myPendingOrgInvitesRecord.ts b/sdk/constructive-sdk/src/admin/orm/models/myPendingOrgInvitesRecord.ts index b5913b8869..274dc17d9e 100644 --- a/sdk/constructive-sdk/src/admin/orm/models/myPendingOrgInvitesRecord.ts +++ b/sdk/constructive-sdk/src/admin/orm/models/myPendingOrgInvitesRecord.ts @@ -29,7 +29,6 @@ import type { MyPendingOrgInvitesRecordSelect, MyPendingOrgInvitesRecordFilter, MyPendingOrgInvitesRecordsOrderBy, - CreateMyPendingOrgInvitesRecordInput, UpdateMyPendingOrgInvitesRecordInput, MyPendingOrgInvitesRecordPatch, } from '../input-types'; @@ -146,31 +145,4 @@ export class MyPendingOrgInvitesRecordModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createMyPendingOrgInvitesRecord: { - myPendingOrgInvitesRecord: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'MyPendingOrgInvitesRecord', - 'createMyPendingOrgInvitesRecord', - 'myPendingOrgInvitesRecord', - args.select, - args.data, - 'CreateMyPendingOrgInvitesRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'MyPendingOrgInvitesRecord', - fieldName: 'createMyPendingOrgInvitesRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/admin/orm/models/orgGetManagersRecord.ts b/sdk/constructive-sdk/src/admin/orm/models/orgGetManagersRecord.ts index 7c333b76d3..21f4008311 100644 --- a/sdk/constructive-sdk/src/admin/orm/models/orgGetManagersRecord.ts +++ b/sdk/constructive-sdk/src/admin/orm/models/orgGetManagersRecord.ts @@ -29,7 +29,6 @@ import type { OrgGetManagersRecordSelect, OrgGetManagersRecordFilter, OrgGetManagersRecordsOrderBy, - CreateOrgGetManagersRecordInput, UpdateOrgGetManagersRecordInput, OrgGetManagersRecordPatch, } from '../input-types'; @@ -104,31 +103,4 @@ export class OrgGetManagersRecordModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgGetManagersRecord: { - orgGetManagersRecord: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgGetManagersRecord', - 'createOrgGetManagersRecord', - 'orgGetManagersRecord', - args.select, - args.data, - 'CreateOrgGetManagersRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgGetManagersRecord', - fieldName: 'createOrgGetManagersRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/admin/orm/models/orgGetSubordinatesRecord.ts b/sdk/constructive-sdk/src/admin/orm/models/orgGetSubordinatesRecord.ts index f259e10434..a5b89052df 100644 --- a/sdk/constructive-sdk/src/admin/orm/models/orgGetSubordinatesRecord.ts +++ b/sdk/constructive-sdk/src/admin/orm/models/orgGetSubordinatesRecord.ts @@ -29,7 +29,6 @@ import type { OrgGetSubordinatesRecordSelect, OrgGetSubordinatesRecordFilter, OrgGetSubordinatesRecordsOrderBy, - CreateOrgGetSubordinatesRecordInput, UpdateOrgGetSubordinatesRecordInput, OrgGetSubordinatesRecordPatch, } from '../input-types'; @@ -106,31 +105,4 @@ export class OrgGetSubordinatesRecordModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgGetSubordinatesRecord: { - orgGetSubordinatesRecord: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgGetSubordinatesRecord', - 'createOrgGetSubordinatesRecord', - 'orgGetSubordinatesRecord', - args.select, - args.data, - 'CreateOrgGetSubordinatesRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgGetSubordinatesRecord', - fieldName: 'createOrgGetSubordinatesRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/admin/orm/query-builder.ts b/sdk/constructive-sdk/src/admin/orm/query-builder.ts index fd785bbae6..d6c981907f 100644 --- a/sdk/constructive-sdk/src/admin/orm/query-builder.ts +++ b/sdk/constructive-sdk/src/admin/orm/query-builder.ts @@ -140,9 +140,7 @@ export function buildSelections( ); const nestedSelect = nested.select; if (nestedSelect && typeof nestedSelect === 'object') { - const subSelections = Object.entries(nestedSelect) - .filter(([, v]) => v) - .map(([name]) => t.field({ name })); + const subSelections = buildSelections(nestedSelect, connectionFieldsMap); fields.push( t.field({ name: key, diff --git a/sdk/constructive-sdk/src/admin/orm/select-types.ts b/sdk/constructive-sdk/src/admin/orm/select-types.ts index 4b39d7e820..783c4603df 100644 --- a/sdk/constructive-sdk/src/admin/orm/select-types.ts +++ b/sdk/constructive-sdk/src/admin/orm/select-types.ts @@ -159,9 +159,13 @@ export type InferSelectResult = TSelect extends undefined ? K extends keyof TEntity ? NonNullable extends ConnectionResult ? ConnectionResult> - : - | InferSelectResult, NestedSelect> - | (null extends TEntity[K] ? null : never) + : NonNullable extends readonly (infer Item)[] + ? + | InferSelectResult, NestedSelect>[] + | (null extends TEntity[K] ? null : never) + : + | InferSelectResult, NestedSelect> + | (null extends TEntity[K] ? null : never) : never : K extends keyof TEntity ? TEntity[K] diff --git a/sdk/constructive-sdk/src/agent/orm/README.md b/sdk/constructive-sdk/src/agent/orm/README.md index a201a35f2d..7e92ad0fca 100644 --- a/sdk/constructive-sdk/src/agent/orm/README.md +++ b/sdk/constructive-sdk/src/agent/orm/README.md @@ -305,10 +305,10 @@ CRUD operations for AgentResourceChunk records. | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | | `embedding` | Vector | Yes | -| `embeddingVectorDistance` | Float | Yes | +| `embeddingVectorDistance` | Float | No | | `id` | UUID | No | | `metadata` | JSON | Yes | -| `searchScore` | Float | Yes | +| `searchScore` | Float | No | | `updatedAt` | Datetime | No | **Operations:** @@ -321,7 +321,7 @@ const items = await db.agentResourceChunk.findMany({ select: { agentResourceId: const item = await db.agentResourceChunk.findOne({ id: '', select: { agentResourceId: true, body: true, chunkIndex: true, createdAt: true, databaseId: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, searchScore: true, updatedAt: true } }).execute(); // Create -const created = await db.agentResourceChunk.create({ data: { agentResourceId: '', body: '', chunkIndex: '', databaseId: '', embedding: '', embeddingVectorDistance: '', metadata: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.agentResourceChunk.create({ data: { agentResourceId: '', body: '', chunkIndex: '', databaseId: '', embedding: '', metadata: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentResourceChunk.update({ where: { id: '' }, data: { agentResourceId: '' }, select: { id: true } }).execute(); @@ -343,29 +343,31 @@ CRUD operations for AgentResource records. |-------|------|----------| | `archivedAt` | Datetime | Yes | | `body` | String | Yes | -| `bodyTrgmSimilarity` | Float | Yes | +| `bodyTrgmSimilarity` | Float | No | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | | `createdByPrincipal` | UUID | Yes | | `databaseId` | UUID | Yes | | `description` | String | Yes | -| `descriptionTrgmSimilarity` | Float | Yes | +| `descriptionTrgmSimilarity` | Float | No | | `embedding` | Vector | Yes | -| `embeddingUpdatedAt` | Datetime | Yes | -| `embeddingVectorDistance` | Float | Yes | +| `embeddingModel` | String | No | +| `embeddingModelTrgmSimilarity` | Float | No | +| `embeddingUpdatedAt` | Datetime | No | +| `embeddingVectorDistance` | Float | No | | `id` | UUID | No | | `isActive` | Boolean | Yes | | `isArchived` | Boolean | Yes | | `keywords` | String | Yes | | `kind` | String | Yes | -| `kindTrgmSimilarity` | Float | Yes | +| `kindTrgmSimilarity` | Float | No | | `metadata` | JSON | Yes | -| `search` | FullText | Yes | -| `searchScore` | Float | Yes | -| `searchTsvRank` | Float | Yes | +| `search` | FullText | No | +| `searchScore` | Float | No | +| `searchTsvRank` | Float | No | | `slug` | String | Yes | | `title` | String | Yes | -| `titleTrgmSimilarity` | Float | Yes | +| `titleTrgmSimilarity` | Float | No | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | | `updatedByPrincipal` | UUID | Yes | @@ -374,13 +376,13 @@ CRUD operations for AgentResource records. ```typescript // List all agentResource records -const items = await db.agentResource.findMany({ select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const items = await db.agentResource.findMany({ select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.agentResource.findOne({ id: '', select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const item = await db.agentResource.findOne({ id: '', select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.agentResource.create({ data: { archivedAt: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', isActive: '', isArchived: '', keywords: '', kind: '', kindTrgmSimilarity: '', metadata: '', search: '', searchScore: '', searchTsvRank: '', slug: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); +const created = await db.agentResource.create({ data: { archivedAt: '', body: '', createdBy: '', createdByPrincipal: '', databaseId: '', description: '', embedding: '', isActive: '', isArchived: '', keywords: '', kind: '', metadata: '', slug: '', title: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentResource.update({ where: { id: '' }, data: { archivedAt: '' }, select: { id: true } }).execute(); @@ -836,11 +838,11 @@ CRUD operations for PlatformAgentResourceChunk records. | `chunkIndex` | Int | Yes | | `createdAt` | Datetime | No | | `embedding` | Vector | Yes | -| `embeddingVectorDistance` | Float | Yes | +| `embeddingVectorDistance` | Float | No | | `id` | UUID | No | | `metadata` | JSON | Yes | | `platformAgentResourceId` | UUID | Yes | -| `searchScore` | Float | Yes | +| `searchScore` | Float | No | | `updatedAt` | Datetime | No | **Operations:** @@ -853,7 +855,7 @@ const items = await db.platformAgentResourceChunk.findMany({ select: { body: tru const item = await db.platformAgentResourceChunk.findOne({ id: '', select: { body: true, chunkIndex: true, createdAt: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, platformAgentResourceId: true, searchScore: true, updatedAt: true } }).execute(); // Create -const created = await db.platformAgentResourceChunk.create({ data: { body: '', chunkIndex: '', embedding: '', embeddingVectorDistance: '', metadata: '', platformAgentResourceId: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.platformAgentResourceChunk.create({ data: { body: '', chunkIndex: '', embedding: '', metadata: '', platformAgentResourceId: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformAgentResourceChunk.update({ where: { id: '' }, data: { body: '' }, select: { id: true } }).execute(); @@ -875,28 +877,30 @@ CRUD operations for PlatformAgentResource records. |-------|------|----------| | `archivedAt` | Datetime | Yes | | `body` | String | Yes | -| `bodyTrgmSimilarity` | Float | Yes | +| `bodyTrgmSimilarity` | Float | No | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | | `createdByPrincipal` | UUID | Yes | | `description` | String | Yes | -| `descriptionTrgmSimilarity` | Float | Yes | +| `descriptionTrgmSimilarity` | Float | No | | `embedding` | Vector | Yes | -| `embeddingUpdatedAt` | Datetime | Yes | -| `embeddingVectorDistance` | Float | Yes | +| `embeddingModel` | String | No | +| `embeddingModelTrgmSimilarity` | Float | No | +| `embeddingUpdatedAt` | Datetime | No | +| `embeddingVectorDistance` | Float | No | | `id` | UUID | No | | `isActive` | Boolean | Yes | | `isArchived` | Boolean | Yes | | `keywords` | String | Yes | | `kind` | String | Yes | -| `kindTrgmSimilarity` | Float | Yes | +| `kindTrgmSimilarity` | Float | No | | `metadata` | JSON | Yes | -| `search` | FullText | Yes | -| `searchScore` | Float | Yes | -| `searchTsvRank` | Float | Yes | +| `search` | FullText | No | +| `searchScore` | Float | No | +| `searchTsvRank` | Float | No | | `slug` | String | Yes | | `title` | String | Yes | -| `titleTrgmSimilarity` | Float | Yes | +| `titleTrgmSimilarity` | Float | No | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | | `updatedByPrincipal` | UUID | Yes | @@ -905,13 +909,13 @@ CRUD operations for PlatformAgentResource records. ```typescript // List all platformAgentResource records -const items = await db.platformAgentResource.findMany({ select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const items = await db.platformAgentResource.findMany({ select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.platformAgentResource.findOne({ id: '', select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const item = await db.platformAgentResource.findOne({ id: '', select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.platformAgentResource.create({ data: { archivedAt: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', isActive: '', isArchived: '', keywords: '', kind: '', kindTrgmSimilarity: '', metadata: '', search: '', searchScore: '', searchTsvRank: '', slug: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); +const created = await db.platformAgentResource.create({ data: { archivedAt: '', body: '', createdBy: '', createdByPrincipal: '', description: '', embedding: '', isActive: '', isArchived: '', keywords: '', kind: '', metadata: '', slug: '', title: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformAgentResource.update({ where: { id: '' }, data: { archivedAt: '' }, select: { id: true } }).execute(); diff --git a/sdk/constructive-sdk/src/agent/orm/input-types.ts b/sdk/constructive-sdk/src/agent/orm/input-types.ts index 203bbeda25..fc4524c9f2 100644 --- a/sdk/constructive-sdk/src/agent/orm/input-types.ts +++ b/sdk/constructive-sdk/src/agent/orm/input-types.ts @@ -407,6 +407,9 @@ export interface AgentResource { /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ descriptionTrgmSimilarity?: number | null; embedding?: number[] | null; + embeddingModel?: string | null; + /** TRGM similarity when searching `embeddingModel`. Returns null when no trgm search filter is active. */ + embeddingModelTrgmSimilarity?: number | null; embeddingUpdatedAt?: string | null; /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ embeddingVectorDistance?: number | null; @@ -758,6 +761,9 @@ export interface PlatformAgentResource { /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ descriptionTrgmSimilarity?: number | null; embedding?: number[] | null; + embeddingModel?: string | null; + /** TRGM similarity when searching `embeddingModel`. Returns null when no trgm search filter is active. */ + embeddingModelTrgmSimilarity?: number | null; embeddingUpdatedAt?: string | null; /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ embeddingVectorDistance?: number | null; @@ -1262,6 +1268,8 @@ export type AgentResourceSelect = { description?: boolean; descriptionTrgmSimilarity?: boolean; embedding?: boolean; + embeddingModel?: boolean; + embeddingModelTrgmSimilarity?: boolean; embeddingUpdatedAt?: boolean; embeddingVectorDistance?: boolean; id?: boolean; @@ -1598,6 +1606,8 @@ export type PlatformAgentResourceSelect = { description?: boolean; descriptionTrgmSimilarity?: boolean; embedding?: boolean; + embeddingModel?: boolean; + embeddingModelTrgmSimilarity?: boolean; embeddingUpdatedAt?: boolean; embeddingVectorDistance?: boolean; id?: boolean; @@ -2066,6 +2076,8 @@ export interface AgentResourceFilter { description?: StringTrgmFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -2094,6 +2106,8 @@ export interface AgentResourceFilter { trgmBody?: TrgmSearchInput; /** TRGM search on the `description` column. */ trgmDescription?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `kind` column. */ trgmKind?: TrgmSearchInput; /** TRGM search on the `title` column. */ @@ -2632,6 +2646,8 @@ export interface PlatformAgentResourceFilter { description?: StringTrgmFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -2664,6 +2680,8 @@ export interface PlatformAgentResourceFilter { trgmBody?: TrgmSearchInput; /** TRGM search on the `description` column. */ trgmDescription?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `kind` column. */ trgmKind?: TrgmSearchInput; /** TRGM search on the `title` column. */ @@ -3141,6 +3159,10 @@ export type AgentResourceOrderBy = | 'DESCRIPTION_TRGM_SIMILARITY_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_ASC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' @@ -3561,6 +3583,10 @@ export type PlatformAgentResourceOrderBy = | 'DESCRIPTION_TRGM_SIMILARITY_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_ASC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' @@ -4838,10 +4864,12 @@ export interface VectorNearbyInput { includeChunks?: boolean; /** Similarity metric to use (default: COSINE). */ metric?: VectorMetric; - /** Natural language text to embed server-side for similarity search. Mutually exclusive with `vector` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** The model that produced `vector`. On a column that records the model of each row's vector, only rows embedded with this model are compared; vectors of two models are not comparable. Filled in server-side when `text` is embedded. */ + model?: string; + /** Natural language text to embed server-side for similarity search. Provide exactly one of `text` or `vector`; sending both or neither is an error. Blank text on its own counts as not given. Requires the LLM plugin to be configured with an embedding provider. */ text?: string; /** Query vector for similarity search. */ - vector: number[]; + vector?: number[]; } /** A filter to be used against many `AgentResourceChunk` object types. All fields are combined with a logical ‘and.’ */ export interface AgentResourceToManyAgentResourceChunkFilter { @@ -5266,7 +5294,7 @@ export interface AgentResourceChunkInput { /** Policy-required field derived from source table (used by AuthzRelatedEntityMembership) */ databaseId?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; metadata?: Record; @@ -5286,7 +5314,7 @@ export interface AgentResourceInput { /** Brief description of this resource */ description?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; /** Whether this resource is active and retrievable */ @@ -5581,7 +5609,7 @@ export interface PlatformAgentResourceChunkInput { chunkIndex?: number; createdAt?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; metadata?: Record; @@ -5600,7 +5628,7 @@ export interface PlatformAgentResourceInput { /** Brief description of this resource */ description?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; /** Whether this resource is active and retrievable */ @@ -6992,6 +7020,8 @@ export interface AgentResourceFilter { description?: StringTrgmFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -7020,6 +7050,8 @@ export interface AgentResourceFilter { trgmBody?: TrgmSearchInput; /** TRGM search on the `description` column. */ trgmDescription?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `kind` column. */ trgmKind?: TrgmSearchInput; /** TRGM search on the `title` column. */ @@ -7181,6 +7213,8 @@ export interface PlatformAgentResourceFilter { description?: StringTrgmFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -7213,6 +7247,8 @@ export interface PlatformAgentResourceFilter { trgmBody?: TrgmSearchInput; /** TRGM search on the `description` column. */ trgmDescription?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `kind` column. */ trgmKind?: TrgmSearchInput; /** TRGM search on the `title` column. */ diff --git a/sdk/constructive-sdk/src/agent/orm/query-builder.ts b/sdk/constructive-sdk/src/agent/orm/query-builder.ts index fd785bbae6..d6c981907f 100644 --- a/sdk/constructive-sdk/src/agent/orm/query-builder.ts +++ b/sdk/constructive-sdk/src/agent/orm/query-builder.ts @@ -140,9 +140,7 @@ export function buildSelections( ); const nestedSelect = nested.select; if (nestedSelect && typeof nestedSelect === 'object') { - const subSelections = Object.entries(nestedSelect) - .filter(([, v]) => v) - .map(([name]) => t.field({ name })); + const subSelections = buildSelections(nestedSelect, connectionFieldsMap); fields.push( t.field({ name: key, diff --git a/sdk/constructive-sdk/src/agent/orm/select-types.ts b/sdk/constructive-sdk/src/agent/orm/select-types.ts index 4b39d7e820..783c4603df 100644 --- a/sdk/constructive-sdk/src/agent/orm/select-types.ts +++ b/sdk/constructive-sdk/src/agent/orm/select-types.ts @@ -159,9 +159,13 @@ export type InferSelectResult = TSelect extends undefined ? K extends keyof TEntity ? NonNullable extends ConnectionResult ? ConnectionResult> - : - | InferSelectResult, NestedSelect> - | (null extends TEntity[K] ? null : never) + : NonNullable extends readonly (infer Item)[] + ? + | InferSelectResult, NestedSelect>[] + | (null extends TEntity[K] ? null : never) + : + | InferSelectResult, NestedSelect> + | (null extends TEntity[K] ? null : never) : never : K extends keyof TEntity ? TEntity[K] diff --git a/sdk/constructive-sdk/src/api/README.md b/sdk/constructive-sdk/src/api/README.md index bb5f974e11..27541d5f3e 100644 --- a/sdk/constructive-sdk/src/api/README.md +++ b/sdk/constructive-sdk/src/api/README.md @@ -8,8 +8,8 @@ ## Overview -- **Tables:** 90 -- **Custom queries:** 18 +- **Tables:** 91 +- **Custom queries:** 14 - **Custom mutations:** 31 **Generators:** ORM diff --git a/sdk/constructive-sdk/src/api/orm/README.md b/sdk/constructive-sdk/src/api/orm/README.md index 02e465c85e..7b224670e8 100644 --- a/sdk/constructive-sdk/src/api/orm/README.md +++ b/sdk/constructive-sdk/src/api/orm/README.md @@ -24,7 +24,7 @@ const db = createClient({ | `api` | findMany, findOne, create, update, delete | | `apiSchema` | findMany, findOne, create, update, delete | | `apiSetting` | findMany, findOne, create, update, delete | -| `astMigration` | findMany, findOne, create, update, delete | +| `astMigration` | findMany, findOne, update, delete | | `checkConstraint` | findMany, findOne, create, update, delete | | `compositeType` | findMany, findOne, create, update, delete | | `corsSetting` | findMany, findOne, create, update, delete | @@ -49,10 +49,10 @@ const db = createClient({ | `foreignKeyConstraint` | findMany, findOne, create, update, delete | | `fullTextSearch` | findMany, findOne, create, update, delete | | `function` | findMany, findOne, create, update, delete | -| `getSitePreviewsRecord` | findMany, findOne, create, update, delete | +| `getSitePreviewsRecord` | findMany, findOne, update, delete | | `identityProviderRegistry` | findMany, findOne, create, update, delete | | `index` | findMany, findOne, create, update, delete | -| `listSuspendedDatabasesRecord` | findMany, findOne, create, update, delete | +| `listSuspendedDatabasesRecord` | findMany, findOne, update, delete | | `managedDomain` | findMany, findOne, create, update, delete | | `nodeTypeRegistry` | findMany, findOne, create, update, delete | | `page` | findMany, findOne, create, update, delete | @@ -67,9 +67,10 @@ const db = createClient({ | `platformEmailIdentity` | findMany, findOne, create, update, delete | | `platformEmailProviderAccount` | findMany, findOne, create, update, delete | | `platformEmailSiteIdentity` | findMany, findOne, create, update, delete | -| `platformGetSitePreviewsRecord` | findMany, findOne, create, update, delete | +| `platformGetSitePreviewsRecord` | findMany, findOne, update, delete | | `platformManagedDomain` | findMany, findOne, create, update, delete | | `platformPage` | findMany, findOne, create, update, delete | +| `platformReservedSubdomain` | findMany, findOne, create, update, delete | | `platformSiteAppLink` | findMany, findOne, create, update, delete | | `platformSite` | findMany, findOne, create, update, delete | | `platformSiteDeepLink` | findMany, findOne, create, update, delete | @@ -97,7 +98,7 @@ const db = createClient({ | `siteTheme` | findMany, findOne, create, update, delete | | `siteWebConfig` | findMany, findOne, create, update, delete | | `spatialRelation` | findMany, findOne, create, update, delete | -| `sqlAction` | findMany, findOne, create, update, delete | +| `sqlAction` | findMany, findOne, update, delete | | `tableBehavior` | findMany, findOne, create, update, delete | | `table` | findMany, findOne, create, update, delete | | `tableGrant` | findMany, findOne, create, update, delete | @@ -126,24 +127,24 @@ CRUD operations for Api records. | `config` | JSON | Yes | | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | -| `dbname` | String | Yes | | `id` | UUID | No | | `isPublished` | Boolean | Yes | | `name` | String | Yes | | `roleName` | String | Yes | +| `serviceHostname` | String | No | | `updatedAt` | Datetime | No | **Operations:** ```typescript // List all api records -const items = await db.api.findMany({ select: { anonRole: true, config: true, createdAt: true, databaseId: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }).execute(); +const items = await db.api.findMany({ select: { anonRole: true, config: true, createdAt: true, databaseId: true, id: true, isPublished: true, name: true, roleName: true, serviceHostname: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.api.findOne({ id: '', select: { anonRole: true, config: true, createdAt: true, databaseId: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }).execute(); +const item = await db.api.findOne({ id: '', select: { anonRole: true, config: true, createdAt: true, databaseId: true, id: true, isPublished: true, name: true, roleName: true, serviceHostname: true, updatedAt: true } }).execute(); // Create -const created = await db.api.create({ data: { anonRole: '', config: '', databaseId: '', dbname: '', isPublished: '', name: '', roleName: '' }, select: { id: true } }).execute(); +const created = await db.api.create({ data: { anonRole: '', config: '', databaseId: '', isPublished: '', name: '', roleName: '' }, select: { id: true } }).execute(); // Update const updated = await db.api.update({ where: { id: '' }, data: { anonRole: '' }, select: { id: true } }).execute(); @@ -200,7 +201,6 @@ CRUD operations for ApiSetting records. | `enableAggregates` | Boolean | Yes | | `enableBulk` | Boolean | Yes | | `enableConnectionFilter` | Boolean | Yes | -| `enableDirectUploads` | Boolean | Yes | | `enableI18N` | Boolean | Yes | | `enableIntrospection` | Boolean | Yes | | `enableLlm` | Boolean | Yes | @@ -229,13 +229,13 @@ CRUD operations for ApiSetting records. ```typescript // List all apiSetting records -const items = await db.apiSetting.findMany({ select: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); +const items = await db.apiSetting.findMany({ select: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.apiSetting.findOne({ id: '', select: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); +const item = await db.apiSetting.findOne({ id: '', select: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); // Create -const created = await db.apiSetting.create({ data: { apiId: '', databaseId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute(); +const created = await db.apiSetting.create({ data: { apiId: '', databaseId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute(); // Update const updated = await db.apiSetting.update({ where: { id: '' }, data: { apiId: '' }, select: { id: true } }).execute(); @@ -275,9 +275,6 @@ const items = await db.astMigration.findMany({ select: { actionId: true, actionN // Get one by id const item = await db.astMigration.findOne({ id: '', select: { actionId: true, actionName: true, actorId: true, createdAt: true, databaseId: true, deploy: true, deploys: true, id: true, name: true, payload: true, requires: true, revert: true, verify: true } }).execute(); -// Create -const created = await db.astMigration.create({ data: { actionId: '', actionName: '', actorId: '', databaseId: '', deploy: '', deploys: '', name: '', payload: '', requires: '', revert: '', verify: '' }, select: { id: true } }).execute(); - // Update const updated = await db.astMigration.update({ where: { id: '' }, data: { actionId: '' }, select: { id: true } }).execute(); @@ -414,8 +411,8 @@ CRUD operations for Database records. | `name` | String | Yes | | `ownerId` | UUID | Yes | | `platform` | Boolean | Yes | -| `suspendedAt` | Datetime | Yes | -| `suspendedReason` | String | Yes | +| `suspendedAt` | Datetime | No | +| `suspendedReason` | String | No | | `updatedAt` | Datetime | No | **Operations:** @@ -428,7 +425,7 @@ const items = await db.database.findMany({ select: { createdAt: true, hash: true const item = await db.database.findOne({ id: '', select: { createdAt: true, hash: true, id: true, label: true, name: true, ownerId: true, platform: true, suspendedAt: true, suspendedReason: true, updatedAt: true } }).execute(); // Create -const created = await db.database.create({ data: { hash: '', label: '', name: '', ownerId: '', platform: '', suspendedAt: '', suspendedReason: '' }, select: { id: true } }).execute(); +const created = await db.database.create({ data: { hash: '', label: '', name: '', ownerId: '', platform: '' }, select: { id: true } }).execute(); // Update const updated = await db.database.update({ where: { id: '' }, data: { hash: '' }, select: { id: true } }).execute(); @@ -453,7 +450,6 @@ CRUD operations for DatabaseSetting records. | `enableBilling` | Boolean | Yes | | `enableBulk` | Boolean | Yes | | `enableConnectionFilter` | Boolean | Yes | -| `enableDirectUploads` | Boolean | Yes | | `enableI18N` | Boolean | Yes | | `enableIntrospection` | Boolean | Yes | | `enableLlm` | Boolean | Yes | @@ -483,13 +479,13 @@ CRUD operations for DatabaseSetting records. ```typescript // List all databaseSetting records -const items = await db.databaseSetting.findMany({ select: { annotations: true, createdAt: true, creditsPerCent: true, databaseId: true, enableAggregates: true, enableBilling: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, labels: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); +const items = await db.databaseSetting.findMany({ select: { annotations: true, createdAt: true, creditsPerCent: true, databaseId: true, enableAggregates: true, enableBilling: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, labels: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.databaseSetting.findOne({ id: '', select: { annotations: true, createdAt: true, creditsPerCent: true, databaseId: true, enableAggregates: true, enableBilling: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, labels: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); +const item = await db.databaseSetting.findOne({ id: '', select: { annotations: true, createdAt: true, creditsPerCent: true, databaseId: true, enableAggregates: true, enableBilling: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, labels: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); // Create -const created = await db.databaseSetting.create({ data: { annotations: '', creditsPerCent: '', databaseId: '', enableAggregates: '', enableBilling: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', labels: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute(); +const created = await db.databaseSetting.create({ data: { annotations: '', creditsPerCent: '', databaseId: '', enableAggregates: '', enableBilling: '', enableBulk: '', enableConnectionFilter: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', labels: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute(); // Update const updated = await db.databaseSetting.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -1307,9 +1303,6 @@ const items = await db.getSitePreviewsRecord.findMany({ select: { commitId: true // Get one by id const item = await db.getSitePreviewsRecord.findOne({ id: '', select: { commitId: true, name: true } }).execute(); -// Create -const created = await db.getSitePreviewsRecord.create({ data: { commitId: '', name: '' }, select: { id: true } }).execute(); - // Update const updated = await db.getSitePreviewsRecord.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); @@ -1422,9 +1415,6 @@ const items = await db.listSuspendedDatabasesRecord.findMany({ select: { id: tru // Get one by id const item = await db.listSuspendedDatabasesRecord.findOne({ id: '', select: { id: true, name: true, ownerId: true, suspendedAt: true, suspendedReason: true } }).execute(); -// Create -const created = await db.listSuspendedDatabasesRecord.create({ data: { name: '', ownerId: '', suspendedAt: '', suspendedReason: '' }, select: { id: true } }).execute(); - // Update const updated = await db.listSuspendedDatabasesRecord.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); @@ -1601,24 +1591,24 @@ CRUD operations for PlatformApi records. | `anonRole` | String | Yes | | `config` | JSON | Yes | | `createdAt` | Datetime | No | -| `dbname` | String | Yes | | `id` | UUID | No | | `isPublished` | Boolean | Yes | | `name` | String | Yes | | `roleName` | String | Yes | +| `serviceHostname` | String | No | | `updatedAt` | Datetime | No | **Operations:** ```typescript // List all platformApi records -const items = await db.platformApi.findMany({ select: { anonRole: true, config: true, createdAt: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }).execute(); +const items = await db.platformApi.findMany({ select: { anonRole: true, config: true, createdAt: true, id: true, isPublished: true, name: true, roleName: true, serviceHostname: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.platformApi.findOne({ id: '', select: { anonRole: true, config: true, createdAt: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }).execute(); +const item = await db.platformApi.findOne({ id: '', select: { anonRole: true, config: true, createdAt: true, id: true, isPublished: true, name: true, roleName: true, serviceHostname: true, updatedAt: true } }).execute(); // Create -const created = await db.platformApi.create({ data: { anonRole: '', config: '', dbname: '', isPublished: '', name: '', roleName: '' }, select: { id: true } }).execute(); +const created = await db.platformApi.create({ data: { anonRole: '', config: '', isPublished: '', name: '', roleName: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformApi.update({ where: { id: '' }, data: { anonRole: '' }, select: { id: true } }).execute(); @@ -1673,7 +1663,6 @@ CRUD operations for PlatformApiSetting records. | `enableAggregates` | Boolean | Yes | | `enableBulk` | Boolean | Yes | | `enableConnectionFilter` | Boolean | Yes | -| `enableDirectUploads` | Boolean | Yes | | `enableI18N` | Boolean | Yes | | `enableIntrospection` | Boolean | Yes | | `enableLlm` | Boolean | Yes | @@ -1702,13 +1691,13 @@ CRUD operations for PlatformApiSetting records. ```typescript // List all platformApiSetting records -const items = await db.platformApiSetting.findMany({ select: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); +const items = await db.platformApiSetting.findMany({ select: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.platformApiSetting.findOne({ id: '', select: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); +const item = await db.platformApiSetting.findOne({ id: '', select: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); // Create -const created = await db.platformApiSetting.create({ data: { apiId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute(); +const created = await db.platformApiSetting.create({ data: { apiId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformApiSetting.update({ where: { id: '' }, data: { apiId: '' }, select: { id: true } }).execute(); @@ -2010,9 +1999,6 @@ const items = await db.platformGetSitePreviewsRecord.findMany({ select: { commit // Get one by id const item = await db.platformGetSitePreviewsRecord.findOne({ id: '', select: { commitId: true, name: true } }).execute(); -// Create -const created = await db.platformGetSitePreviewsRecord.create({ data: { commitId: '', name: '' }, select: { id: true } }).execute(); - // Update const updated = await db.platformGetSitePreviewsRecord.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); @@ -2100,6 +2086,42 @@ const updated = await db.platformPage.update({ where: { id: '' }, data: { const deleted = await db.platformPage.delete({ where: { id: '' } }).execute(); ``` +### `db.platformReservedSubdomain` + +CRUD operations for PlatformReservedSubdomain records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | +| `id` | UUID | No | +| `label` | String | Yes | +| `match` | String | Yes | +| `reason` | String | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformReservedSubdomain records +const items = await db.platformReservedSubdomain.findMany({ select: { createdAt: true, createdByPrincipal: true, id: true, label: true, match: true, reason: true, updatedAt: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.platformReservedSubdomain.findOne({ id: '', select: { createdAt: true, createdByPrincipal: true, id: true, label: true, match: true, reason: true, updatedAt: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.platformReservedSubdomain.create({ data: { createdByPrincipal: '', label: '', match: '', reason: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformReservedSubdomain.update({ where: { id: '' }, data: { createdByPrincipal: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformReservedSubdomain.delete({ where: { id: '' } }).execute(); +``` + ### `db.platformSiteAppLink` CRUD operations for PlatformSiteAppLink records. @@ -2258,14 +2280,22 @@ CRUD operations for PlatformSiteMetadatum records. | Field | Type | Editable | |-------|------|----------| | `appleTouchIcon` | ConstructiveInternalTypeImage | Yes | +| `appleTouchIconUrl` | String | No | +| `appleTouchIconVersions` | FileVersion | No | | `canonicalUrl` | String | Yes | | `commitId` | UUID | Yes | | `createdAt` | Datetime | No | | `description` | String | Yes | | `favicon` | ConstructiveInternalTypeImage | Yes | +| `faviconUrl` | String | No | +| `faviconVersions` | FileVersion | No | | `id` | UUID | No | | `logo` | ConstructiveInternalTypeImage | Yes | +| `logoUrl` | String | No | +| `logoVersions` | FileVersion | No | | `ogImage` | ConstructiveInternalTypeImage | Yes | +| `ogImageUrl` | String | No | +| `ogImageVersions` | FileVersion | No | | `robots` | String | Yes | | `robotsSeededFrom` | JSON | Yes | | `siteId` | UUID | Yes | @@ -2926,15 +2956,23 @@ CRUD operations for SiteMetadatum records. | Field | Type | Editable | |-------|------|----------| | `appleTouchIcon` | ConstructiveInternalTypeImage | Yes | +| `appleTouchIconUrl` | String | No | +| `appleTouchIconVersions` | FileVersion | No | | `canonicalUrl` | String | Yes | | `commitId` | UUID | Yes | | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | | `description` | String | Yes | | `favicon` | ConstructiveInternalTypeImage | Yes | +| `faviconUrl` | String | No | +| `faviconVersions` | FileVersion | No | | `id` | UUID | No | | `logo` | ConstructiveInternalTypeImage | Yes | +| `logoUrl` | String | No | +| `logoVersions` | FileVersion | No | | `ogImage` | ConstructiveInternalTypeImage | Yes | +| `ogImageUrl` | String | No | +| `ogImageVersions` | FileVersion | No | | `robots` | String | Yes | | `robotsSeededFrom` | JSON | Yes | | `siteId` | UUID | Yes | @@ -3181,9 +3219,6 @@ const items = await db.sqlAction.findMany({ select: { actionId: true, actionName // Get one by id const item = await db.sqlAction.findOne({ id: '', select: { actionId: true, actionName: true, actorId: true, content: true, createdAt: true, databaseId: true, deploy: true, deps: true, id: true, name: true, payload: true, revert: true, verify: true } }).execute(); -// Create -const created = await db.sqlAction.create({ data: { actionId: '', actionName: '', actorId: '', content: '', databaseId: '', deploy: '', deps: '', name: '', payload: '', revert: '', verify: '' }, select: { id: true } }).execute(); - // Update const updated = await db.sqlAction.update({ where: { id: '' }, data: { actionId: '' }, select: { id: true } }).execute(); @@ -3706,21 +3741,6 @@ const deleted = await db.webauthnSetting.delete({ where: { id: '' } }).exe ## Custom Operations -### `db.query.apiSchemaNames` - -apiSchemaNames - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `targetApiId` | UUID | - -```typescript -const result = await db.query.apiSchemaNames({ targetApiId: '' }).execute(); -``` - ### `db.query.applyRegistryDefaults` applyRegistryDefaults @@ -3891,54 +3911,6 @@ platformVerifySitePreviewToken const result = await db.query.platformVerifySitePreviewToken({ siteId: '', token: '' }).execute(); ``` -### `db.query.resolveDeepLink` - -resolveDeepLink - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `linkSlug` | String | - | `targetSiteId` | UUID | - -```typescript -const result = await db.query.resolveDeepLink({ linkSlug: '', targetSiteId: '' }).execute(); -``` - -### `db.query.resolveRoute` - -resolveRoute - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `requestHost` | String | - | `requestMethod` | String | - | `requestPath` | String | - -```typescript -const result = await db.query.resolveRoute({ requestHost: '', requestMethod: '', requestPath: '' }).execute(); -``` - -### `db.query.resolveSiteAppLinks` - -resolveSiteAppLinks - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `targetSiteId` | UUID | - -```typescript -const result = await db.query.resolveSiteAppLinks({ targetSiteId: '' }).execute(); -``` - ### `db.query.sitesDeepLinkUrl` sitesDeepLinkUrl diff --git a/sdk/constructive-sdk/src/api/orm/index.ts b/sdk/constructive-sdk/src/api/orm/index.ts index 038b8785ac..eb190bc93d 100644 --- a/sdk/constructive-sdk/src/api/orm/index.ts +++ b/sdk/constructive-sdk/src/api/orm/index.ts @@ -54,6 +54,7 @@ import { PlatformEmailSiteIdentityModel } from './models/platformEmailSiteIdenti import { PlatformGetSitePreviewsRecordModel } from './models/platformGetSitePreviewsRecord'; import { PlatformManagedDomainModel } from './models/platformManagedDomain'; import { PlatformPageModel } from './models/platformPage'; +import { PlatformReservedSubdomainModel } from './models/platformReservedSubdomain'; import { PlatformSiteAppLinkModel } from './models/platformSiteAppLink'; import { PlatformSiteModel } from './models/platformSite'; import { PlatformSiteDeepLinkModel } from './models/platformSiteDeepLink'; @@ -179,6 +180,7 @@ export function createClient(config: OrmClientConfig) { platformGetSitePreviewsRecord: new PlatformGetSitePreviewsRecordModel(client), platformManagedDomain: new PlatformManagedDomainModel(client), platformPage: new PlatformPageModel(client), + platformReservedSubdomain: new PlatformReservedSubdomainModel(client), platformSiteAppLink: new PlatformSiteAppLinkModel(client), platformSite: new PlatformSiteModel(client), platformSiteDeepLink: new PlatformSiteDeepLinkModel(client), diff --git a/sdk/constructive-sdk/src/api/orm/input-types.ts b/sdk/constructive-sdk/src/api/orm/input-types.ts index f4e5da7908..3484199372 100644 --- a/sdk/constructive-sdk/src/api/orm/input-types.ts +++ b/sdk/constructive-sdk/src/api/orm/input-types.ts @@ -245,8 +245,6 @@ export interface Api { createdAt?: string | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; - /** Database this API surface serves */ - dbname?: string | null; id: string; /** Whether other scopes may see and route to this API surface */ isPublished?: boolean | null; @@ -254,6 +252,7 @@ export interface Api { name?: string | null; /** Authenticated role the API executes as */ roleName?: string | null; + serviceHostname?: string | null; updatedAt?: string | null; } /** Join table linking API surfaces to the metaschema schemas they expose */ @@ -281,8 +280,6 @@ export interface ApiSetting { enableBulk?: boolean | null; /** Override: enable connection filter (NULL = inherit from database_settings) */ enableConnectionFilter?: boolean | null; - /** Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) */ - enableDirectUploads?: boolean | null; /** Override: enable internationalization plugin (NULL = inherit from database_settings) */ enableI18N?: boolean | null; /** Override: enable GraphQL schema introspection queries (NULL = inherit from database_settings) */ @@ -412,8 +409,6 @@ export interface DatabaseSetting { enableBulk?: boolean | null; /** Enable connection filter (where argument) in the GraphQL API */ enableConnectionFilter?: boolean | null; - /** Enable direct (multipart) file upload mutations in the GraphQL API */ - enableDirectUploads?: boolean | null; /** Enable internationalization plugin (localeStrings field, translation table discovery) in the GraphQL API */ enableI18N?: boolean | null; /** Enable GraphQL schema introspection queries in the GraphQL API. A tenant may only ever lower a bound, so the stored default is the permissive end: turning introspection off is the opt-in. */ @@ -945,8 +940,6 @@ export interface PlatformApi { /** Module-specific configuration for this API surface */ config?: Record | null; createdAt?: string | null; - /** Database this API surface serves */ - dbname?: string | null; id: string; /** Whether other scopes may see and route to this API surface */ isPublished?: boolean | null; @@ -954,6 +947,7 @@ export interface PlatformApi { name?: string | null; /** Authenticated role the API executes as */ roleName?: string | null; + serviceHostname?: string | null; updatedAt?: string | null; } /** Join table linking API surfaces to the metaschema schemas they expose */ @@ -977,8 +971,6 @@ export interface PlatformApiSetting { enableBulk?: boolean | null; /** Override: enable connection filter (NULL = inherit from database_settings) */ enableConnectionFilter?: boolean | null; - /** Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) */ - enableDirectUploads?: boolean | null; /** Override: enable internationalization plugin (NULL = inherit from database_settings) */ enableI18N?: boolean | null; /** Override: enable GraphQL schema introspection queries (NULL = inherit from database_settings) */ @@ -1229,6 +1221,20 @@ export interface PlatformPage { /** Timestamp of last modification */ updatedAt?: string | null; } +/** Subdomain labels no tenant may claim under a platform apex */ +export interface PlatformReservedSubdomain { + createdAt?: string | null; + createdByPrincipal?: string | null; + id: string; + /** Lowercase subdomain label, or the label prefix/suffix the match names */ + label?: string | null; + /** How the label matches a claimed label: exact, prefix or suffix */ + match?: string | null; + /** Why the label is reserved (free text, e.g. platform, brand, lookalike) */ + reason?: string | null; + updatedAt?: string | null; + updatedByPrincipal?: string | null; +} /** Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) */ export interface PlatformSiteAppLink { /** App-owned store identity this association serves (app_store_identities row in this scope's app plane; the association carries no store facts of its own) */ @@ -1305,6 +1311,10 @@ export interface PlatformSiteErrorPage { export interface PlatformSiteMetadatum { /** Apple touch icon image (home-screen bookmark) */ appleTouchIcon?: ConstructiveInternalTypeImage | null; + /** URL to fetch `appleTouchIcon`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + appleTouchIconUrl?: string | null; + /** The versions rendered beside `appleTouchIcon`, narrowest first, each with a URL. Empty when there are none. */ + appleTouchIconVersions?: FileVersion[] | null; /** Canonical URL emitted in for this site */ canonicalUrl?: string | null; /** Infra store commit for the current content (stamped by the versioned trigger on every write) */ @@ -1314,11 +1324,23 @@ export interface PlatformSiteMetadatum { description?: string | null; /** Site favicon image */ favicon?: ConstructiveInternalTypeImage | null; + /** URL to fetch `favicon`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + faviconUrl?: string | null; + /** The versions rendered beside `favicon`, narrowest first, each with a URL. Empty when there are none. */ + faviconVersions?: FileVersion[] | null; id: string; /** Primary site logo image */ logo?: ConstructiveInternalTypeImage | null; + /** URL to fetch `logo`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + logoUrl?: string | null; + /** The versions rendered beside `logo`, narrowest first, each with a URL. Empty when there are none. */ + logoVersions?: FileVersion[] | null; /** Open Graph image used when sharing site links */ ogImage?: ConstructiveInternalTypeImage | null; + /** URL to fetch `ogImage`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + ogImageUrl?: string | null; + /** The versions rendered beside `ogImage`, narrowest first, each with a URL. Empty when there are none. */ + ogImageVersions?: FileVersion[] | null; /** robots meta directive (e.g. index,follow / noindex,nofollow) */ robots?: string | null; /** Provenance of the robots value: the content preset (kind, slug, catalog commit_id) an install applied, or NULL when it was authored directly */ @@ -1645,6 +1667,10 @@ export interface SiteErrorPage { export interface SiteMetadatum { /** Apple touch icon image (home-screen bookmark) */ appleTouchIcon?: ConstructiveInternalTypeImage | null; + /** URL to fetch `appleTouchIcon`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + appleTouchIconUrl?: string | null; + /** The versions rendered beside `appleTouchIcon`, narrowest first, each with a URL. Empty when there are none. */ + appleTouchIconVersions?: FileVersion[] | null; /** Canonical URL emitted in for this site */ canonicalUrl?: string | null; /** Infra store commit for the current content (stamped by the versioned trigger on every write) */ @@ -1656,11 +1682,23 @@ export interface SiteMetadatum { description?: string | null; /** Site favicon image */ favicon?: ConstructiveInternalTypeImage | null; + /** URL to fetch `favicon`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + faviconUrl?: string | null; + /** The versions rendered beside `favicon`, narrowest first, each with a URL. Empty when there are none. */ + faviconVersions?: FileVersion[] | null; id: string; /** Primary site logo image */ logo?: ConstructiveInternalTypeImage | null; + /** URL to fetch `logo`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + logoUrl?: string | null; + /** The versions rendered beside `logo`, narrowest first, each with a URL. Empty when there are none. */ + logoVersions?: FileVersion[] | null; /** Open Graph image used when sharing site links */ ogImage?: ConstructiveInternalTypeImage | null; + /** URL to fetch `ogImage`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + ogImageUrl?: string | null; + /** The versions rendered beside `ogImage`, narrowest first, each with a URL. Empty when there are none. */ + ogImageVersions?: FileVersion[] | null; /** robots meta directive (e.g. index,follow / noindex,nofollow) */ robots?: string | null; /** Provenance of the robots value: the content preset (kind, slug, catalog commit_id) an install applied, or NULL when it was authored directly */ @@ -2203,6 +2241,7 @@ export interface PlatformManagedDomainRelations { export interface PlatformPageRelations { site?: PlatformSite | null; } +export interface PlatformReservedSubdomainRelations {} export interface PlatformSiteAppLinkRelations { site?: PlatformSite | null; } @@ -2490,6 +2529,8 @@ export type PlatformGetSitePreviewsRecordWithRelations = PlatformGetSitePreviews export type PlatformManagedDomainWithRelations = PlatformManagedDomain & PlatformManagedDomainRelations; export type PlatformPageWithRelations = PlatformPage & PlatformPageRelations; +export type PlatformReservedSubdomainWithRelations = PlatformReservedSubdomain & + PlatformReservedSubdomainRelations; export type PlatformSiteAppLinkWithRelations = PlatformSiteAppLink & PlatformSiteAppLinkRelations; export type PlatformSiteWithRelations = PlatformSite & PlatformSiteRelations; export type PlatformSiteDeepLinkWithRelations = PlatformSiteDeepLink & @@ -2543,11 +2584,11 @@ export type ApiSelect = { config?: boolean; createdAt?: boolean; databaseId?: boolean; - dbname?: boolean; id?: boolean; isPublished?: boolean; name?: boolean; roleName?: boolean; + serviceHostname?: boolean; updatedAt?: boolean; apiSetting?: { select: ApiSettingSelect; @@ -2586,7 +2627,6 @@ export type ApiSettingSelect = { enableAggregates?: boolean; enableBulk?: boolean; enableConnectionFilter?: boolean; - enableDirectUploads?: boolean; enableI18N?: boolean; enableIntrospection?: boolean; enableLlm?: boolean; @@ -2905,7 +2945,6 @@ export type DatabaseSettingSelect = { enableBilling?: boolean; enableBulk?: boolean; enableConnectionFilter?: boolean; - enableDirectUploads?: boolean; enableI18N?: boolean; enableIntrospection?: boolean; enableLlm?: boolean; @@ -3547,11 +3586,11 @@ export type PlatformApiSelect = { anonRole?: boolean; config?: boolean; createdAt?: boolean; - dbname?: boolean; id?: boolean; isPublished?: boolean; name?: boolean; roleName?: boolean; + serviceHostname?: boolean; updatedAt?: boolean; platformApiSettingByApiId?: { select: PlatformApiSettingSelect; @@ -3585,7 +3624,6 @@ export type PlatformApiSettingSelect = { enableAggregates?: boolean; enableBulk?: boolean; enableConnectionFilter?: boolean; - enableDirectUploads?: boolean; enableI18N?: boolean; enableIntrospection?: boolean; enableLlm?: boolean; @@ -3802,6 +3840,16 @@ export type PlatformPageSelect = { select: PlatformSiteSelect; }; }; +export type PlatformReservedSubdomainSelect = { + createdAt?: boolean; + createdByPrincipal?: boolean; + id?: boolean; + label?: boolean; + match?: boolean; + reason?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; +}; export type PlatformSiteAppLinkSelect = { appStoreIdentityId?: boolean; createdAt?: boolean; @@ -3906,14 +3954,50 @@ export type PlatformSiteErrorPageSelect = { }; export type PlatformSiteMetadatumSelect = { appleTouchIcon?: boolean; + appleTouchIconUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + appleTouchIconVersions?: { + select: FileVersionSelect; + }; canonicalUrl?: boolean; commitId?: boolean; createdAt?: boolean; description?: boolean; favicon?: boolean; + faviconUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + faviconVersions?: { + select: FileVersionSelect; + }; id?: boolean; logo?: boolean; + logoUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + logoVersions?: { + select: FileVersionSelect; + }; ogImage?: boolean; + ogImageUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + ogImageVersions?: { + select: FileVersionSelect; + }; robots?: boolean; robotsSeededFrom?: boolean; siteId?: boolean; @@ -4357,15 +4441,51 @@ export type SiteErrorPageSelect = { }; export type SiteMetadatumSelect = { appleTouchIcon?: boolean; + appleTouchIconUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + appleTouchIconVersions?: { + select: FileVersionSelect; + }; canonicalUrl?: boolean; commitId?: boolean; createdAt?: boolean; databaseId?: boolean; description?: boolean; favicon?: boolean; + faviconUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + faviconVersions?: { + select: FileVersionSelect; + }; id?: boolean; logo?: boolean; + logoUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + logoVersions?: { + select: FileVersionSelect; + }; ogImage?: boolean; + ogImageUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + ogImageVersions?: { + select: FileVersionSelect; + }; robots?: boolean; robotsSeededFrom?: boolean; siteId?: boolean; @@ -4949,8 +5069,6 @@ export interface ApiFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `dbname` field. */ - dbname?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isPublished` field. */ @@ -5007,8 +5125,6 @@ export interface ApiSettingFilter { enableBulk?: BooleanFilter; /** Filter by the object’s `enableConnectionFilter` field. */ enableConnectionFilter?: BooleanFilter; - /** Filter by the object’s `enableDirectUploads` field. */ - enableDirectUploads?: BooleanFilter; /** Filter by the object’s `enableI18N` field. */ enableI18N?: BooleanFilter; /** Filter by the object’s `enableIntrospection` field. */ @@ -5373,8 +5489,6 @@ export interface DatabaseSettingFilter { enableBulk?: BooleanFilter; /** Filter by the object’s `enableConnectionFilter` field. */ enableConnectionFilter?: BooleanFilter; - /** Filter by the object’s `enableDirectUploads` field. */ - enableDirectUploads?: BooleanFilter; /** Filter by the object’s `enableI18N` field. */ enableI18N?: BooleanFilter; /** Filter by the object’s `enableIntrospection` field. */ @@ -6478,8 +6592,6 @@ export interface PlatformApiFilter { config?: JSONFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `dbname` field. */ - dbname?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isPublished` field. */ @@ -6544,8 +6656,6 @@ export interface PlatformApiSettingFilter { enableBulk?: BooleanFilter; /** Filter by the object’s `enableConnectionFilter` field. */ enableConnectionFilter?: BooleanFilter; - /** Filter by the object’s `enableDirectUploads` field. */ - enableDirectUploads?: BooleanFilter; /** Filter by the object’s `enableI18N` field. */ enableI18N?: BooleanFilter; /** Filter by the object’s `enableIntrospection` field. */ @@ -6936,6 +7046,30 @@ export interface PlatformPageFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } +export interface PlatformReservedSubdomainFilter { + /** Checks for all expressions in this list. */ + and?: PlatformReservedSubdomainFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Filter by the object’s `match` field. */ + match?: StringFilter; + /** Negates the expression. */ + not?: PlatformReservedSubdomainFilter; + /** Checks for any expressions in this list. */ + or?: PlatformReservedSubdomainFilter[]; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} export interface PlatformSiteAppLinkFilter { /** Checks for all expressions in this list. */ and?: PlatformSiteAppLinkFilter[]; @@ -8650,8 +8784,6 @@ export type ApiOrderBy = | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DBNAME_ASC' - | 'DBNAME_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_PUBLISHED_ASC' @@ -8694,8 +8826,6 @@ export type ApiSettingOrderBy = | 'ENABLE_BULK_DESC' | 'ENABLE_CONNECTION_FILTER_ASC' | 'ENABLE_CONNECTION_FILTER_DESC' - | 'ENABLE_DIRECT_UPLOADS_ASC' - | 'ENABLE_DIRECT_UPLOADS_DESC' | 'ENABLE_I18N_ASC' | 'ENABLE_I18N_DESC' | 'ENABLE_INTROSPECTION_ASC' @@ -8886,8 +9016,6 @@ export type DatabaseSettingOrderBy = | 'ENABLE_BULK_DESC' | 'ENABLE_CONNECTION_FILTER_ASC' | 'ENABLE_CONNECTION_FILTER_DESC' - | 'ENABLE_DIRECT_UPLOADS_ASC' - | 'ENABLE_DIRECT_UPLOADS_DESC' | 'ENABLE_I18N_ASC' | 'ENABLE_I18N_DESC' | 'ENABLE_INTROSPECTION_ASC' @@ -9726,8 +9854,6 @@ export type PlatformApiOrderBy = | 'CONFIG_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'DBNAME_ASC' - | 'DBNAME_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_PUBLISHED_ASC' @@ -9766,8 +9892,6 @@ export type PlatformApiSettingOrderBy = | 'ENABLE_BULK_DESC' | 'ENABLE_CONNECTION_FILTER_ASC' | 'ENABLE_CONNECTION_FILTER_DESC' - | 'ENABLE_DIRECT_UPLOADS_ASC' - | 'ENABLE_DIRECT_UPLOADS_DESC' | 'ENABLE_I18N_ASC' | 'ENABLE_I18N_DESC' | 'ENABLE_INTROSPECTION_ASC' @@ -10063,6 +10187,26 @@ export type PlatformPageOrderBy = | 'STORE_ID_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +export type PlatformReservedSubdomainOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'LABEL_ASC' + | 'LABEL_DESC' + | 'MATCH_ASC' + | 'MATCH_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REASON_ASC' + | 'REASON_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type PlatformSiteAppLinkOrderBy = | 'APP_STORE_IDENTITY_ID_ASC' | 'APP_STORE_IDENTITY_ID_DESC' @@ -11144,7 +11288,6 @@ export interface CreateApiInput { anonRole?: string; config?: Record; databaseId: string; - dbname?: string; isPublished?: boolean; name: string; roleName?: string; @@ -11154,7 +11297,6 @@ export interface ApiPatch { anonRole?: string | null; config?: Record | null; databaseId?: string | null; - dbname?: string | null; isPublished?: boolean | null; name?: string | null; roleName?: string | null; @@ -11198,7 +11340,6 @@ export interface CreateApiSettingInput { enableAggregates?: boolean; enableBulk?: boolean; enableConnectionFilter?: boolean; - enableDirectUploads?: boolean; enableI18N?: boolean; enableIntrospection?: boolean; enableLlm?: boolean; @@ -11228,7 +11369,6 @@ export interface ApiSettingPatch { enableAggregates?: boolean | null; enableBulk?: boolean | null; enableConnectionFilter?: boolean | null; - enableDirectUploads?: boolean | null; enableI18N?: boolean | null; enableIntrospection?: boolean | null; enableLlm?: boolean | null; @@ -11260,22 +11400,6 @@ export interface DeleteApiSettingInput { clientMutationId?: string; id: string; } -export interface CreateAstMigrationInput { - clientMutationId?: string; - astMigration: { - actionId: string; - actionName?: string; - actorId: string; - databaseId: string; - deploy?: Record; - deploys?: string; - name?: string; - payload?: Record; - requires?: string[]; - revert?: Record; - verify?: Record; - }; -} export interface AstMigrationPatch { actionId?: string | null; actionName?: string | null; @@ -11428,7 +11552,6 @@ export interface CreateDatabaseSettingInput { enableBilling?: boolean; enableBulk?: boolean; enableConnectionFilter?: boolean; - enableDirectUploads?: boolean; enableI18N?: boolean; enableIntrospection?: boolean; enableLlm?: boolean; @@ -11461,7 +11584,6 @@ export interface DatabaseSettingPatch { enableBilling?: boolean | null; enableBulk?: boolean | null; enableConnectionFilter?: boolean | null; - enableDirectUploads?: boolean | null; enableI18N?: boolean | null; enableIntrospection?: boolean | null; enableLlm?: boolean | null; @@ -12214,13 +12336,6 @@ export interface DeleteFunctionInput { clientMutationId?: string; id: string; } -export interface CreateGetSitePreviewsRecordInput { - clientMutationId?: string; - getSitePreviewsRecord: { - commitId: string; - name?: string; - }; -} export interface GetSitePreviewsRecordPatch { commitId?: string | null; name?: string | null; @@ -12312,15 +12427,6 @@ export interface DeleteIndexInput { clientMutationId?: string; id: string; } -export interface CreateListSuspendedDatabasesRecordInput { - clientMutationId?: string; - listSuspendedDatabasesRecord: { - name?: string; - ownerId: string; - suspendedAt?: string; - suspendedReason?: string; - }; -} export interface ListSuspendedDatabasesRecordPatch { name?: string | null; ownerId?: string | null; @@ -12479,7 +12585,6 @@ export interface CreatePlatformApiInput { platformApi: { anonRole?: string; config?: Record; - dbname?: string; isPublished?: boolean; name: string; roleName?: string; @@ -12488,7 +12593,6 @@ export interface CreatePlatformApiInput { export interface PlatformApiPatch { anonRole?: string | null; config?: Record | null; - dbname?: string | null; isPublished?: boolean | null; name?: string | null; roleName?: string | null; @@ -12529,7 +12633,6 @@ export interface CreatePlatformApiSettingInput { enableAggregates?: boolean; enableBulk?: boolean; enableConnectionFilter?: boolean; - enableDirectUploads?: boolean; enableI18N?: boolean; enableIntrospection?: boolean; enableLlm?: boolean; @@ -12558,7 +12661,6 @@ export interface PlatformApiSettingPatch { enableAggregates?: boolean | null; enableBulk?: boolean | null; enableConnectionFilter?: boolean | null; - enableDirectUploads?: boolean | null; enableI18N?: boolean | null; enableIntrospection?: boolean | null; enableLlm?: boolean | null; @@ -12814,13 +12916,6 @@ export interface DeletePlatformEmailSiteIdentityInput { clientMutationId?: string; id: string; } -export interface CreatePlatformGetSitePreviewsRecordInput { - clientMutationId?: string; - platformGetSitePreviewsRecord: { - commitId: string; - name?: string; - }; -} export interface PlatformGetSitePreviewsRecordPatch { commitId?: string | null; name?: string | null; @@ -12902,6 +12997,32 @@ export interface DeletePlatformPageInput { clientMutationId?: string; id: string; } +export interface CreatePlatformReservedSubdomainInput { + clientMutationId?: string; + platformReservedSubdomain: { + createdByPrincipal?: string; + label: string; + match?: string; + reason?: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformReservedSubdomainPatch { + createdByPrincipal?: string | null; + label?: string | null; + match?: string | null; + reason?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformReservedSubdomainInput { + clientMutationId?: string; + id: string; + platformReservedSubdomainPatch: PlatformReservedSubdomainPatch; +} +export interface DeletePlatformReservedSubdomainInput { + clientMutationId?: string; + id: string; +} export interface CreatePlatformSiteAppLinkInput { clientMutationId?: string; platformSiteAppLink: { @@ -13035,16 +13156,12 @@ export interface CreatePlatformSiteMetadatumInput { } export interface PlatformSiteMetadatumPatch { appleTouchIcon?: ConstructiveInternalTypeImage | null; - appleTouchIconUpload?: File | null; canonicalUrl?: string | null; commitId?: string | null; description?: string | null; favicon?: ConstructiveInternalTypeImage | null; - faviconUpload?: File | null; logo?: ConstructiveInternalTypeImage | null; - logoUpload?: File | null; ogImage?: ConstructiveInternalTypeImage | null; - ogImageUpload?: File | null; robots?: string | null; robotsSeededFrom?: Record | null; siteId?: string | null; @@ -13594,17 +13711,13 @@ export interface CreateSiteMetadatumInput { } export interface SiteMetadatumPatch { appleTouchIcon?: ConstructiveInternalTypeImage | null; - appleTouchIconUpload?: File | null; canonicalUrl?: string | null; commitId?: string | null; databaseId?: string | null; description?: string | null; favicon?: ConstructiveInternalTypeImage | null; - faviconUpload?: File | null; logo?: ConstructiveInternalTypeImage | null; - logoUpload?: File | null; ogImage?: ConstructiveInternalTypeImage | null; - ogImageUpload?: File | null; robots?: string | null; robotsSeededFrom?: Record | null; siteId?: string | null; @@ -13768,22 +13881,6 @@ export interface DeleteSpatialRelationInput { clientMutationId?: string; id: string; } -export interface CreateSqlActionInput { - clientMutationId?: string; - sqlAction: { - actionId: string; - actionName?: string; - actorId: string; - content?: string; - databaseId: string; - deploy?: string; - deps?: string[]; - name?: string; - payload?: Record; - revert?: string; - verify?: string; - }; -} export interface SqlActionPatch { actionId?: string | null; actionName?: string | null; @@ -15627,8 +15724,6 @@ export interface ApiInput { createdAt?: string; /** Database that owns this resource (database-scoped isolation) */ databaseId: string; - /** Database this API surface serves */ - dbname?: string; id?: string; /** Whether other scopes may see and route to this API surface */ isPublished?: boolean; @@ -15663,8 +15758,6 @@ export interface ApiSettingInput { enableBulk?: boolean; /** Override: enable connection filter (NULL = inherit from database_settings) */ enableConnectionFilter?: boolean; - /** Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) */ - enableDirectUploads?: boolean; /** Override: enable internationalization plugin (NULL = inherit from database_settings) */ enableI18N?: boolean; /** Override: enable GraphQL schema introspection queries (NULL = inherit from database_settings) */ @@ -15780,8 +15873,6 @@ export interface DatabaseSettingInput { enableBulk?: boolean; /** Enable connection filter (where argument) in the GraphQL API */ enableConnectionFilter?: boolean; - /** Enable direct (multipart) file upload mutations in the GraphQL API */ - enableDirectUploads?: boolean; /** Enable internationalization plugin (localeStrings field, translation table discovery) in the GraphQL API */ enableI18N?: boolean; /** Enable GraphQL schema introspection queries in the GraphQL API. A tenant may only ever lower a bound, so the stored default is the permissive end: turning introspection off is the opt-in. */ @@ -16319,8 +16410,6 @@ export interface PlatformApiInput { /** Module-specific configuration for this API surface */ config?: Record; createdAt?: string; - /** Database this API surface serves */ - dbname?: string; id?: string; /** Whether other scopes may see and route to this API surface */ isPublished?: boolean; @@ -16351,8 +16440,6 @@ export interface PlatformApiSettingInput { enableBulk?: boolean; /** Override: enable connection filter (NULL = inherit from database_settings) */ enableConnectionFilter?: boolean; - /** Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) */ - enableDirectUploads?: boolean; /** Override: enable internationalization plugin (NULL = inherit from database_settings) */ enableI18N?: boolean; /** Override: enable GraphQL schema introspection queries (NULL = inherit from database_settings) */ @@ -16599,6 +16686,20 @@ export interface PlatformPageInput { /** Timestamp of last modification */ updatedAt?: string; } +/** An input for mutations affecting `PlatformReservedSubdomain` */ +export interface PlatformReservedSubdomainInput { + createdAt?: string; + createdByPrincipal?: string; + id?: string; + /** Lowercase subdomain label, or the label prefix/suffix the match names */ + label: string; + /** How the label matches a claimed label: exact, prefix or suffix */ + match?: string; + /** Why the label is reserved (free text, e.g. platform, brand, lookalike) */ + reason?: string; + updatedAt?: string; + updatedByPrincipal?: string; +} /** An input for mutations affecting `PlatformSiteAppLink` */ export interface PlatformSiteAppLinkInput { /** App-owned store identity this association serves (app_store_identities row in this scope's app plane; the association carries no store facts of its own) */ @@ -19675,8 +19776,6 @@ export interface ApiFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `dbname` field. */ - dbname?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isPublished` field. */ @@ -20445,8 +20544,6 @@ export interface PlatformApiFilter { config?: JSONFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `dbname` field. */ - dbname?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isPublished` field. */ @@ -20706,8 +20803,6 @@ export interface ApiSettingFilter { enableBulk?: BooleanFilter; /** Filter by the object’s `enableConnectionFilter` field. */ enableConnectionFilter?: BooleanFilter; - /** Filter by the object’s `enableDirectUploads` field. */ - enableDirectUploads?: BooleanFilter; /** Filter by the object’s `enableI18N` field. */ enableI18N?: BooleanFilter; /** Filter by the object’s `enableIntrospection` field. */ @@ -20874,8 +20969,6 @@ export interface PlatformApiSettingFilter { enableBulk?: BooleanFilter; /** Filter by the object’s `enableConnectionFilter` field. */ enableConnectionFilter?: BooleanFilter; - /** Filter by the object’s `enableDirectUploads` field. */ - enableDirectUploads?: BooleanFilter; /** Filter by the object’s `enableI18N` field. */ enableI18N?: BooleanFilter; /** Filter by the object’s `enableIntrospection` field. */ @@ -21069,44 +21162,6 @@ export interface BigIntFilter { notIn?: string[]; } // ============ Payload/Return Types (for custom operations) ============ -export interface ResolveRouteRecord { - domainId?: string | null; - hostname?: string | null; - matchedPath?: string | null; - matchedWildcard?: boolean | null; - method?: string | null; - priority?: number | null; - resolvedConfig?: Record | null; - routeBindingId?: string | null; - servingLane?: string | null; - targetCatalogId?: string | null; - targetModule?: string | null; - targetOwnerKey?: string | null; - targetOwnerScope?: string | null; - targetSourceId?: string | null; - tlsSecretName?: string | null; - tlsStatus?: string | null; - verificationStatus?: string | null; -} -export type ResolveRouteRecordSelect = { - domainId?: boolean; - hostname?: boolean; - matchedPath?: boolean; - matchedWildcard?: boolean; - method?: boolean; - priority?: boolean; - resolvedConfig?: boolean; - routeBindingId?: boolean; - servingLane?: boolean; - targetCatalogId?: boolean; - targetModule?: boolean; - targetOwnerKey?: boolean; - targetOwnerScope?: boolean; - targetSourceId?: boolean; - tlsSecretName?: boolean; - tlsStatus?: boolean; - verificationStatus?: boolean; -}; export interface AcceptDatabaseTransferPayload { clientMutationId?: string | null; result?: boolean | null; @@ -23421,6 +23476,51 @@ export type DeletePlatformPagePayloadSelect = { select: PlatformPageEdgeSelect; }; }; +export interface CreatePlatformReservedSubdomainPayload { + clientMutationId?: string | null; + /** The `PlatformReservedSubdomain` that was created by this mutation. */ + platformReservedSubdomain?: PlatformReservedSubdomain | null; + platformReservedSubdomainEdge?: PlatformReservedSubdomainEdge | null; +} +export type CreatePlatformReservedSubdomainPayloadSelect = { + clientMutationId?: boolean; + platformReservedSubdomain?: { + select: PlatformReservedSubdomainSelect; + }; + platformReservedSubdomainEdge?: { + select: PlatformReservedSubdomainEdgeSelect; + }; +}; +export interface UpdatePlatformReservedSubdomainPayload { + clientMutationId?: string | null; + /** The `PlatformReservedSubdomain` that was updated by this mutation. */ + platformReservedSubdomain?: PlatformReservedSubdomain | null; + platformReservedSubdomainEdge?: PlatformReservedSubdomainEdge | null; +} +export type UpdatePlatformReservedSubdomainPayloadSelect = { + clientMutationId?: boolean; + platformReservedSubdomain?: { + select: PlatformReservedSubdomainSelect; + }; + platformReservedSubdomainEdge?: { + select: PlatformReservedSubdomainEdgeSelect; + }; +}; +export interface DeletePlatformReservedSubdomainPayload { + clientMutationId?: string | null; + /** The `PlatformReservedSubdomain` that was deleted by this mutation. */ + platformReservedSubdomain?: PlatformReservedSubdomain | null; + platformReservedSubdomainEdge?: PlatformReservedSubdomainEdge | null; +} +export type DeletePlatformReservedSubdomainPayloadSelect = { + clientMutationId?: boolean; + platformReservedSubdomain?: { + select: PlatformReservedSubdomainSelect; + }; + platformReservedSubdomainEdge?: { + select: PlatformReservedSubdomainEdgeSelect; + }; +}; export interface CreatePlatformSiteAppLinkPayload { clientMutationId?: string | null; /** The `PlatformSiteAppLink` that was created by this mutation. */ @@ -25221,6 +25321,25 @@ export type DeleteWebauthnSettingPayloadSelect = { select: WebauthnSettingEdgeSelect; }; }; +/** One version rendered beside a file, with a URL to fetch it. */ +export interface FileVersion { + format?: string | null; + height?: number | null; + key: string; + name?: string | null; + size?: number | null; + url: string; + width?: number | null; +} +export type FileVersionSelect = { + format?: boolean; + height?: boolean; + key?: boolean; + name?: boolean; + size?: boolean; + url?: boolean; + width?: boolean; +}; /** A `Function` edge in the connection. */ export interface FunctionEdge { cursor?: string | null; @@ -25929,6 +26048,18 @@ export type PlatformPageEdgeSelect = { select: PlatformPageSelect; }; }; +/** A `PlatformReservedSubdomain` edge in the connection. */ +export interface PlatformReservedSubdomainEdge { + cursor?: string | null; + /** The `PlatformReservedSubdomain` at the end of the edge. */ + node?: PlatformReservedSubdomain | null; +} +export type PlatformReservedSubdomainEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformReservedSubdomainSelect; + }; +}; /** A `PlatformSiteAppLink` edge in the connection. */ export interface PlatformSiteAppLinkEdge { cursor?: string | null; diff --git a/sdk/constructive-sdk/src/api/orm/models/astMigration.ts b/sdk/constructive-sdk/src/api/orm/models/astMigration.ts index bfcc5f455a..ca429d54b2 100644 --- a/sdk/constructive-sdk/src/api/orm/models/astMigration.ts +++ b/sdk/constructive-sdk/src/api/orm/models/astMigration.ts @@ -29,7 +29,6 @@ import type { AstMigrationSelect, AstMigrationFilter, AstMigrationOrderBy, - CreateAstMigrationInput, UpdateAstMigrationInput, AstMigrationPatch, } from '../input-types'; @@ -144,31 +143,4 @@ export class AstMigrationModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAstMigration: { - astMigration: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AstMigration', - 'createAstMigration', - 'astMigration', - args.select, - args.data, - 'CreateAstMigrationInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AstMigration', - fieldName: 'createAstMigration', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/api/orm/models/getSitePreviewsRecord.ts b/sdk/constructive-sdk/src/api/orm/models/getSitePreviewsRecord.ts index dc2c778221..9c58fd8f10 100644 --- a/sdk/constructive-sdk/src/api/orm/models/getSitePreviewsRecord.ts +++ b/sdk/constructive-sdk/src/api/orm/models/getSitePreviewsRecord.ts @@ -29,7 +29,6 @@ import type { GetSitePreviewsRecordSelect, GetSitePreviewsRecordFilter, GetSitePreviewsRecordsOrderBy, - CreateGetSitePreviewsRecordInput, UpdateGetSitePreviewsRecordInput, GetSitePreviewsRecordPatch, } from '../input-types'; @@ -104,31 +103,4 @@ export class GetSitePreviewsRecordModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createGetSitePreviewsRecord: { - getSitePreviewsRecord: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'GetSitePreviewsRecord', - 'createGetSitePreviewsRecord', - 'getSitePreviewsRecord', - args.select, - args.data, - 'CreateGetSitePreviewsRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'GetSitePreviewsRecord', - fieldName: 'createGetSitePreviewsRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/api/orm/models/index.ts b/sdk/constructive-sdk/src/api/orm/models/index.ts index 207f507c84..3cd2ba5b52 100644 --- a/sdk/constructive-sdk/src/api/orm/models/index.ts +++ b/sdk/constructive-sdk/src/api/orm/models/index.ts @@ -52,6 +52,7 @@ export { PlatformEmailSiteIdentityModel } from './platformEmailSiteIdentity'; export { PlatformGetSitePreviewsRecordModel } from './platformGetSitePreviewsRecord'; export { PlatformManagedDomainModel } from './platformManagedDomain'; export { PlatformPageModel } from './platformPage'; +export { PlatformReservedSubdomainModel } from './platformReservedSubdomain'; export { PlatformSiteAppLinkModel } from './platformSiteAppLink'; export { PlatformSiteModel } from './platformSite'; export { PlatformSiteDeepLinkModel } from './platformSiteDeepLink'; diff --git a/sdk/constructive-sdk/src/api/orm/models/listSuspendedDatabasesRecord.ts b/sdk/constructive-sdk/src/api/orm/models/listSuspendedDatabasesRecord.ts index d479aad622..49858b365a 100644 --- a/sdk/constructive-sdk/src/api/orm/models/listSuspendedDatabasesRecord.ts +++ b/sdk/constructive-sdk/src/api/orm/models/listSuspendedDatabasesRecord.ts @@ -29,7 +29,6 @@ import type { ListSuspendedDatabasesRecordSelect, ListSuspendedDatabasesRecordFilter, ListSuspendedDatabasesRecordsOrderBy, - CreateListSuspendedDatabasesRecordInput, UpdateListSuspendedDatabasesRecordInput, ListSuspendedDatabasesRecordPatch, } from '../input-types'; @@ -160,31 +159,4 @@ export class ListSuspendedDatabasesRecordModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createListSuspendedDatabasesRecord: { - listSuspendedDatabasesRecord: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'ListSuspendedDatabasesRecord', - 'createListSuspendedDatabasesRecord', - 'listSuspendedDatabasesRecord', - args.select, - args.data, - 'CreateListSuspendedDatabasesRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'ListSuspendedDatabasesRecord', - fieldName: 'createListSuspendedDatabasesRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/api/orm/models/platformGetSitePreviewsRecord.ts b/sdk/constructive-sdk/src/api/orm/models/platformGetSitePreviewsRecord.ts index b2282eaa16..e037d0890f 100644 --- a/sdk/constructive-sdk/src/api/orm/models/platformGetSitePreviewsRecord.ts +++ b/sdk/constructive-sdk/src/api/orm/models/platformGetSitePreviewsRecord.ts @@ -29,7 +29,6 @@ import type { PlatformGetSitePreviewsRecordSelect, PlatformGetSitePreviewsRecordFilter, PlatformGetSitePreviewsRecordsOrderBy, - CreatePlatformGetSitePreviewsRecordInput, UpdatePlatformGetSitePreviewsRecordInput, PlatformGetSitePreviewsRecordPatch, } from '../input-types'; @@ -117,37 +116,4 @@ export class PlatformGetSitePreviewsRecordModel { }), }); } - create( - args: CreateArgs< - S, - CreatePlatformGetSitePreviewsRecordInput['platformGetSitePreviewsRecord'] - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformGetSitePreviewsRecord: { - platformGetSitePreviewsRecord: InferSelectResult< - PlatformGetSitePreviewsRecordWithRelations, - S - >; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformGetSitePreviewsRecord', - 'createPlatformGetSitePreviewsRecord', - 'platformGetSitePreviewsRecord', - args.select, - args.data, - 'CreatePlatformGetSitePreviewsRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformGetSitePreviewsRecord', - fieldName: 'createPlatformGetSitePreviewsRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/api/orm/models/platformReservedSubdomain.ts b/sdk/constructive-sdk/src/api/orm/models/platformReservedSubdomain.ts new file mode 100644 index 0000000000..ab3f3b97e5 --- /dev/null +++ b/sdk/constructive-sdk/src/api/orm/models/platformReservedSubdomain.ts @@ -0,0 +1,247 @@ +/** + * PlatformReservedSubdomain model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + PlatformReservedSubdomain, + PlatformReservedSubdomainWithRelations, + PlatformReservedSubdomainSelect, + PlatformReservedSubdomainFilter, + PlatformReservedSubdomainOrderBy, + CreatePlatformReservedSubdomainInput, + UpdatePlatformReservedSubdomainInput, + PlatformReservedSubdomainPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformReservedSubdomainModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformReservedSubdomains: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformReservedSubdomain', + 'platformReservedSubdomains', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'PlatformReservedSubdomainFilter', + 'PlatformReservedSubdomainOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformReservedSubdomain', + fieldName: 'platformReservedSubdomains', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformReservedSubdomain: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformReservedSubdomain', + 'platformReservedSubdomains', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformReservedSubdomainFilter', + 'PlatformReservedSubdomainOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformReservedSubdomain', + fieldName: 'platformReservedSubdomain', + document, + variables, + transform: (data: { + platformReservedSubdomains?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformReservedSubdomain: data.platformReservedSubdomains?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformReservedSubdomain: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformReservedSubdomain', + 'platformReservedSubdomains', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformReservedSubdomainFilter', + 'PlatformReservedSubdomainOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformReservedSubdomain', + fieldName: 'platformReservedSubdomain', + document, + variables, + transform: (data: { + platformReservedSubdomains?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformReservedSubdomain: data.platformReservedSubdomains?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformReservedSubdomain: { + platformReservedSubdomain: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformReservedSubdomain', + 'createPlatformReservedSubdomain', + 'platformReservedSubdomain', + args.select, + args.data, + 'CreatePlatformReservedSubdomainInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformReservedSubdomain', + fieldName: 'createPlatformReservedSubdomain', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformReservedSubdomainPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformReservedSubdomain: { + platformReservedSubdomain: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformReservedSubdomain', + 'updatePlatformReservedSubdomain', + 'platformReservedSubdomain', + args.select, + args.where.id, + args.data, + 'UpdatePlatformReservedSubdomainInput', + 'id', + 'platformReservedSubdomainPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformReservedSubdomain', + fieldName: 'updatePlatformReservedSubdomain', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformReservedSubdomain: { + platformReservedSubdomain: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformReservedSubdomain', + 'deletePlatformReservedSubdomain', + 'platformReservedSubdomain', + { + id: args.where.id, + }, + 'DeletePlatformReservedSubdomainInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformReservedSubdomain', + fieldName: 'deletePlatformReservedSubdomain', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/api/orm/models/sqlAction.ts b/sdk/constructive-sdk/src/api/orm/models/sqlAction.ts index 74b4418688..d9b77d8c06 100644 --- a/sdk/constructive-sdk/src/api/orm/models/sqlAction.ts +++ b/sdk/constructive-sdk/src/api/orm/models/sqlAction.ts @@ -29,7 +29,6 @@ import type { SqlActionSelect, SqlActionFilter, SqlActionOrderBy, - CreateSqlActionInput, UpdateSqlActionInput, SqlActionPatch, } from '../input-types'; @@ -144,31 +143,4 @@ export class SqlActionModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createSqlAction: { - sqlAction: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'SqlAction', - 'createSqlAction', - 'sqlAction', - args.select, - args.data, - 'CreateSqlActionInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'SqlAction', - fieldName: 'createSqlAction', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/api/orm/query-builder.ts b/sdk/constructive-sdk/src/api/orm/query-builder.ts index fd785bbae6..d6c981907f 100644 --- a/sdk/constructive-sdk/src/api/orm/query-builder.ts +++ b/sdk/constructive-sdk/src/api/orm/query-builder.ts @@ -140,9 +140,7 @@ export function buildSelections( ); const nestedSelect = nested.select; if (nestedSelect && typeof nestedSelect === 'object') { - const subSelections = Object.entries(nestedSelect) - .filter(([, v]) => v) - .map(([name]) => t.field({ name })); + const subSelections = buildSelections(nestedSelect, connectionFieldsMap); fields.push( t.field({ name: key, diff --git a/sdk/constructive-sdk/src/api/orm/query/index.ts b/sdk/constructive-sdk/src/api/orm/query/index.ts index 12ea7b4e72..cfae605185 100644 --- a/sdk/constructive-sdk/src/api/orm/query/index.ts +++ b/sdk/constructive-sdk/src/api/orm/query/index.ts @@ -6,11 +6,7 @@ import { OrmClient } from '../client'; import { QueryBuilder, buildCustomDocument } from '../query-builder'; import type { InferSelectResult, StrictSelect } from '../select-types'; -import type { ResolveRouteRecord, ResolveRouteRecordSelect } from '../input-types'; import { connectionFieldsMap } from '../input-types'; -export interface ApiSchemaNamesVariables { - targetApiId?: string; -} export interface ApplyRegistryDefaultsVariables { data?: unknown; nodeType?: string; @@ -50,18 +46,6 @@ export interface PlatformVerifySitePreviewTokenVariables { siteId?: string; token?: string; } -export interface ResolveDeepLinkVariables { - linkSlug?: string; - targetSiteId?: string; -} -export interface ResolveRouteVariables { - requestHost?: string; - requestMethod?: string; - requestPath?: string; -} -export interface ResolveSiteAppLinksVariables { - targetSiteId?: string; -} export interface SitesDeepLinkUrlVariables { linkSlug?: string; targetSiteId?: string; @@ -75,35 +59,6 @@ export interface VerifySitePreviewTokenVariables { } export function createQueryOperations(client: OrmClient) { return { - apiSchemaNames: ( - args: ApiSchemaNamesVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - apiSchemaNames: unknown | null; - }>({ - client, - operation: 'query', - operationName: 'ApiSchemaNames', - fieldName: 'apiSchemaNames', - ...buildCustomDocument( - 'query', - 'ApiSchemaNames', - 'apiSchemaNames', - options?.select, - args, - [ - { - name: 'targetApiId', - type: 'UUID', - }, - ], - connectionFieldsMap, - undefined - ), - }), applyRegistryDefaults: ( args: ApplyRegistryDefaultsVariables, options?: { @@ -449,105 +404,6 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), - resolveDeepLink: ( - args: ResolveDeepLinkVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - resolveDeepLink: unknown | null; - }>({ - client, - operation: 'query', - operationName: 'ResolveDeepLink', - fieldName: 'resolveDeepLink', - ...buildCustomDocument( - 'query', - 'ResolveDeepLink', - 'resolveDeepLink', - options?.select, - args, - [ - { - name: 'linkSlug', - type: 'String', - }, - { - name: 'targetSiteId', - type: 'UUID', - }, - ], - connectionFieldsMap, - undefined - ), - }), - resolveRoute: ( - args: ResolveRouteVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - resolveRoute: InferSelectResult | null; - }>({ - client, - operation: 'query', - operationName: 'ResolveRoute', - fieldName: 'resolveRoute', - ...buildCustomDocument( - 'query', - 'ResolveRoute', - 'resolveRoute', - options.select, - args, - [ - { - name: 'requestHost', - type: 'String', - }, - { - name: 'requestMethod', - type: 'String', - }, - { - name: 'requestPath', - type: 'String', - }, - ], - connectionFieldsMap, - 'ResolveRouteRecord' - ), - }), - resolveSiteAppLinks: ( - args: ResolveSiteAppLinksVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - resolveSiteAppLinks: unknown | null; - }>({ - client, - operation: 'query', - operationName: 'ResolveSiteAppLinks', - fieldName: 'resolveSiteAppLinks', - ...buildCustomDocument( - 'query', - 'ResolveSiteAppLinks', - 'resolveSiteAppLinks', - options?.select, - args, - [ - { - name: 'targetSiteId', - type: 'UUID', - }, - ], - connectionFieldsMap, - undefined - ), - }), sitesDeepLinkUrl: ( args: SitesDeepLinkUrlVariables, options?: { diff --git a/sdk/constructive-sdk/src/api/orm/select-types.ts b/sdk/constructive-sdk/src/api/orm/select-types.ts index 4b39d7e820..783c4603df 100644 --- a/sdk/constructive-sdk/src/api/orm/select-types.ts +++ b/sdk/constructive-sdk/src/api/orm/select-types.ts @@ -159,9 +159,13 @@ export type InferSelectResult = TSelect extends undefined ? K extends keyof TEntity ? NonNullable extends ConnectionResult ? ConnectionResult> - : - | InferSelectResult, NestedSelect> - | (null extends TEntity[K] ? null : never) + : NonNullable extends readonly (infer Item)[] + ? + | InferSelectResult, NestedSelect>[] + | (null extends TEntity[K] ? null : never) + : + | InferSelectResult, NestedSelect> + | (null extends TEntity[K] ? null : never) : never : K extends keyof TEntity ? TEntity[K] diff --git a/sdk/constructive-sdk/src/auth/README.md b/sdk/constructive-sdk/src/auth/README.md index 2a8205f6cc..c285ef49ff 100644 --- a/sdk/constructive-sdk/src/auth/README.md +++ b/sdk/constructive-sdk/src/auth/README.md @@ -9,8 +9,8 @@ ## Overview - **Tables:** 15 -- **Custom queries:** 6 -- **Custom mutations:** 55 +- **Custom queries:** 7 +- **Custom mutations:** 59 **Generators:** ORM diff --git a/sdk/constructive-sdk/src/auth/orm/README.md b/sdk/constructive-sdk/src/auth/orm/README.md index 954a86ca4c..198bcd777e 100644 --- a/sdk/constructive-sdk/src/auth/orm/README.md +++ b/sdk/constructive-sdk/src/auth/orm/README.md @@ -24,14 +24,14 @@ const db = createClient({ | `auditLogAuth` | findMany, findOne, create, update, delete | | `cryptoAddress` | findMany, findOne, create, update, delete | | `email` | findMany, findOne, create, update, delete | -| `identityProvider` | findMany, findOne, create, update, delete | -| `orgApiKeyList` | findMany, findOne, create, update, delete | +| `identityProvider` | findMany, findOne, update, delete | +| `orgApiKeyList` | findMany, findOne, update, delete | | `phoneNumber` | findMany, findOne, create, update, delete | -| `principal` | findMany, findOne, create, update, delete | -| `principalEntity` | findMany, findOne, create, update, delete | -| `principalScopeOverride` | findMany, findOne, create, update, delete | +| `principal` | findMany, findOne, update, delete | +| `principalEntity` | findMany, findOne, update, delete | +| `principalScopeOverride` | findMany, findOne, update, delete | | `roleType` | findMany, findOne, create, update, delete | -| `userConnectedAccount` | findMany, findOne, create, update, delete | +| `userConnectedAccount` | findMany, findOne, update, delete | | `user` | findMany, findOne, create, update, delete | | `userSetting` | findMany, findOne, create, update, delete | | `userSettingsSecurity` | findMany, findOne, create, update, delete | @@ -170,9 +170,6 @@ const items = await db.identityProvider.findMany({ select: { displayName: true, // Get one by id const item = await db.identityProvider.findOne({ id: '', select: { displayName: true, enabled: true, kind: true, slug: true } }).execute(); -// Create -const created = await db.identityProvider.create({ data: { displayName: '', enabled: '', kind: '', slug: '' }, select: { id: true } }).execute(); - // Update const updated = await db.identityProvider.update({ where: { id: '' }, data: { displayName: '' }, select: { id: true } }).execute(); @@ -210,9 +207,6 @@ const items = await db.orgApiKeyList.findMany({ select: { accessLevel: true, cre // Get one by id const item = await db.orgApiKeyList.findOne({ id: '', select: { accessLevel: true, createdAt: true, expiresAt: true, id: true, keyId: true, lastUsedAt: true, mfaLevel: true, name: true, orgId: true, principalId: true, revokedAt: true, updatedAt: true } }).execute(); -// Create -const created = await db.orgApiKeyList.create({ data: { accessLevel: '', expiresAt: '', keyId: '', lastUsedAt: '', mfaLevel: '', name: '', orgId: '', principalId: '', revokedAt: '' }, select: { id: true } }).execute(); - // Update const updated = await db.orgApiKeyList.update({ where: { id: '' }, data: { accessLevel: '' }, select: { id: true } }).execute(); @@ -289,9 +283,6 @@ const items = await db.principal.findMany({ select: { apiKeyMaxDuration: true, b // Get one by principalId const item = await db.principal.findOne({ principalId: '', select: { apiKeyMaxDuration: true, bypassStepUp: true, createdAt: true, createdBySessionId: true, depth: true, expiresAt: true, id: true, isReadOnly: true, name: true, ownerId: true, parentPrincipalId: true, updatedAt: true, useAdminOwner: true, userId: true } }).execute(); -// Create -const created = await db.principal.create({ data: { apiKeyMaxDuration: '', bypassStepUp: '', createdBySessionId: '', depth: '', expiresAt: '', id: '', isReadOnly: '', name: '', ownerId: '', parentPrincipalId: '', useAdminOwner: '', userId: '' }, select: { principalId: true } }).execute(); - // Update const updated = await db.principal.update({ where: { principalId: '' }, data: { apiKeyMaxDuration: '' }, select: { principalId: true } }).execute(); @@ -323,9 +314,6 @@ const items = await db.principalEntity.findMany({ select: { createdAt: true, ent // Get one by id const item = await db.principalEntity.findOne({ id: '', select: { createdAt: true, entityId: true, id: true, ownerId: true, principalId: true, updatedAt: true } }).execute(); -// Create -const created = await db.principalEntity.create({ data: { entityId: '', ownerId: '', principalId: '' }, select: { id: true } }).execute(); - // Update const updated = await db.principalEntity.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); @@ -360,9 +348,6 @@ const items = await db.principalScopeOverride.findMany({ select: { allowedMask: // Get one by id const item = await db.principalScopeOverride.findOne({ id: '', select: { allowedMask: true, createdAt: true, id: true, isActive: true, isReadOnly: true, membershipType: true, principalId: true, updatedAt: true, useAdminOwner: true } }).execute(); -// Create -const created = await db.principalScopeOverride.create({ data: { allowedMask: '', isActive: '', isReadOnly: '', membershipType: '', principalId: '', useAdminOwner: '' }, select: { id: true } }).execute(); - // Update const updated = await db.principalScopeOverride.update({ where: { id: '' }, data: { allowedMask: '' }, select: { id: true } }).execute(); @@ -426,9 +411,6 @@ const items = await db.userConnectedAccount.findMany({ select: { createdAt: true // Get one by id const item = await db.userConnectedAccount.findOne({ id: '', select: { createdAt: true, details: true, id: true, identifier: true, isVerified: true, ownerId: true, service: true, updatedAt: true } }).execute(); -// Create -const created = await db.userConnectedAccount.create({ data: { details: '', identifier: '', isVerified: '', ownerId: '', service: '' }, select: { id: true } }).execute(); - // Update const updated = await db.userConnectedAccount.update({ where: { id: '' }, data: { details: '' }, select: { id: true } }).execute(); @@ -446,12 +428,14 @@ CRUD operations for User records. |-------|------|----------| | `createdAt` | Datetime | No | | `displayName` | String | Yes | -| `displayNameTrgmSimilarity` | Float | Yes | +| `displayNameTrgmSimilarity` | Float | No | | `id` | UUID | No | | `profilePicture` | ConstructiveInternalTypeImage | Yes | -| `searchScore` | Float | Yes | -| `searchTsv` | FullText | Yes | -| `searchTsvRank` | Float | Yes | +| `profilePictureUrl` | String | No | +| `profilePictureVersions` | FileVersion | No | +| `searchScore` | Float | No | +| `searchTsv` | FullText | No | +| `searchTsvRank` | Float | No | | `type` | Int | Yes | | `updatedAt` | Datetime | No | | `username` | String | Yes | @@ -466,7 +450,7 @@ const items = await db.user.findMany({ select: { createdAt: true, displayName: t const item = await db.user.findOne({ id: '', select: { createdAt: true, displayName: true, displayNameTrgmSimilarity: true, id: true, profilePicture: true, searchScore: true, searchTsv: true, searchTsvRank: true, type: true, updatedAt: true, username: true } }).execute(); // Create -const created = await db.user.create({ data: { displayName: '', displayNameTrgmSimilarity: '', profilePicture: '', searchScore: '', searchTsv: '', searchTsvRank: '', type: '', username: '' }, select: { id: true } }).execute(); +const created = await db.user.create({ data: { displayName: '', profilePicture: '', type: '', username: '' }, select: { id: true } }).execute(); // Update const updated = await db.user.update({ where: { id: '' }, data: { displayName: '' }, select: { id: true } }).execute(); @@ -662,6 +646,17 @@ requireStepUp const result = await db.query.requireStepUp({ stepUpType: '' }).execute(); ``` +### `db.query.signInOptions` + +signInOptions + +- **Type:** query +- **Arguments:** none + +```typescript +const result = await db.query.signInOptions().execute(); +``` + ### `db.mutation.approveDevice` approveDevice @@ -739,7 +734,7 @@ const result = await db.mutation.confirmTotpSetup({ input: { totpValue: '', isReadOnly: '', name: '', orgId: '', useAdminOwner: '' } }).execute(); ``` +### `db.mutation.createPrincipal` + +createPrincipal + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | CreatePrincipalInput (required) | + +```typescript +const result = await db.mutation.createPrincipal({ input: { bypassStepUp: '', entityIds: '', isReadOnly: '', name: '', useAdminOwner: '' } }).execute(); +``` + ### `db.mutation.createPrincipalFromPreset` createPrincipalFromPreset @@ -947,6 +957,36 @@ enableTotp const result = await db.mutation.enableTotp({ input: '' }).execute(); ``` +### `db.mutation.ensureAuthCsrf` + +ensureAuthCsrf + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | EnsureAuthCsrfInput (required) | + +```typescript +const result = await db.mutation.ensureAuthCsrf({ input: { existingToken: '' } }).execute(); +``` + +### `db.mutation.exchangeNativeHandoff` + +exchangeNativeHandoff + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ExchangeNativeHandoffInput (required) | + +```typescript +const result = await db.mutation.exchangeNativeHandoff({ input: { code: '', codeVerifier: '', credentialKind: '' } }).execute(); +``` + ### `db.mutation.extendTokenExpires` extendTokenExpires @@ -1072,6 +1112,21 @@ requestCrossOriginToken const result = await db.mutation.requestCrossOriginToken({ input: { email: '', origin: '', password: '', rememberMe: '' } }).execute(); ``` +### `db.mutation.requestDeviceApproval` + +requestDeviceApproval + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | RequestDeviceApprovalInput (required) | + +```typescript +const result = await db.mutation.requestDeviceApproval({ input: { deviceToken: '', next: '', userId: '' } }).execute(); +``` + ### `db.mutation.requestMagicLink` requestMagicLink @@ -1084,7 +1139,7 @@ requestMagicLink | `input` | RequestMagicLinkInput (required) | ```typescript -const result = await db.mutation.requestMagicLink({ input: { email: '', next: '' } }).execute(); +const result = await db.mutation.requestMagicLink({ input: { codeChallenge: '', email: '', nativeRedirectUri: '', next: '' } }).execute(); ``` ### `db.mutation.resetPassword` @@ -1249,7 +1304,7 @@ setPassword | `input` | SetPasswordInput (required) | ```typescript -const result = await db.mutation.setPassword({ input: { currentPassword: '', newPassword: '' } }).execute(); +const result = await db.mutation.setPassword({ input: { currentPassword: '', newPassword: '', signOutOtherSessions: '' } }).execute(); ``` ### `db.mutation.setPrincipalEntities` @@ -1429,7 +1484,7 @@ verifyEmail | `input` | VerifyEmailInput (required) | ```typescript -const result = await db.mutation.verifyEmail({ input: { emailId: '', token: '' } }).execute(); +const result = await db.mutation.verifyEmail({ input: { emailId: '', password: '', token: '' } }).execute(); ``` ### `db.mutation.verifyPassword` diff --git a/sdk/constructive-sdk/src/auth/orm/input-types.ts b/sdk/constructive-sdk/src/auth/orm/input-types.ts index f1489beef6..0414925191 100644 --- a/sdk/constructive-sdk/src/auth/orm/input-types.ts +++ b/sdk/constructive-sdk/src/auth/orm/input-types.ts @@ -402,6 +402,10 @@ export interface User { displayNameTrgmSimilarity?: number | null; id: string; profilePicture?: ConstructiveInternalTypeImage | null; + /** URL to fetch `profilePicture`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + profilePictureUrl?: string | null; + /** The versions rendered beside `profilePicture`, narrowest first, each with a URL. Empty when there are none. */ + profilePictureVersions?: FileVersion[] | null; /** Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ searchScore?: number | null; searchTsv?: string | null; @@ -718,6 +722,15 @@ export type UserSelect = { displayNameTrgmSimilarity?: boolean; id?: boolean; profilePicture?: boolean; + profilePictureUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + profilePictureVersions?: { + select: FileVersionSelect; + }; searchScore?: boolean; searchTsv?: boolean; searchTsvRank?: boolean; @@ -1678,15 +1691,6 @@ export interface DeleteEmailInput { clientMutationId?: string; id: string; } -export interface CreateIdentityProviderInput { - clientMutationId?: string; - identityProvider: { - displayName?: string; - enabled?: boolean; - kind?: string; - slug?: string; - }; -} export interface IdentityProviderPatch { displayName?: string | null; enabled?: boolean | null; @@ -1702,20 +1706,6 @@ export interface DeleteIdentityProviderInput { clientMutationId?: string; id: string; } -export interface CreateOrgApiKeyListInput { - clientMutationId?: string; - orgApiKeyList: { - accessLevel?: string; - expiresAt?: string; - keyId: string; - lastUsedAt?: string; - mfaLevel?: string; - name?: string; - orgId: string; - principalId: string; - revokedAt?: string; - }; -} export interface OrgApiKeyListPatch { accessLevel?: string | null; expiresAt?: string | null; @@ -1764,22 +1754,6 @@ export interface DeletePhoneNumberInput { clientMutationId?: string; id: string; } -export interface CreatePrincipalInput { - clientMutationId?: string; - principal: { - apiKeyMaxDuration?: string; - bypassStepUp?: boolean; - createdBySessionId: string; - depth?: number; - expiresAt?: string; - isReadOnly?: boolean; - name?: string; - ownerId: string; - parentPrincipalId: string; - useAdminOwner?: boolean; - userId: string; - }; -} export interface PrincipalPatch { apiKeyMaxDuration?: string | null; bypassStepUp?: boolean | null; @@ -1802,14 +1776,6 @@ export interface DeletePrincipalInput { clientMutationId?: string; principalId: string; } -export interface CreatePrincipalEntityInput { - clientMutationId?: string; - principalEntity: { - entityId: string; - ownerId: string; - principalId: string; - }; -} export interface PrincipalEntityPatch { entityId?: string | null; ownerId?: string | null; @@ -1824,17 +1790,6 @@ export interface DeletePrincipalEntityInput { clientMutationId?: string; id: string; } -export interface CreatePrincipalScopeOverrideInput { - clientMutationId?: string; - principalScopeOverride: { - allowedMask?: string; - isActive?: boolean; - isReadOnly?: boolean; - membershipType?: number; - principalId: string; - useAdminOwner?: boolean; - }; -} export interface PrincipalScopeOverridePatch { allowedMask?: string | null; isActive?: boolean | null; @@ -1870,16 +1825,6 @@ export interface DeleteRoleTypeInput { clientMutationId?: string; id: number; } -export interface CreateUserConnectedAccountInput { - clientMutationId?: string; - userConnectedAccount: { - details?: Record; - identifier?: string; - isVerified?: boolean; - ownerId: string; - service?: string; - }; -} export interface UserConnectedAccountPatch { details?: Record | null; identifier?: string | null; @@ -1908,7 +1853,6 @@ export interface CreateUserInput { export interface UserPatch { displayName?: string | null; profilePicture?: ConstructiveInternalTypeImage | null; - profilePictureUpload?: File | null; type?: number | null; username?: string | null; } @@ -2088,6 +2032,14 @@ export interface CreateOrgPrincipalInput { orgId?: string; useAdminOwner?: boolean; } +export interface CreatePrincipalInput { + bypassStepUp?: boolean; + clientMutationId?: string; + entityIds?: string[]; + isReadOnly?: boolean; + name?: string; + useAdminOwner?: boolean; +} export interface CreatePrincipalFromPresetInput { clientMutationId?: string; entityIds?: string[]; @@ -2122,6 +2074,16 @@ export interface EnableSmsMfaInput { export interface EnableTotpInput { clientMutationId?: string; } +export interface EnsureAuthCsrfInput { + clientMutationId?: string; + existingToken?: string; +} +export interface ExchangeNativeHandoffInput { + clientMutationId?: string; + code?: string; + codeVerifier?: string; + credentialKind?: string; +} export interface ExtendTokenExpiresInput { amount?: IntervalInput; clientMutationId?: string; @@ -2135,7 +2097,7 @@ export interface GenerateBackupCodesInput { } export interface LinkIdentityInput { clientMutationId?: string; - ticket: string; + ticket?: string; } export interface MintAccessTokenInput { accessTtl?: IntervalInput; @@ -2163,9 +2125,17 @@ export interface RequestCrossOriginTokenInput { password?: string; rememberMe?: boolean; } +export interface RequestDeviceApprovalInput { + clientMutationId?: string; + deviceToken?: string; + next?: string; + userId?: string; +} export interface RequestMagicLinkInput { clientMutationId?: string; + codeChallenge?: string; email?: string; + nativeRedirectUri?: string; next?: string; } export interface ResetPasswordInput { @@ -2216,6 +2186,7 @@ export interface SetPasswordInput { clientMutationId?: string; currentPassword?: string; newPassword?: string; + signOutOtherSessions?: boolean; } export interface SetPrincipalEntitiesInput { clientMutationId?: string; @@ -2290,6 +2261,7 @@ export interface SignUpSmsInput { export interface VerifyEmailInput { clientMutationId?: string; emailId?: string; + password?: string; token?: string; } export interface VerifyPasswordInput { @@ -3644,6 +3616,46 @@ export type GetMfaStatusRecordSelect = { smsMfaEnabled?: boolean; totpEnabled?: boolean; }; +export interface SignInOptionsRecord { + allowAnonymousSessions?: boolean | null; + allowEmailOtpSignIn?: boolean | null; + allowIdentitySignIn?: boolean | null; + allowIdentitySignUp?: boolean | null; + allowMagicLinkSignIn?: boolean | null; + allowMagicLinkSignUp?: boolean | null; + allowPasswordSignIn?: boolean | null; + allowPasswordSignUp?: boolean | null; + allowSignUp?: boolean | null; + allowSmsSignIn?: boolean | null; + allowSmsSignUp?: boolean | null; + allowWebauthnSignIn?: boolean | null; + allowWebauthnSignUp?: boolean | null; + allowWebauthnUsernameless?: boolean | null; + enableCaptcha?: boolean | null; + identityProviders?: Record | null; + requireMfa?: boolean | null; + signUpRequiresInvite?: boolean | null; +} +export type SignInOptionsRecordSelect = { + allowAnonymousSessions?: boolean; + allowEmailOtpSignIn?: boolean; + allowIdentitySignIn?: boolean; + allowIdentitySignUp?: boolean; + allowMagicLinkSignIn?: boolean; + allowMagicLinkSignUp?: boolean; + allowPasswordSignIn?: boolean; + allowPasswordSignUp?: boolean; + allowSignUp?: boolean; + allowSmsSignIn?: boolean; + allowSmsSignUp?: boolean; + allowWebauthnSignIn?: boolean; + allowWebauthnSignUp?: boolean; + allowWebauthnUsernameless?: boolean; + enableCaptcha?: boolean; + identityProviders?: boolean; + requireMfa?: boolean; + signUpRequiresInvite?: boolean; +}; export interface ApproveDevicePayload { clientMutationId?: string | null; result?: boolean | null; @@ -3720,6 +3732,14 @@ export type CreateOrgPrincipalPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface CreatePrincipalPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type CreatePrincipalPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface CreatePrincipalFromPresetPayload { clientMutationId?: string | null; result?: string | null; @@ -3800,6 +3820,24 @@ export type EnableTotpPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface EnsureAuthCsrfPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type EnsureAuthCsrfPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface ExchangeNativeHandoffPayload { + clientMutationId?: string | null; + result?: ExchangeNativeHandoffRecord | null; +} +export type ExchangeNativeHandoffPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: ExchangeNativeHandoffRecordSelect; + }; +}; export interface ExtendTokenExpiresPayload { clientMutationId?: string | null; result?: ExtendTokenExpiresRecord[] | null; @@ -3875,6 +3913,14 @@ export type RequestCrossOriginTokenPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface RequestDeviceApprovalPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type RequestDeviceApprovalPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface RequestMagicLinkPayload { clientMutationId?: string | null; } @@ -4285,14 +4331,6 @@ export type DeletePhoneNumberPayloadSelect = { select: PhoneNumberEdgeSelect; }; }; -export interface CreatePrincipalPayload { - clientMutationId?: string | null; - result?: string | null; -} -export type CreatePrincipalPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; export interface CreateRoleTypePayload { clientMutationId?: string | null; /** The `RoleType` that was created by this mutation. */ @@ -4518,6 +4556,25 @@ export type DeleteWebauthnCredentialPayloadSelect = { select: WebauthnCredentialEdgeSelect; }; }; +/** One version rendered beside a file, with a URL to fetch it. */ +export interface FileVersion { + format?: string | null; + height?: number | null; + key: string; + name?: string | null; + size?: number | null; + url: string; + width?: number | null; +} +export type FileVersionSelect = { + format?: boolean; + height?: boolean; + key?: boolean; + name?: boolean; + size?: boolean; + url?: boolean; + width?: boolean; +}; export interface CompleteMfaChallengeRecord { accessToken?: string | null; accessTokenExpiresAt?: string | null; @@ -4556,6 +4613,22 @@ export type CreateOrgApiKeyRecordSelect = { expiresAt?: boolean; keyId?: boolean; }; +export interface ExchangeNativeHandoffRecord { + accessToken?: string | null; + accessTokenExpiresAt?: string | null; + id?: string | null; + isVerified?: boolean | null; + totpEnabled?: boolean | null; + userId?: string | null; +} +export type ExchangeNativeHandoffRecordSelect = { + accessToken?: boolean; + accessTokenExpiresAt?: boolean; + id?: boolean; + isVerified?: boolean; + totpEnabled?: boolean; + userId?: boolean; +}; export interface ExtendTokenExpiresRecord { expiresAt?: string | null; id?: string | null; @@ -4643,18 +4716,22 @@ export type SignInCrossOriginRecordSelect = { export interface SignInMagicLinkRecord { accessToken?: string | null; accessTokenExpiresAt?: string | null; + codeChallenge?: string | null; deviceApprovalRequired?: boolean | null; mfaChallengeToken?: string | null; mfaRequired?: boolean | null; + nativeRedirectUri?: string | null; outDeviceToken?: string | null; userId?: string | null; } export type SignInMagicLinkRecordSelect = { accessToken?: boolean; accessTokenExpiresAt?: boolean; + codeChallenge?: boolean; deviceApprovalRequired?: boolean; mfaChallengeToken?: boolean; mfaRequired?: boolean; + nativeRedirectUri?: boolean; outDeviceToken?: boolean; userId?: boolean; }; @@ -4679,12 +4756,16 @@ export type SignInSmsOtpRecordSelect = { export interface SignUpMagicLinkRecord { accessToken?: string | null; accessTokenExpiresAt?: string | null; + codeChallenge?: string | null; + nativeRedirectUri?: string | null; outDeviceToken?: string | null; userId?: string | null; } export type SignUpMagicLinkRecordSelect = { accessToken?: boolean; accessTokenExpiresAt?: boolean; + codeChallenge?: boolean; + nativeRedirectUri?: boolean; outDeviceToken?: boolean; userId?: boolean; }; diff --git a/sdk/constructive-sdk/src/auth/orm/models/identityProvider.ts b/sdk/constructive-sdk/src/auth/orm/models/identityProvider.ts index cdc672145c..fde90fea4b 100644 --- a/sdk/constructive-sdk/src/auth/orm/models/identityProvider.ts +++ b/sdk/constructive-sdk/src/auth/orm/models/identityProvider.ts @@ -29,7 +29,6 @@ import type { IdentityProviderSelect, IdentityProviderFilter, IdentityProviderOrderBy, - CreateIdentityProviderInput, UpdateIdentityProviderInput, IdentityProviderPatch, } from '../input-types'; @@ -104,31 +103,4 @@ export class IdentityProviderModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createIdentityProvider: { - identityProvider: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'IdentityProvider', - 'createIdentityProvider', - 'identityProvider', - args.select, - args.data, - 'CreateIdentityProviderInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'IdentityProvider', - fieldName: 'createIdentityProvider', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/auth/orm/models/orgApiKeyList.ts b/sdk/constructive-sdk/src/auth/orm/models/orgApiKeyList.ts index fe7120ee8a..4c7c4cee0a 100644 --- a/sdk/constructive-sdk/src/auth/orm/models/orgApiKeyList.ts +++ b/sdk/constructive-sdk/src/auth/orm/models/orgApiKeyList.ts @@ -29,7 +29,6 @@ import type { OrgApiKeyListSelect, OrgApiKeyListFilter, OrgApiKeyListOrderBy, - CreateOrgApiKeyListInput, UpdateOrgApiKeyListInput, OrgApiKeyListPatch, } from '../input-types'; @@ -144,31 +143,4 @@ export class OrgApiKeyListModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgApiKeyList: { - orgApiKeyList: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgApiKeyList', - 'createOrgApiKeyList', - 'orgApiKeyList', - args.select, - args.data, - 'CreateOrgApiKeyListInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgApiKeyList', - fieldName: 'createOrgApiKeyList', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/auth/orm/models/principal.ts b/sdk/constructive-sdk/src/auth/orm/models/principal.ts index 05e5aa400c..ff1e4994ed 100644 --- a/sdk/constructive-sdk/src/auth/orm/models/principal.ts +++ b/sdk/constructive-sdk/src/auth/orm/models/principal.ts @@ -29,7 +29,6 @@ import type { PrincipalSelect, PrincipalFilter, PrincipalOrderBy, - CreatePrincipalInput, UpdatePrincipalInput, PrincipalPatch, } from '../input-types'; @@ -144,31 +143,4 @@ export class PrincipalModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPrincipal: { - principal: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'Principal', - 'createPrincipal', - 'principal', - args.select, - args.data, - 'CreatePrincipalInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'Principal', - fieldName: 'createPrincipal', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/auth/orm/models/principalEntity.ts b/sdk/constructive-sdk/src/auth/orm/models/principalEntity.ts index 516e110743..580fbe4f6f 100644 --- a/sdk/constructive-sdk/src/auth/orm/models/principalEntity.ts +++ b/sdk/constructive-sdk/src/auth/orm/models/principalEntity.ts @@ -29,7 +29,6 @@ import type { PrincipalEntitySelect, PrincipalEntityFilter, PrincipalEntityOrderBy, - CreatePrincipalEntityInput, UpdatePrincipalEntityInput, PrincipalEntityPatch, } from '../input-types'; @@ -144,31 +143,4 @@ export class PrincipalEntityModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPrincipalEntity: { - principalEntity: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PrincipalEntity', - 'createPrincipalEntity', - 'principalEntity', - args.select, - args.data, - 'CreatePrincipalEntityInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PrincipalEntity', - fieldName: 'createPrincipalEntity', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/auth/orm/models/principalScopeOverride.ts b/sdk/constructive-sdk/src/auth/orm/models/principalScopeOverride.ts index 3d3e7bedd3..fb315ec75c 100644 --- a/sdk/constructive-sdk/src/auth/orm/models/principalScopeOverride.ts +++ b/sdk/constructive-sdk/src/auth/orm/models/principalScopeOverride.ts @@ -29,7 +29,6 @@ import type { PrincipalScopeOverrideSelect, PrincipalScopeOverrideFilter, PrincipalScopeOverrideOrderBy, - CreatePrincipalScopeOverrideInput, UpdatePrincipalScopeOverrideInput, PrincipalScopeOverridePatch, } from '../input-types'; @@ -146,31 +145,4 @@ export class PrincipalScopeOverrideModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPrincipalScopeOverride: { - principalScopeOverride: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PrincipalScopeOverride', - 'createPrincipalScopeOverride', - 'principalScopeOverride', - args.select, - args.data, - 'CreatePrincipalScopeOverrideInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PrincipalScopeOverride', - fieldName: 'createPrincipalScopeOverride', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/auth/orm/models/userConnectedAccount.ts b/sdk/constructive-sdk/src/auth/orm/models/userConnectedAccount.ts index a2344afdf4..8edfaf1d67 100644 --- a/sdk/constructive-sdk/src/auth/orm/models/userConnectedAccount.ts +++ b/sdk/constructive-sdk/src/auth/orm/models/userConnectedAccount.ts @@ -29,7 +29,6 @@ import type { UserConnectedAccountSelect, UserConnectedAccountFilter, UserConnectedAccountOrderBy, - CreateUserConnectedAccountInput, UpdateUserConnectedAccountInput, UserConnectedAccountPatch, } from '../input-types'; @@ -146,31 +145,4 @@ export class UserConnectedAccountModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createUserConnectedAccount: { - userConnectedAccount: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'UserConnectedAccount', - 'createUserConnectedAccount', - 'userConnectedAccount', - args.select, - args.data, - 'CreateUserConnectedAccountInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'UserConnectedAccount', - fieldName: 'createUserConnectedAccount', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/auth/orm/mutation/index.ts b/sdk/constructive-sdk/src/auth/orm/mutation/index.ts index 39394d78e4..eebc1bc3d7 100644 --- a/sdk/constructive-sdk/src/auth/orm/mutation/index.ts +++ b/sdk/constructive-sdk/src/auth/orm/mutation/index.ts @@ -16,6 +16,7 @@ import type { CreateChildPrincipalInput, CreateOrgApiKeyInput, CreateOrgPrincipalInput, + CreatePrincipalInput, CreatePrincipalFromPresetInput, DeleteOrgPrincipalInput, DeletePrincipalInput, @@ -26,6 +27,8 @@ import type { EnableEmailMfaInput, EnableSmsMfaInput, EnableTotpInput, + EnsureAuthCsrfInput, + ExchangeNativeHandoffInput, ExtendTokenExpiresInput, ForgotPasswordInput, GenerateBackupCodesInput, @@ -34,6 +37,7 @@ import type { ProvisionBucketInput, RefreshAccessTokenInput, RequestCrossOriginTokenInput, + RequestDeviceApprovalInput, RequestMagicLinkInput, ResetPasswordInput, RevokeApiKeyInput, @@ -71,6 +75,7 @@ import type { CreateChildPrincipalPayload, CreateOrgApiKeyPayload, CreateOrgPrincipalPayload, + CreatePrincipalPayload, CreatePrincipalFromPresetPayload, DeleteOrgPrincipalPayload, DeletePrincipalPayload, @@ -81,6 +86,8 @@ import type { EnableEmailMfaPayload, EnableSmsMfaPayload, EnableTotpPayload, + EnsureAuthCsrfPayload, + ExchangeNativeHandoffPayload, ExtendTokenExpiresPayload, ForgotPasswordPayload, GenerateBackupCodesPayload, @@ -89,6 +96,7 @@ import type { ProvisionBucketPayload, RefreshAccessTokenPayload, RequestCrossOriginTokenPayload, + RequestDeviceApprovalPayload, RequestMagicLinkPayload, ResetPasswordPayload, RevokeApiKeyPayload, @@ -126,6 +134,7 @@ import type { CreateChildPrincipalPayloadSelect, CreateOrgApiKeyPayloadSelect, CreateOrgPrincipalPayloadSelect, + CreatePrincipalPayloadSelect, CreatePrincipalFromPresetPayloadSelect, DeleteOrgPrincipalPayloadSelect, DeletePrincipalPayloadSelect, @@ -136,6 +145,8 @@ import type { EnableEmailMfaPayloadSelect, EnableSmsMfaPayloadSelect, EnableTotpPayloadSelect, + EnsureAuthCsrfPayloadSelect, + ExchangeNativeHandoffPayloadSelect, ExtendTokenExpiresPayloadSelect, ForgotPasswordPayloadSelect, GenerateBackupCodesPayloadSelect, @@ -144,6 +155,7 @@ import type { ProvisionBucketPayloadSelect, RefreshAccessTokenPayloadSelect, RequestCrossOriginTokenPayloadSelect, + RequestDeviceApprovalPayloadSelect, RequestMagicLinkPayloadSelect, ResetPasswordPayloadSelect, RevokeApiKeyPayloadSelect, @@ -189,6 +201,10 @@ export interface ConfirmDeleteAccountVariables { export interface ConfirmTotpSetupVariables { input: ConfirmTotpSetupInput; } +/** + * Variables for createApiKey + * Mint an API key for the current user; the plaintext key is returned once. access_level: full_access (default) or read_only. mfa_level: none (default) or verified; verified needs a fresh MFA proof on the calling session. A key minted while authenticated by another API key never outlives that key. + */ export interface CreateApiKeyVariables { input: CreateApiKeyInput; } @@ -201,6 +217,9 @@ export interface CreateOrgApiKeyVariables { export interface CreateOrgPrincipalVariables { input: CreateOrgPrincipalInput; } +export interface CreatePrincipalVariables { + input: CreatePrincipalInput; +} export interface CreatePrincipalFromPresetVariables { input: CreatePrincipalFromPresetInput; } @@ -231,6 +250,12 @@ export interface EnableSmsMfaVariables { export interface EnableTotpVariables { input: EnableTotpInput; } +export interface EnsureAuthCsrfVariables { + input: EnsureAuthCsrfInput; +} +export interface ExchangeNativeHandoffVariables { + input: ExchangeNativeHandoffInput; +} export interface ExtendTokenExpiresVariables { input: ExtendTokenExpiresInput; } @@ -264,6 +289,9 @@ export interface RefreshAccessTokenVariables { export interface RequestCrossOriginTokenVariables { input: RequestCrossOriginTokenInput; } +export interface RequestDeviceApprovalVariables { + input: RequestDeviceApprovalInput; +} export interface RequestMagicLinkVariables { input: RequestMagicLinkInput; } @@ -611,6 +639,35 @@ export function createMutationOperations(client: OrmClient) { 'CreateOrgPrincipalPayload' ), }), + createPrincipal: ( + args: CreatePrincipalVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + createPrincipal: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'CreatePrincipal', + fieldName: 'createPrincipal', + ...buildCustomDocument( + 'mutation', + 'CreatePrincipal', + 'createPrincipal', + options.select, + args, + [ + { + name: 'input', + type: 'CreatePrincipalInput!', + }, + ], + connectionFieldsMap, + 'CreatePrincipalPayload' + ), + }), createPrincipalFromPreset: ( args: CreatePrincipalFromPresetVariables, options: { @@ -901,6 +958,64 @@ export function createMutationOperations(client: OrmClient) { 'EnableTotpPayload' ), }), + ensureAuthCsrf: ( + args: EnsureAuthCsrfVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + ensureAuthCsrf: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'EnsureAuthCsrf', + fieldName: 'ensureAuthCsrf', + ...buildCustomDocument( + 'mutation', + 'EnsureAuthCsrf', + 'ensureAuthCsrf', + options.select, + args, + [ + { + name: 'input', + type: 'EnsureAuthCsrfInput!', + }, + ], + connectionFieldsMap, + 'EnsureAuthCsrfPayload' + ), + }), + exchangeNativeHandoff: ( + args: ExchangeNativeHandoffVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + exchangeNativeHandoff: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ExchangeNativeHandoff', + fieldName: 'exchangeNativeHandoff', + ...buildCustomDocument( + 'mutation', + 'ExchangeNativeHandoff', + 'exchangeNativeHandoff', + options.select, + args, + [ + { + name: 'input', + type: 'ExchangeNativeHandoffInput!', + }, + ], + connectionFieldsMap, + 'ExchangeNativeHandoffPayload' + ), + }), extendTokenExpires: ( args: ExtendTokenExpiresVariables, options: { @@ -1133,6 +1248,35 @@ export function createMutationOperations(client: OrmClient) { 'RequestCrossOriginTokenPayload' ), }), + requestDeviceApproval: ( + args: RequestDeviceApprovalVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + requestDeviceApproval: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'RequestDeviceApproval', + fieldName: 'requestDeviceApproval', + ...buildCustomDocument( + 'mutation', + 'RequestDeviceApproval', + 'requestDeviceApproval', + options.select, + args, + [ + { + name: 'input', + type: 'RequestDeviceApprovalInput!', + }, + ], + connectionFieldsMap, + 'RequestDeviceApprovalPayload' + ), + }), requestMagicLink: ( args: RequestMagicLinkVariables, options: { diff --git a/sdk/constructive-sdk/src/auth/orm/query-builder.ts b/sdk/constructive-sdk/src/auth/orm/query-builder.ts index fd785bbae6..d6c981907f 100644 --- a/sdk/constructive-sdk/src/auth/orm/query-builder.ts +++ b/sdk/constructive-sdk/src/auth/orm/query-builder.ts @@ -140,9 +140,7 @@ export function buildSelections( ); const nestedSelect = nested.select; if (nestedSelect && typeof nestedSelect === 'object') { - const subSelections = Object.entries(nestedSelect) - .filter(([, v]) => v) - .map(([name]) => t.field({ name })); + const subSelections = buildSelections(nestedSelect, connectionFieldsMap); fields.push( t.field({ name: key, diff --git a/sdk/constructive-sdk/src/auth/orm/query/index.ts b/sdk/constructive-sdk/src/auth/orm/query/index.ts index 671fb80d21..aa77870a50 100644 --- a/sdk/constructive-sdk/src/auth/orm/query/index.ts +++ b/sdk/constructive-sdk/src/auth/orm/query/index.ts @@ -9,8 +9,10 @@ import type { InferSelectResult, StrictSelect } from '../select-types'; import type { User, GetMfaStatusRecord, + SignInOptionsRecord, UserSelect, GetMfaStatusRecordSelect, + SignInOptionsRecordSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; export interface RequireStepUpVariables { @@ -150,5 +152,28 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), + signInOptions: ( + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + signInOptions: InferSelectResult | null; + }>({ + client, + operation: 'query', + operationName: 'SignInOptions', + fieldName: 'signInOptions', + ...buildCustomDocument( + 'query', + 'SignInOptions', + 'signInOptions', + options.select, + undefined, + [], + connectionFieldsMap, + 'SignInOptionsRecord' + ), + }), }; } diff --git a/sdk/constructive-sdk/src/auth/orm/select-types.ts b/sdk/constructive-sdk/src/auth/orm/select-types.ts index 4b39d7e820..783c4603df 100644 --- a/sdk/constructive-sdk/src/auth/orm/select-types.ts +++ b/sdk/constructive-sdk/src/auth/orm/select-types.ts @@ -159,9 +159,13 @@ export type InferSelectResult = TSelect extends undefined ? K extends keyof TEntity ? NonNullable extends ConnectionResult ? ConnectionResult> - : - | InferSelectResult, NestedSelect> - | (null extends TEntity[K] ? null : never) + : NonNullable extends readonly (infer Item)[] + ? + | InferSelectResult, NestedSelect>[] + | (null extends TEntity[K] ? null : never) + : + | InferSelectResult, NestedSelect> + | (null extends TEntity[K] ? null : never) : never : K extends keyof TEntity ? TEntity[K] diff --git a/sdk/constructive-sdk/src/compute/README.md b/sdk/constructive-sdk/src/compute/README.md index 08b402b816..19e5a52225 100644 --- a/sdk/constructive-sdk/src/compute/README.md +++ b/sdk/constructive-sdk/src/compute/README.md @@ -10,7 +10,7 @@ - **Tables:** 123 - **Custom queries:** 2 -- **Custom mutations:** 62 +- **Custom mutations:** 63 **Generators:** ORM diff --git a/sdk/constructive-sdk/src/compute/orm/README.md b/sdk/constructive-sdk/src/compute/orm/README.md index 68d50bcb97..c547b9a097 100644 --- a/sdk/constructive-sdk/src/compute/orm/README.md +++ b/sdk/constructive-sdk/src/compute/orm/README.md @@ -23,15 +23,14 @@ const db = createClient({ |-------|------------| | `build` | findMany, findOne, create, update, delete | | `buildStep` | findMany, findOne, create, update, delete | -| `builderBinding` | findMany, findOne, create, update, delete | | `contentPreset` | findMany, findOne, create, update, delete | -| `databaseFunctionGraph` | findMany, findOne, create, update, delete | +| `databaseFunctionGraph` | findMany, findOne, update, delete | | `databaseFunctionGraphExecutionCancelRequest` | findMany, findOne, create, update, delete | | `databaseFunctionGraphExecution` | findMany, findOne, create, update, delete | | `databaseFunctionGraphExecutionNodeState` | findMany, findOne, create, update, delete | | `databaseFunctionGraphExecutionOutput` | findMany, findOne, create, update, delete | | `databaseGraphCommit` | findMany, findOne, create, update, delete | -| `databaseGraphGetAllTreeNodesRecord` | findMany, findOne, create, update, delete | +| `databaseGraphGetAllTreeNodesRecord` | findMany, findOne, update, delete | | `databaseGraphObject` | findMany, findOne, create, update, delete | | `databaseGraphRef` | findMany, findOne, create, update, delete | | `databaseGraphStore` | findMany, findOne, create, update, delete | @@ -43,7 +42,7 @@ const db = createClient({ | `functionDeploymentEvent` | findMany, findOne, create, update, delete | | `functionExecutionLog` | findMany, findOne, create, update, delete | | `functionGraphCommit` | findMany, findOne, create, update, delete | -| `functionGraph` | findMany, findOne, create, update, delete | +| `functionGraph` | findMany, findOne, update, delete | | `functionGraphExecutionCancelRequest` | findMany, findOne, create, update, delete | | `functionGraphExecution` | findMany, findOne, create, update, delete | | `functionGraphExecutionNodeState` | findMany, findOne, create, update, delete | @@ -54,11 +53,11 @@ const db = createClient({ | `functionInvocationAttempt` | findMany, findOne, create, update, delete | | `functionInvocation` | findMany, findOne, create, update, delete | | `functionSchedule` | findMany, findOne, create, update, delete | -| `getAllTreeNodesRecord` | findMany, findOne, create, update, delete | +| `getAllTreeNodesRecord` | findMany, findOne, update, delete | | `image` | findMany, findOne, create, update, delete | | `imageGrant` | findMany, findOne, create, update, delete | | `infraCommit` | findMany, findOne, create, update, delete | -| `infraGetAllTreeNodesRecord` | findMany, findOne, create, update, delete | +| `infraGetAllTreeNodesRecord` | findMany, findOne, update, delete | | `infraObject` | findMany, findOne, create, update, delete | | `infraRef` | findMany, findOne, create, update, delete | | `infraStore` | findMany, findOne, create, update, delete | @@ -67,7 +66,6 @@ const db = createClient({ | `namespaceEvent` | findMany, findOne, create, update, delete | | `platformBuild` | findMany, findOne, create, update, delete | | `platformBuildStep` | findMany, findOne, create, update, delete | -| `platformBuilderBinding` | findMany, findOne, create, update, delete | | `platformFunctionApiBinding` | findMany, findOne, create, update, delete | | `platformFunctionCapabilityBinding` | findMany, findOne, create, update, delete | | `platformFunctionDefinition` | findMany, findOne, create, update, delete | @@ -80,7 +78,7 @@ const db = createClient({ | `platformImage` | findMany, findOne, create, update, delete | | `platformImageGrant` | findMany, findOne, create, update, delete | | `platformInfraCommit` | findMany, findOne, create, update, delete | -| `platformInfraGetAllTreeNodesRecord` | findMany, findOne, create, update, delete | +| `platformInfraGetAllTreeNodesRecord` | findMany, findOne, update, delete | | `platformInfraObject` | findMany, findOne, create, update, delete | | `platformInfraRef` | findMany, findOne, create, update, delete | | `platformInfraStore` | findMany, findOne, create, update, delete | @@ -102,18 +100,19 @@ const db = createClient({ | `platformRepositoryRequiredCheck` | findMany, findOne, create, update, delete | | `platformRepositoryWorkflow` | findMany, findOne, create, update, delete | | `platformResource` | findMany, findOne, create, update, delete | -| `platformResourceDeclaredCapacity` | findMany, findOne, create, update, delete | +| `platformResourceDeclaredCapacity` | findMany, findOne, update, delete | | `platformResourceDefinition` | findMany, findOne, create, update, delete | | `platformResourceEvent` | findMany, findOne, create, update, delete | | `platformResourceInstallation` | findMany, findOne, create, update, delete | -| `platformResourceObservedStorage` | findMany, findOne, create, update, delete | +| `platformResourceObservedStorage` | findMany, findOne, update, delete | | `platformResourceStatusCheck` | findMany, findOne, create, update, delete | | `platformResourceUsageLog` | findMany, findOne, create, update, delete | | `platformResourceUsageSummary` | findMany, findOne, create, update, delete | -| `platformResourceUtilization` | findMany, findOne, create, update, delete | -| `platformResourcesHealth` | findMany, findOne, create, update, delete | -| `platformResourcesRequirementsState` | findMany, findOne, create, update, delete | -| `platformResourcesResolvedRequirement` | findMany, findOne, create, update, delete | +| `platformResourceUtilization` | findMany, findOne, update, delete | +| `platformResourcesHealth` | findMany, findOne, update, delete | +| `platformResourcesRequirementsState` | findMany, findOne, update, delete | +| `platformResourcesResolvedRequirement` | findMany, findOne, update, delete | +| `platformServiceBinding` | findMany, findOne, create, update, delete | | `platformWebhookEndpoint` | findMany, findOne, create, update, delete | | `platformWebhookEvent` | findMany, findOne, create, update, delete | | `proposalComment` | findMany, findOne, create, update, delete | @@ -130,18 +129,19 @@ const db = createClient({ | `repositoryRequiredCheck` | findMany, findOne, create, update, delete | | `repositoryWorkflow` | findMany, findOne, create, update, delete | | `resource` | findMany, findOne, create, update, delete | -| `resourceDeclaredCapacity` | findMany, findOne, create, update, delete | +| `resourceDeclaredCapacity` | findMany, findOne, update, delete | | `resourceDefinition` | findMany, findOne, create, update, delete | | `resourceEvent` | findMany, findOne, create, update, delete | | `resourceInstallation` | findMany, findOne, create, update, delete | -| `resourceObservedStorage` | findMany, findOne, create, update, delete | +| `resourceObservedStorage` | findMany, findOne, update, delete | | `resourceStatusCheck` | findMany, findOne, create, update, delete | | `resourceUsageLog` | findMany, findOne, create, update, delete | | `resourceUsageSummary` | findMany, findOne, create, update, delete | -| `resourceUtilization` | findMany, findOne, create, update, delete | -| `resourcesHealth` | findMany, findOne, create, update, delete | -| `resourcesRequirementsState` | findMany, findOne, create, update, delete | -| `resourcesResolvedRequirement` | findMany, findOne, create, update, delete | +| `resourceUtilization` | findMany, findOne, update, delete | +| `resourcesHealth` | findMany, findOne, update, delete | +| `resourcesRequirementsState` | findMany, findOne, update, delete | +| `resourcesResolvedRequirement` | findMany, findOne, update, delete | +| `serviceBinding` | findMany, findOne, create, update, delete | | `webhookEndpoint` | findMany, findOne, create, update, delete | | `webhookEvent` | findMany, findOne, create, update, delete | @@ -168,6 +168,8 @@ CRUD operations for Build records. | `imageRef` | String | Yes | | `jobId` | BigInt | Yes | | `logs` | ConstructiveInternalTypeUpload | Yes | +| `logsUrl` | String | No | +| `logsVersions` | FileVersion | No | | `matrixKey` | String | Yes | | `metadata` | JSON | Yes | | `proposalId` | UUID | Yes | @@ -242,49 +244,6 @@ const updated = await db.buildStep.update({ where: { id: '' }, data: { bui const deleted = await db.buildStep.delete({ where: { id: '' } }).execute(); ``` -### `db.builderBinding` - -CRUD operations for BuilderBinding records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `createdAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `createdByPrincipal` | UUID | Yes | -| `databaseId` | UUID | Yes | -| `id` | UUID | No | -| `installationId` | UUID | Yes | -| `lastError` | String | Yes | -| `metadata` | JSON | Yes | -| `namespaceId` | UUID | Yes | -| `observedHost` | String | Yes | -| `realm` | String | Yes | -| `status` | String | Yes | -| `updatedAt` | Datetime | No | -| `updatedBy` | UUID | Yes | -| `updatedByPrincipal` | UUID | Yes | - -**Operations:** - -```typescript -// List all builderBinding records -const items = await db.builderBinding.findMany({ select: { createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, installationId: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); - -// Get one by id -const item = await db.builderBinding.findOne({ id: '', select: { createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, installationId: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); - -// Create -const created = await db.builderBinding.create({ data: { createdBy: '', createdByPrincipal: '', databaseId: '', installationId: '', lastError: '', metadata: '', namespaceId: '', observedHost: '', realm: '', status: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.builderBinding.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.builderBinding.delete({ where: { id: '' } }).execute(); -``` - ### `db.contentPreset` CRUD operations for ContentPreset records. @@ -354,9 +313,6 @@ const items = await db.databaseFunctionGraph.findMany({ select: { context: true, // Get one by id const item = await db.databaseFunctionGraph.findOne({ id: '', select: { context: true, createdAt: true, createdBy: true, databaseId: true, definitionsCommitId: true, description: true, id: true, isValid: true, name: true, storeId: true, updatedAt: true, validationErrors: true } }).execute(); -// Create -const created = await db.databaseFunctionGraph.create({ data: { context: '', createdBy: '', databaseId: '', definitionsCommitId: '', description: '', isValid: '', name: '', storeId: '', validationErrors: '' }, select: { id: true } }).execute(); - // Update const updated = await db.databaseFunctionGraph.update({ where: { id: '' }, data: { context: '' }, select: { id: true } }).execute(); @@ -595,9 +551,6 @@ const items = await db.databaseGraphGetAllTreeNodesRecord.findMany({ select: { d // Get one by id const item = await db.databaseGraphGetAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: true } }).execute(); -// Create -const created = await db.databaseGraphGetAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); - // Update const updated = await db.databaseGraphGetAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); @@ -829,8 +782,8 @@ CRUD operations for FunctionDefinition records. | `anonymousCallable` | Boolean | Yes | | `category` | String | Yes | | `concurrency` | Int | Yes | -| `cpuLimitMillicores` | BigInt | Yes | -| `cpuRequestMillicores` | BigInt | Yes | +| `cpuLimitMillicores` | BigInt | No | +| `cpuRequestMillicores` | BigInt | No | | `createdAt` | Datetime | No | | `createdByPrincipal` | UUID | Yes | | `databaseId` | UUID | Yes | @@ -845,8 +798,8 @@ CRUD operations for FunctionDefinition records. | `integrations` | String | Yes | | `isPublished` | Boolean | Yes | | `maxAttempts` | Int | Yes | -| `memoryLimitBytes` | BigInt | Yes | -| `memoryRequestBytes` | BigInt | Yes | +| `memoryLimitBytes` | BigInt | No | +| `memoryRequestBytes` | BigInt | No | | `moduleTable` | String | Yes | | `name` | String | Yes | | `outputs` | JSON | Yes | @@ -868,7 +821,7 @@ CRUD operations for FunctionDefinition records. | `scaleMin` | Int | Yes | | `targetFunction` | String | Yes | | `targetSchema` | String | Yes | -| `taskIdentifier` | String | Yes | +| `taskIdentifier` | String | No | | `timeoutSeconds` | Int | Yes | | `updatedAt` | Datetime | No | | `updatedByPrincipal` | UUID | Yes | @@ -878,13 +831,13 @@ CRUD operations for FunctionDefinition records. ```typescript // List all functionDefinition records -const items = await db.functionDefinition.findMany({ select: { accessChannels: true, anonymousCallable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdByPrincipal: true, databaseId: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredCapabilities: true, requiredConfigs: true, requiredModels: true, requiredModules: true, requiredSecrets: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, updatedByPrincipal: true, volatile: true } }).execute(); +const items = await db.functionDefinition.findMany({ select: { accessChannels: true, anonymousCallable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdByPrincipal: true, databaseId: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredCapabilities: true, requiredModels: true, requiredModules: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, updatedByPrincipal: true, volatile: true } }).execute(); // Get one by id -const item = await db.functionDefinition.findOne({ id: '', select: { accessChannels: true, anonymousCallable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdByPrincipal: true, databaseId: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredCapabilities: true, requiredConfigs: true, requiredModels: true, requiredModules: true, requiredSecrets: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, updatedByPrincipal: true, volatile: true } }).execute(); +const item = await db.functionDefinition.findOne({ id: '', select: { accessChannels: true, anonymousCallable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdByPrincipal: true, databaseId: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredCapabilities: true, requiredModels: true, requiredModules: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, updatedByPrincipal: true, volatile: true } }).execute(); // Create -const created = await db.functionDefinition.create({ data: { accessChannels: '', anonymousCallable: '', category: '', concurrency: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdByPrincipal: '', databaseId: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', memoryLimitBytes: '', memoryRequestBytes: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredCapabilities: '', requiredConfigs: '', requiredModels: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', updatedByPrincipal: '', volatile: '' }, select: { id: true } }).execute(); +const created = await db.functionDefinition.create({ data: { accessChannels: '', anonymousCallable: '', category: '', concurrency: '', createdByPrincipal: '', databaseId: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredCapabilities: '', requiredConfigs: '', requiredModels: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', targetFunction: '', targetSchema: '', timeoutSeconds: '', updatedByPrincipal: '', volatile: '' }, select: { id: true } }).execute(); // Update const updated = await db.functionDefinition.update({ where: { id: '' }, data: { accessChannels: '' }, select: { id: true } }).execute(); @@ -1086,9 +1039,6 @@ const items = await db.functionGraph.findMany({ select: { context: true, created // Get one by id const item = await db.functionGraph.findOne({ id: '', select: { context: true, createdAt: true, createdBy: true, definitionsCommitId: true, description: true, id: true, isValid: true, name: true, scopeId: true, storeId: true, updatedAt: true, validationErrors: true } }).execute(); -// Create -const created = await db.functionGraph.create({ data: { context: '', createdBy: '', definitionsCommitId: '', description: '', isValid: '', name: '', scopeId: '', storeId: '', validationErrors: '' }, select: { id: true } }).execute(); - // Update const updated = await db.functionGraph.update({ where: { id: '' }, data: { context: '' }, select: { id: true } }).execute(); @@ -1527,9 +1477,6 @@ const items = await db.getAllTreeNodesRecord.findMany({ select: { data: true, pa // Get one by id const item = await db.getAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: true } }).execute(); -// Create -const created = await db.getAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); - // Update const updated = await db.getAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); @@ -1681,9 +1628,6 @@ const items = await db.infraGetAllTreeNodesRecord.findMany({ select: { data: tru // Get one by id const item = await db.infraGetAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: true } }).execute(); -// Create -const created = await db.infraGetAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); - // Update const updated = await db.infraGetAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); @@ -1806,6 +1750,8 @@ CRUD operations for IntegrationProvider records. | `icon` | String | Yes | | `id` | UUID | No | | `logo` | ConstructiveInternalTypeImage | Yes | +| `logoUrl` | String | No | +| `logoVersions` | FileVersion | No | | `name` | String | Yes | | `requiredConfigs` | ResourceRequirement | Yes | | `requiredSecrets` | ResourceRequirement | Yes | @@ -1816,10 +1762,10 @@ CRUD operations for IntegrationProvider records. ```typescript // List all integrationProvider records -const items = await db.integrationProvider.findMany({ select: { brand: true, category: true, createdAt: true, description: true, icon: true, id: true, logo: true, name: true, requiredConfigs: true, requiredSecrets: true, slug: true, updatedAt: true } }).execute(); +const items = await db.integrationProvider.findMany({ select: { brand: true, category: true, createdAt: true, description: true, icon: true, id: true, logo: true, name: true, slug: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.integrationProvider.findOne({ id: '', select: { brand: true, category: true, createdAt: true, description: true, icon: true, id: true, logo: true, name: true, requiredConfigs: true, requiredSecrets: true, slug: true, updatedAt: true } }).execute(); +const item = await db.integrationProvider.findOne({ id: '', select: { brand: true, category: true, createdAt: true, description: true, icon: true, id: true, logo: true, name: true, slug: true, updatedAt: true } }).execute(); // Create const created = await db.integrationProvider.create({ data: { brand: '', category: '', description: '', icon: '', logo: '', name: '', requiredConfigs: '', requiredSecrets: '', slug: '' }, select: { id: true } }).execute(); @@ -1929,6 +1875,8 @@ CRUD operations for PlatformBuild records. | `imageRef` | String | Yes | | `jobId` | BigInt | Yes | | `logs` | ConstructiveInternalTypeUpload | Yes | +| `logsUrl` | String | No | +| `logsVersions` | FileVersion | No | | `matrixKey` | String | Yes | | `metadata` | JSON | Yes | | `proposalId` | UUID | Yes | @@ -2002,48 +1950,6 @@ const updated = await db.platformBuildStep.update({ where: { id: '' }, dat const deleted = await db.platformBuildStep.delete({ where: { id: '' } }).execute(); ``` -### `db.platformBuilderBinding` - -CRUD operations for PlatformBuilderBinding records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `createdAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `createdByPrincipal` | UUID | Yes | -| `id` | UUID | No | -| `installationId` | UUID | Yes | -| `lastError` | String | Yes | -| `metadata` | JSON | Yes | -| `namespaceId` | UUID | Yes | -| `observedHost` | String | Yes | -| `realm` | String | Yes | -| `status` | String | Yes | -| `updatedAt` | Datetime | No | -| `updatedBy` | UUID | Yes | -| `updatedByPrincipal` | UUID | Yes | - -**Operations:** - -```typescript -// List all platformBuilderBinding records -const items = await db.platformBuilderBinding.findMany({ select: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, installationId: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); - -// Get one by id -const item = await db.platformBuilderBinding.findOne({ id: '', select: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, installationId: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); - -// Create -const created = await db.platformBuilderBinding.create({ data: { createdBy: '', createdByPrincipal: '', installationId: '', lastError: '', metadata: '', namespaceId: '', observedHost: '', realm: '', status: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.platformBuilderBinding.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.platformBuilderBinding.delete({ where: { id: '' } }).execute(); -``` - ### `db.platformFunctionApiBinding` CRUD operations for PlatformFunctionApiBinding records. @@ -2129,8 +2035,8 @@ CRUD operations for PlatformFunctionDefinition records. | `billable` | Boolean | Yes | | `category` | String | Yes | | `concurrency` | Int | Yes | -| `cpuLimitMillicores` | BigInt | Yes | -| `cpuRequestMillicores` | BigInt | Yes | +| `cpuLimitMillicores` | BigInt | No | +| `cpuRequestMillicores` | BigInt | No | | `createdAt` | Datetime | No | | `createdByPrincipal` | UUID | Yes | | `description` | String | Yes | @@ -2144,8 +2050,8 @@ CRUD operations for PlatformFunctionDefinition records. | `integrations` | String | Yes | | `isPublished` | Boolean | Yes | | `maxAttempts` | Int | Yes | -| `memoryLimitBytes` | BigInt | Yes | -| `memoryRequestBytes` | BigInt | Yes | +| `memoryLimitBytes` | BigInt | No | +| `memoryRequestBytes` | BigInt | No | | `moduleTable` | String | Yes | | `name` | String | Yes | | `outputs` | JSON | Yes | @@ -2168,7 +2074,7 @@ CRUD operations for PlatformFunctionDefinition records. | `system` | Boolean | Yes | | `targetFunction` | String | Yes | | `targetSchema` | String | Yes | -| `taskIdentifier` | String | Yes | +| `taskIdentifier` | String | No | | `timeoutSeconds` | Int | Yes | | `updatedAt` | Datetime | No | | `updatedByPrincipal` | UUID | Yes | @@ -2178,13 +2084,13 @@ CRUD operations for PlatformFunctionDefinition records. ```typescript // List all platformFunctionDefinition records -const items = await db.platformFunctionDefinition.findMany({ select: { accessChannels: true, anonymousCallable: true, billable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdByPrincipal: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredCapabilities: true, requiredConfigs: true, requiredModels: true, requiredModules: true, requiredSecrets: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, system: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, updatedByPrincipal: true, volatile: true } }).execute(); +const items = await db.platformFunctionDefinition.findMany({ select: { accessChannels: true, anonymousCallable: true, billable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdByPrincipal: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredCapabilities: true, requiredModels: true, requiredModules: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, system: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, updatedByPrincipal: true, volatile: true } }).execute(); // Get one by id -const item = await db.platformFunctionDefinition.findOne({ id: '', select: { accessChannels: true, anonymousCallable: true, billable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdByPrincipal: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredCapabilities: true, requiredConfigs: true, requiredModels: true, requiredModules: true, requiredSecrets: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, system: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, updatedByPrincipal: true, volatile: true } }).execute(); +const item = await db.platformFunctionDefinition.findOne({ id: '', select: { accessChannels: true, anonymousCallable: true, billable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdByPrincipal: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredCapabilities: true, requiredModels: true, requiredModules: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, system: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, updatedByPrincipal: true, volatile: true } }).execute(); // Create -const created = await db.platformFunctionDefinition.create({ data: { accessChannels: '', anonymousCallable: '', billable: '', category: '', concurrency: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdByPrincipal: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', memoryLimitBytes: '', memoryRequestBytes: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredCapabilities: '', requiredConfigs: '', requiredModels: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', system: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', updatedByPrincipal: '', volatile: '' }, select: { id: true } }).execute(); +const created = await db.platformFunctionDefinition.create({ data: { accessChannels: '', anonymousCallable: '', billable: '', category: '', concurrency: '', createdByPrincipal: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredCapabilities: '', requiredConfigs: '', requiredModels: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', system: '', targetFunction: '', targetSchema: '', timeoutSeconds: '', updatedByPrincipal: '', volatile: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformFunctionDefinition.update({ where: { id: '' }, data: { accessChannels: '' }, select: { id: true } }).execute(); @@ -2593,9 +2499,6 @@ const items = await db.platformInfraGetAllTreeNodesRecord.findMany({ select: { d // Get one by id const item = await db.platformInfraGetAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: true } }).execute(); -// Create -const created = await db.platformInfraGetAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); - // Update const updated = await db.platformInfraGetAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); @@ -2865,24 +2768,28 @@ CRUD operations for PlatformProposalComment records. |-------|------|----------| | `actorId` | UUID | Yes | | `attachments` | ConstructiveInternalTypeUpload | Yes | +| `attachmentsUrl` | String | No | +| `attachmentsVersions` | FileVersion | No | | `body` | String | Yes | -| `bodyTrgmSimilarity` | Float | Yes | +| `bodyTrgmSimilarity` | Float | No | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | | `createdByPrincipal` | UUID | Yes | | `embedding` | Vector | Yes | -| `embeddingUpdatedAt` | Datetime | Yes | -| `embeddingVectorDistance` | Float | Yes | +| `embeddingModel` | String | No | +| `embeddingModelTrgmSimilarity` | Float | No | +| `embeddingUpdatedAt` | Datetime | No | +| `embeddingVectorDistance` | Float | No | | `id` | UUID | No | | `line` | Int | Yes | | `outdatedAt` | Datetime | Yes | | `path` | String | Yes | -| `pathTrgmSimilarity` | Float | Yes | +| `pathTrgmSimilarity` | Float | No | | `proposalId` | UUID | Yes | | `resolvedAt` | Datetime | Yes | -| `search` | FullText | Yes | -| `searchScore` | Float | Yes | -| `searchTsvRank` | Float | Yes | +| `search` | FullText | No | +| `searchScore` | Float | No | +| `searchTsvRank` | Float | No | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | | `updatedByPrincipal` | UUID | Yes | @@ -2891,13 +2798,13 @@ CRUD operations for PlatformProposalComment records. ```typescript // List all platformProposalComment records -const items = await db.platformProposalComment.findMany({ select: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const items = await db.platformProposalComment.findMany({ select: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.platformProposalComment.findOne({ id: '', select: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const item = await db.platformProposalComment.findOne({ id: '', select: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.platformProposalComment.create({ data: { actorId: '', attachments: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', line: '', outdatedAt: '', path: '', pathTrgmSimilarity: '', proposalId: '', resolvedAt: '', search: '', searchScore: '', searchTsvRank: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); +const created = await db.platformProposalComment.create({ data: { actorId: '', attachments: '', body: '', createdBy: '', createdByPrincipal: '', embedding: '', line: '', outdatedAt: '', path: '', proposalId: '', resolvedAt: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformProposalComment.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -2922,25 +2829,27 @@ CRUD operations for PlatformProposal records. |-------|------|----------| | `actorId` | UUID | Yes | | `body` | String | Yes | -| `bodyTrgmSimilarity` | Float | Yes | +| `bodyTrgmSimilarity` | Float | No | | `closedReason` | String | Yes | -| `closedReasonTrgmSimilarity` | Float | Yes | +| `closedReasonTrgmSimilarity` | Float | No | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | | `createdByPrincipal` | UUID | Yes | | `decidedAt` | Datetime | Yes | | `dueAt` | Datetime | Yes | | `embedding` | Vector | Yes | -| `embeddingUpdatedAt` | Datetime | Yes | -| `embeddingVectorDistance` | Float | Yes | +| `embeddingModel` | String | No | +| `embeddingModelTrgmSimilarity` | Float | No | +| `embeddingUpdatedAt` | Datetime | No | +| `embeddingVectorDistance` | Float | No | | `id` | UUID | No | | `kind` | String | Yes | -| `kindTrgmSimilarity` | Float | Yes | +| `kindTrgmSimilarity` | Float | No | | `labels` | String | Yes | | `mergeCommit` | String | Yes | -| `mergeCommitTrgmSimilarity` | Float | Yes | +| `mergeCommitTrgmSimilarity` | Float | No | | `mergeMethod` | String | Yes | -| `mergeMethodTrgmSimilarity` | Float | Yes | +| `mergeMethodTrgmSimilarity` | Float | No | | `mergeRequestedAt` | Datetime | Yes | | `mergedAt` | Datetime | Yes | | `metadata` | JSON | Yes | @@ -2948,18 +2857,18 @@ CRUD operations for PlatformProposal records. | `priority` | BigFloat | Yes | | `repositoryId` | UUID | Yes | | `resolution` | String | Yes | -| `resolutionTrgmSimilarity` | Float | Yes | -| `search` | FullText | Yes | -| `searchScore` | Float | Yes | -| `searchTsvRank` | Float | Yes | +| `resolutionTrgmSimilarity` | Float | No | +| `search` | FullText | No | +| `searchScore` | Float | No | +| `searchTsvRank` | Float | No | | `sourceRef` | String | Yes | -| `sourceRefTrgmSimilarity` | Float | Yes | +| `sourceRefTrgmSimilarity` | Float | No | | `status` | String | Yes | -| `statusTrgmSimilarity` | Float | Yes | +| `statusTrgmSimilarity` | Float | No | | `targetRef` | String | Yes | -| `targetRefTrgmSimilarity` | Float | Yes | +| `targetRefTrgmSimilarity` | Float | No | | `title` | String | Yes | -| `titleTrgmSimilarity` | Float | Yes | +| `titleTrgmSimilarity` | Float | No | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | | `updatedByPrincipal` | UUID | Yes | @@ -2968,13 +2877,13 @@ CRUD operations for PlatformProposal records. ```typescript // List all platformProposal records -const items = await db.platformProposal.findMany({ select: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const items = await db.platformProposal.findMany({ select: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, decidedAt: true, dueAt: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.platformProposal.findOne({ id: '', select: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const item = await db.platformProposal.findOne({ id: '', select: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, decidedAt: true, dueAt: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.platformProposal.create({ data: { actorId: '', body: '', bodyTrgmSimilarity: '', closedReason: '', closedReasonTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', decidedAt: '', dueAt: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', kind: '', kindTrgmSimilarity: '', labels: '', mergeCommit: '', mergeCommitTrgmSimilarity: '', mergeMethod: '', mergeMethodTrgmSimilarity: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', resolutionTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', sourceRef: '', sourceRefTrgmSimilarity: '', status: '', statusTrgmSimilarity: '', targetRef: '', targetRefTrgmSimilarity: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); +const created = await db.platformProposal.create({ data: { actorId: '', body: '', closedReason: '', createdBy: '', createdByPrincipal: '', decidedAt: '', dueAt: '', embedding: '', kind: '', labels: '', mergeCommit: '', mergeMethod: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', sourceRef: '', status: '', targetRef: '', title: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformProposal.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -3073,22 +2982,22 @@ CRUD operations for PlatformProposalReview records. | Field | Type | Editable | |-------|------|----------| | `body` | String | Yes | -| `bodyTrgmSimilarity` | Float | Yes | +| `bodyTrgmSimilarity` | Float | No | | `commitSha` | String | Yes | -| `commitShaTrgmSimilarity` | Float | Yes | +| `commitShaTrgmSimilarity` | Float | No | | `createdAt` | Datetime | No | | `createdByPrincipal` | UUID | Yes | | `id` | UUID | No | | `proposalId` | UUID | Yes | | `reviewerId` | UUID | Yes | -| `search` | FullText | Yes | -| `searchScore` | Float | Yes | -| `searchTsvRank` | Float | Yes | +| `search` | FullText | No | +| `searchScore` | Float | No | +| `searchTsvRank` | Float | No | | `submittedAt` | Datetime | Yes | | `updatedAt` | Datetime | No | | `updatedByPrincipal` | UUID | Yes | | `verdict` | String | Yes | -| `verdictTrgmSimilarity` | Float | Yes | +| `verdictTrgmSimilarity` | Float | No | **Operations:** @@ -3100,7 +3009,7 @@ const items = await db.platformProposalReview.findMany({ select: { body: true, b const item = await db.platformProposalReview.findOne({ id: '', select: { body: true, bodyTrgmSimilarity: true, commitSha: true, commitShaTrgmSimilarity: true, createdAt: true, createdByPrincipal: true, id: true, proposalId: true, reviewerId: true, search: true, searchScore: true, searchTsvRank: true, submittedAt: true, updatedAt: true, updatedByPrincipal: true, verdict: true, verdictTrgmSimilarity: true } }).execute(); // Create -const created = await db.platformProposalReview.create({ data: { body: '', bodyTrgmSimilarity: '', commitSha: '', commitShaTrgmSimilarity: '', createdByPrincipal: '', proposalId: '', reviewerId: '', search: '', searchScore: '', searchTsvRank: '', submittedAt: '', updatedByPrincipal: '', verdict: '', verdictTrgmSimilarity: '' }, select: { id: true } }).execute(); +const created = await db.platformProposalReview.create({ data: { body: '', commitSha: '', createdByPrincipal: '', proposalId: '', reviewerId: '', submittedAt: '', updatedByPrincipal: '', verdict: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformProposalReview.update({ where: { id: '' }, data: { body: '' }, select: { id: true } }).execute(); @@ -3125,11 +3034,11 @@ CRUD operations for PlatformProposalsChunk records. | `chunkIndex` | Int | Yes | | `createdAt` | Datetime | No | | `embedding` | Vector | Yes | -| `embeddingVectorDistance` | Float | Yes | +| `embeddingVectorDistance` | Float | No | | `id` | UUID | No | | `metadata` | JSON | Yes | | `platformProposalsId` | UUID | Yes | -| `searchScore` | Float | Yes | +| `searchScore` | Float | No | | `updatedAt` | Datetime | No | **Operations:** @@ -3142,7 +3051,7 @@ const items = await db.platformProposalsChunk.findMany({ select: { actorId: true const item = await db.platformProposalsChunk.findOne({ id: '', select: { actorId: true, body: true, chunkIndex: true, createdAt: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, platformProposalsId: true, searchScore: true, updatedAt: true } }).execute(); // Create -const created = await db.platformProposalsChunk.create({ data: { actorId: '', body: '', chunkIndex: '', embedding: '', embeddingVectorDistance: '', metadata: '', platformProposalsId: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.platformProposalsChunk.create({ data: { actorId: '', body: '', chunkIndex: '', embedding: '', metadata: '', platformProposalsId: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformProposalsChunk.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -3292,49 +3201,51 @@ CRUD operations for PlatformRepository records. | Field | Type | Editable | |-------|------|----------| | `cloneUrl` | String | Yes | -| `cloneUrlTrgmSimilarity` | Float | Yes | +| `cloneUrlTrgmSimilarity` | Float | No | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | | `createdByPrincipal` | UUID | Yes | | `defaultBranch` | String | Yes | -| `defaultBranchTrgmSimilarity` | Float | Yes | +| `defaultBranchTrgmSimilarity` | Float | No | | `description` | String | Yes | -| `descriptionTrgmSimilarity` | Float | Yes | +| `descriptionTrgmSimilarity` | Float | No | | `embedding` | Vector | Yes | -| `embeddingUpdatedAt` | Datetime | Yes | -| `embeddingVectorDistance` | Float | Yes | +| `embeddingModel` | String | No | +| `embeddingModelTrgmSimilarity` | Float | No | +| `embeddingUpdatedAt` | Datetime | No | +| `embeddingVectorDistance` | Float | No | | `externalId` | String | Yes | -| `externalIdTrgmSimilarity` | Float | Yes | +| `externalIdTrgmSimilarity` | Float | No | | `id` | UUID | No | | `isArchived` | Boolean | Yes | | `metadata` | JSON | Yes | | `name` | String | Yes | -| `nameTrgmSimilarity` | Float | Yes | +| `nameTrgmSimilarity` | Float | No | | `ownerId` | UUID | Yes | | `provider` | String | Yes | -| `providerTrgmSimilarity` | Float | Yes | -| `search` | FullText | Yes | -| `searchScore` | Float | Yes | -| `searchTsvRank` | Float | Yes | +| `providerTrgmSimilarity` | Float | No | +| `search` | FullText | No | +| `searchScore` | Float | No | +| `searchTsvRank` | Float | No | | `slug` | String | Yes | -| `slugTrgmSimilarity` | Float | Yes | +| `slugTrgmSimilarity` | Float | No | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | | `updatedByPrincipal` | UUID | Yes | | `visibility` | String | Yes | -| `visibilityTrgmSimilarity` | Float | Yes | +| `visibilityTrgmSimilarity` | Float | No | **Operations:** ```typescript // List all platformRepository records -const items = await db.platformRepository.findMany({ select: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }).execute(); +const items = await db.platformRepository.findMany({ select: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }).execute(); // Get one by id -const item = await db.platformRepository.findOne({ id: '', select: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }).execute(); +const item = await db.platformRepository.findOne({ id: '', select: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }).execute(); // Create -const created = await db.platformRepository.create({ data: { cloneUrl: '', cloneUrlTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', defaultBranch: '', defaultBranchTrgmSimilarity: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', externalId: '', externalIdTrgmSimilarity: '', isArchived: '', metadata: '', name: '', nameTrgmSimilarity: '', ownerId: '', provider: '', providerTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', slug: '', slugTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '', visibility: '', visibilityTrgmSimilarity: '' }, select: { id: true } }).execute(); +const created = await db.platformRepository.create({ data: { cloneUrl: '', createdBy: '', createdByPrincipal: '', defaultBranch: '', description: '', embedding: '', externalId: '', isArchived: '', metadata: '', name: '', ownerId: '', provider: '', slug: '', updatedBy: '', updatedByPrincipal: '', visibility: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformRepository.update({ where: { id: '' }, data: { cloneUrl: '' }, select: { id: true } }).execute(); @@ -3478,8 +3389,8 @@ CRUD operations for PlatformResource records. | Field | Type | Editable | |-------|------|----------| | `annotations` | JSON | Yes | -| `cpuLimitMillicores` | BigInt | Yes | -| `cpuRequestMillicores` | BigInt | Yes | +| `cpuLimitMillicores` | BigInt | No | +| `cpuRequestMillicores` | BigInt | No | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | | `createdByPrincipal` | UUID | Yes | @@ -3492,12 +3403,12 @@ CRUD operations for PlatformResource records. | `labels` | JSON | Yes | | `lastError` | String | Yes | | `lastHeartbeatAt` | Datetime | Yes | -| `memoryLimitBytes` | BigInt | Yes | -| `memoryRequestBytes` | BigInt | Yes | +| `memoryLimitBytes` | BigInt | No | +| `memoryRequestBytes` | BigInt | No | | `name` | String | Yes | | `namespaceId` | UUID | Yes | | `realm` | String | Yes | -| `replicas` | Int | Yes | +| `replicas` | Int | No | | `requiredConfigs` | ResourceRequirement | Yes | | `requiredSecrets` | ResourceRequirement | Yes | | `resourceDefinitionId` | UUID | Yes | @@ -3505,9 +3416,9 @@ CRUD operations for PlatformResource records. | `spec` | JSON | Yes | | `status` | String | Yes | | `statusObserved` | JSON | Yes | -| `storageClass` | String | Yes | -| `storageSizeBytes` | BigInt | Yes | -| `storageTotalBytes` | BigInt | Yes | +| `storageClass` | String | No | +| `storageSizeBytes` | BigInt | No | +| `storageTotalBytes` | BigInt | No | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | | `updatedByPrincipal` | UUID | Yes | @@ -3516,13 +3427,13 @@ CRUD operations for PlatformResource records. ```typescript // List all platformResource records -const items = await db.platformResource.findMany({ select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const items = await db.platformResource.findMany({ select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.platformResource.findOne({ id: '', select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const item = await db.platformResource.findOne({ id: '', select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.platformResource.create({ data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); +const created = await db.platformResource.create({ data: { annotations: '', createdBy: '', createdByPrincipal: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', name: '', namespaceId: '', realm: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformResource.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -3563,9 +3474,6 @@ const items = await db.platformResourceDeclaredCapacity.findMany({ select: { cpu // Get one by id const item = await db.platformResourceDeclaredCapacity.findOne({ id: '', select: { cpuLimitMillicores: true, cpuRequestMillicores: true, installationId: true, isTransient: true, kind: true, memoryLimitBytes: true, memoryRequestBytes: true, namespaceId: true, podCountMax: true, podCountMin: true, source: true, sourceId: true, storageSizeBytes: true, storageTotalBytes: true } }).execute(); -// Create -const created = await db.platformResourceDeclaredCapacity.create({ data: { cpuLimitMillicores: '', cpuRequestMillicores: '', installationId: '', isTransient: '', kind: '', memoryLimitBytes: '', memoryRequestBytes: '', namespaceId: '', podCountMax: '', podCountMin: '', source: '', sourceId: '', storageSizeBytes: '', storageTotalBytes: '' }, select: { id: true } }).execute(); - // Update const updated = await db.platformResourceDeclaredCapacity.update({ where: { id: '' }, data: { cpuLimitMillicores: '' }, select: { id: true } }).execute(); @@ -3606,10 +3514,10 @@ CRUD operations for PlatformResourceDefinition records. ```typescript // List all platformResourceDefinition records -const items = await db.platformResourceDefinition.findMany({ select: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const items = await db.platformResourceDefinition.findMany({ select: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.platformResourceDefinition.findOne({ id: '', select: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const item = await db.platformResourceDefinition.findOne({ id: '', select: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create const created = await db.platformResourceDefinition.create({ data: { annotations: '', createdBy: '', createdByPrincipal: '', defaultSpec: '', description: '', integrations: '', kind: '', labels: '', name: '', namespaceId: '', paramsSchema: '', requiredConfigs: '', requiredSecrets: '', slug: '', stepUpMinAge: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); @@ -3735,9 +3643,6 @@ const items = await db.platformResourceObservedStorage.findMany({ select: { capa // Get one by id const item = await db.platformResourceObservedStorage.findOne({ id: '', select: { capacity: true, capacityBytes: true, claimName: true, declaredStorageClass: true, declaredStorageSizeBytes: true, declaredStorageTotalBytes: true, installationId: true, isBound: true, kind: true, namespaceId: true, phase: true, requested: true, requestedBytes: true, resourceId: true, resourceStatus: true, slug: true, storageClass: true, storageName: true } }).execute(); -// Create -const created = await db.platformResourceObservedStorage.create({ data: { capacity: '', capacityBytes: '', claimName: '', declaredStorageClass: '', declaredStorageSizeBytes: '', declaredStorageTotalBytes: '', installationId: '', isBound: '', kind: '', namespaceId: '', phase: '', requested: '', requestedBytes: '', resourceId: '', resourceStatus: '', slug: '', storageClass: '', storageName: '' }, select: { id: true } }).execute(); - // Update const updated = await db.platformResourceObservedStorage.update({ where: { id: '' }, data: { capacity: '' }, select: { id: true } }).execute(); @@ -3891,9 +3796,6 @@ const items = await db.platformResourceUtilization.findMany({ select: { avgMemor // Get one by id const item = await db.platformResourceUtilization.findOne({ id: '', select: { avgMemoryBytes: true, cpuLimitMillicores: true, cpuPeakUtilization: true, cpuRequestHeadroomMillicores: true, cpuRequestMillicores: true, date: true, gbSeconds: true, kind: true, maxCpuMillicores: true, maxMemoryBytes: true, memoryLimitBytes: true, memoryPeakUtilization: true, memoryRequestBytes: true, memoryRequestHeadroomBytes: true, namespaceId: true, replicas: true, resourceId: true, runtimeSeconds: true, sampleCount: true } }).execute(); -// Create -const created = await db.platformResourceUtilization.create({ data: { avgMemoryBytes: '', cpuLimitMillicores: '', cpuPeakUtilization: '', cpuRequestHeadroomMillicores: '', cpuRequestMillicores: '', date: '', gbSeconds: '', kind: '', maxCpuMillicores: '', maxMemoryBytes: '', memoryLimitBytes: '', memoryPeakUtilization: '', memoryRequestBytes: '', memoryRequestHeadroomBytes: '', namespaceId: '', replicas: '', resourceId: '', runtimeSeconds: '', sampleCount: '' }, select: { id: true } }).execute(); - // Update const updated = await db.platformResourceUtilization.update({ where: { id: '' }, data: { avgMemoryBytes: '' }, select: { id: true } }).execute(); @@ -3949,13 +3851,10 @@ CRUD operations for PlatformResourcesHealth records. ```typescript // List all platformResourcesHealth records -const items = await db.platformResourcesHealth.findMany({ select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const items = await db.platformResourcesHealth.findMany({ select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.platformResourcesHealth.findOne({ id: '', select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); - -// Create -const created = await db.platformResourcesHealth.create({ data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusDetail: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); +const item = await db.platformResourcesHealth.findOne({ id: '', select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Update const updated = await db.platformResourcesHealth.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -3989,9 +3888,6 @@ const items = await db.platformResourcesRequirementsState.findMany({ select: { c // Get one by id const item = await db.platformResourcesRequirementsState.findOne({ id: '', select: { configHash: true, configObjectName: true, requirementsHash: true, resourceId: true, secretsHash: true, secretsObjectName: true, slug: true } }).execute(); -// Create -const created = await db.platformResourcesRequirementsState.create({ data: { configHash: '', configObjectName: '', requirementsHash: '', resourceId: '', secretsHash: '', secretsObjectName: '', slug: '' }, select: { id: true } }).execute(); - // Update const updated = await db.platformResourcesRequirementsState.update({ where: { id: '' }, data: { configHash: '' }, select: { id: true } }).execute(); @@ -4028,9 +3924,6 @@ const items = await db.platformResourcesResolvedRequirement.findMany({ select: { // Get one by id const item = await db.platformResourcesResolvedRequirement.findOne({ id: '', select: { atomId: true, configObjectName: true, name: true, namespaceId: true, present: true, realm: true, required: true, requirementKind: true, resourceId: true, secretsObjectName: true, slug: true } }).execute(); -// Create -const created = await db.platformResourcesResolvedRequirement.create({ data: { atomId: '', configObjectName: '', name: '', namespaceId: '', present: '', realm: '', required: '', requirementKind: '', resourceId: '', secretsObjectName: '', slug: '' }, select: { id: true } }).execute(); - // Update const updated = await db.platformResourcesResolvedRequirement.update({ where: { id: '' }, data: { atomId: '' }, select: { id: true } }).execute(); @@ -4038,6 +3931,50 @@ const updated = await db.platformResourcesResolvedRequirement.update({ where: { const deleted = await db.platformResourcesResolvedRequirement.delete({ where: { id: '' } }).execute(); ``` +### `db.platformServiceBinding` + +CRUD operations for PlatformServiceBinding records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `id` | UUID | No | +| `installationId` | UUID | Yes | +| `installationScope` | String | Yes | +| `kind` | String | Yes | +| `lastError` | String | Yes | +| `metadata` | JSON | Yes | +| `namespaceId` | UUID | Yes | +| `observedHost` | String | Yes | +| `realm` | String | Yes | +| `status` | String | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformServiceBinding records +const items = await db.platformServiceBinding.findMany({ select: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, installationId: true, installationScope: true, kind: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.platformServiceBinding.findOne({ id: '', select: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, installationId: true, installationScope: true, kind: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.platformServiceBinding.create({ data: { createdBy: '', createdByPrincipal: '', installationId: '', installationScope: '', kind: '', lastError: '', metadata: '', namespaceId: '', observedHost: '', realm: '', status: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformServiceBinding.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformServiceBinding.delete({ where: { id: '' } }).execute(); +``` + ### `db.platformWebhookEndpoint` CRUD operations for PlatformWebhookEndpoint records. @@ -4131,25 +4068,29 @@ CRUD operations for ProposalComment records. |-------|------|----------| | `actorId` | UUID | Yes | | `attachments` | ConstructiveInternalTypeUpload | Yes | +| `attachmentsUrl` | String | No | +| `attachmentsVersions` | FileVersion | No | | `body` | String | Yes | -| `bodyTrgmSimilarity` | Float | Yes | +| `bodyTrgmSimilarity` | Float | No | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | | `createdByPrincipal` | UUID | Yes | | `databaseId` | UUID | Yes | | `embedding` | Vector | Yes | -| `embeddingUpdatedAt` | Datetime | Yes | -| `embeddingVectorDistance` | Float | Yes | +| `embeddingModel` | String | No | +| `embeddingModelTrgmSimilarity` | Float | No | +| `embeddingUpdatedAt` | Datetime | No | +| `embeddingVectorDistance` | Float | No | | `id` | UUID | No | | `line` | Int | Yes | | `outdatedAt` | Datetime | Yes | | `path` | String | Yes | -| `pathTrgmSimilarity` | Float | Yes | +| `pathTrgmSimilarity` | Float | No | | `proposalId` | UUID | Yes | | `resolvedAt` | Datetime | Yes | -| `search` | FullText | Yes | -| `searchScore` | Float | Yes | -| `searchTsvRank` | Float | Yes | +| `search` | FullText | No | +| `searchScore` | Float | No | +| `searchTsvRank` | Float | No | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | | `updatedByPrincipal` | UUID | Yes | @@ -4158,13 +4099,13 @@ CRUD operations for ProposalComment records. ```typescript // List all proposalComment records -const items = await db.proposalComment.findMany({ select: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const items = await db.proposalComment.findMany({ select: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.proposalComment.findOne({ id: '', select: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const item = await db.proposalComment.findOne({ id: '', select: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.proposalComment.create({ data: { actorId: '', attachments: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', line: '', outdatedAt: '', path: '', pathTrgmSimilarity: '', proposalId: '', resolvedAt: '', search: '', searchScore: '', searchTsvRank: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); +const created = await db.proposalComment.create({ data: { actorId: '', attachments: '', body: '', createdBy: '', createdByPrincipal: '', databaseId: '', embedding: '', line: '', outdatedAt: '', path: '', proposalId: '', resolvedAt: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.proposalComment.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -4189,9 +4130,9 @@ CRUD operations for Proposal records. |-------|------|----------| | `actorId` | UUID | Yes | | `body` | String | Yes | -| `bodyTrgmSimilarity` | Float | Yes | +| `bodyTrgmSimilarity` | Float | No | | `closedReason` | String | Yes | -| `closedReasonTrgmSimilarity` | Float | Yes | +| `closedReasonTrgmSimilarity` | Float | No | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | | `createdByPrincipal` | UUID | Yes | @@ -4199,16 +4140,18 @@ CRUD operations for Proposal records. | `decidedAt` | Datetime | Yes | | `dueAt` | Datetime | Yes | | `embedding` | Vector | Yes | -| `embeddingUpdatedAt` | Datetime | Yes | -| `embeddingVectorDistance` | Float | Yes | +| `embeddingModel` | String | No | +| `embeddingModelTrgmSimilarity` | Float | No | +| `embeddingUpdatedAt` | Datetime | No | +| `embeddingVectorDistance` | Float | No | | `id` | UUID | No | | `kind` | String | Yes | -| `kindTrgmSimilarity` | Float | Yes | +| `kindTrgmSimilarity` | Float | No | | `labels` | String | Yes | | `mergeCommit` | String | Yes | -| `mergeCommitTrgmSimilarity` | Float | Yes | +| `mergeCommitTrgmSimilarity` | Float | No | | `mergeMethod` | String | Yes | -| `mergeMethodTrgmSimilarity` | Float | Yes | +| `mergeMethodTrgmSimilarity` | Float | No | | `mergeRequestedAt` | Datetime | Yes | | `mergedAt` | Datetime | Yes | | `metadata` | JSON | Yes | @@ -4216,18 +4159,18 @@ CRUD operations for Proposal records. | `priority` | BigFloat | Yes | | `repositoryId` | UUID | Yes | | `resolution` | String | Yes | -| `resolutionTrgmSimilarity` | Float | Yes | -| `search` | FullText | Yes | -| `searchScore` | Float | Yes | -| `searchTsvRank` | Float | Yes | +| `resolutionTrgmSimilarity` | Float | No | +| `search` | FullText | No | +| `searchScore` | Float | No | +| `searchTsvRank` | Float | No | | `sourceRef` | String | Yes | -| `sourceRefTrgmSimilarity` | Float | Yes | +| `sourceRefTrgmSimilarity` | Float | No | | `status` | String | Yes | -| `statusTrgmSimilarity` | Float | Yes | +| `statusTrgmSimilarity` | Float | No | | `targetRef` | String | Yes | -| `targetRefTrgmSimilarity` | Float | Yes | +| `targetRefTrgmSimilarity` | Float | No | | `title` | String | Yes | -| `titleTrgmSimilarity` | Float | Yes | +| `titleTrgmSimilarity` | Float | No | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | | `updatedByPrincipal` | UUID | Yes | @@ -4236,13 +4179,13 @@ CRUD operations for Proposal records. ```typescript // List all proposal records -const items = await db.proposal.findMany({ select: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const items = await db.proposal.findMany({ select: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, decidedAt: true, dueAt: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.proposal.findOne({ id: '', select: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const item = await db.proposal.findOne({ id: '', select: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, decidedAt: true, dueAt: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.proposal.create({ data: { actorId: '', body: '', bodyTrgmSimilarity: '', closedReason: '', closedReasonTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', decidedAt: '', dueAt: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', kind: '', kindTrgmSimilarity: '', labels: '', mergeCommit: '', mergeCommitTrgmSimilarity: '', mergeMethod: '', mergeMethodTrgmSimilarity: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', resolutionTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', sourceRef: '', sourceRefTrgmSimilarity: '', status: '', statusTrgmSimilarity: '', targetRef: '', targetRefTrgmSimilarity: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); +const created = await db.proposal.create({ data: { actorId: '', body: '', closedReason: '', createdBy: '', createdByPrincipal: '', databaseId: '', decidedAt: '', dueAt: '', embedding: '', kind: '', labels: '', mergeCommit: '', mergeMethod: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', sourceRef: '', status: '', targetRef: '', title: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.proposal.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -4343,23 +4286,23 @@ CRUD operations for ProposalReview records. | Field | Type | Editable | |-------|------|----------| | `body` | String | Yes | -| `bodyTrgmSimilarity` | Float | Yes | +| `bodyTrgmSimilarity` | Float | No | | `commitSha` | String | Yes | -| `commitShaTrgmSimilarity` | Float | Yes | +| `commitShaTrgmSimilarity` | Float | No | | `createdAt` | Datetime | No | | `createdByPrincipal` | UUID | Yes | | `databaseId` | UUID | Yes | | `id` | UUID | No | | `proposalId` | UUID | Yes | | `reviewerId` | UUID | Yes | -| `search` | FullText | Yes | -| `searchScore` | Float | Yes | -| `searchTsvRank` | Float | Yes | +| `search` | FullText | No | +| `searchScore` | Float | No | +| `searchTsvRank` | Float | No | | `submittedAt` | Datetime | Yes | | `updatedAt` | Datetime | No | | `updatedByPrincipal` | UUID | Yes | | `verdict` | String | Yes | -| `verdictTrgmSimilarity` | Float | Yes | +| `verdictTrgmSimilarity` | Float | No | **Operations:** @@ -4371,7 +4314,7 @@ const items = await db.proposalReview.findMany({ select: { body: true, bodyTrgmS const item = await db.proposalReview.findOne({ id: '', select: { body: true, bodyTrgmSimilarity: true, commitSha: true, commitShaTrgmSimilarity: true, createdAt: true, createdByPrincipal: true, databaseId: true, id: true, proposalId: true, reviewerId: true, search: true, searchScore: true, searchTsvRank: true, submittedAt: true, updatedAt: true, updatedByPrincipal: true, verdict: true, verdictTrgmSimilarity: true } }).execute(); // Create -const created = await db.proposalReview.create({ data: { body: '', bodyTrgmSimilarity: '', commitSha: '', commitShaTrgmSimilarity: '', createdByPrincipal: '', databaseId: '', proposalId: '', reviewerId: '', search: '', searchScore: '', searchTsvRank: '', submittedAt: '', updatedByPrincipal: '', verdict: '', verdictTrgmSimilarity: '' }, select: { id: true } }).execute(); +const created = await db.proposalReview.create({ data: { body: '', commitSha: '', createdByPrincipal: '', databaseId: '', proposalId: '', reviewerId: '', submittedAt: '', updatedByPrincipal: '', verdict: '' }, select: { id: true } }).execute(); // Update const updated = await db.proposalReview.update({ where: { id: '' }, data: { body: '' }, select: { id: true } }).execute(); @@ -4397,11 +4340,11 @@ CRUD operations for ProposalsChunk records. | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | | `embedding` | Vector | Yes | -| `embeddingVectorDistance` | Float | Yes | +| `embeddingVectorDistance` | Float | No | | `id` | UUID | No | | `metadata` | JSON | Yes | | `proposalsId` | UUID | Yes | -| `searchScore` | Float | Yes | +| `searchScore` | Float | No | | `updatedAt` | Datetime | No | **Operations:** @@ -4414,7 +4357,7 @@ const items = await db.proposalsChunk.findMany({ select: { actorId: true, body: const item = await db.proposalsChunk.findOne({ id: '', select: { actorId: true, body: true, chunkIndex: true, createdAt: true, databaseId: true, embedding: true, embeddingVectorDistance: true, id: true, metadata: true, proposalsId: true, searchScore: true, updatedAt: true } }).execute(); // Create -const created = await db.proposalsChunk.create({ data: { actorId: '', body: '', chunkIndex: '', databaseId: '', embedding: '', embeddingVectorDistance: '', metadata: '', proposalsId: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.proposalsChunk.create({ data: { actorId: '', body: '', chunkIndex: '', databaseId: '', embedding: '', metadata: '', proposalsId: '' }, select: { id: true } }).execute(); // Update const updated = await db.proposalsChunk.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -4567,50 +4510,52 @@ CRUD operations for Repository records. | Field | Type | Editable | |-------|------|----------| | `cloneUrl` | String | Yes | -| `cloneUrlTrgmSimilarity` | Float | Yes | +| `cloneUrlTrgmSimilarity` | Float | No | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | | `createdByPrincipal` | UUID | Yes | | `databaseId` | UUID | Yes | | `defaultBranch` | String | Yes | -| `defaultBranchTrgmSimilarity` | Float | Yes | +| `defaultBranchTrgmSimilarity` | Float | No | | `description` | String | Yes | -| `descriptionTrgmSimilarity` | Float | Yes | +| `descriptionTrgmSimilarity` | Float | No | | `embedding` | Vector | Yes | -| `embeddingUpdatedAt` | Datetime | Yes | -| `embeddingVectorDistance` | Float | Yes | +| `embeddingModel` | String | No | +| `embeddingModelTrgmSimilarity` | Float | No | +| `embeddingUpdatedAt` | Datetime | No | +| `embeddingVectorDistance` | Float | No | | `externalId` | String | Yes | -| `externalIdTrgmSimilarity` | Float | Yes | +| `externalIdTrgmSimilarity` | Float | No | | `id` | UUID | No | | `isArchived` | Boolean | Yes | | `metadata` | JSON | Yes | | `name` | String | Yes | -| `nameTrgmSimilarity` | Float | Yes | +| `nameTrgmSimilarity` | Float | No | | `ownerId` | UUID | Yes | | `provider` | String | Yes | -| `providerTrgmSimilarity` | Float | Yes | -| `search` | FullText | Yes | -| `searchScore` | Float | Yes | -| `searchTsvRank` | Float | Yes | +| `providerTrgmSimilarity` | Float | No | +| `search` | FullText | No | +| `searchScore` | Float | No | +| `searchTsvRank` | Float | No | | `slug` | String | Yes | -| `slugTrgmSimilarity` | Float | Yes | +| `slugTrgmSimilarity` | Float | No | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | | `updatedByPrincipal` | UUID | Yes | | `visibility` | String | Yes | -| `visibilityTrgmSimilarity` | Float | Yes | +| `visibilityTrgmSimilarity` | Float | No | **Operations:** ```typescript // List all repository records -const items = await db.repository.findMany({ select: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }).execute(); +const items = await db.repository.findMany({ select: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }).execute(); // Get one by id -const item = await db.repository.findOne({ id: '', select: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }).execute(); +const item = await db.repository.findOne({ id: '', select: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }).execute(); // Create -const created = await db.repository.create({ data: { cloneUrl: '', cloneUrlTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', defaultBranch: '', defaultBranchTrgmSimilarity: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', externalId: '', externalIdTrgmSimilarity: '', isArchived: '', metadata: '', name: '', nameTrgmSimilarity: '', ownerId: '', provider: '', providerTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', slug: '', slugTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '', visibility: '', visibilityTrgmSimilarity: '' }, select: { id: true } }).execute(); +const created = await db.repository.create({ data: { cloneUrl: '', createdBy: '', createdByPrincipal: '', databaseId: '', defaultBranch: '', description: '', embedding: '', externalId: '', isArchived: '', metadata: '', name: '', ownerId: '', provider: '', slug: '', updatedBy: '', updatedByPrincipal: '', visibility: '' }, select: { id: true } }).execute(); // Update const updated = await db.repository.update({ where: { id: '' }, data: { cloneUrl: '' }, select: { id: true } }).execute(); @@ -4757,8 +4702,8 @@ CRUD operations for Resource records. | Field | Type | Editable | |-------|------|----------| | `annotations` | JSON | Yes | -| `cpuLimitMillicores` | BigInt | Yes | -| `cpuRequestMillicores` | BigInt | Yes | +| `cpuLimitMillicores` | BigInt | No | +| `cpuRequestMillicores` | BigInt | No | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | | `createdByPrincipal` | UUID | Yes | @@ -4772,12 +4717,12 @@ CRUD operations for Resource records. | `labels` | JSON | Yes | | `lastError` | String | Yes | | `lastHeartbeatAt` | Datetime | Yes | -| `memoryLimitBytes` | BigInt | Yes | -| `memoryRequestBytes` | BigInt | Yes | +| `memoryLimitBytes` | BigInt | No | +| `memoryRequestBytes` | BigInt | No | | `name` | String | Yes | | `namespaceId` | UUID | Yes | | `realm` | String | Yes | -| `replicas` | Int | Yes | +| `replicas` | Int | No | | `requiredConfigs` | ResourceRequirement | Yes | | `requiredSecrets` | ResourceRequirement | Yes | | `resourceDefinitionId` | UUID | Yes | @@ -4785,9 +4730,9 @@ CRUD operations for Resource records. | `spec` | JSON | Yes | | `status` | String | Yes | | `statusObserved` | JSON | Yes | -| `storageClass` | String | Yes | -| `storageSizeBytes` | BigInt | Yes | -| `storageTotalBytes` | BigInt | Yes | +| `storageClass` | String | No | +| `storageSizeBytes` | BigInt | No | +| `storageTotalBytes` | BigInt | No | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | | `updatedByPrincipal` | UUID | Yes | @@ -4796,13 +4741,13 @@ CRUD operations for Resource records. ```typescript // List all resource records -const items = await db.resource.findMany({ select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const items = await db.resource.findMany({ select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.resource.findOne({ id: '', select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const item = await db.resource.findOne({ id: '', select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.resource.create({ data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', databaseId: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); +const created = await db.resource.create({ data: { annotations: '', createdBy: '', createdByPrincipal: '', databaseId: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', name: '', namespaceId: '', realm: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusObserved: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.resource.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -4843,9 +4788,6 @@ const items = await db.resourceDeclaredCapacity.findMany({ select: { cpuLimitMil // Get one by id const item = await db.resourceDeclaredCapacity.findOne({ id: '', select: { cpuLimitMillicores: true, cpuRequestMillicores: true, installationId: true, isTransient: true, kind: true, memoryLimitBytes: true, memoryRequestBytes: true, namespaceId: true, podCountMax: true, podCountMin: true, source: true, sourceId: true, storageSizeBytes: true, storageTotalBytes: true } }).execute(); -// Create -const created = await db.resourceDeclaredCapacity.create({ data: { cpuLimitMillicores: '', cpuRequestMillicores: '', installationId: '', isTransient: '', kind: '', memoryLimitBytes: '', memoryRequestBytes: '', namespaceId: '', podCountMax: '', podCountMin: '', source: '', sourceId: '', storageSizeBytes: '', storageTotalBytes: '' }, select: { id: true } }).execute(); - // Update const updated = await db.resourceDeclaredCapacity.update({ where: { id: '' }, data: { cpuLimitMillicores: '' }, select: { id: true } }).execute(); @@ -4887,10 +4829,10 @@ CRUD operations for ResourceDefinition records. ```typescript // List all resourceDefinition records -const items = await db.resourceDefinition.findMany({ select: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const items = await db.resourceDefinition.findMany({ select: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.resourceDefinition.findOne({ id: '', select: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, requiredConfigs: true, requiredSecrets: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const item = await db.resourceDefinition.findOne({ id: '', select: { annotations: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultSpec: true, description: true, id: true, integrations: true, kind: true, labels: true, name: true, namespaceId: true, paramsSchema: true, slug: true, stepUpMinAge: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create const created = await db.resourceDefinition.create({ data: { annotations: '', createdBy: '', createdByPrincipal: '', databaseId: '', defaultSpec: '', description: '', integrations: '', kind: '', labels: '', name: '', namespaceId: '', paramsSchema: '', requiredConfigs: '', requiredSecrets: '', slug: '', stepUpMinAge: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); @@ -5018,9 +4960,6 @@ const items = await db.resourceObservedStorage.findMany({ select: { capacity: tr // Get one by id const item = await db.resourceObservedStorage.findOne({ id: '', select: { capacity: true, capacityBytes: true, claimName: true, declaredStorageClass: true, declaredStorageSizeBytes: true, declaredStorageTotalBytes: true, installationId: true, isBound: true, kind: true, namespaceId: true, phase: true, requested: true, requestedBytes: true, resourceId: true, resourceStatus: true, slug: true, storageClass: true, storageName: true } }).execute(); -// Create -const created = await db.resourceObservedStorage.create({ data: { capacity: '', capacityBytes: '', claimName: '', declaredStorageClass: '', declaredStorageSizeBytes: '', declaredStorageTotalBytes: '', installationId: '', isBound: '', kind: '', namespaceId: '', phase: '', requested: '', requestedBytes: '', resourceId: '', resourceStatus: '', slug: '', storageClass: '', storageName: '' }, select: { id: true } }).execute(); - // Update const updated = await db.resourceObservedStorage.update({ where: { id: '' }, data: { capacity: '' }, select: { id: true } }).execute(); @@ -5177,9 +5116,6 @@ const items = await db.resourceUtilization.findMany({ select: { avgMemoryBytes: // Get one by id const item = await db.resourceUtilization.findOne({ id: '', select: { avgMemoryBytes: true, cpuLimitMillicores: true, cpuPeakUtilization: true, cpuRequestHeadroomMillicores: true, cpuRequestMillicores: true, date: true, gbSeconds: true, kind: true, maxCpuMillicores: true, maxMemoryBytes: true, memoryLimitBytes: true, memoryPeakUtilization: true, memoryRequestBytes: true, memoryRequestHeadroomBytes: true, namespaceId: true, replicas: true, resourceId: true, runtimeSeconds: true, sampleCount: true } }).execute(); -// Create -const created = await db.resourceUtilization.create({ data: { avgMemoryBytes: '', cpuLimitMillicores: '', cpuPeakUtilization: '', cpuRequestHeadroomMillicores: '', cpuRequestMillicores: '', date: '', gbSeconds: '', kind: '', maxCpuMillicores: '', maxMemoryBytes: '', memoryLimitBytes: '', memoryPeakUtilization: '', memoryRequestBytes: '', memoryRequestHeadroomBytes: '', namespaceId: '', replicas: '', resourceId: '', runtimeSeconds: '', sampleCount: '' }, select: { id: true } }).execute(); - // Update const updated = await db.resourceUtilization.update({ where: { id: '' }, data: { avgMemoryBytes: '' }, select: { id: true } }).execute(); @@ -5236,13 +5172,10 @@ CRUD operations for ResourcesHealth records. ```typescript // List all resourcesHealth records -const items = await db.resourcesHealth.findMany({ select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const items = await db.resourcesHealth.findMany({ select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.resourcesHealth.findOne({ id: '', select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); - -// Create -const created = await db.resourcesHealth.create({ data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', databaseId: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusDetail: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); +const item = await db.resourcesHealth.findOne({ id: '', select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Update const updated = await db.resourcesHealth.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -5276,9 +5209,6 @@ const items = await db.resourcesRequirementsState.findMany({ select: { configHas // Get one by id const item = await db.resourcesRequirementsState.findOne({ id: '', select: { configHash: true, configObjectName: true, requirementsHash: true, resourceId: true, secretsHash: true, secretsObjectName: true, slug: true } }).execute(); -// Create -const created = await db.resourcesRequirementsState.create({ data: { configHash: '', configObjectName: '', requirementsHash: '', resourceId: '', secretsHash: '', secretsObjectName: '', slug: '' }, select: { id: true } }).execute(); - // Update const updated = await db.resourcesRequirementsState.update({ where: { id: '' }, data: { configHash: '' }, select: { id: true } }).execute(); @@ -5315,9 +5245,6 @@ const items = await db.resourcesResolvedRequirement.findMany({ select: { atomId: // Get one by id const item = await db.resourcesResolvedRequirement.findOne({ id: '', select: { atomId: true, configObjectName: true, name: true, namespaceId: true, present: true, realm: true, required: true, requirementKind: true, resourceId: true, secretsObjectName: true, slug: true } }).execute(); -// Create -const created = await db.resourcesResolvedRequirement.create({ data: { atomId: '', configObjectName: '', name: '', namespaceId: '', present: '', realm: '', required: '', requirementKind: '', resourceId: '', secretsObjectName: '', slug: '' }, select: { id: true } }).execute(); - // Update const updated = await db.resourcesResolvedRequirement.update({ where: { id: '' }, data: { atomId: '' }, select: { id: true } }).execute(); @@ -5325,6 +5252,51 @@ const updated = await db.resourcesResolvedRequirement.update({ where: { id: '' } }).execute(); ``` +### `db.serviceBinding` + +CRUD operations for ServiceBinding records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `id` | UUID | No | +| `installationId` | UUID | Yes | +| `installationScope` | String | Yes | +| `kind` | String | Yes | +| `lastError` | String | Yes | +| `metadata` | JSON | Yes | +| `namespaceId` | UUID | Yes | +| `observedHost` | String | Yes | +| `realm` | String | Yes | +| `status` | String | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all serviceBinding records +const items = await db.serviceBinding.findMany({ select: { createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, installationId: true, installationScope: true, kind: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.serviceBinding.findOne({ id: '', select: { createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, installationId: true, installationScope: true, kind: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.serviceBinding.create({ data: { createdBy: '', createdByPrincipal: '', databaseId: '', installationId: '', installationScope: '', kind: '', lastError: '', metadata: '', namespaceId: '', observedHost: '', realm: '', status: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.serviceBinding.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.serviceBinding.delete({ where: { id: '' } }).execute(); +``` + ### `db.webhookEndpoint` CRUD operations for WebhookEndpoint records. @@ -5532,6 +5504,21 @@ copyGraph const result = await db.mutation.copyGraph({ input: { graphId: '', name: '', scopeId: '' } }).execute(); ``` +### `db.mutation.createFunctionGraph` + +createFunctionGraph + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | CreateFunctionGraphInput (required) | + +```typescript +const result = await db.mutation.createFunctionGraph({ input: '' }).execute(); +``` + ### `db.mutation.databaseAddEdge` databaseAddEdge diff --git a/sdk/constructive-sdk/src/compute/orm/index.ts b/sdk/constructive-sdk/src/compute/orm/index.ts index 01033dc125..bc4368881e 100644 --- a/sdk/constructive-sdk/src/compute/orm/index.ts +++ b/sdk/constructive-sdk/src/compute/orm/index.ts @@ -7,7 +7,6 @@ import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; import { BuildModel } from './models/build'; import { BuildStepModel } from './models/buildStep'; -import { BuilderBindingModel } from './models/builderBinding'; import { ContentPresetModel } from './models/contentPreset'; import { DatabaseFunctionGraphModel } from './models/databaseFunctionGraph'; import { DatabaseFunctionGraphExecutionCancelRequestModel } from './models/databaseFunctionGraphExecutionCancelRequest'; @@ -51,7 +50,6 @@ import { NamespaceModel } from './models/namespace'; import { NamespaceEventModel } from './models/namespaceEvent'; import { PlatformBuildModel } from './models/platformBuild'; import { PlatformBuildStepModel } from './models/platformBuildStep'; -import { PlatformBuilderBindingModel } from './models/platformBuilderBinding'; import { PlatformFunctionApiBindingModel } from './models/platformFunctionApiBinding'; import { PlatformFunctionCapabilityBindingModel } from './models/platformFunctionCapabilityBinding'; import { PlatformFunctionDefinitionModel } from './models/platformFunctionDefinition'; @@ -98,6 +96,7 @@ import { PlatformResourceUtilizationModel } from './models/platformResourceUtili import { PlatformResourcesHealthModel } from './models/platformResourcesHealth'; import { PlatformResourcesRequirementsStateModel } from './models/platformResourcesRequirementsState'; import { PlatformResourcesResolvedRequirementModel } from './models/platformResourcesResolvedRequirement'; +import { PlatformServiceBindingModel } from './models/platformServiceBinding'; import { PlatformWebhookEndpointModel } from './models/platformWebhookEndpoint'; import { PlatformWebhookEventModel } from './models/platformWebhookEvent'; import { ProposalCommentModel } from './models/proposalComment'; @@ -126,6 +125,7 @@ import { ResourceUtilizationModel } from './models/resourceUtilization'; import { ResourcesHealthModel } from './models/resourcesHealth'; import { ResourcesRequirementsStateModel } from './models/resourcesRequirementsState'; import { ResourcesResolvedRequirementModel } from './models/resourcesResolvedRequirement'; +import { ServiceBindingModel } from './models/serviceBinding'; import { WebhookEndpointModel } from './models/webhookEndpoint'; import { WebhookEventModel } from './models/webhookEvent'; import { createQueryOperations } from './query'; @@ -165,7 +165,6 @@ export function createClient(config: OrmClientConfig) { return { build: new BuildModel(client), buildStep: new BuildStepModel(client), - builderBinding: new BuilderBindingModel(client), contentPreset: new ContentPresetModel(client), databaseFunctionGraph: new DatabaseFunctionGraphModel(client), databaseFunctionGraphExecutionCancelRequest: @@ -212,7 +211,6 @@ export function createClient(config: OrmClientConfig) { namespaceEvent: new NamespaceEventModel(client), platformBuild: new PlatformBuildModel(client), platformBuildStep: new PlatformBuildStepModel(client), - platformBuilderBinding: new PlatformBuilderBindingModel(client), platformFunctionApiBinding: new PlatformFunctionApiBindingModel(client), platformFunctionCapabilityBinding: new PlatformFunctionCapabilityBindingModel(client), platformFunctionDefinition: new PlatformFunctionDefinitionModel(client), @@ -259,6 +257,7 @@ export function createClient(config: OrmClientConfig) { platformResourcesHealth: new PlatformResourcesHealthModel(client), platformResourcesRequirementsState: new PlatformResourcesRequirementsStateModel(client), platformResourcesResolvedRequirement: new PlatformResourcesResolvedRequirementModel(client), + platformServiceBinding: new PlatformServiceBindingModel(client), platformWebhookEndpoint: new PlatformWebhookEndpointModel(client), platformWebhookEvent: new PlatformWebhookEventModel(client), proposalComment: new ProposalCommentModel(client), @@ -287,6 +286,7 @@ export function createClient(config: OrmClientConfig) { resourcesHealth: new ResourcesHealthModel(client), resourcesRequirementsState: new ResourcesRequirementsStateModel(client), resourcesResolvedRequirement: new ResourcesResolvedRequirementModel(client), + serviceBinding: new ServiceBindingModel(client), webhookEndpoint: new WebhookEndpointModel(client), webhookEvent: new WebhookEventModel(client), query: createQueryOperations(client), diff --git a/sdk/constructive-sdk/src/compute/orm/input-types.ts b/sdk/constructive-sdk/src/compute/orm/input-types.ts index c4f3a14a61..b6ec4589d2 100644 --- a/sdk/constructive-sdk/src/compute/orm/input-types.ts +++ b/sdk/constructive-sdk/src/compute/orm/input-types.ts @@ -234,7 +234,6 @@ export interface UUIDListFilter { export type Base64EncodedBinary = unknown; export type ConstructiveInternalTypeImage = unknown; export type ConstructiveInternalTypeUpload = unknown; -export type ResourceRequirement = unknown; /** One run of a repository workflow: its commit, its job, and what it produced */ // ============ Entity Types ============ export interface Build { @@ -261,6 +260,10 @@ export interface Build { jobId?: string | null; /** Build log object in storage; step rows slice it by byte range */ logs?: ConstructiveInternalTypeUpload | null; + /** URL to fetch `logs`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + logsUrl?: string | null; + /** The versions rendered beside `logs`, narrowest first, each with a URL. Empty when there are none. */ + logsVersions?: FileVersion[] | null; /** Matrix shard identity; NULL for a non-matrix build */ matrixKey?: string | null; /** Build detail (step results, durations, failure reason) */ @@ -315,32 +318,6 @@ export interface BuildStep { /** Parsed detail: failure message, assertion diff, counts, annotations */ summary?: Record | null; } -/** Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST */ -export interface BuilderBinding { - createdAt?: string | null; - createdBy?: string | null; - createdByPrincipal?: string | null; - /** Database that owns this resource (database-scoped isolation) */ - databaseId?: string | null; - id: string; - /** BuildKit resource installation serving this binding; may belong to another resource scope */ - installationId?: string | null; - /** Most recent projection failure */ - lastError?: string | null; - /** Reconciler detail (projection timestamps and diagnostics) */ - metadata?: Record | null; - /** Namespace whose builds use this BuildKit installation */ - namespaceId?: string | null; - /** BuildKit address last projected into the namespace (NULL = never projected) */ - observedHost?: string | null; - /** Lane this binding applies to (NULL = the scope's default lane) */ - realm?: string | null; - /** Projection state of BUILDKIT_HOST: pending, active, failed */ - status?: string | null; - updatedAt?: string | null; - updatedBy?: string | null; - updatedByPrincipal?: string | null; -} /** Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store */ export interface ContentPreset { /** Whether this preset is selectable at provision time */ @@ -1315,6 +1292,10 @@ export interface IntegrationProvider { id: string; /** Provider logo as an image domain value (url, id, key, bucket, provider) */ logo?: ConstructiveInternalTypeImage | null; + /** URL to fetch `logo`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + logoUrl?: string | null; + /** The versions rendered beside `logo`, narrowest first, each with a URL. Empty when there are none. */ + logoVersions?: FileVersion[] | null; /** Human-readable brand name (e.g. 'Mailgun', 'PostgreSQL') */ name?: string | null; /** Canonical config requirements for this provider: array of (name, required, provider) tuples. Used by the UI to auto-fill function/resource required_configs. */ @@ -1395,6 +1376,10 @@ export interface PlatformBuild { jobId?: string | null; /** Build log object in storage; step rows slice it by byte range */ logs?: ConstructiveInternalTypeUpload | null; + /** URL to fetch `logs`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + logsUrl?: string | null; + /** The versions rendered beside `logs`, narrowest first, each with a URL. Empty when there are none. */ + logsVersions?: FileVersion[] | null; /** Matrix shard identity; NULL for a non-matrix build */ matrixKey?: string | null; /** Build detail (step results, durations, failure reason) */ @@ -1447,30 +1432,6 @@ export interface PlatformBuildStep { /** Parsed detail: failure message, assertion diff, counts, annotations */ summary?: Record | null; } -/** Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST */ -export interface PlatformBuilderBinding { - createdAt?: string | null; - createdBy?: string | null; - createdByPrincipal?: string | null; - id: string; - /** BuildKit resource installation serving this binding; may belong to another resource scope */ - installationId?: string | null; - /** Most recent projection failure */ - lastError?: string | null; - /** Reconciler detail (projection timestamps and diagnostics) */ - metadata?: Record | null; - /** Namespace whose builds use this BuildKit installation */ - namespaceId?: string | null; - /** BuildKit address last projected into the namespace (NULL = never projected) */ - observedHost?: string | null; - /** Lane this binding applies to (NULL = the scope's default lane) */ - realm?: string | null; - /** Projection state of BUILDKIT_HOST: pending, active, failed */ - status?: string | null; - updatedAt?: string | null; - updatedBy?: string | null; - updatedByPrincipal?: string | null; -} /** Join table binding function definitions to API endpoints with per-binding alias and config */ export interface PlatformFunctionApiBinding { /** Binding alias (e.g. default, staging, production) */ @@ -2004,6 +1965,10 @@ export interface PlatformProposalComment { actorId?: string | null; /** Files referenced by the comment body, in the order they were attached */ attachments?: ConstructiveInternalTypeUpload[] | null; + /** URL to fetch `attachments`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + attachmentsUrl?: string[] | null; + /** The versions rendered beside `attachments`, narrowest first, each with a URL. Empty when there are none. */ + attachmentsVersions?: FileVersion[] | null; /** Comment text */ body?: string | null; /** TRGM similarity when searching `body`. Returns null when no trgm search filter is active. */ @@ -2012,6 +1977,9 @@ export interface PlatformProposalComment { createdBy?: string | null; createdByPrincipal?: string | null; embedding?: number[] | null; + embeddingModel?: string | null; + /** TRGM similarity when searching `embeddingModel`. Returns null when no trgm search filter is active. */ + embeddingModelTrgmSimilarity?: number | null; embeddingUpdatedAt?: string | null; /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ embeddingVectorDistance?: number | null; @@ -2057,6 +2025,9 @@ export interface PlatformProposal { /** When this is wanted by (NULL when nothing is promised) */ dueAt?: string | null; embedding?: number[] | null; + embeddingModel?: string | null; + /** TRGM similarity when searching `embeddingModel`. Returns null when no trgm search filter is active. */ + embeddingModelTrgmSimilarity?: number | null; embeddingUpdatedAt?: string | null; /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ embeddingVectorDistance?: number | null; @@ -2297,6 +2268,9 @@ export interface PlatformRepository { /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ descriptionTrgmSimilarity?: number | null; embedding?: number[] | null; + embeddingModel?: string | null; + /** TRGM similarity when searching `embeddingModel`. Returns null when no trgm search filter is active. */ + embeddingModelTrgmSimilarity?: number | null; embeddingUpdatedAt?: string | null; /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ embeddingVectorDistance?: number | null; @@ -2720,6 +2694,34 @@ export interface PlatformResourcesResolvedRequirement { secretsObjectName?: string | null; slug?: string | null; } +/** Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config */ +export interface PlatformServiceBinding { + createdAt?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + id: string; + /** Resource installation serving this binding, in the installations table of installation_scope */ + installationId?: string | null; + /** Scope whose installations table holds installation_id: this scope or platform */ + installationScope?: string | null; + /** Service this binding projects: builder (BUILDKIT_HOST) or git (GIT_PROVIDER + GIT_SERVICE_URL) */ + kind?: string | null; + /** Most recent projection failure */ + lastError?: string | null; + /** Reconciler detail (projection timestamps and diagnostics) */ + metadata?: Record | null; + /** Namespace whose builds use this BuildKit installation */ + namespaceId?: string | null; + /** Service address last projected into the namespace (NULL = never projected) */ + observedHost?: string | null; + /** Lane this binding applies to (NULL = the scope's default lane) */ + realm?: string | null; + /** Projection state of the bound address: pending, active, failed */ + status?: string | null; + updatedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} /** Webhook route authority: (host, path) -> function task_identifier invoked through the webhook channel, with provider, signing-secret reference, and replay window */ export interface PlatformWebhookEndpoint { /** Whether this endpoint currently accepts deliveries */ @@ -2776,6 +2778,10 @@ export interface ProposalComment { actorId?: string | null; /** Files referenced by the comment body, in the order they were attached */ attachments?: ConstructiveInternalTypeUpload[] | null; + /** URL to fetch `attachments`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + attachmentsUrl?: string[] | null; + /** The versions rendered beside `attachments`, narrowest first, each with a URL. Empty when there are none. */ + attachmentsVersions?: FileVersion[] | null; /** Comment text */ body?: string | null; /** TRGM similarity when searching `body`. Returns null when no trgm search filter is active. */ @@ -2786,6 +2792,9 @@ export interface ProposalComment { /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; embedding?: number[] | null; + embeddingModel?: string | null; + /** TRGM similarity when searching `embeddingModel`. Returns null when no trgm search filter is active. */ + embeddingModelTrgmSimilarity?: number | null; embeddingUpdatedAt?: string | null; /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ embeddingVectorDistance?: number | null; @@ -2833,6 +2842,9 @@ export interface Proposal { /** When this is wanted by (NULL when nothing is promised) */ dueAt?: string | null; embedding?: number[] | null; + embeddingModel?: string | null; + /** TRGM similarity when searching `embeddingModel`. Returns null when no trgm search filter is active. */ + embeddingModelTrgmSimilarity?: number | null; embeddingUpdatedAt?: string | null; /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ embeddingVectorDistance?: number | null; @@ -3089,6 +3101,9 @@ export interface Repository { /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ descriptionTrgmSimilarity?: number | null; embedding?: number[] | null; + embeddingModel?: string | null; + /** TRGM similarity when searching `embeddingModel`. Returns null when no trgm search filter is active. */ + embeddingModelTrgmSimilarity?: number | null; embeddingUpdatedAt?: string | null; /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ embeddingVectorDistance?: number | null; @@ -3533,6 +3548,36 @@ export interface ResourcesResolvedRequirement { secretsObjectName?: string | null; slug?: string | null; } +/** Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config */ +export interface ServiceBinding { + createdAt?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + id: string; + /** Resource installation serving this binding, in the installations table of installation_scope */ + installationId?: string | null; + /** Scope whose installations table holds installation_id: this scope or platform */ + installationScope?: string | null; + /** Service this binding projects: builder (BUILDKIT_HOST) or git (GIT_PROVIDER + GIT_SERVICE_URL) */ + kind?: string | null; + /** Most recent projection failure */ + lastError?: string | null; + /** Reconciler detail (projection timestamps and diagnostics) */ + metadata?: Record | null; + /** Namespace whose builds use this BuildKit installation */ + namespaceId?: string | null; + /** Service address last projected into the namespace (NULL = never projected) */ + observedHost?: string | null; + /** Lane this binding applies to (NULL = the scope's default lane) */ + realm?: string | null; + /** Projection state of the bound address: pending, active, failed */ + status?: string | null; + updatedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} /** Webhook route authority: (host, path) -> function task_identifier invoked through the webhook channel, with provider, signing-secret reference, and replay window */ export interface WebhookEndpoint { /** Whether this endpoint currently accepts deliveries */ @@ -3607,9 +3652,6 @@ export interface BuildRelations { workflow?: RepositoryWorkflow | null; } export interface BuildStepRelations {} -export interface BuilderBindingRelations { - namespace?: Namespace | null; -} export interface ContentPresetRelations {} export interface DatabaseFunctionGraphRelations { databaseFunctionGraphExecutionsByGraphId?: ConnectionResult; @@ -3643,7 +3685,7 @@ export interface FunctionDefinitionRelations { webhookEndpoints?: ConnectionResult; } export interface FunctionDeploymentRelations { - namespace?: Namespace | null; + namespaceByNamespaceIdAndDatabaseId?: Namespace | null; } export interface FunctionDeploymentEventRelations {} export interface FunctionExecutionLogRelations {} @@ -3683,13 +3725,13 @@ export interface InfraRefRelations {} export interface InfraStoreRelations {} export interface IntegrationProviderRelations {} export interface NamespaceRelations { - builderBindings?: ConnectionResult; - functionDeployments?: ConnectionResult; - registryBindings?: ConnectionResult; - resourceDefinitions?: ConnectionResult; - resourceInstallations?: ConnectionResult; - resources?: ConnectionResult; - webhookEndpoints?: ConnectionResult; + functionDeploymentsByNamespaceIdAndDatabaseId?: ConnectionResult; + registryBindingsByNamespaceIdAndDatabaseId?: ConnectionResult; + resourceDefinitionsByNamespaceIdAndDatabaseId?: ConnectionResult; + resourceInstallationsByNamespaceIdAndDatabaseId?: ConnectionResult; + resourcesByNamespaceIdAndDatabaseId?: ConnectionResult; + serviceBindingsByNamespaceIdAndDatabaseId?: ConnectionResult; + webhookEndpointsByNamespaceIdAndDatabaseId?: ConnectionResult; } export interface NamespaceEventRelations {} export interface PlatformBuildRelations { @@ -3699,9 +3741,6 @@ export interface PlatformBuildRelations { workflow?: PlatformRepositoryWorkflow | null; } export interface PlatformBuildStepRelations {} -export interface PlatformBuilderBindingRelations { - namespace?: PlatformNamespace | null; -} export interface PlatformFunctionApiBindingRelations { functionDefinition?: PlatformFunctionDefinition | null; platformFunctionInvocationsByApiBindingId?: ConnectionResult; @@ -3742,12 +3781,12 @@ export interface PlatformInfraStoreRelations {} export interface PlatformK8sResourceKindRelations {} export interface PlatformK8sSpecRuleRelations {} export interface PlatformNamespaceRelations { - platformBuilderBindingsByNamespaceId?: ConnectionResult; platformFunctionDeploymentsByNamespaceId?: ConnectionResult; platformRegistryBindingsByNamespaceId?: ConnectionResult; platformResourceDefinitionsByNamespaceId?: ConnectionResult; platformResourceInstallationsByNamespaceId?: ConnectionResult; platformResourcesByNamespaceId?: ConnectionResult; + platformServiceBindingsByNamespaceId?: ConnectionResult; platformWebhookEndpointsByNamespaceId?: ConnectionResult; } export interface PlatformNamespaceEventRelations {} @@ -3839,6 +3878,9 @@ export interface PlatformResourceUtilizationRelations {} export interface PlatformResourcesHealthRelations {} export interface PlatformResourcesRequirementsStateRelations {} export interface PlatformResourcesResolvedRequirementRelations {} +export interface PlatformServiceBindingRelations { + namespace?: PlatformNamespace | null; +} export interface PlatformWebhookEndpointRelations { functionDefinition?: PlatformFunctionDefinition | null; namespace?: PlatformNamespace | null; @@ -3876,7 +3918,7 @@ export interface ProposalsChunkRelations { proposals?: Proposal | null; } export interface RegistryBindingRelations { - namespace?: Namespace | null; + namespaceByNamespaceIdAndDatabaseId?: Namespace | null; registry?: Registry | null; } export interface RegistryRelations { @@ -3910,18 +3952,18 @@ export interface RepositoryWorkflowRelations { } export interface ResourceRelations { installation?: ResourceInstallation | null; - namespace?: Namespace | null; + namespaceByNamespaceIdAndDatabaseId?: Namespace | null; resourceDefinition?: ResourceDefinition | null; resourceStatusChecks?: ConnectionResult; } export interface ResourceDeclaredCapacityRelations {} export interface ResourceDefinitionRelations { - namespace?: Namespace | null; + namespaceByNamespaceIdAndDatabaseId?: Namespace | null; resources?: ConnectionResult; } export interface ResourceEventRelations {} export interface ResourceInstallationRelations { - namespace?: Namespace | null; + namespaceByNamespaceIdAndDatabaseId?: Namespace | null; registriesByInstallationId?: ConnectionResult; resourcesByInstallationId?: ConnectionResult; } @@ -3935,9 +3977,12 @@ export interface ResourceUtilizationRelations {} export interface ResourcesHealthRelations {} export interface ResourcesRequirementsStateRelations {} export interface ResourcesResolvedRequirementRelations {} +export interface ServiceBindingRelations { + namespaceByNamespaceIdAndDatabaseId?: Namespace | null; +} export interface WebhookEndpointRelations { functionDefinition?: FunctionDefinition | null; - namespace?: Namespace | null; + namespaceByNamespaceIdAndDatabaseId?: Namespace | null; webhookEventsByEndpointId?: ConnectionResult; } export interface WebhookEventRelations { @@ -3946,7 +3991,6 @@ export interface WebhookEventRelations { // ============ Entity Types With Relations ============ export type BuildWithRelations = Build & BuildRelations; export type BuildStepWithRelations = BuildStep & BuildStepRelations; -export type BuilderBindingWithRelations = BuilderBinding & BuilderBindingRelations; export type ContentPresetWithRelations = ContentPreset & ContentPresetRelations; export type DatabaseFunctionGraphWithRelations = DatabaseFunctionGraph & DatabaseFunctionGraphRelations; @@ -4007,8 +4051,6 @@ export type NamespaceWithRelations = Namespace & NamespaceRelations; export type NamespaceEventWithRelations = NamespaceEvent & NamespaceEventRelations; export type PlatformBuildWithRelations = PlatformBuild & PlatformBuildRelations; export type PlatformBuildStepWithRelations = PlatformBuildStep & PlatformBuildStepRelations; -export type PlatformBuilderBindingWithRelations = PlatformBuilderBinding & - PlatformBuilderBindingRelations; export type PlatformFunctionApiBindingWithRelations = PlatformFunctionApiBinding & PlatformFunctionApiBindingRelations; export type PlatformFunctionCapabilityBindingWithRelations = PlatformFunctionCapabilityBinding & @@ -4089,6 +4131,8 @@ export type PlatformResourcesRequirementsStateWithRelations = PlatformResourcesR PlatformResourcesRequirementsStateRelations; export type PlatformResourcesResolvedRequirementWithRelations = PlatformResourcesResolvedRequirement & PlatformResourcesResolvedRequirementRelations; +export type PlatformServiceBindingWithRelations = PlatformServiceBinding & + PlatformServiceBindingRelations; export type PlatformWebhookEndpointWithRelations = PlatformWebhookEndpoint & PlatformWebhookEndpointRelations; export type PlatformWebhookEventWithRelations = PlatformWebhookEvent & @@ -4126,6 +4170,7 @@ export type ResourcesRequirementsStateWithRelations = ResourcesRequirementsState ResourcesRequirementsStateRelations; export type ResourcesResolvedRequirementWithRelations = ResourcesResolvedRequirement & ResourcesResolvedRequirementRelations; +export type ServiceBindingWithRelations = ServiceBinding & ServiceBindingRelations; export type WebhookEndpointWithRelations = WebhookEndpoint & WebhookEndpointRelations; export type WebhookEventWithRelations = WebhookEvent & WebhookEventRelations; // ============ Entity Select Types ============ @@ -4143,6 +4188,15 @@ export type BuildSelect = { imageRef?: boolean; jobId?: boolean; logs?: boolean; + logsUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + logsVersions?: { + select: FileVersionSelect; + }; matrixKey?: boolean; metadata?: boolean; proposalId?: boolean; @@ -4184,26 +4238,6 @@ export type BuildStepSelect = { status?: boolean; summary?: boolean; }; -export type BuilderBindingSelect = { - createdAt?: boolean; - createdBy?: boolean; - createdByPrincipal?: boolean; - databaseId?: boolean; - id?: boolean; - installationId?: boolean; - lastError?: boolean; - metadata?: boolean; - namespaceId?: boolean; - observedHost?: boolean; - realm?: boolean; - status?: boolean; - updatedAt?: boolean; - updatedBy?: boolean; - updatedByPrincipal?: boolean; - namespace?: { - select: NamespaceSelect; - }; -}; export type ContentPresetSelect = { active?: boolean; commitId?: boolean; @@ -4439,10 +4473,14 @@ export type FunctionDefinitionSelect = { queueName?: boolean; requiredBuckets?: boolean; requiredCapabilities?: boolean; - requiredConfigs?: boolean; + requiredConfigs?: { + select: ResourceRequirementSelect; + }; requiredModels?: boolean; requiredModules?: boolean; - requiredSecrets?: boolean; + requiredSecrets?: { + select: ResourceRequirementSelect; + }; resources?: boolean; runtime?: boolean; scaleMax?: boolean; @@ -4508,7 +4546,7 @@ export type FunctionDeploymentSelect = { timeoutSeconds?: boolean; updatedAt?: boolean; updatedByPrincipal?: boolean; - namespace?: { + namespaceByNamespaceIdAndDatabaseId?: { select: NamespaceSelect; }; }; @@ -4829,9 +4867,22 @@ export type IntegrationProviderSelect = { icon?: boolean; id?: boolean; logo?: boolean; + logoUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + logoVersions?: { + select: FileVersionSelect; + }; name?: boolean; - requiredConfigs?: boolean; - requiredSecrets?: boolean; + requiredConfigs?: { + select: ResourceRequirementSelect; + }; + requiredSecrets?: { + select: ResourceRequirementSelect; + }; slug?: boolean; updatedAt?: boolean; }; @@ -4850,43 +4901,43 @@ export type NamespaceSelect = { namespaceName?: boolean; status?: boolean; updatedAt?: boolean; - builderBindings?: { - select: BuilderBindingSelect; - first?: number; - filter?: BuilderBindingFilter; - orderBy?: BuilderBindingOrderBy[]; - }; - functionDeployments?: { + functionDeploymentsByNamespaceIdAndDatabaseId?: { select: FunctionDeploymentSelect; first?: number; filter?: FunctionDeploymentFilter; orderBy?: FunctionDeploymentOrderBy[]; }; - registryBindings?: { + registryBindingsByNamespaceIdAndDatabaseId?: { select: RegistryBindingSelect; first?: number; filter?: RegistryBindingFilter; orderBy?: RegistryBindingOrderBy[]; }; - resourceDefinitions?: { + resourceDefinitionsByNamespaceIdAndDatabaseId?: { select: ResourceDefinitionSelect; first?: number; filter?: ResourceDefinitionFilter; orderBy?: ResourceDefinitionOrderBy[]; }; - resourceInstallations?: { + resourceInstallationsByNamespaceIdAndDatabaseId?: { select: ResourceInstallationSelect; first?: number; filter?: ResourceInstallationFilter; orderBy?: ResourceInstallationOrderBy[]; }; - resources?: { + resourcesByNamespaceIdAndDatabaseId?: { select: ResourceSelect; first?: number; filter?: ResourceFilter; orderBy?: ResourceOrderBy[]; }; - webhookEndpoints?: { + serviceBindingsByNamespaceIdAndDatabaseId?: { + select: ServiceBindingSelect; + first?: number; + filter?: ServiceBindingFilter; + orderBy?: ServiceBindingOrderBy[]; + }; + webhookEndpointsByNamespaceIdAndDatabaseId?: { select: WebhookEndpointSelect; first?: number; filter?: WebhookEndpointFilter; @@ -4916,6 +4967,15 @@ export type PlatformBuildSelect = { imageRef?: boolean; jobId?: boolean; logs?: boolean; + logsUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + logsVersions?: { + select: FileVersionSelect; + }; matrixKey?: boolean; metadata?: boolean; proposalId?: boolean; @@ -4956,25 +5016,6 @@ export type PlatformBuildStepSelect = { status?: boolean; summary?: boolean; }; -export type PlatformBuilderBindingSelect = { - createdAt?: boolean; - createdBy?: boolean; - createdByPrincipal?: boolean; - id?: boolean; - installationId?: boolean; - lastError?: boolean; - metadata?: boolean; - namespaceId?: boolean; - observedHost?: boolean; - realm?: boolean; - status?: boolean; - updatedAt?: boolean; - updatedBy?: boolean; - updatedByPrincipal?: boolean; - namespace?: { - select: PlatformNamespaceSelect; - }; -}; export type PlatformFunctionApiBindingSelect = { alias?: boolean; apiId?: boolean; @@ -5041,10 +5082,14 @@ export type PlatformFunctionDefinitionSelect = { queueName?: boolean; requiredBuckets?: boolean; requiredCapabilities?: boolean; - requiredConfigs?: boolean; + requiredConfigs?: { + select: ResourceRequirementSelect; + }; requiredModels?: boolean; requiredModules?: boolean; - requiredSecrets?: boolean; + requiredSecrets?: { + select: ResourceRequirementSelect; + }; resources?: boolean; runtime?: boolean; scaleMax?: boolean; @@ -5313,12 +5358,6 @@ export type PlatformNamespaceSelect = { namespaceName?: boolean; status?: boolean; updatedAt?: boolean; - platformBuilderBindingsByNamespaceId?: { - select: PlatformBuilderBindingSelect; - first?: number; - filter?: PlatformBuilderBindingFilter; - orderBy?: PlatformBuilderBindingOrderBy[]; - }; platformFunctionDeploymentsByNamespaceId?: { select: PlatformFunctionDeploymentSelect; first?: number; @@ -5349,6 +5388,12 @@ export type PlatformNamespaceSelect = { filter?: PlatformResourceFilter; orderBy?: PlatformResourceOrderBy[]; }; + platformServiceBindingsByNamespaceId?: { + select: PlatformServiceBindingSelect; + first?: number; + filter?: PlatformServiceBindingFilter; + orderBy?: PlatformServiceBindingOrderBy[]; + }; platformWebhookEndpointsByNamespaceId?: { select: PlatformWebhookEndpointSelect; first?: number; @@ -5368,12 +5413,23 @@ export type PlatformNamespaceEventSelect = { export type PlatformProposalCommentSelect = { actorId?: boolean; attachments?: boolean; + attachmentsUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + attachmentsVersions?: { + select: FileVersionSelect; + }; body?: boolean; bodyTrgmSimilarity?: boolean; createdAt?: boolean; createdBy?: boolean; createdByPrincipal?: boolean; embedding?: boolean; + embeddingModel?: boolean; + embeddingModelTrgmSimilarity?: boolean; embeddingUpdatedAt?: boolean; embeddingVectorDistance?: boolean; id?: boolean; @@ -5411,6 +5467,8 @@ export type PlatformProposalSelect = { decidedAt?: boolean; dueAt?: boolean; embedding?: boolean; + embeddingModel?: boolean; + embeddingModelTrgmSimilarity?: boolean; embeddingUpdatedAt?: boolean; embeddingVectorDistance?: boolean; id?: boolean; @@ -5648,6 +5706,8 @@ export type PlatformRepositorySelect = { description?: boolean; descriptionTrgmSimilarity?: boolean; embedding?: boolean; + embeddingModel?: boolean; + embeddingModelTrgmSimilarity?: boolean; embeddingUpdatedAt?: boolean; embeddingVectorDistance?: boolean; externalId?: boolean; @@ -5798,8 +5858,12 @@ export type PlatformResourceSelect = { namespaceId?: boolean; realm?: boolean; replicas?: boolean; - requiredConfigs?: boolean; - requiredSecrets?: boolean; + requiredConfigs?: { + select: ResourceRequirementSelect; + }; + requiredSecrets?: { + select: ResourceRequirementSelect; + }; resourceDefinitionId?: boolean; slug?: boolean; spec?: boolean; @@ -5857,8 +5921,12 @@ export type PlatformResourceDefinitionSelect = { name?: boolean; namespaceId?: boolean; paramsSchema?: boolean; - requiredConfigs?: boolean; - requiredSecrets?: boolean; + requiredConfigs?: { + select: ResourceRequirementSelect; + }; + requiredSecrets?: { + select: ResourceRequirementSelect; + }; slug?: boolean; stepUpMinAge?: boolean; updatedAt?: boolean; @@ -6012,8 +6080,12 @@ export type PlatformResourcesHealthSelect = { namespaceId?: boolean; realm?: boolean; replicas?: boolean; - requiredConfigs?: boolean; - requiredSecrets?: boolean; + requiredConfigs?: { + select: ResourceRequirementSelect; + }; + requiredSecrets?: { + select: ResourceRequirementSelect; + }; resourceDefinitionId?: boolean; slug?: boolean; spec?: boolean; @@ -6049,6 +6121,27 @@ export type PlatformResourcesResolvedRequirementSelect = { secretsObjectName?: boolean; slug?: boolean; }; +export type PlatformServiceBindingSelect = { + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + id?: boolean; + installationId?: boolean; + installationScope?: boolean; + kind?: boolean; + lastError?: boolean; + metadata?: boolean; + namespaceId?: boolean; + observedHost?: boolean; + realm?: boolean; + status?: boolean; + updatedAt?: boolean; + updatedBy?: boolean; + updatedByPrincipal?: boolean; + namespace?: { + select: PlatformNamespaceSelect; + }; +}; export type PlatformWebhookEndpointSelect = { active?: boolean; createdAt?: boolean; @@ -6098,6 +6191,15 @@ export type PlatformWebhookEventSelect = { export type ProposalCommentSelect = { actorId?: boolean; attachments?: boolean; + attachmentsUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + attachmentsVersions?: { + select: FileVersionSelect; + }; body?: boolean; bodyTrgmSimilarity?: boolean; createdAt?: boolean; @@ -6105,6 +6207,8 @@ export type ProposalCommentSelect = { createdByPrincipal?: boolean; databaseId?: boolean; embedding?: boolean; + embeddingModel?: boolean; + embeddingModelTrgmSimilarity?: boolean; embeddingUpdatedAt?: boolean; embeddingVectorDistance?: boolean; id?: boolean; @@ -6143,6 +6247,8 @@ export type ProposalSelect = { decidedAt?: boolean; dueAt?: boolean; embedding?: boolean; + embeddingModel?: boolean; + embeddingModelTrgmSimilarity?: boolean; embeddingUpdatedAt?: boolean; embeddingVectorDistance?: boolean; id?: boolean; @@ -6315,7 +6421,7 @@ export type RegistryBindingSelect = { updatedAt?: boolean; updatedBy?: boolean; updatedByPrincipal?: boolean; - namespace?: { + namespaceByNamespaceIdAndDatabaseId?: { select: NamespaceSelect; }; registry?: { @@ -6388,6 +6494,8 @@ export type RepositorySelect = { description?: boolean; descriptionTrgmSimilarity?: boolean; embedding?: boolean; + embeddingModel?: boolean; + embeddingModelTrgmSimilarity?: boolean; embeddingUpdatedAt?: boolean; embeddingVectorDistance?: boolean; externalId?: boolean; @@ -6542,8 +6650,12 @@ export type ResourceSelect = { namespaceId?: boolean; realm?: boolean; replicas?: boolean; - requiredConfigs?: boolean; - requiredSecrets?: boolean; + requiredConfigs?: { + select: ResourceRequirementSelect; + }; + requiredSecrets?: { + select: ResourceRequirementSelect; + }; resourceDefinitionId?: boolean; slug?: boolean; spec?: boolean; @@ -6558,7 +6670,7 @@ export type ResourceSelect = { installation?: { select: ResourceInstallationSelect; }; - namespace?: { + namespaceByNamespaceIdAndDatabaseId?: { select: NamespaceSelect; }; resourceDefinition?: { @@ -6602,14 +6714,18 @@ export type ResourceDefinitionSelect = { name?: boolean; namespaceId?: boolean; paramsSchema?: boolean; - requiredConfigs?: boolean; - requiredSecrets?: boolean; + requiredConfigs?: { + select: ResourceRequirementSelect; + }; + requiredSecrets?: { + select: ResourceRequirementSelect; + }; slug?: boolean; stepUpMinAge?: boolean; updatedAt?: boolean; updatedBy?: boolean; updatedByPrincipal?: boolean; - namespace?: { + namespaceByNamespaceIdAndDatabaseId?: { select: NamespaceSelect; }; resources?: { @@ -6646,7 +6762,7 @@ export type ResourceInstallationSelect = { updatedAt?: boolean; updatedBy?: boolean; updatedByPrincipal?: boolean; - namespace?: { + namespaceByNamespaceIdAndDatabaseId?: { select: NamespaceSelect; }; registriesByInstallationId?: { @@ -6763,8 +6879,12 @@ export type ResourcesHealthSelect = { namespaceId?: boolean; realm?: boolean; replicas?: boolean; - requiredConfigs?: boolean; - requiredSecrets?: boolean; + requiredConfigs?: { + select: ResourceRequirementSelect; + }; + requiredSecrets?: { + select: ResourceRequirementSelect; + }; resourceDefinitionId?: boolean; slug?: boolean; spec?: boolean; @@ -6800,6 +6920,28 @@ export type ResourcesResolvedRequirementSelect = { secretsObjectName?: boolean; slug?: boolean; }; +export type ServiceBindingSelect = { + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + databaseId?: boolean; + id?: boolean; + installationId?: boolean; + installationScope?: boolean; + kind?: boolean; + lastError?: boolean; + metadata?: boolean; + namespaceId?: boolean; + observedHost?: boolean; + realm?: boolean; + status?: boolean; + updatedAt?: boolean; + updatedBy?: boolean; + updatedByPrincipal?: boolean; + namespaceByNamespaceIdAndDatabaseId?: { + select: NamespaceSelect; + }; +}; export type WebhookEndpointSelect = { active?: boolean; createdAt?: boolean; @@ -6820,7 +6962,7 @@ export type WebhookEndpointSelect = { functionDefinition?: { select: FunctionDefinitionSelect; }; - namespace?: { + namespaceByNamespaceIdAndDatabaseId?: { select: NamespaceSelect; }; webhookEventsByEndpointId?: { @@ -6957,46 +7099,6 @@ export interface BuildStepFilter { /** Filter by the object’s `summary` field. */ summary?: JSONFilter; } -export interface BuilderBindingFilter { - /** Checks for all expressions in this list. */ - and?: BuilderBindingFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `createdByPrincipal` field. */ - createdByPrincipal?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `installationId` field. */ - installationId?: UUIDFilter; - /** Filter by the object’s `lastError` field. */ - lastError?: StringFilter; - /** Filter by the object’s `metadata` field. */ - metadata?: JSONFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Negates the expression. */ - not?: BuilderBindingFilter; - /** Filter by the object’s `observedHost` field. */ - observedHost?: StringFilter; - /** Checks for any expressions in this list. */ - or?: BuilderBindingFilter[]; - /** Filter by the object’s `realm` field. */ - realm?: StringFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `updatedByPrincipal` field. */ - updatedByPrincipal?: UUIDFilter; -} export interface ContentPresetFilter { /** Filter by the object’s `active` field. */ active?: BooleanFilter; @@ -7557,8 +7659,8 @@ export interface FunctionDeploymentFilter { lastError?: StringFilter; /** Filter by the object’s `lastErrorAt` field. */ lastErrorAt?: DatetimeFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -8271,10 +8373,6 @@ export interface NamespaceFilter { and?: NamespaceFilter[]; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; - /** Filter by the object’s `builderBindings` relation. */ - builderBindings?: NamespaceToManyBuilderBindingFilter; - /** `builderBindings` exist. */ - builderBindingsExist?: boolean; /** Filter by the object’s `clusterId` field. */ clusterId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -8283,10 +8381,10 @@ export interface NamespaceFilter { databaseId?: UUIDFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; - /** Filter by the object’s `functionDeployments` relation. */ - functionDeployments?: NamespaceToManyFunctionDeploymentFilter; - /** `functionDeployments` exist. */ - functionDeploymentsExist?: boolean; + /** Filter by the object’s `functionDeploymentsByNamespaceIdAndDatabaseId` relation. */ + functionDeploymentsByNamespaceIdAndDatabaseId?: NamespaceToManyFunctionDeploymentFilter; + /** `functionDeploymentsByNamespaceIdAndDatabaseId` exist. */ + functionDeploymentsByNamespaceIdAndDatabaseIdExist?: boolean; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isActive` field. */ @@ -8305,30 +8403,34 @@ export interface NamespaceFilter { not?: NamespaceFilter; /** Checks for any expressions in this list. */ or?: NamespaceFilter[]; - /** Filter by the object’s `registryBindings` relation. */ - registryBindings?: NamespaceToManyRegistryBindingFilter; - /** `registryBindings` exist. */ - registryBindingsExist?: boolean; - /** Filter by the object’s `resourceDefinitions` relation. */ - resourceDefinitions?: NamespaceToManyResourceDefinitionFilter; - /** `resourceDefinitions` exist. */ - resourceDefinitionsExist?: boolean; - /** Filter by the object’s `resourceInstallations` relation. */ - resourceInstallations?: NamespaceToManyResourceInstallationFilter; - /** `resourceInstallations` exist. */ - resourceInstallationsExist?: boolean; - /** Filter by the object’s `resources` relation. */ - resources?: NamespaceToManyResourceFilter; - /** `resources` exist. */ - resourcesExist?: boolean; + /** Filter by the object’s `registryBindingsByNamespaceIdAndDatabaseId` relation. */ + registryBindingsByNamespaceIdAndDatabaseId?: NamespaceToManyRegistryBindingFilter; + /** `registryBindingsByNamespaceIdAndDatabaseId` exist. */ + registryBindingsByNamespaceIdAndDatabaseIdExist?: boolean; + /** Filter by the object’s `resourceDefinitionsByNamespaceIdAndDatabaseId` relation. */ + resourceDefinitionsByNamespaceIdAndDatabaseId?: NamespaceToManyResourceDefinitionFilter; + /** `resourceDefinitionsByNamespaceIdAndDatabaseId` exist. */ + resourceDefinitionsByNamespaceIdAndDatabaseIdExist?: boolean; + /** Filter by the object’s `resourceInstallationsByNamespaceIdAndDatabaseId` relation. */ + resourceInstallationsByNamespaceIdAndDatabaseId?: NamespaceToManyResourceInstallationFilter; + /** `resourceInstallationsByNamespaceIdAndDatabaseId` exist. */ + resourceInstallationsByNamespaceIdAndDatabaseIdExist?: boolean; + /** Filter by the object’s `resourcesByNamespaceIdAndDatabaseId` relation. */ + resourcesByNamespaceIdAndDatabaseId?: NamespaceToManyResourceFilter; + /** `resourcesByNamespaceIdAndDatabaseId` exist. */ + resourcesByNamespaceIdAndDatabaseIdExist?: boolean; + /** Filter by the object’s `serviceBindingsByNamespaceIdAndDatabaseId` relation. */ + serviceBindingsByNamespaceIdAndDatabaseId?: NamespaceToManyServiceBindingFilter; + /** `serviceBindingsByNamespaceIdAndDatabaseId` exist. */ + serviceBindingsByNamespaceIdAndDatabaseIdExist?: boolean; /** Filter by the object’s `status` field. */ status?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; - /** Filter by the object’s `webhookEndpoints` relation. */ - webhookEndpoints?: NamespaceToManyWebhookEndpointFilter; - /** `webhookEndpoints` exist. */ - webhookEndpointsExist?: boolean; + /** Filter by the object’s `webhookEndpointsByNamespaceIdAndDatabaseId` relation. */ + webhookEndpointsByNamespaceIdAndDatabaseId?: NamespaceToManyWebhookEndpointFilter; + /** `webhookEndpointsByNamespaceIdAndDatabaseId` exist. */ + webhookEndpointsByNamespaceIdAndDatabaseIdExist?: boolean; } export interface NamespaceEventFilter { /** Filter by the object’s `actorId` field. */ @@ -8458,44 +8560,6 @@ export interface PlatformBuildStepFilter { /** Filter by the object’s `summary` field. */ summary?: JSONFilter; } -export interface PlatformBuilderBindingFilter { - /** Checks for all expressions in this list. */ - and?: PlatformBuilderBindingFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `createdByPrincipal` field. */ - createdByPrincipal?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `installationId` field. */ - installationId?: UUIDFilter; - /** Filter by the object’s `lastError` field. */ - lastError?: StringFilter; - /** Filter by the object’s `metadata` field. */ - metadata?: JSONFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: PlatformNamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Negates the expression. */ - not?: PlatformBuilderBindingFilter; - /** Filter by the object’s `observedHost` field. */ - observedHost?: StringFilter; - /** Checks for any expressions in this list. */ - or?: PlatformBuilderBindingFilter[]; - /** Filter by the object’s `realm` field. */ - realm?: StringFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `updatedByPrincipal` field. */ - updatedByPrincipal?: UUIDFilter; -} export interface PlatformFunctionApiBindingFilter { /** Filter by the object’s `alias` field. */ alias?: StringFilter; @@ -9166,10 +9230,6 @@ export interface PlatformNamespaceFilter { not?: PlatformNamespaceFilter; /** Checks for any expressions in this list. */ or?: PlatformNamespaceFilter[]; - /** Filter by the object’s `platformBuilderBindingsByNamespaceId` relation. */ - platformBuilderBindingsByNamespaceId?: PlatformNamespaceToManyPlatformBuilderBindingFilter; - /** `platformBuilderBindingsByNamespaceId` exist. */ - platformBuilderBindingsByNamespaceIdExist?: boolean; /** Filter by the object’s `platformFunctionDeploymentsByNamespaceId` relation. */ platformFunctionDeploymentsByNamespaceId?: PlatformNamespaceToManyPlatformFunctionDeploymentFilter; /** `platformFunctionDeploymentsByNamespaceId` exist. */ @@ -9190,6 +9250,10 @@ export interface PlatformNamespaceFilter { platformResourcesByNamespaceId?: PlatformNamespaceToManyPlatformResourceFilter; /** `platformResourcesByNamespaceId` exist. */ platformResourcesByNamespaceIdExist?: boolean; + /** Filter by the object’s `platformServiceBindingsByNamespaceId` relation. */ + platformServiceBindingsByNamespaceId?: PlatformNamespaceToManyPlatformServiceBindingFilter; + /** `platformServiceBindingsByNamespaceId` exist. */ + platformServiceBindingsByNamespaceIdExist?: boolean; /** Filter by the object’s `platformWebhookEndpointsByNamespaceId` relation. */ platformWebhookEndpointsByNamespaceId?: PlatformNamespaceToManyPlatformWebhookEndpointFilter; /** `platformWebhookEndpointsByNamespaceId` exist. */ @@ -9238,6 +9302,8 @@ export interface PlatformProposalCommentFilter { createdByPrincipal?: UUIDFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -9266,6 +9332,8 @@ export interface PlatformProposalCommentFilter { search?: FullTextFilter; /** TRGM search on the `body` column. */ trgmBody?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `path` column. */ trgmPath?: TrgmSearchInput; /** TSV search on the `search` column. */ @@ -9312,6 +9380,8 @@ export interface PlatformProposalFilter { dueAt?: DatetimeFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -9386,6 +9456,8 @@ export interface PlatformProposalFilter { trgmBody?: TrgmSearchInput; /** TRGM search on the `closed_reason` column. */ trgmClosedReason?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `kind` column. */ trgmKind?: TrgmSearchInput; /** TRGM search on the `merge_commit` column. */ @@ -9712,6 +9784,8 @@ export interface PlatformRepositoryFilter { description?: StringTrgmFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `externalId` field. */ @@ -9762,6 +9836,8 @@ export interface PlatformRepositoryFilter { trgmDefaultBranch?: TrgmSearchInput; /** TRGM search on the `description` column. */ trgmDescription?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `external_id` column. */ trgmExternalId?: TrgmSearchInput; /** TRGM search on the `name` column. */ @@ -10447,6 +10523,48 @@ export interface PlatformResourcesResolvedRequirementFilter { /** Filter by the object’s `slug` field. */ slug?: StringFilter; } +export interface PlatformServiceBindingFilter { + /** Checks for all expressions in this list. */ + and?: PlatformServiceBindingFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `installationScope` field. */ + installationScope?: StringFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformServiceBindingFilter; + /** Filter by the object’s `observedHost` field. */ + observedHost?: StringFilter; + /** Checks for any expressions in this list. */ + or?: PlatformServiceBindingFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} export interface PlatformWebhookEndpointFilter { /** Filter by the object’s `active` field. */ active?: BooleanFilter; @@ -10546,6 +10664,8 @@ export interface ProposalCommentFilter { databaseId?: UUIDFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -10574,6 +10694,8 @@ export interface ProposalCommentFilter { search?: FullTextFilter; /** TRGM search on the `body` column. */ trgmBody?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `path` column. */ trgmPath?: TrgmSearchInput; /** TSV search on the `search` column. */ @@ -10626,6 +10748,8 @@ export interface ProposalFilter { dueAt?: DatetimeFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -10696,6 +10820,8 @@ export interface ProposalFilter { trgmBody?: TrgmSearchInput; /** TRGM search on the `closed_reason` column. */ trgmClosedReason?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `kind` column. */ trgmKind?: TrgmSearchInput; /** TRGM search on the `merge_commit` column. */ @@ -10896,8 +11022,8 @@ export interface RegistryBindingFilter { id?: UUIDFilter; /** Filter by the object’s `metadata` field. */ metadata?: JSONFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -11042,6 +11168,8 @@ export interface RepositoryFilter { description?: StringTrgmFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `externalId` field. */ @@ -11088,6 +11216,8 @@ export interface RepositoryFilter { trgmDefaultBranch?: TrgmSearchInput; /** TRGM search on the `description` column. */ trgmDescription?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `external_id` column. */ trgmExternalId?: TrgmSearchInput; /** TRGM search on the `name` column. */ @@ -11290,8 +11420,8 @@ export interface ResourceFilter { memoryRequestBytes?: BigIntFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -11396,8 +11526,8 @@ export interface ResourceDefinitionFilter { labels?: JSONFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -11462,8 +11592,8 @@ export interface ResourceInstallationFilter { id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -11795,6 +11925,50 @@ export interface ResourcesResolvedRequirementFilter { /** Filter by the object’s `slug` field. */ slug?: StringFilter; } +export interface ServiceBindingFilter { + /** Checks for all expressions in this list. */ + and?: ServiceBindingFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `installationScope` field. */ + installationScope?: StringFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: ServiceBindingFilter; + /** Filter by the object’s `observedHost` field. */ + observedHost?: StringFilter; + /** Checks for any expressions in this list. */ + or?: ServiceBindingFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} export interface WebhookEndpointFilter { /** Filter by the object’s `active` field. */ active?: BooleanFilter; @@ -11816,8 +11990,8 @@ export interface WebhookEndpointFilter { host?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -11966,40 +12140,6 @@ export type BuildStepOrderBy = | 'STATUS_DESC' | 'SUMMARY_ASC' | 'SUMMARY_DESC'; -export type BuilderBindingOrderBy = - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'CREATED_BY_PRINCIPAL_ASC' - | 'CREATED_BY_PRINCIPAL_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'INSTALLATION_ID_ASC' - | 'INSTALLATION_ID_DESC' - | 'LAST_ERROR_ASC' - | 'LAST_ERROR_DESC' - | 'METADATA_ASC' - | 'METADATA_DESC' - | 'NAMESPACE_ID_ASC' - | 'NAMESPACE_ID_DESC' - | 'NATURAL' - | 'OBSERVED_HOST_ASC' - | 'OBSERVED_HOST_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'REALM_ASC' - | 'REALM_DESC' - | 'STATUS_ASC' - | 'STATUS_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'UPDATED_BY_PRINCIPAL_ASC' - | 'UPDATED_BY_PRINCIPAL_DESC'; export type ContentPresetOrderBy = | 'ACTIVE_ASC' | 'ACTIVE_DESC' @@ -13198,38 +13338,6 @@ export type PlatformBuildStepOrderBy = | 'STATUS_DESC' | 'SUMMARY_ASC' | 'SUMMARY_DESC'; -export type PlatformBuilderBindingOrderBy = - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'CREATED_BY_PRINCIPAL_ASC' - | 'CREATED_BY_PRINCIPAL_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'INSTALLATION_ID_ASC' - | 'INSTALLATION_ID_DESC' - | 'LAST_ERROR_ASC' - | 'LAST_ERROR_DESC' - | 'METADATA_ASC' - | 'METADATA_DESC' - | 'NAMESPACE_ID_ASC' - | 'NAMESPACE_ID_DESC' - | 'NATURAL' - | 'OBSERVED_HOST_ASC' - | 'OBSERVED_HOST_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'REALM_ASC' - | 'REALM_DESC' - | 'STATUS_ASC' - | 'STATUS_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'UPDATED_BY_PRINCIPAL_ASC' - | 'UPDATED_BY_PRINCIPAL_DESC'; export type PlatformFunctionApiBindingOrderBy = | 'ALIAS_ASC' | 'ALIAS_DESC' @@ -13829,6 +13937,10 @@ export type PlatformProposalCommentOrderBy = | 'CREATED_BY_PRINCIPAL_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_ASC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' @@ -13885,6 +13997,10 @@ export type PlatformProposalOrderBy = | 'DUE_AT_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_ASC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' @@ -14185,6 +14301,10 @@ export type PlatformRepositoryOrderBy = | 'DESCRIPTION_TRGM_SIMILARITY_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_ASC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' @@ -14766,6 +14886,42 @@ export type PlatformResourcesResolvedRequirementOrderBy = | 'SECRETS_OBJECT_NAME_DESC' | 'SLUG_ASC' | 'SLUG_DESC'; +export type PlatformServiceBindingOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'INSTALLATION_ID_ASC' + | 'INSTALLATION_ID_DESC' + | 'INSTALLATION_SCOPE_ASC' + | 'INSTALLATION_SCOPE_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'LAST_ERROR_ASC' + | 'LAST_ERROR_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'NATURAL' + | 'OBSERVED_HOST_ASC' + | 'OBSERVED_HOST_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REALM_ASC' + | 'REALM_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type PlatformWebhookEndpointOrderBy = | 'ACTIVE_ASC' | 'ACTIVE_DESC' @@ -14847,6 +15003,10 @@ export type ProposalCommentOrderBy = | 'DATABASE_ID_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_ASC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' @@ -14905,6 +15065,10 @@ export type ProposalOrderBy = | 'DUE_AT_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_ASC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' @@ -15221,6 +15385,10 @@ export type RepositoryOrderBy = | 'DESCRIPTION_TRGM_SIMILARITY_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_ASC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' @@ -15824,6 +15992,44 @@ export type ResourcesResolvedRequirementOrderBy = | 'SECRETS_OBJECT_NAME_DESC' | 'SLUG_ASC' | 'SLUG_DESC'; +export type ServiceBindingOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'INSTALLATION_ID_ASC' + | 'INSTALLATION_ID_DESC' + | 'INSTALLATION_SCOPE_ASC' + | 'INSTALLATION_SCOPE_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'LAST_ERROR_ASC' + | 'LAST_ERROR_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'NATURAL' + | 'OBSERVED_HOST_ASC' + | 'OBSERVED_HOST_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REALM_ASC' + | 'REALM_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type WebhookEndpointOrderBy = | 'ACTIVE_ASC' | 'ACTIVE_DESC' @@ -15927,7 +16133,6 @@ export interface BuildPatch { imageRef?: string | null; jobId?: string | null; logs?: ConstructiveInternalTypeUpload | null; - logsUpload?: File | null; matrixKey?: string | null; metadata?: Record | null; proposalId?: string | null; @@ -15992,46 +16197,6 @@ export interface DeleteBuildStepInput { clientMutationId?: string; id: string; } -export interface CreateBuilderBindingInput { - clientMutationId?: string; - builderBinding: { - createdBy?: string; - createdByPrincipal?: string; - databaseId: string; - installationId: string; - lastError?: string; - metadata?: Record; - namespaceId: string; - observedHost?: string; - realm?: string; - status?: string; - updatedBy?: string; - updatedByPrincipal?: string; - }; -} -export interface BuilderBindingPatch { - createdBy?: string | null; - createdByPrincipal?: string | null; - databaseId?: string | null; - installationId?: string | null; - lastError?: string | null; - metadata?: Record | null; - namespaceId?: string | null; - observedHost?: string | null; - realm?: string | null; - status?: string | null; - updatedBy?: string | null; - updatedByPrincipal?: string | null; -} -export interface UpdateBuilderBindingInput { - clientMutationId?: string; - id: string; - builderBindingPatch: BuilderBindingPatch; -} -export interface DeleteBuilderBindingInput { - clientMutationId?: string; - id: string; -} export interface CreateContentPresetInput { clientMutationId?: string; contentPreset: { @@ -16064,20 +16229,6 @@ export interface DeleteContentPresetInput { clientMutationId?: string; id: string; } -export interface CreateDatabaseFunctionGraphInput { - clientMutationId?: string; - databaseFunctionGraph: { - context?: string; - createdBy?: string; - databaseId: string; - definitionsCommitId: string; - description?: string; - isValid?: boolean; - name?: string; - storeId: string; - validationErrors?: Record; - }; -} export interface DatabaseFunctionGraphPatch { context?: string | null; createdBy?: string | null; @@ -16304,13 +16455,6 @@ export interface DeleteDatabaseGraphCommitInput { clientMutationId?: string; id: string; } -export interface CreateDatabaseGraphGetAllTreeNodesRecordInput { - clientMutationId?: string; - databaseGraphGetAllTreeNodesRecord: { - data?: Record; - path?: string[]; - }; -} export interface DatabaseGraphGetAllTreeNodesRecordPatch { data?: Record | null; path?: string[] | null; @@ -16726,20 +16870,6 @@ export interface DeleteFunctionGraphCommitInput { clientMutationId?: string; id: string; } -export interface CreateFunctionGraphInput { - clientMutationId?: string; - functionGraph: { - context?: string; - createdBy?: string; - definitionsCommitId: string; - description?: string; - isValid?: boolean; - name?: string; - scopeId: string; - storeId: string; - validationErrors?: Record; - }; -} export interface FunctionGraphPatch { context?: string | null; createdBy?: string | null; @@ -17144,13 +17274,6 @@ export interface DeleteFunctionScheduleInput { clientMutationId?: string; id: string; } -export interface CreateGetAllTreeNodesRecordInput { - clientMutationId?: string; - getAllTreeNodesRecord: { - data?: Record; - path?: string[]; - }; -} export interface GetAllTreeNodesRecordPatch { data?: Record | null; path?: string[] | null; @@ -17278,13 +17401,6 @@ export interface DeleteInfraCommitInput { clientMutationId?: string; id: string; } -export interface CreateInfraGetAllTreeNodesRecordInput { - clientMutationId?: string; - infraGetAllTreeNodesRecord: { - data?: Record; - path?: string[]; - }; -} export interface InfraGetAllTreeNodesRecordPatch { data?: Record | null; path?: string[] | null; @@ -17388,7 +17504,6 @@ export interface IntegrationProviderPatch { description?: string | null; icon?: string | null; logo?: ConstructiveInternalTypeImage | null; - logoUpload?: File | null; name?: string | null; requiredConfigs?: ResourceRequirementInput[] | null; requiredSecrets?: ResourceRequirementInput[] | null; @@ -17504,7 +17619,6 @@ export interface PlatformBuildPatch { imageRef?: string | null; jobId?: string | null; logs?: ConstructiveInternalTypeUpload | null; - logsUpload?: File | null; matrixKey?: string | null; metadata?: Record | null; proposalId?: string | null; @@ -17568,44 +17682,6 @@ export interface DeletePlatformBuildStepInput { clientMutationId?: string; id: string; } -export interface CreatePlatformBuilderBindingInput { - clientMutationId?: string; - platformBuilderBinding: { - createdBy?: string; - createdByPrincipal?: string; - installationId: string; - lastError?: string; - metadata?: Record; - namespaceId: string; - observedHost?: string; - realm?: string; - status?: string; - updatedBy?: string; - updatedByPrincipal?: string; - }; -} -export interface PlatformBuilderBindingPatch { - createdBy?: string | null; - createdByPrincipal?: string | null; - installationId?: string | null; - lastError?: string | null; - metadata?: Record | null; - namespaceId?: string | null; - observedHost?: string | null; - realm?: string | null; - status?: string | null; - updatedBy?: string | null; - updatedByPrincipal?: string | null; -} -export interface UpdatePlatformBuilderBindingInput { - clientMutationId?: string; - id: string; - platformBuilderBindingPatch: PlatformBuilderBindingPatch; -} -export interface DeletePlatformBuilderBindingInput { - clientMutationId?: string; - id: string; -} export interface CreatePlatformFunctionApiBindingInput { clientMutationId?: string; platformFunctionApiBinding: { @@ -18114,13 +18190,6 @@ export interface DeletePlatformInfraCommitInput { clientMutationId?: string; id: string; } -export interface CreatePlatformInfraGetAllTreeNodesRecordInput { - clientMutationId?: string; - platformInfraGetAllTreeNodesRecord: { - data?: Record; - path?: string[]; - }; -} export interface PlatformInfraGetAllTreeNodesRecordPatch { data?: Record | null; path?: string[] | null; @@ -18892,25 +18961,6 @@ export interface DeletePlatformResourceInput { clientMutationId?: string; id: string; } -export interface CreatePlatformResourceDeclaredCapacityInput { - clientMutationId?: string; - platformResourceDeclaredCapacity: { - cpuLimitMillicores?: string; - cpuRequestMillicores?: string; - installationId: string; - isTransient?: boolean; - kind?: string; - memoryLimitBytes?: string; - memoryRequestBytes?: string; - namespaceId: string; - podCountMax?: number; - podCountMin?: number; - source?: string; - sourceId: string; - storageSizeBytes?: string; - storageTotalBytes?: string; - }; -} export interface PlatformResourceDeclaredCapacityPatch { cpuLimitMillicores?: string | null; cpuRequestMillicores?: string | null; @@ -19052,29 +19102,6 @@ export interface DeletePlatformResourceInstallationInput { clientMutationId?: string; id: string; } -export interface CreatePlatformResourceObservedStorageInput { - clientMutationId?: string; - platformResourceObservedStorage: { - capacity?: string; - capacityBytes?: string; - claimName?: string; - declaredStorageClass?: string; - declaredStorageSizeBytes?: string; - declaredStorageTotalBytes?: string; - installationId: string; - isBound?: boolean; - kind?: string; - namespaceId: string; - phase?: string; - requested?: string; - requestedBytes?: string; - resourceId: string; - resourceStatus?: string; - slug?: string; - storageClass?: string; - storageName?: string; - }; -} export interface PlatformResourceObservedStoragePatch { capacity?: string | null; capacityBytes?: string | null; @@ -19196,30 +19223,6 @@ export interface DeletePlatformResourceUsageSummaryInput { clientMutationId?: string; id: string; } -export interface CreatePlatformResourceUtilizationInput { - clientMutationId?: string; - platformResourceUtilization: { - avgMemoryBytes?: string; - cpuLimitMillicores?: string; - cpuPeakUtilization?: string; - cpuRequestHeadroomMillicores?: string; - cpuRequestMillicores?: string; - date?: string; - gbSeconds?: string; - kind?: string; - maxCpuMillicores?: string; - maxMemoryBytes?: string; - memoryLimitBytes?: string; - memoryPeakUtilization?: string; - memoryRequestBytes?: string; - memoryRequestHeadroomBytes?: string; - namespaceId: string; - replicas?: number; - resourceId: string; - runtimeSeconds?: string; - sampleCount?: number; - }; -} export interface PlatformResourceUtilizationPatch { avgMemoryBytes?: string | null; cpuLimitMillicores?: string | null; @@ -19250,43 +19253,6 @@ export interface DeletePlatformResourceUtilizationInput { clientMutationId?: string; id: string; } -export interface CreatePlatformResourcesHealthInput { - clientMutationId?: string; - platformResourcesHealth: { - annotations?: Record; - cpuLimitMillicores?: string; - cpuRequestMillicores?: string; - createdBy?: string; - createdByPrincipal?: string; - errorCount?: number; - imageRef?: string; - installationId: string; - integrations?: string[]; - kind?: string; - labels?: Record; - lastError?: string; - lastHeartbeatAt?: string; - memoryLimitBytes?: string; - memoryRequestBytes?: string; - name?: string; - namespaceId: string; - realm?: string; - replicas?: number; - requiredConfigs?: ResourceRequirement[]; - requiredSecrets?: ResourceRequirement[]; - resourceDefinitionId: string; - slug?: string; - spec?: Record; - status?: string; - statusDetail?: string; - statusObserved?: Record; - storageClass?: string; - storageSizeBytes?: string; - storageTotalBytes?: string; - updatedBy?: string; - updatedByPrincipal?: string; - }; -} export interface PlatformResourcesHealthPatch { annotations?: Record | null; cpuLimitMillicores?: string | null; @@ -19330,18 +19296,6 @@ export interface DeletePlatformResourcesHealthInput { clientMutationId?: string; id: string; } -export interface CreatePlatformResourcesRequirementsStateInput { - clientMutationId?: string; - platformResourcesRequirementsState: { - configHash?: string; - configObjectName?: string; - requirementsHash?: string; - resourceId: string; - secretsHash?: string; - secretsObjectName?: string; - slug?: string; - }; -} export interface PlatformResourcesRequirementsStatePatch { configHash?: string | null; configObjectName?: string | null; @@ -19360,22 +19314,6 @@ export interface DeletePlatformResourcesRequirementsStateInput { clientMutationId?: string; id: string; } -export interface CreatePlatformResourcesResolvedRequirementInput { - clientMutationId?: string; - platformResourcesResolvedRequirement: { - atomId: string; - configObjectName?: string; - name?: string; - namespaceId: string; - present?: boolean; - realm?: string; - required?: boolean; - requirementKind?: string; - resourceId: string; - secretsObjectName?: string; - slug?: string; - }; -} export interface PlatformResourcesResolvedRequirementPatch { atomId?: string | null; configObjectName?: string | null; @@ -19398,6 +19336,48 @@ export interface DeletePlatformResourcesResolvedRequirementInput { clientMutationId?: string; id: string; } +export interface CreatePlatformServiceBindingInput { + clientMutationId?: string; + platformServiceBinding: { + createdBy?: string; + createdByPrincipal?: string; + installationId: string; + installationScope: string; + kind: string; + lastError?: string; + metadata?: Record; + namespaceId: string; + observedHost?: string; + realm?: string; + status?: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformServiceBindingPatch { + createdBy?: string | null; + createdByPrincipal?: string | null; + installationId?: string | null; + installationScope?: string | null; + kind?: string | null; + lastError?: string | null; + metadata?: Record | null; + namespaceId?: string | null; + observedHost?: string | null; + realm?: string | null; + status?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformServiceBindingInput { + clientMutationId?: string; + id: string; + platformServiceBindingPatch: PlatformServiceBindingPatch; +} +export interface DeletePlatformServiceBindingInput { + clientMutationId?: string; + id: string; +} export interface CreatePlatformWebhookEndpointInput { clientMutationId?: string; platformWebhookEndpoint: { @@ -20059,25 +20039,6 @@ export interface DeleteResourceInput { clientMutationId?: string; id: string; } -export interface CreateResourceDeclaredCapacityInput { - clientMutationId?: string; - resourceDeclaredCapacity: { - cpuLimitMillicores?: string; - cpuRequestMillicores?: string; - installationId: string; - isTransient?: boolean; - kind?: string; - memoryLimitBytes?: string; - memoryRequestBytes?: string; - namespaceId: string; - podCountMax?: number; - podCountMin?: number; - source?: string; - sourceId: string; - storageSizeBytes?: string; - storageTotalBytes?: string; - }; -} export interface ResourceDeclaredCapacityPatch { cpuLimitMillicores?: string | null; cpuRequestMillicores?: string | null; @@ -20225,29 +20186,6 @@ export interface DeleteResourceInstallationInput { clientMutationId?: string; id: string; } -export interface CreateResourceObservedStorageInput { - clientMutationId?: string; - resourceObservedStorage: { - capacity?: string; - capacityBytes?: string; - claimName?: string; - declaredStorageClass?: string; - declaredStorageSizeBytes?: string; - declaredStorageTotalBytes?: string; - installationId: string; - isBound?: boolean; - kind?: string; - namespaceId: string; - phase?: string; - requested?: string; - requestedBytes?: string; - resourceId: string; - resourceStatus?: string; - slug?: string; - storageClass?: string; - storageName?: string; - }; -} export interface ResourceObservedStoragePatch { capacity?: string | null; capacityBytes?: string | null; @@ -20375,30 +20313,6 @@ export interface DeleteResourceUsageSummaryInput { clientMutationId?: string; id: string; } -export interface CreateResourceUtilizationInput { - clientMutationId?: string; - resourceUtilization: { - avgMemoryBytes?: string; - cpuLimitMillicores?: string; - cpuPeakUtilization?: string; - cpuRequestHeadroomMillicores?: string; - cpuRequestMillicores?: string; - date?: string; - gbSeconds?: string; - kind?: string; - maxCpuMillicores?: string; - maxMemoryBytes?: string; - memoryLimitBytes?: string; - memoryPeakUtilization?: string; - memoryRequestBytes?: string; - memoryRequestHeadroomBytes?: string; - namespaceId: string; - replicas?: number; - resourceId: string; - runtimeSeconds?: string; - sampleCount?: number; - }; -} export interface ResourceUtilizationPatch { avgMemoryBytes?: string | null; cpuLimitMillicores?: string | null; @@ -20429,44 +20343,6 @@ export interface DeleteResourceUtilizationInput { clientMutationId?: string; id: string; } -export interface CreateResourcesHealthInput { - clientMutationId?: string; - resourcesHealth: { - annotations?: Record; - cpuLimitMillicores?: string; - cpuRequestMillicores?: string; - createdBy?: string; - createdByPrincipal?: string; - databaseId: string; - errorCount?: number; - imageRef?: string; - installationId: string; - integrations?: string[]; - kind?: string; - labels?: Record; - lastError?: string; - lastHeartbeatAt?: string; - memoryLimitBytes?: string; - memoryRequestBytes?: string; - name?: string; - namespaceId: string; - realm?: string; - replicas?: number; - requiredConfigs?: ResourceRequirement[]; - requiredSecrets?: ResourceRequirement[]; - resourceDefinitionId: string; - slug?: string; - spec?: Record; - status?: string; - statusDetail?: string; - statusObserved?: Record; - storageClass?: string; - storageSizeBytes?: string; - storageTotalBytes?: string; - updatedBy?: string; - updatedByPrincipal?: string; - }; -} export interface ResourcesHealthPatch { annotations?: Record | null; cpuLimitMillicores?: string | null; @@ -20511,18 +20387,6 @@ export interface DeleteResourcesHealthInput { clientMutationId?: string; id: string; } -export interface CreateResourcesRequirementsStateInput { - clientMutationId?: string; - resourcesRequirementsState: { - configHash?: string; - configObjectName?: string; - requirementsHash?: string; - resourceId: string; - secretsHash?: string; - secretsObjectName?: string; - slug?: string; - }; -} export interface ResourcesRequirementsStatePatch { configHash?: string | null; configObjectName?: string | null; @@ -20541,22 +20405,6 @@ export interface DeleteResourcesRequirementsStateInput { clientMutationId?: string; id: string; } -export interface CreateResourcesResolvedRequirementInput { - clientMutationId?: string; - resourcesResolvedRequirement: { - atomId: string; - configObjectName?: string; - name?: string; - namespaceId: string; - present?: boolean; - realm?: string; - required?: boolean; - requirementKind?: string; - resourceId: string; - secretsObjectName?: string; - slug?: string; - }; -} export interface ResourcesResolvedRequirementPatch { atomId?: string | null; configObjectName?: string | null; @@ -20579,6 +20427,50 @@ export interface DeleteResourcesResolvedRequirementInput { clientMutationId?: string; id: string; } +export interface CreateServiceBindingInput { + clientMutationId?: string; + serviceBinding: { + createdBy?: string; + createdByPrincipal?: string; + databaseId: string; + installationId: string; + installationScope: string; + kind: string; + lastError?: string; + metadata?: Record; + namespaceId: string; + observedHost?: string; + realm?: string; + status?: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface ServiceBindingPatch { + createdBy?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + installationId?: string | null; + installationScope?: string | null; + kind?: string | null; + lastError?: string | null; + metadata?: Record | null; + namespaceId?: string | null; + observedHost?: string | null; + realm?: string | null; + status?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdateServiceBindingInput { + clientMutationId?: string; + id: string; + serviceBindingPatch: ServiceBindingPatch; +} +export interface DeleteServiceBindingInput { + clientMutationId?: string; + id: string; +} export interface CreateWebhookEndpointInput { clientMutationId?: string; webhookEndpoint: { @@ -20682,13 +20574,13 @@ export const connectionFieldsMap = { imageGrants: 'ImageGrant', }, Namespace: { - builderBindings: 'BuilderBinding', - functionDeployments: 'FunctionDeployment', - registryBindings: 'RegistryBinding', - resourceDefinitions: 'ResourceDefinition', - resourceInstallations: 'ResourceInstallation', - resources: 'Resource', - webhookEndpoints: 'WebhookEndpoint', + functionDeploymentsByNamespaceIdAndDatabaseId: 'FunctionDeployment', + registryBindingsByNamespaceIdAndDatabaseId: 'RegistryBinding', + resourceDefinitionsByNamespaceIdAndDatabaseId: 'ResourceDefinition', + resourceInstallationsByNamespaceIdAndDatabaseId: 'ResourceInstallation', + resourcesByNamespaceIdAndDatabaseId: 'Resource', + serviceBindingsByNamespaceIdAndDatabaseId: 'ServiceBinding', + webhookEndpointsByNamespaceIdAndDatabaseId: 'WebhookEndpoint', }, PlatformFunctionApiBinding: { platformFunctionInvocationsByApiBindingId: 'PlatformFunctionInvocation', @@ -20703,12 +20595,12 @@ export const connectionFieldsMap = { platformImageGrantsByImageId: 'PlatformImageGrant', }, PlatformNamespace: { - platformBuilderBindingsByNamespaceId: 'PlatformBuilderBinding', platformFunctionDeploymentsByNamespaceId: 'PlatformFunctionDeployment', platformRegistryBindingsByNamespaceId: 'PlatformRegistryBinding', platformResourceDefinitionsByNamespaceId: 'PlatformResourceDefinition', platformResourceInstallationsByNamespaceId: 'PlatformResourceInstallation', platformResourcesByNamespaceId: 'PlatformResource', + platformServiceBindingsByNamespaceId: 'PlatformServiceBinding', platformWebhookEndpointsByNamespaceId: 'PlatformWebhookEndpoint', }, PlatformProposalComment: { @@ -20852,6 +20744,15 @@ export interface CopyGraphInput { name?: string; scopeId?: string; } +export interface CreateFunctionGraphInput { + clientMutationId?: string; + context?: string; + createdBy?: string; + definitionsCommitId?: string; + description?: string; + name?: string; + scopeId?: string; +} export interface DatabaseAddEdgeInput { clientMutationId?: string; context?: string; @@ -21488,15 +21389,6 @@ export interface ConstructiveInternalTypeImageFilter { /** Not included in the specified list. */ notIn?: ConstructiveInternalTypeImage[]; } -/** A filter to be used against many `BuilderBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface NamespaceToManyBuilderBindingFilter { - /** Filters to entities where every related entity matches. */ - every?: BuilderBindingFilter; - /** Filters to entities where no related entity matches. */ - none?: BuilderBindingFilter; - /** Filters to entities where at least one related entity matches. */ - some?: BuilderBindingFilter; -} /** A filter to be used against many `FunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ export interface NamespaceToManyFunctionDeploymentFilter { /** Filters to entities where every related entity matches. */ @@ -21542,6 +21434,15 @@ export interface NamespaceToManyResourceFilter { /** Filters to entities where at least one related entity matches. */ some?: ResourceFilter; } +/** A filter to be used against many `ServiceBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface NamespaceToManyServiceBindingFilter { + /** Filters to entities where every related entity matches. */ + every?: ServiceBindingFilter; + /** Filters to entities where no related entity matches. */ + none?: ServiceBindingFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ServiceBindingFilter; +} /** A filter to be used against many `WebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ export interface NamespaceToManyWebhookEndpointFilter { /** Filters to entities where every related entity matches. */ @@ -21605,15 +21506,6 @@ export interface PlatformImageToManyPlatformImageGrantFilter { /** Filters to entities where at least one related entity matches. */ some?: PlatformImageGrantFilter; } -/** A filter to be used against many `PlatformBuilderBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformNamespaceToManyPlatformBuilderBindingFilter { - /** Filters to entities where every related entity matches. */ - every?: PlatformBuilderBindingFilter; - /** Filters to entities where no related entity matches. */ - none?: PlatformBuilderBindingFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlatformBuilderBindingFilter; -} /** A filter to be used against many `PlatformFunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformNamespaceToManyPlatformFunctionDeploymentFilter { /** Filters to entities where every related entity matches. */ @@ -21659,6 +21551,15 @@ export interface PlatformNamespaceToManyPlatformResourceFilter { /** Filters to entities where at least one related entity matches. */ some?: PlatformResourceFilter; } +/** A filter to be used against many `PlatformServiceBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformNamespaceToManyPlatformServiceBindingFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformServiceBindingFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformServiceBindingFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformServiceBindingFilter; +} /** A filter to be used against many `PlatformWebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformNamespaceToManyPlatformWebhookEndpointFilter { /** Filters to entities where every related entity matches. */ @@ -21812,10 +21713,12 @@ export interface VectorNearbyInput { includeChunks?: boolean; /** Similarity metric to use (default: COSINE). */ metric?: VectorMetric; - /** Natural language text to embed server-side for similarity search. Mutually exclusive with `vector` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** The model that produced `vector`. On a column that records the model of each row's vector, only rows embedded with this model are compared; vectors of two models are not comparable. Filled in server-side when `text` is embedded. */ + model?: string; + /** Natural language text to embed server-side for similarity search. Provide exactly one of `text` or `vector`; sending both or neither is an error. Blank text on its own counts as not given. Requires the LLM plugin to be configured with an embedding provider. */ text?: string; /** Query vector for similarity search. */ - vector: number[]; + vector?: number[]; } /** A filter to be used against many `PlatformProposal` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformProposalToManyPlatformProposalFilter { @@ -22322,32 +22225,6 @@ export interface BuildStepInput { /** Parsed detail: failure message, assertion diff, counts, annotations */ summary?: Record; } -/** An input for mutations affecting `BuilderBinding` */ -export interface BuilderBindingInput { - createdAt?: string; - createdBy?: string; - createdByPrincipal?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - id?: string; - /** BuildKit resource installation serving this binding; may belong to another resource scope */ - installationId: string; - /** Most recent projection failure */ - lastError?: string; - /** Reconciler detail (projection timestamps and diagnostics) */ - metadata?: Record; - /** Namespace whose builds use this BuildKit installation */ - namespaceId: string; - /** BuildKit address last projected into the namespace (NULL = never projected) */ - observedHost?: string; - /** Lane this binding applies to (NULL = the scope's default lane) */ - realm?: string; - /** Projection state of BUILDKIT_HOST: pending, active, failed */ - status?: string; - updatedAt?: string; - updatedBy?: string; - updatedByPrincipal?: string; -} /** An input for mutations affecting `ContentPreset` */ export interface ContentPresetInput { /** Whether this preset is selectable at provision time */ @@ -23384,30 +23261,6 @@ export interface PlatformBuildStepInput { /** Parsed detail: failure message, assertion diff, counts, annotations */ summary?: Record; } -/** An input for mutations affecting `PlatformBuilderBinding` */ -export interface PlatformBuilderBindingInput { - createdAt?: string; - createdBy?: string; - createdByPrincipal?: string; - id?: string; - /** BuildKit resource installation serving this binding; may belong to another resource scope */ - installationId: string; - /** Most recent projection failure */ - lastError?: string; - /** Reconciler detail (projection timestamps and diagnostics) */ - metadata?: Record; - /** Namespace whose builds use this BuildKit installation */ - namespaceId: string; - /** BuildKit address last projected into the namespace (NULL = never projected) */ - observedHost?: string; - /** Lane this binding applies to (NULL = the scope's default lane) */ - realm?: string; - /** Projection state of BUILDKIT_HOST: pending, active, failed */ - status?: string; - updatedAt?: string; - updatedBy?: string; - updatedByPrincipal?: string; -} /** An input for mutations affecting `PlatformFunctionApiBinding` */ export interface PlatformFunctionApiBindingInput { /** Binding alias (e.g. default, staging, production) */ @@ -23933,7 +23786,7 @@ export interface PlatformProposalCommentInput { createdBy?: string; createdByPrincipal?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; /** Line within path the comment is anchored to */ @@ -23966,7 +23819,7 @@ export interface PlatformProposalInput { /** When this is wanted by (NULL when nothing is promised) */ dueAt?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; /** issue (a report or plan), change (merge one ref into another), discussion (an open question), decision (a question answered) */ @@ -24065,7 +23918,7 @@ export interface PlatformProposalsChunkInput { chunkIndex?: number; createdAt?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; metadata?: Record; @@ -24166,7 +24019,7 @@ export interface PlatformRepositoryInput { /** What this repository holds */ description?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; /** Identifier of this repository in the external provider (NULL for local) */ externalId?: string; @@ -24460,6 +24313,34 @@ export interface PlatformResourceUsageSummaryInput { /** Number of raw samples aggregated into this summary */ sampleCount?: number; } +/** An input for mutations affecting `PlatformServiceBinding` */ +export interface PlatformServiceBindingInput { + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + id?: string; + /** Resource installation serving this binding, in the installations table of installation_scope */ + installationId: string; + /** Scope whose installations table holds installation_id: this scope or platform */ + installationScope: string; + /** Service this binding projects: builder (BUILDKIT_HOST) or git (GIT_PROVIDER + GIT_SERVICE_URL) */ + kind: string; + /** Most recent projection failure */ + lastError?: string; + /** Reconciler detail (projection timestamps and diagnostics) */ + metadata?: Record; + /** Namespace whose builds use this BuildKit installation */ + namespaceId: string; + /** Service address last projected into the namespace (NULL = never projected) */ + observedHost?: string; + /** Lane this binding applies to (NULL = the scope's default lane) */ + realm?: string; + /** Projection state of the bound address: pending, active, failed */ + status?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; +} /** An input for mutations affecting `PlatformWebhookEndpoint` */ export interface PlatformWebhookEndpointInput { /** Whether this endpoint currently accepts deliveries */ @@ -24522,7 +24403,7 @@ export interface ProposalCommentInput { createdBy?: string; createdByPrincipal?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; /** Line within path the comment is anchored to */ @@ -24555,7 +24436,7 @@ export interface ProposalInput { /** When this is wanted by (NULL when nothing is promised) */ dueAt?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; /** issue (a report or plan), change (merge one ref into another), discussion (an open question), decision (a question answered) */ @@ -24656,7 +24537,7 @@ export interface ProposalsChunkInput { /** Policy-required field derived from source table (used by AuthzRelatedEntityMembership) */ databaseId?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; metadata?: Record; @@ -24765,7 +24646,7 @@ export interface RepositoryInput { /** What this repository holds */ description?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; /** Identifier of this repository in the external provider (NULL for local) */ externalId?: string; @@ -25056,6 +24937,36 @@ export interface ResourceUsageSummaryInput { /** Number of raw samples aggregated into this summary */ sampleCount?: number; } +/** An input for mutations affecting `ServiceBinding` */ +export interface ServiceBindingInput { + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + id?: string; + /** Resource installation serving this binding, in the installations table of installation_scope */ + installationId: string; + /** Scope whose installations table holds installation_id: this scope or platform */ + installationScope: string; + /** Service this binding projects: builder (BUILDKIT_HOST) or git (GIT_PROVIDER + GIT_SERVICE_URL) */ + kind: string; + /** Most recent projection failure */ + lastError?: string; + /** Reconciler detail (projection timestamps and diagnostics) */ + metadata?: Record; + /** Namespace whose builds use this BuildKit installation */ + namespaceId: string; + /** Service address last projected into the namespace (NULL = never projected) */ + observedHost?: string; + /** Lane this binding applies to (NULL = the scope's default lane) */ + realm?: string; + /** Projection state of the bound address: pending, active, failed */ + status?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; +} /** An input for mutations affecting `WebhookEndpoint` */ export interface WebhookEndpointInput { /** Whether this endpoint currently accepts deliveries */ @@ -25555,8 +25466,8 @@ export interface WebhookEndpointFilter { host?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -25874,47 +25785,6 @@ export interface ImageGrantFilter { /** Filter by the object’s `updatedByPrincipal` field. */ updatedByPrincipal?: UUIDFilter; } -/** A filter to be used against `BuilderBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface BuilderBindingFilter { - /** Checks for all expressions in this list. */ - and?: BuilderBindingFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `createdByPrincipal` field. */ - createdByPrincipal?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `installationId` field. */ - installationId?: UUIDFilter; - /** Filter by the object’s `lastError` field. */ - lastError?: StringFilter; - /** Filter by the object’s `metadata` field. */ - metadata?: JSONFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Negates the expression. */ - not?: BuilderBindingFilter; - /** Filter by the object’s `observedHost` field. */ - observedHost?: StringFilter; - /** Checks for any expressions in this list. */ - or?: BuilderBindingFilter[]; - /** Filter by the object’s `realm` field. */ - realm?: StringFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `updatedByPrincipal` field. */ - updatedByPrincipal?: UUIDFilter; -} /** A filter to be used against `FunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ export interface FunctionDeploymentFilter { /** Checks for all expressions in this list. */ @@ -25945,8 +25815,8 @@ export interface FunctionDeploymentFilter { lastError?: StringFilter; /** Filter by the object’s `lastErrorAt` field. */ lastErrorAt?: DatetimeFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -25992,8 +25862,8 @@ export interface RegistryBindingFilter { id?: UUIDFilter; /** Filter by the object’s `metadata` field. */ metadata?: JSONFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -26049,8 +25919,8 @@ export interface ResourceDefinitionFilter { labels?: JSONFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -26092,8 +25962,8 @@ export interface ResourceInstallationFilter { id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -26171,8 +26041,8 @@ export interface ResourceFilter { memoryRequestBytes?: BigIntFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -26214,6 +26084,51 @@ export interface ResourceFilter { /** Filter by the object’s `updatedByPrincipal` field. */ updatedByPrincipal?: UUIDFilter; } +/** A filter to be used against `ServiceBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface ServiceBindingFilter { + /** Checks for all expressions in this list. */ + and?: ServiceBindingFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `installationScope` field. */ + installationScope?: StringFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: ServiceBindingFilter; + /** Filter by the object’s `observedHost` field. */ + observedHost?: StringFilter; + /** Checks for any expressions in this list. */ + or?: ServiceBindingFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} /** A filter to be used against `PlatformFunctionInvocation` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformFunctionInvocationFilter { /** Filter by the object’s `actorId` field. */ @@ -26456,45 +26371,6 @@ export interface PlatformImageGrantFilter { /** Filter by the object’s `updatedByPrincipal` field. */ updatedByPrincipal?: UUIDFilter; } -/** A filter to be used against `PlatformBuilderBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformBuilderBindingFilter { - /** Checks for all expressions in this list. */ - and?: PlatformBuilderBindingFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `createdByPrincipal` field. */ - createdByPrincipal?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `installationId` field. */ - installationId?: UUIDFilter; - /** Filter by the object’s `lastError` field. */ - lastError?: StringFilter; - /** Filter by the object’s `metadata` field. */ - metadata?: JSONFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: PlatformNamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Negates the expression. */ - not?: PlatformBuilderBindingFilter; - /** Filter by the object’s `observedHost` field. */ - observedHost?: StringFilter; - /** Checks for any expressions in this list. */ - or?: PlatformBuilderBindingFilter[]; - /** Filter by the object’s `realm` field. */ - realm?: StringFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `updatedByPrincipal` field. */ - updatedByPrincipal?: UUIDFilter; -} /** A filter to be used against `PlatformFunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformFunctionDeploymentFilter { /** Checks for all expressions in this list. */ @@ -26784,6 +26660,49 @@ export interface PlatformResourceFilter { /** Filter by the object’s `updatedByPrincipal` field. */ updatedByPrincipal?: UUIDFilter; } +/** A filter to be used against `PlatformServiceBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformServiceBindingFilter { + /** Checks for all expressions in this list. */ + and?: PlatformServiceBindingFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `installationScope` field. */ + installationScope?: StringFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformServiceBindingFilter; + /** Filter by the object’s `observedHost` field. */ + observedHost?: StringFilter; + /** Checks for any expressions in this list. */ + or?: PlatformServiceBindingFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} /** A filter to be used against `PlatformProposalReaction` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformProposalReactionFilter { /** Filter by the object’s `actorId` field. */ @@ -26845,6 +26764,8 @@ export interface PlatformProposalFilter { dueAt?: DatetimeFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -26919,6 +26840,8 @@ export interface PlatformProposalFilter { trgmBody?: TrgmSearchInput; /** TRGM search on the `closed_reason` column. */ trgmClosedReason?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `kind` column. */ trgmKind?: TrgmSearchInput; /** TRGM search on the `merge_commit` column. */ @@ -27039,6 +26962,8 @@ export interface PlatformProposalCommentFilter { createdByPrincipal?: UUIDFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -27067,6 +26992,8 @@ export interface PlatformProposalCommentFilter { search?: FullTextFilter; /** TRGM search on the `body` column. */ trgmBody?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `path` column. */ trgmPath?: TrgmSearchInput; /** TSV search on the `search` column. */ @@ -27553,6 +27480,8 @@ export interface ProposalFilter { dueAt?: DatetimeFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -27623,6 +27552,8 @@ export interface ProposalFilter { trgmBody?: TrgmSearchInput; /** TRGM search on the `closed_reason` column. */ trgmClosedReason?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `kind` column. */ trgmKind?: TrgmSearchInput; /** TRGM search on the `merge_commit` column. */ @@ -27678,6 +27609,8 @@ export interface ProposalCommentFilter { databaseId?: UUIDFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -27706,6 +27639,8 @@ export interface ProposalCommentFilter { search?: FullTextFilter; /** TRGM search on the `body` column. */ trgmBody?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `path` column. */ trgmPath?: TrgmSearchInput; /** TSV search on the `search` column. */ @@ -28419,6 +28354,8 @@ export interface RepositoryFilter { description?: StringTrgmFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `externalId` field. */ @@ -28465,6 +28402,8 @@ export interface RepositoryFilter { trgmDefaultBranch?: TrgmSearchInput; /** TRGM search on the `description` column. */ trgmDescription?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `external_id` column. */ trgmExternalId?: TrgmSearchInput; /** TRGM search on the `name` column. */ @@ -28502,10 +28441,6 @@ export interface NamespaceFilter { and?: NamespaceFilter[]; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; - /** Filter by the object’s `builderBindings` relation. */ - builderBindings?: NamespaceToManyBuilderBindingFilter; - /** `builderBindings` exist. */ - builderBindingsExist?: boolean; /** Filter by the object’s `clusterId` field. */ clusterId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -28514,10 +28449,10 @@ export interface NamespaceFilter { databaseId?: UUIDFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; - /** Filter by the object’s `functionDeployments` relation. */ - functionDeployments?: NamespaceToManyFunctionDeploymentFilter; - /** `functionDeployments` exist. */ - functionDeploymentsExist?: boolean; + /** Filter by the object’s `functionDeploymentsByNamespaceIdAndDatabaseId` relation. */ + functionDeploymentsByNamespaceIdAndDatabaseId?: NamespaceToManyFunctionDeploymentFilter; + /** `functionDeploymentsByNamespaceIdAndDatabaseId` exist. */ + functionDeploymentsByNamespaceIdAndDatabaseIdExist?: boolean; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isActive` field. */ @@ -28536,30 +28471,34 @@ export interface NamespaceFilter { not?: NamespaceFilter; /** Checks for any expressions in this list. */ or?: NamespaceFilter[]; - /** Filter by the object’s `registryBindings` relation. */ - registryBindings?: NamespaceToManyRegistryBindingFilter; - /** `registryBindings` exist. */ - registryBindingsExist?: boolean; - /** Filter by the object’s `resourceDefinitions` relation. */ - resourceDefinitions?: NamespaceToManyResourceDefinitionFilter; - /** `resourceDefinitions` exist. */ - resourceDefinitionsExist?: boolean; - /** Filter by the object’s `resourceInstallations` relation. */ - resourceInstallations?: NamespaceToManyResourceInstallationFilter; - /** `resourceInstallations` exist. */ - resourceInstallationsExist?: boolean; - /** Filter by the object’s `resources` relation. */ - resources?: NamespaceToManyResourceFilter; - /** `resources` exist. */ - resourcesExist?: boolean; + /** Filter by the object’s `registryBindingsByNamespaceIdAndDatabaseId` relation. */ + registryBindingsByNamespaceIdAndDatabaseId?: NamespaceToManyRegistryBindingFilter; + /** `registryBindingsByNamespaceIdAndDatabaseId` exist. */ + registryBindingsByNamespaceIdAndDatabaseIdExist?: boolean; + /** Filter by the object’s `resourceDefinitionsByNamespaceIdAndDatabaseId` relation. */ + resourceDefinitionsByNamespaceIdAndDatabaseId?: NamespaceToManyResourceDefinitionFilter; + /** `resourceDefinitionsByNamespaceIdAndDatabaseId` exist. */ + resourceDefinitionsByNamespaceIdAndDatabaseIdExist?: boolean; + /** Filter by the object’s `resourceInstallationsByNamespaceIdAndDatabaseId` relation. */ + resourceInstallationsByNamespaceIdAndDatabaseId?: NamespaceToManyResourceInstallationFilter; + /** `resourceInstallationsByNamespaceIdAndDatabaseId` exist. */ + resourceInstallationsByNamespaceIdAndDatabaseIdExist?: boolean; + /** Filter by the object’s `resourcesByNamespaceIdAndDatabaseId` relation. */ + resourcesByNamespaceIdAndDatabaseId?: NamespaceToManyResourceFilter; + /** `resourcesByNamespaceIdAndDatabaseId` exist. */ + resourcesByNamespaceIdAndDatabaseIdExist?: boolean; + /** Filter by the object’s `serviceBindingsByNamespaceIdAndDatabaseId` relation. */ + serviceBindingsByNamespaceIdAndDatabaseId?: NamespaceToManyServiceBindingFilter; + /** `serviceBindingsByNamespaceIdAndDatabaseId` exist. */ + serviceBindingsByNamespaceIdAndDatabaseIdExist?: boolean; /** Filter by the object’s `status` field. */ status?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; - /** Filter by the object’s `webhookEndpoints` relation. */ - webhookEndpoints?: NamespaceToManyWebhookEndpointFilter; - /** `webhookEndpoints` exist. */ - webhookEndpointsExist?: boolean; + /** Filter by the object’s `webhookEndpointsByNamespaceIdAndDatabaseId` relation. */ + webhookEndpointsByNamespaceIdAndDatabaseId?: NamespaceToManyWebhookEndpointFilter; + /** `webhookEndpointsByNamespaceIdAndDatabaseId` exist. */ + webhookEndpointsByNamespaceIdAndDatabaseIdExist?: boolean; } /** A filter to be used against `FunctionGraph` object types. All fields are combined with a logical ‘and.’ */ export interface FunctionGraphFilter { @@ -28624,6 +28563,8 @@ export interface PlatformRepositoryFilter { description?: StringTrgmFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `externalId` field. */ @@ -28674,6 +28615,8 @@ export interface PlatformRepositoryFilter { trgmDefaultBranch?: TrgmSearchInput; /** TRGM search on the `description` column. */ trgmDescription?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `external_id` column. */ trgmExternalId?: TrgmSearchInput; /** TRGM search on the `name` column. */ @@ -28786,10 +28729,6 @@ export interface PlatformNamespaceFilter { not?: PlatformNamespaceFilter; /** Checks for any expressions in this list. */ or?: PlatformNamespaceFilter[]; - /** Filter by the object’s `platformBuilderBindingsByNamespaceId` relation. */ - platformBuilderBindingsByNamespaceId?: PlatformNamespaceToManyPlatformBuilderBindingFilter; - /** `platformBuilderBindingsByNamespaceId` exist. */ - platformBuilderBindingsByNamespaceIdExist?: boolean; /** Filter by the object’s `platformFunctionDeploymentsByNamespaceId` relation. */ platformFunctionDeploymentsByNamespaceId?: PlatformNamespaceToManyPlatformFunctionDeploymentFilter; /** `platformFunctionDeploymentsByNamespaceId` exist. */ @@ -28810,6 +28749,10 @@ export interface PlatformNamespaceFilter { platformResourcesByNamespaceId?: PlatformNamespaceToManyPlatformResourceFilter; /** `platformResourcesByNamespaceId` exist. */ platformResourcesByNamespaceIdExist?: boolean; + /** Filter by the object’s `platformServiceBindingsByNamespaceId` relation. */ + platformServiceBindingsByNamespaceId?: PlatformNamespaceToManyPlatformServiceBindingFilter; + /** `platformServiceBindingsByNamespaceId` exist. */ + platformServiceBindingsByNamespaceIdExist?: boolean; /** Filter by the object’s `platformWebhookEndpointsByNamespaceId` relation. */ platformWebhookEndpointsByNamespaceId?: PlatformNamespaceToManyPlatformWebhookEndpointFilter; /** `platformWebhookEndpointsByNamespaceId` exist. */ @@ -28976,6 +28919,14 @@ export type CopyGraphPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface CreateFunctionGraphPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type CreateFunctionGraphPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface DatabaseAddEdgePayload { clientMutationId?: string | null; result?: string | null; @@ -29563,51 +29514,6 @@ export type DeleteBuildStepPayloadSelect = { }; clientMutationId?: boolean; }; -export interface CreateBuilderBindingPayload { - /** The `BuilderBinding` that was created by this mutation. */ - builderBinding?: BuilderBinding | null; - builderBindingEdge?: BuilderBindingEdge | null; - clientMutationId?: string | null; -} -export type CreateBuilderBindingPayloadSelect = { - builderBinding?: { - select: BuilderBindingSelect; - }; - builderBindingEdge?: { - select: BuilderBindingEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface UpdateBuilderBindingPayload { - /** The `BuilderBinding` that was updated by this mutation. */ - builderBinding?: BuilderBinding | null; - builderBindingEdge?: BuilderBindingEdge | null; - clientMutationId?: string | null; -} -export type UpdateBuilderBindingPayloadSelect = { - builderBinding?: { - select: BuilderBindingSelect; - }; - builderBindingEdge?: { - select: BuilderBindingEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface DeleteBuilderBindingPayload { - /** The `BuilderBinding` that was deleted by this mutation. */ - builderBinding?: BuilderBinding | null; - builderBindingEdge?: BuilderBindingEdge | null; - clientMutationId?: string | null; -} -export type DeleteBuilderBindingPayloadSelect = { - builderBinding?: { - select: BuilderBindingSelect; - }; - builderBindingEdge?: { - select: BuilderBindingEdgeSelect; - }; - clientMutationId?: boolean; -}; export interface CreateContentPresetPayload { clientMutationId?: string | null; /** The `ContentPreset` that was created by this mutation. */ @@ -30403,14 +30309,6 @@ export type DeleteFunctionGraphCommitPayloadSelect = { select: FunctionGraphCommitEdgeSelect; }; }; -export interface CreateFunctionGraphPayload { - clientMutationId?: string | null; - result?: string | null; -} -export type CreateFunctionGraphPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; export interface UpdateFunctionGraphPayload { clientMutationId?: string | null; /** The `FunctionGraph` that was updated by this mutation. */ @@ -31386,51 +31284,6 @@ export type DeletePlatformBuildStepPayloadSelect = { select: PlatformBuildStepEdgeSelect; }; }; -export interface CreatePlatformBuilderBindingPayload { - clientMutationId?: string | null; - /** The `PlatformBuilderBinding` that was created by this mutation. */ - platformBuilderBinding?: PlatformBuilderBinding | null; - platformBuilderBindingEdge?: PlatformBuilderBindingEdge | null; -} -export type CreatePlatformBuilderBindingPayloadSelect = { - clientMutationId?: boolean; - platformBuilderBinding?: { - select: PlatformBuilderBindingSelect; - }; - platformBuilderBindingEdge?: { - select: PlatformBuilderBindingEdgeSelect; - }; -}; -export interface UpdatePlatformBuilderBindingPayload { - clientMutationId?: string | null; - /** The `PlatformBuilderBinding` that was updated by this mutation. */ - platformBuilderBinding?: PlatformBuilderBinding | null; - platformBuilderBindingEdge?: PlatformBuilderBindingEdge | null; -} -export type UpdatePlatformBuilderBindingPayloadSelect = { - clientMutationId?: boolean; - platformBuilderBinding?: { - select: PlatformBuilderBindingSelect; - }; - platformBuilderBindingEdge?: { - select: PlatformBuilderBindingEdgeSelect; - }; -}; -export interface DeletePlatformBuilderBindingPayload { - clientMutationId?: string | null; - /** The `PlatformBuilderBinding` that was deleted by this mutation. */ - platformBuilderBinding?: PlatformBuilderBinding | null; - platformBuilderBindingEdge?: PlatformBuilderBindingEdge | null; -} -export type DeletePlatformBuilderBindingPayloadSelect = { - clientMutationId?: boolean; - platformBuilderBinding?: { - select: PlatformBuilderBindingSelect; - }; - platformBuilderBindingEdge?: { - select: PlatformBuilderBindingEdgeSelect; - }; -}; export interface CreatePlatformFunctionApiBindingPayload { clientMutationId?: string | null; /** The `PlatformFunctionApiBinding` that was created by this mutation. */ @@ -33186,6 +33039,51 @@ export type DeletePlatformResourceUsageSummaryPayloadSelect = { select: PlatformResourceUsageSummaryEdgeSelect; }; }; +export interface CreatePlatformServiceBindingPayload { + clientMutationId?: string | null; + /** The `PlatformServiceBinding` that was created by this mutation. */ + platformServiceBinding?: PlatformServiceBinding | null; + platformServiceBindingEdge?: PlatformServiceBindingEdge | null; +} +export type CreatePlatformServiceBindingPayloadSelect = { + clientMutationId?: boolean; + platformServiceBinding?: { + select: PlatformServiceBindingSelect; + }; + platformServiceBindingEdge?: { + select: PlatformServiceBindingEdgeSelect; + }; +}; +export interface UpdatePlatformServiceBindingPayload { + clientMutationId?: string | null; + /** The `PlatformServiceBinding` that was updated by this mutation. */ + platformServiceBinding?: PlatformServiceBinding | null; + platformServiceBindingEdge?: PlatformServiceBindingEdge | null; +} +export type UpdatePlatformServiceBindingPayloadSelect = { + clientMutationId?: boolean; + platformServiceBinding?: { + select: PlatformServiceBindingSelect; + }; + platformServiceBindingEdge?: { + select: PlatformServiceBindingEdgeSelect; + }; +}; +export interface DeletePlatformServiceBindingPayload { + clientMutationId?: string | null; + /** The `PlatformServiceBinding` that was deleted by this mutation. */ + platformServiceBinding?: PlatformServiceBinding | null; + platformServiceBindingEdge?: PlatformServiceBindingEdge | null; +} +export type DeletePlatformServiceBindingPayloadSelect = { + clientMutationId?: boolean; + platformServiceBinding?: { + select: PlatformServiceBindingSelect; + }; + platformServiceBindingEdge?: { + select: PlatformServiceBindingEdgeSelect; + }; +}; export interface CreatePlatformWebhookEndpointPayload { clientMutationId?: string | null; /** The `PlatformWebhookEndpoint` that was created by this mutation. */ @@ -34176,6 +34074,51 @@ export type DeleteResourceUsageSummaryPayloadSelect = { select: ResourceUsageSummaryEdgeSelect; }; }; +export interface CreateServiceBindingPayload { + clientMutationId?: string | null; + /** The `ServiceBinding` that was created by this mutation. */ + serviceBinding?: ServiceBinding | null; + serviceBindingEdge?: ServiceBindingEdge | null; +} +export type CreateServiceBindingPayloadSelect = { + clientMutationId?: boolean; + serviceBinding?: { + select: ServiceBindingSelect; + }; + serviceBindingEdge?: { + select: ServiceBindingEdgeSelect; + }; +}; +export interface UpdateServiceBindingPayload { + clientMutationId?: string | null; + /** The `ServiceBinding` that was updated by this mutation. */ + serviceBinding?: ServiceBinding | null; + serviceBindingEdge?: ServiceBindingEdge | null; +} +export type UpdateServiceBindingPayloadSelect = { + clientMutationId?: boolean; + serviceBinding?: { + select: ServiceBindingSelect; + }; + serviceBindingEdge?: { + select: ServiceBindingEdgeSelect; + }; +}; +export interface DeleteServiceBindingPayload { + clientMutationId?: string | null; + /** The `ServiceBinding` that was deleted by this mutation. */ + serviceBinding?: ServiceBinding | null; + serviceBindingEdge?: ServiceBindingEdge | null; +} +export type DeleteServiceBindingPayloadSelect = { + clientMutationId?: boolean; + serviceBinding?: { + select: ServiceBindingSelect; + }; + serviceBindingEdge?: { + select: ServiceBindingEdgeSelect; + }; +}; export interface CreateWebhookEndpointPayload { clientMutationId?: string | null; /** The `WebhookEndpoint` that was created by this mutation. */ @@ -34266,6 +34209,35 @@ export type DeleteWebhookEventPayloadSelect = { select: WebhookEventEdgeSelect; }; }; +/** One version rendered beside a file, with a URL to fetch it. */ +export interface FileVersion { + format?: string | null; + height?: number | null; + key: string; + name?: string | null; + size?: number | null; + url: string; + width?: number | null; +} +export type FileVersionSelect = { + format?: boolean; + height?: boolean; + key?: boolean; + name?: boolean; + size?: boolean; + url?: boolean; + width?: boolean; +}; +export interface ResourceRequirement { + name?: string | null; + provider?: string | null; + required?: boolean | null; +} +export type ResourceRequirementSelect = { + name?: boolean; + provider?: boolean; + required?: boolean; +}; /** A `DatabaseGraphCommit` edge in the connection. */ export interface DatabaseGraphCommitEdge { cursor?: string | null; @@ -34362,18 +34334,6 @@ export type BuildStepEdgeSelect = { select: BuildStepSelect; }; }; -/** A `BuilderBinding` edge in the connection. */ -export interface BuilderBindingEdge { - cursor?: string | null; - /** The `BuilderBinding` at the end of the edge. */ - node?: BuilderBinding | null; -} -export type BuilderBindingEdgeSelect = { - cursor?: boolean; - node?: { - select: BuilderBindingSelect; - }; -}; /** A `ContentPreset` edge in the connection. */ export interface ContentPresetEdge { cursor?: string | null; @@ -34806,18 +34766,6 @@ export type PlatformBuildStepEdgeSelect = { select: PlatformBuildStepSelect; }; }; -/** A `PlatformBuilderBinding` edge in the connection. */ -export interface PlatformBuilderBindingEdge { - cursor?: string | null; - /** The `PlatformBuilderBinding` at the end of the edge. */ - node?: PlatformBuilderBinding | null; -} -export type PlatformBuilderBindingEdgeSelect = { - cursor?: boolean; - node?: { - select: PlatformBuilderBindingSelect; - }; -}; /** A `PlatformFunctionApiBinding` edge in the connection. */ export interface PlatformFunctionApiBindingEdge { cursor?: string | null; @@ -35262,6 +35210,18 @@ export type PlatformResourceUsageSummaryEdgeSelect = { select: PlatformResourceUsageSummarySelect; }; }; +/** A `PlatformServiceBinding` edge in the connection. */ +export interface PlatformServiceBindingEdge { + cursor?: string | null; + /** The `PlatformServiceBinding` at the end of the edge. */ + node?: PlatformServiceBinding | null; +} +export type PlatformServiceBindingEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformServiceBindingSelect; + }; +}; /** A `PlatformWebhookEndpoint` edge in the connection. */ export interface PlatformWebhookEndpointEdge { cursor?: string | null; @@ -35526,6 +35486,18 @@ export type ResourceUsageSummaryEdgeSelect = { select: ResourceUsageSummarySelect; }; }; +/** A `ServiceBinding` edge in the connection. */ +export interface ServiceBindingEdge { + cursor?: string | null; + /** The `ServiceBinding` at the end of the edge. */ + node?: ServiceBinding | null; +} +export type ServiceBindingEdgeSelect = { + cursor?: boolean; + node?: { + select: ServiceBindingSelect; + }; +}; /** A `WebhookEndpoint` edge in the connection. */ export interface WebhookEndpointEdge { cursor?: string | null; diff --git a/sdk/constructive-sdk/src/compute/orm/models/databaseFunctionGraph.ts b/sdk/constructive-sdk/src/compute/orm/models/databaseFunctionGraph.ts index aa52534b19..358312ae7d 100644 --- a/sdk/constructive-sdk/src/compute/orm/models/databaseFunctionGraph.ts +++ b/sdk/constructive-sdk/src/compute/orm/models/databaseFunctionGraph.ts @@ -29,7 +29,6 @@ import type { DatabaseFunctionGraphSelect, DatabaseFunctionGraphFilter, DatabaseFunctionGraphOrderBy, - CreateDatabaseFunctionGraphInput, UpdateDatabaseFunctionGraphInput, DatabaseFunctionGraphPatch, } from '../input-types'; @@ -146,33 +145,6 @@ export class DatabaseFunctionGraphModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createDatabaseFunctionGraph: { - databaseFunctionGraph: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'DatabaseFunctionGraph', - 'createDatabaseFunctionGraph', - 'databaseFunctionGraph', - args.select, - args.data, - 'CreateDatabaseFunctionGraphInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'DatabaseFunctionGraph', - fieldName: 'createDatabaseFunctionGraph', - document, - variables, - }); - } update( args: UpdateArgs< S, diff --git a/sdk/constructive-sdk/src/compute/orm/models/databaseGraphGetAllTreeNodesRecord.ts b/sdk/constructive-sdk/src/compute/orm/models/databaseGraphGetAllTreeNodesRecord.ts index f3a254b255..141a458a79 100644 --- a/sdk/constructive-sdk/src/compute/orm/models/databaseGraphGetAllTreeNodesRecord.ts +++ b/sdk/constructive-sdk/src/compute/orm/models/databaseGraphGetAllTreeNodesRecord.ts @@ -29,7 +29,6 @@ import type { DatabaseGraphGetAllTreeNodesRecordSelect, DatabaseGraphGetAllTreeNodesRecordFilter, DatabaseGraphGetAllTreeNodesRecordsOrderBy, - CreateDatabaseGraphGetAllTreeNodesRecordInput, UpdateDatabaseGraphGetAllTreeNodesRecordInput, DatabaseGraphGetAllTreeNodesRecordPatch, } from '../input-types'; @@ -117,37 +116,4 @@ export class DatabaseGraphGetAllTreeNodesRecordModel { }), }); } - create( - args: CreateArgs< - S, - CreateDatabaseGraphGetAllTreeNodesRecordInput['databaseGraphGetAllTreeNodesRecord'] - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createDatabaseGraphGetAllTreeNodesRecord: { - databaseGraphGetAllTreeNodesRecord: InferSelectResult< - DatabaseGraphGetAllTreeNodesRecordWithRelations, - S - >; - }; - }> { - const { document, variables } = buildCreateDocument( - 'DatabaseGraphGetAllTreeNodesRecord', - 'createDatabaseGraphGetAllTreeNodesRecord', - 'databaseGraphGetAllTreeNodesRecord', - args.select, - args.data, - 'CreateDatabaseGraphGetAllTreeNodesRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'DatabaseGraphGetAllTreeNodesRecord', - fieldName: 'createDatabaseGraphGetAllTreeNodesRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/compute/orm/models/functionGraph.ts b/sdk/constructive-sdk/src/compute/orm/models/functionGraph.ts index 8355e31658..b94c844768 100644 --- a/sdk/constructive-sdk/src/compute/orm/models/functionGraph.ts +++ b/sdk/constructive-sdk/src/compute/orm/models/functionGraph.ts @@ -29,7 +29,6 @@ import type { FunctionGraphSelect, FunctionGraphFilter, FunctionGraphOrderBy, - CreateFunctionGraphInput, UpdateFunctionGraphInput, FunctionGraphPatch, } from '../input-types'; @@ -144,33 +143,6 @@ export class FunctionGraphModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createFunctionGraph: { - functionGraph: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'FunctionGraph', - 'createFunctionGraph', - 'functionGraph', - args.select, - args.data, - 'CreateFunctionGraphInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'FunctionGraph', - fieldName: 'createFunctionGraph', - document, - variables, - }); - } update( args: UpdateArgs< S, diff --git a/sdk/constructive-sdk/src/compute/orm/models/getAllTreeNodesRecord.ts b/sdk/constructive-sdk/src/compute/orm/models/getAllTreeNodesRecord.ts index 00f51d01f7..275a902f66 100644 --- a/sdk/constructive-sdk/src/compute/orm/models/getAllTreeNodesRecord.ts +++ b/sdk/constructive-sdk/src/compute/orm/models/getAllTreeNodesRecord.ts @@ -29,7 +29,6 @@ import type { GetAllTreeNodesRecordSelect, GetAllTreeNodesRecordFilter, GetAllTreeNodesRecordsOrderBy, - CreateGetAllTreeNodesRecordInput, UpdateGetAllTreeNodesRecordInput, GetAllTreeNodesRecordPatch, } from '../input-types'; @@ -104,31 +103,4 @@ export class GetAllTreeNodesRecordModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createGetAllTreeNodesRecord: { - getAllTreeNodesRecord: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'GetAllTreeNodesRecord', - 'createGetAllTreeNodesRecord', - 'getAllTreeNodesRecord', - args.select, - args.data, - 'CreateGetAllTreeNodesRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'GetAllTreeNodesRecord', - fieldName: 'createGetAllTreeNodesRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/compute/orm/models/index.ts b/sdk/constructive-sdk/src/compute/orm/models/index.ts index 3b2af275ae..dfb31b3c70 100644 --- a/sdk/constructive-sdk/src/compute/orm/models/index.ts +++ b/sdk/constructive-sdk/src/compute/orm/models/index.ts @@ -5,7 +5,6 @@ */ export { BuildModel } from './build'; export { BuildStepModel } from './buildStep'; -export { BuilderBindingModel } from './builderBinding'; export { ContentPresetModel } from './contentPreset'; export { DatabaseFunctionGraphModel } from './databaseFunctionGraph'; export { DatabaseFunctionGraphExecutionCancelRequestModel } from './databaseFunctionGraphExecutionCancelRequest'; @@ -49,7 +48,6 @@ export { NamespaceModel } from './namespace'; export { NamespaceEventModel } from './namespaceEvent'; export { PlatformBuildModel } from './platformBuild'; export { PlatformBuildStepModel } from './platformBuildStep'; -export { PlatformBuilderBindingModel } from './platformBuilderBinding'; export { PlatformFunctionApiBindingModel } from './platformFunctionApiBinding'; export { PlatformFunctionCapabilityBindingModel } from './platformFunctionCapabilityBinding'; export { PlatformFunctionDefinitionModel } from './platformFunctionDefinition'; @@ -96,6 +94,7 @@ export { PlatformResourceUtilizationModel } from './platformResourceUtilization' export { PlatformResourcesHealthModel } from './platformResourcesHealth'; export { PlatformResourcesRequirementsStateModel } from './platformResourcesRequirementsState'; export { PlatformResourcesResolvedRequirementModel } from './platformResourcesResolvedRequirement'; +export { PlatformServiceBindingModel } from './platformServiceBinding'; export { PlatformWebhookEndpointModel } from './platformWebhookEndpoint'; export { PlatformWebhookEventModel } from './platformWebhookEvent'; export { ProposalCommentModel } from './proposalComment'; @@ -124,5 +123,6 @@ export { ResourceUtilizationModel } from './resourceUtilization'; export { ResourcesHealthModel } from './resourcesHealth'; export { ResourcesRequirementsStateModel } from './resourcesRequirementsState'; export { ResourcesResolvedRequirementModel } from './resourcesResolvedRequirement'; +export { ServiceBindingModel } from './serviceBinding'; export { WebhookEndpointModel } from './webhookEndpoint'; export { WebhookEventModel } from './webhookEvent'; diff --git a/sdk/constructive-sdk/src/compute/orm/models/infraGetAllTreeNodesRecord.ts b/sdk/constructive-sdk/src/compute/orm/models/infraGetAllTreeNodesRecord.ts index 7f2e31d467..e3f66b257e 100644 --- a/sdk/constructive-sdk/src/compute/orm/models/infraGetAllTreeNodesRecord.ts +++ b/sdk/constructive-sdk/src/compute/orm/models/infraGetAllTreeNodesRecord.ts @@ -29,7 +29,6 @@ import type { InfraGetAllTreeNodesRecordSelect, InfraGetAllTreeNodesRecordFilter, InfraGetAllTreeNodesRecordsOrderBy, - CreateInfraGetAllTreeNodesRecordInput, UpdateInfraGetAllTreeNodesRecordInput, InfraGetAllTreeNodesRecordPatch, } from '../input-types'; @@ -109,31 +108,4 @@ export class InfraGetAllTreeNodesRecordModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createInfraGetAllTreeNodesRecord: { - infraGetAllTreeNodesRecord: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'InfraGetAllTreeNodesRecord', - 'createInfraGetAllTreeNodesRecord', - 'infraGetAllTreeNodesRecord', - args.select, - args.data, - 'CreateInfraGetAllTreeNodesRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'InfraGetAllTreeNodesRecord', - fieldName: 'createInfraGetAllTreeNodesRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/compute/orm/models/platformBuilderBinding.ts b/sdk/constructive-sdk/src/compute/orm/models/platformBuilderBinding.ts deleted file mode 100644 index 09a8daa1ed..0000000000 --- a/sdk/constructive-sdk/src/compute/orm/models/platformBuilderBinding.ts +++ /dev/null @@ -1,247 +0,0 @@ -/** - * PlatformBuilderBinding model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - PlatformBuilderBinding, - PlatformBuilderBindingWithRelations, - PlatformBuilderBindingSelect, - PlatformBuilderBindingFilter, - PlatformBuilderBindingOrderBy, - CreatePlatformBuilderBindingInput, - UpdatePlatformBuilderBindingInput, - PlatformBuilderBindingPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class PlatformBuilderBindingModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - platformBuilderBindings: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'PlatformBuilderBinding', - 'platformBuilderBindings', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'PlatformBuilderBindingFilter', - 'PlatformBuilderBindingOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlatformBuilderBinding', - fieldName: 'platformBuilderBindings', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - platformBuilderBinding: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'PlatformBuilderBinding', - 'platformBuilderBindings', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'PlatformBuilderBindingFilter', - 'PlatformBuilderBindingOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlatformBuilderBinding', - fieldName: 'platformBuilderBinding', - document, - variables, - transform: (data: { - platformBuilderBindings?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - platformBuilderBinding: data.platformBuilderBindings?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - platformBuilderBinding: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'PlatformBuilderBinding', - 'platformBuilderBindings', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'PlatformBuilderBindingFilter', - 'PlatformBuilderBindingOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlatformBuilderBinding', - fieldName: 'platformBuilderBinding', - document, - variables, - transform: (data: { - platformBuilderBindings?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - platformBuilderBinding: data.platformBuilderBindings?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformBuilderBinding: { - platformBuilderBinding: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformBuilderBinding', - 'createPlatformBuilderBinding', - 'platformBuilderBinding', - args.select, - args.data, - 'CreatePlatformBuilderBindingInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformBuilderBinding', - fieldName: 'createPlatformBuilderBinding', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - PlatformBuilderBindingPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updatePlatformBuilderBinding: { - platformBuilderBinding: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'PlatformBuilderBinding', - 'updatePlatformBuilderBinding', - 'platformBuilderBinding', - args.select, - args.where.id, - args.data, - 'UpdatePlatformBuilderBindingInput', - 'id', - 'platformBuilderBindingPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformBuilderBinding', - fieldName: 'updatePlatformBuilderBinding', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deletePlatformBuilderBinding: { - platformBuilderBinding: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'PlatformBuilderBinding', - 'deletePlatformBuilderBinding', - 'platformBuilderBinding', - { - id: args.where.id, - }, - 'DeletePlatformBuilderBindingInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformBuilderBinding', - fieldName: 'deletePlatformBuilderBinding', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/compute/orm/models/platformInfraGetAllTreeNodesRecord.ts b/sdk/constructive-sdk/src/compute/orm/models/platformInfraGetAllTreeNodesRecord.ts index e0e0a2aeaa..522c666bd3 100644 --- a/sdk/constructive-sdk/src/compute/orm/models/platformInfraGetAllTreeNodesRecord.ts +++ b/sdk/constructive-sdk/src/compute/orm/models/platformInfraGetAllTreeNodesRecord.ts @@ -29,7 +29,6 @@ import type { PlatformInfraGetAllTreeNodesRecordSelect, PlatformInfraGetAllTreeNodesRecordFilter, PlatformInfraGetAllTreeNodesRecordsOrderBy, - CreatePlatformInfraGetAllTreeNodesRecordInput, UpdatePlatformInfraGetAllTreeNodesRecordInput, PlatformInfraGetAllTreeNodesRecordPatch, } from '../input-types'; @@ -117,37 +116,4 @@ export class PlatformInfraGetAllTreeNodesRecordModel { }), }); } - create( - args: CreateArgs< - S, - CreatePlatformInfraGetAllTreeNodesRecordInput['platformInfraGetAllTreeNodesRecord'] - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformInfraGetAllTreeNodesRecord: { - platformInfraGetAllTreeNodesRecord: InferSelectResult< - PlatformInfraGetAllTreeNodesRecordWithRelations, - S - >; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformInfraGetAllTreeNodesRecord', - 'createPlatformInfraGetAllTreeNodesRecord', - 'platformInfraGetAllTreeNodesRecord', - args.select, - args.data, - 'CreatePlatformInfraGetAllTreeNodesRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformInfraGetAllTreeNodesRecord', - fieldName: 'createPlatformInfraGetAllTreeNodesRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/compute/orm/models/platformResourceDeclaredCapacity.ts b/sdk/constructive-sdk/src/compute/orm/models/platformResourceDeclaredCapacity.ts index 66a88f859d..c61ba71d35 100644 --- a/sdk/constructive-sdk/src/compute/orm/models/platformResourceDeclaredCapacity.ts +++ b/sdk/constructive-sdk/src/compute/orm/models/platformResourceDeclaredCapacity.ts @@ -29,7 +29,6 @@ import type { PlatformResourceDeclaredCapacitySelect, PlatformResourceDeclaredCapacityFilter, PlatformResourceDeclaredCapacityOrderBy, - CreatePlatformResourceDeclaredCapacityInput, UpdatePlatformResourceDeclaredCapacityInput, PlatformResourceDeclaredCapacityPatch, } from '../input-types'; @@ -118,37 +117,4 @@ export class PlatformResourceDeclaredCapacityModel { }), }); } - create( - args: CreateArgs< - S, - CreatePlatformResourceDeclaredCapacityInput['platformResourceDeclaredCapacity'] - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformResourceDeclaredCapacity: { - platformResourceDeclaredCapacity: InferSelectResult< - PlatformResourceDeclaredCapacityWithRelations, - S - >; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformResourceDeclaredCapacity', - 'createPlatformResourceDeclaredCapacity', - 'platformResourceDeclaredCapacity', - args.select, - args.data, - 'CreatePlatformResourceDeclaredCapacityInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformResourceDeclaredCapacity', - fieldName: 'createPlatformResourceDeclaredCapacity', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/compute/orm/models/platformResourceObservedStorage.ts b/sdk/constructive-sdk/src/compute/orm/models/platformResourceObservedStorage.ts index 80a274b483..5a5654a907 100644 --- a/sdk/constructive-sdk/src/compute/orm/models/platformResourceObservedStorage.ts +++ b/sdk/constructive-sdk/src/compute/orm/models/platformResourceObservedStorage.ts @@ -29,7 +29,6 @@ import type { PlatformResourceObservedStorageSelect, PlatformResourceObservedStorageFilter, PlatformResourceObservedStorageOrderBy, - CreatePlatformResourceObservedStorageInput, UpdatePlatformResourceObservedStorageInput, PlatformResourceObservedStoragePatch, } from '../input-types'; @@ -117,37 +116,4 @@ export class PlatformResourceObservedStorageModel { }), }); } - create( - args: CreateArgs< - S, - CreatePlatformResourceObservedStorageInput['platformResourceObservedStorage'] - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformResourceObservedStorage: { - platformResourceObservedStorage: InferSelectResult< - PlatformResourceObservedStorageWithRelations, - S - >; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformResourceObservedStorage', - 'createPlatformResourceObservedStorage', - 'platformResourceObservedStorage', - args.select, - args.data, - 'CreatePlatformResourceObservedStorageInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformResourceObservedStorage', - fieldName: 'createPlatformResourceObservedStorage', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/compute/orm/models/platformResourceUtilization.ts b/sdk/constructive-sdk/src/compute/orm/models/platformResourceUtilization.ts index 040d38000e..2c7bffa084 100644 --- a/sdk/constructive-sdk/src/compute/orm/models/platformResourceUtilization.ts +++ b/sdk/constructive-sdk/src/compute/orm/models/platformResourceUtilization.ts @@ -29,7 +29,6 @@ import type { PlatformResourceUtilizationSelect, PlatformResourceUtilizationFilter, PlatformResourceUtilizationOrderBy, - CreatePlatformResourceUtilizationInput, UpdatePlatformResourceUtilizationInput, PlatformResourceUtilizationPatch, } from '../input-types'; @@ -113,31 +112,4 @@ export class PlatformResourceUtilizationModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformResourceUtilization: { - platformResourceUtilization: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformResourceUtilization', - 'createPlatformResourceUtilization', - 'platformResourceUtilization', - args.select, - args.data, - 'CreatePlatformResourceUtilizationInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformResourceUtilization', - fieldName: 'createPlatformResourceUtilization', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/compute/orm/models/platformResourcesHealth.ts b/sdk/constructive-sdk/src/compute/orm/models/platformResourcesHealth.ts index 0f0efa3e31..7249c4259c 100644 --- a/sdk/constructive-sdk/src/compute/orm/models/platformResourcesHealth.ts +++ b/sdk/constructive-sdk/src/compute/orm/models/platformResourcesHealth.ts @@ -29,7 +29,6 @@ import type { PlatformResourcesHealthSelect, PlatformResourcesHealthFilter, PlatformResourcesHealthOrderBy, - CreatePlatformResourcesHealthInput, UpdatePlatformResourcesHealthInput, PlatformResourcesHealthPatch, } from '../input-types'; @@ -146,31 +145,4 @@ export class PlatformResourcesHealthModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformResourcesHealth: { - platformResourcesHealth: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformResourcesHealth', - 'createPlatformResourcesHealth', - 'platformResourcesHealth', - args.select, - args.data, - 'CreatePlatformResourcesHealthInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformResourcesHealth', - fieldName: 'createPlatformResourcesHealth', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/compute/orm/models/platformResourcesRequirementsState.ts b/sdk/constructive-sdk/src/compute/orm/models/platformResourcesRequirementsState.ts index ab6152e426..4eb7854059 100644 --- a/sdk/constructive-sdk/src/compute/orm/models/platformResourcesRequirementsState.ts +++ b/sdk/constructive-sdk/src/compute/orm/models/platformResourcesRequirementsState.ts @@ -29,7 +29,6 @@ import type { PlatformResourcesRequirementsStateSelect, PlatformResourcesRequirementsStateFilter, PlatformResourcesRequirementsStateOrderBy, - CreatePlatformResourcesRequirementsStateInput, UpdatePlatformResourcesRequirementsStateInput, PlatformResourcesRequirementsStatePatch, } from '../input-types'; @@ -118,37 +117,4 @@ export class PlatformResourcesRequirementsStateModel { }), }); } - create( - args: CreateArgs< - S, - CreatePlatformResourcesRequirementsStateInput['platformResourcesRequirementsState'] - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformResourcesRequirementsState: { - platformResourcesRequirementsState: InferSelectResult< - PlatformResourcesRequirementsStateWithRelations, - S - >; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformResourcesRequirementsState', - 'createPlatformResourcesRequirementsState', - 'platformResourcesRequirementsState', - args.select, - args.data, - 'CreatePlatformResourcesRequirementsStateInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformResourcesRequirementsState', - fieldName: 'createPlatformResourcesRequirementsState', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/compute/orm/models/platformResourcesResolvedRequirement.ts b/sdk/constructive-sdk/src/compute/orm/models/platformResourcesResolvedRequirement.ts index d7d7bf4ed0..0326681f64 100644 --- a/sdk/constructive-sdk/src/compute/orm/models/platformResourcesResolvedRequirement.ts +++ b/sdk/constructive-sdk/src/compute/orm/models/platformResourcesResolvedRequirement.ts @@ -29,7 +29,6 @@ import type { PlatformResourcesResolvedRequirementSelect, PlatformResourcesResolvedRequirementFilter, PlatformResourcesResolvedRequirementOrderBy, - CreatePlatformResourcesResolvedRequirementInput, UpdatePlatformResourcesResolvedRequirementInput, PlatformResourcesResolvedRequirementPatch, } from '../input-types'; @@ -118,37 +117,4 @@ export class PlatformResourcesResolvedRequirementModel { }), }); } - create( - args: CreateArgs< - S, - CreatePlatformResourcesResolvedRequirementInput['platformResourcesResolvedRequirement'] - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformResourcesResolvedRequirement: { - platformResourcesResolvedRequirement: InferSelectResult< - PlatformResourcesResolvedRequirementWithRelations, - S - >; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformResourcesResolvedRequirement', - 'createPlatformResourcesResolvedRequirement', - 'platformResourcesResolvedRequirement', - args.select, - args.data, - 'CreatePlatformResourcesResolvedRequirementInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformResourcesResolvedRequirement', - fieldName: 'createPlatformResourcesResolvedRequirement', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/compute/orm/models/platformServiceBinding.ts b/sdk/constructive-sdk/src/compute/orm/models/platformServiceBinding.ts new file mode 100644 index 0000000000..e50381b94d --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/platformServiceBinding.ts @@ -0,0 +1,247 @@ +/** + * PlatformServiceBinding model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + PlatformServiceBinding, + PlatformServiceBindingWithRelations, + PlatformServiceBindingSelect, + PlatformServiceBindingFilter, + PlatformServiceBindingOrderBy, + CreatePlatformServiceBindingInput, + UpdatePlatformServiceBindingInput, + PlatformServiceBindingPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformServiceBindingModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformServiceBindings: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformServiceBinding', + 'platformServiceBindings', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'PlatformServiceBindingFilter', + 'PlatformServiceBindingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformServiceBinding', + fieldName: 'platformServiceBindings', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformServiceBinding: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformServiceBinding', + 'platformServiceBindings', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformServiceBindingFilter', + 'PlatformServiceBindingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformServiceBinding', + fieldName: 'platformServiceBinding', + document, + variables, + transform: (data: { + platformServiceBindings?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformServiceBinding: data.platformServiceBindings?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformServiceBinding: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformServiceBinding', + 'platformServiceBindings', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformServiceBindingFilter', + 'PlatformServiceBindingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformServiceBinding', + fieldName: 'platformServiceBinding', + document, + variables, + transform: (data: { + platformServiceBindings?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformServiceBinding: data.platformServiceBindings?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformServiceBinding: { + platformServiceBinding: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformServiceBinding', + 'createPlatformServiceBinding', + 'platformServiceBinding', + args.select, + args.data, + 'CreatePlatformServiceBindingInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformServiceBinding', + fieldName: 'createPlatformServiceBinding', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformServiceBindingPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformServiceBinding: { + platformServiceBinding: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformServiceBinding', + 'updatePlatformServiceBinding', + 'platformServiceBinding', + args.select, + args.where.id, + args.data, + 'UpdatePlatformServiceBindingInput', + 'id', + 'platformServiceBindingPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformServiceBinding', + fieldName: 'updatePlatformServiceBinding', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformServiceBinding: { + platformServiceBinding: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformServiceBinding', + 'deletePlatformServiceBinding', + 'platformServiceBinding', + { + id: args.where.id, + }, + 'DeletePlatformServiceBindingInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformServiceBinding', + fieldName: 'deletePlatformServiceBinding', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/resourceDeclaredCapacity.ts b/sdk/constructive-sdk/src/compute/orm/models/resourceDeclaredCapacity.ts index 6340979a98..3ea2e93607 100644 --- a/sdk/constructive-sdk/src/compute/orm/models/resourceDeclaredCapacity.ts +++ b/sdk/constructive-sdk/src/compute/orm/models/resourceDeclaredCapacity.ts @@ -29,7 +29,6 @@ import type { ResourceDeclaredCapacitySelect, ResourceDeclaredCapacityFilter, ResourceDeclaredCapacityOrderBy, - CreateResourceDeclaredCapacityInput, UpdateResourceDeclaredCapacityInput, ResourceDeclaredCapacityPatch, } from '../input-types'; @@ -106,31 +105,4 @@ export class ResourceDeclaredCapacityModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createResourceDeclaredCapacity: { - resourceDeclaredCapacity: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'ResourceDeclaredCapacity', - 'createResourceDeclaredCapacity', - 'resourceDeclaredCapacity', - args.select, - args.data, - 'CreateResourceDeclaredCapacityInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'ResourceDeclaredCapacity', - fieldName: 'createResourceDeclaredCapacity', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/compute/orm/models/resourceObservedStorage.ts b/sdk/constructive-sdk/src/compute/orm/models/resourceObservedStorage.ts index 75769aef61..2d9c328e85 100644 --- a/sdk/constructive-sdk/src/compute/orm/models/resourceObservedStorage.ts +++ b/sdk/constructive-sdk/src/compute/orm/models/resourceObservedStorage.ts @@ -29,7 +29,6 @@ import type { ResourceObservedStorageSelect, ResourceObservedStorageFilter, ResourceObservedStorageOrderBy, - CreateResourceObservedStorageInput, UpdateResourceObservedStorageInput, ResourceObservedStoragePatch, } from '../input-types'; @@ -106,31 +105,4 @@ export class ResourceObservedStorageModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createResourceObservedStorage: { - resourceObservedStorage: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'ResourceObservedStorage', - 'createResourceObservedStorage', - 'resourceObservedStorage', - args.select, - args.data, - 'CreateResourceObservedStorageInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'ResourceObservedStorage', - fieldName: 'createResourceObservedStorage', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/compute/orm/models/resourceUtilization.ts b/sdk/constructive-sdk/src/compute/orm/models/resourceUtilization.ts index 3620486000..6704ad6230 100644 --- a/sdk/constructive-sdk/src/compute/orm/models/resourceUtilization.ts +++ b/sdk/constructive-sdk/src/compute/orm/models/resourceUtilization.ts @@ -29,7 +29,6 @@ import type { ResourceUtilizationSelect, ResourceUtilizationFilter, ResourceUtilizationOrderBy, - CreateResourceUtilizationInput, UpdateResourceUtilizationInput, ResourceUtilizationPatch, } from '../input-types'; @@ -104,31 +103,4 @@ export class ResourceUtilizationModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createResourceUtilization: { - resourceUtilization: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'ResourceUtilization', - 'createResourceUtilization', - 'resourceUtilization', - args.select, - args.data, - 'CreateResourceUtilizationInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'ResourceUtilization', - fieldName: 'createResourceUtilization', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/compute/orm/models/resourcesHealth.ts b/sdk/constructive-sdk/src/compute/orm/models/resourcesHealth.ts index 1ac97bab3d..6b66d67938 100644 --- a/sdk/constructive-sdk/src/compute/orm/models/resourcesHealth.ts +++ b/sdk/constructive-sdk/src/compute/orm/models/resourcesHealth.ts @@ -29,7 +29,6 @@ import type { ResourcesHealthSelect, ResourcesHealthFilter, ResourcesHealthOrderBy, - CreateResourcesHealthInput, UpdateResourcesHealthInput, ResourcesHealthPatch, } from '../input-types'; @@ -144,31 +143,4 @@ export class ResourcesHealthModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createResourcesHealth: { - resourcesHealth: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'ResourcesHealth', - 'createResourcesHealth', - 'resourcesHealth', - args.select, - args.data, - 'CreateResourcesHealthInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'ResourcesHealth', - fieldName: 'createResourcesHealth', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/compute/orm/models/resourcesRequirementsState.ts b/sdk/constructive-sdk/src/compute/orm/models/resourcesRequirementsState.ts index 8ce68f6a31..85dbd5a7d1 100644 --- a/sdk/constructive-sdk/src/compute/orm/models/resourcesRequirementsState.ts +++ b/sdk/constructive-sdk/src/compute/orm/models/resourcesRequirementsState.ts @@ -29,7 +29,6 @@ import type { ResourcesRequirementsStateSelect, ResourcesRequirementsStateFilter, ResourcesRequirementsStateOrderBy, - CreateResourcesRequirementsStateInput, UpdateResourcesRequirementsStateInput, ResourcesRequirementsStatePatch, } from '../input-types'; @@ -109,31 +108,4 @@ export class ResourcesRequirementsStateModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createResourcesRequirementsState: { - resourcesRequirementsState: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'ResourcesRequirementsState', - 'createResourcesRequirementsState', - 'resourcesRequirementsState', - args.select, - args.data, - 'CreateResourcesRequirementsStateInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'ResourcesRequirementsState', - fieldName: 'createResourcesRequirementsState', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/compute/orm/models/resourcesResolvedRequirement.ts b/sdk/constructive-sdk/src/compute/orm/models/resourcesResolvedRequirement.ts index 40680dcfb3..2a9d9d1034 100644 --- a/sdk/constructive-sdk/src/compute/orm/models/resourcesResolvedRequirement.ts +++ b/sdk/constructive-sdk/src/compute/orm/models/resourcesResolvedRequirement.ts @@ -29,7 +29,6 @@ import type { ResourcesResolvedRequirementSelect, ResourcesResolvedRequirementFilter, ResourcesResolvedRequirementOrderBy, - CreateResourcesResolvedRequirementInput, UpdateResourcesResolvedRequirementInput, ResourcesResolvedRequirementPatch, } from '../input-types'; @@ -117,31 +116,4 @@ export class ResourcesResolvedRequirementModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createResourcesResolvedRequirement: { - resourcesResolvedRequirement: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'ResourcesResolvedRequirement', - 'createResourcesResolvedRequirement', - 'resourcesResolvedRequirement', - args.select, - args.data, - 'CreateResourcesResolvedRequirementInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'ResourcesResolvedRequirement', - fieldName: 'createResourcesResolvedRequirement', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/compute/orm/models/builderBinding.ts b/sdk/constructive-sdk/src/compute/orm/models/serviceBinding.ts similarity index 53% rename from sdk/constructive-react/src/compute/orm/models/builderBinding.ts rename to sdk/constructive-sdk/src/compute/orm/models/serviceBinding.ts index 0d5d7843e3..be7061a21b 100644 --- a/sdk/constructive-react/src/compute/orm/models/builderBinding.ts +++ b/sdk/constructive-sdk/src/compute/orm/models/serviceBinding.ts @@ -1,5 +1,5 @@ /** - * BuilderBinding model for ORM client + * ServiceBinding model for ORM client * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -24,28 +24,28 @@ import type { StrictSelect, } from '../select-types'; import type { - BuilderBinding, - BuilderBindingWithRelations, - BuilderBindingSelect, - BuilderBindingFilter, - BuilderBindingOrderBy, - CreateBuilderBindingInput, - UpdateBuilderBindingInput, - BuilderBindingPatch, + ServiceBinding, + ServiceBindingWithRelations, + ServiceBindingSelect, + ServiceBindingFilter, + ServiceBindingOrderBy, + CreateServiceBindingInput, + UpdateServiceBindingInput, + ServiceBindingPatch, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; -export class BuilderBindingModel { +export class ServiceBindingModel { constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { + findMany( + args: FindManyArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - builderBindings: ConnectionResult>; + serviceBindings: ConnectionResult>; }> { const { document, variables } = buildFindManyDocument( - 'BuilderBinding', - 'builderBindings', + 'ServiceBinding', + 'serviceBindings', args.select, { where: args?.where, @@ -56,65 +56,65 @@ export class BuilderBindingModel { before: args?.before, offset: args?.offset, }, - 'BuilderBindingFilter', - 'BuilderBindingOrderBy', + 'ServiceBindingFilter', + 'ServiceBindingOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'BuilderBinding', - fieldName: 'builderBindings', + operationName: 'ServiceBinding', + fieldName: 'serviceBindings', document, variables, }); } - findFirst( - args: FindFirstArgs & { + findFirst( + args: FindFirstArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - builderBinding: InferSelectResult | null; + serviceBinding: InferSelectResult | null; }> { const { document, variables } = buildFindFirstDocument( - 'BuilderBinding', - 'builderBindings', + 'ServiceBinding', + 'serviceBindings', args.select, { where: args?.where, orderBy: args?.orderBy as string[] | undefined, }, - 'BuilderBindingFilter', - 'BuilderBindingOrderBy', + 'ServiceBindingFilter', + 'ServiceBindingOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'BuilderBinding', - fieldName: 'builderBinding', + operationName: 'ServiceBinding', + fieldName: 'serviceBinding', document, variables, transform: (data: { - builderBindings?: { - nodes?: InferSelectResult[]; + serviceBindings?: { + nodes?: InferSelectResult[]; }; }) => ({ - builderBinding: data.builderBindings?.nodes?.[0] ?? null, + serviceBinding: data.serviceBindings?.nodes?.[0] ?? null, }), }); } - findOne( + findOne( args: { id: string; select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - builderBinding: InferSelectResult | null; + serviceBinding: InferSelectResult | null; }> { const { document, variables } = buildFindManyDocument( - 'BuilderBinding', - 'builderBindings', + 'ServiceBinding', + 'serviceBindings', args.select, { where: { @@ -124,91 +124,91 @@ export class BuilderBindingModel { }, first: 1, }, - 'BuilderBindingFilter', - 'BuilderBindingOrderBy', + 'ServiceBindingFilter', + 'ServiceBindingOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'BuilderBinding', - fieldName: 'builderBinding', + operationName: 'ServiceBinding', + fieldName: 'serviceBinding', document, variables, transform: (data: { - builderBindings?: { - nodes?: InferSelectResult[]; + serviceBindings?: { + nodes?: InferSelectResult[]; }; }) => ({ - builderBinding: data.builderBindings?.nodes?.[0] ?? null, + serviceBinding: data.serviceBindings?.nodes?.[0] ?? null, }), }); } - create( - args: CreateArgs & { + create( + args: CreateArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - createBuilderBinding: { - builderBinding: InferSelectResult; + createServiceBinding: { + serviceBinding: InferSelectResult; }; }> { const { document, variables } = buildCreateDocument( - 'BuilderBinding', - 'createBuilderBinding', - 'builderBinding', + 'ServiceBinding', + 'createServiceBinding', + 'serviceBinding', args.select, args.data, - 'CreateBuilderBindingInput', + 'CreateServiceBindingInput', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'BuilderBinding', - fieldName: 'createBuilderBinding', + operationName: 'ServiceBinding', + fieldName: 'createServiceBinding', document, variables, }); } - update( + update( args: UpdateArgs< S, { id: string; }, - BuilderBindingPatch + ServiceBindingPatch > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - updateBuilderBinding: { - builderBinding: InferSelectResult; + updateServiceBinding: { + serviceBinding: InferSelectResult; }; }> { const { document, variables } = buildUpdateByPkDocument( - 'BuilderBinding', - 'updateBuilderBinding', - 'builderBinding', + 'ServiceBinding', + 'updateServiceBinding', + 'serviceBinding', args.select, args.where.id, args.data, - 'UpdateBuilderBindingInput', + 'UpdateServiceBindingInput', 'id', - 'builderBindingPatch', + 'serviceBindingPatch', connectionFieldsMap, undefined ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'BuilderBinding', - fieldName: 'updateBuilderBinding', + operationName: 'ServiceBinding', + fieldName: 'updateServiceBinding', document, variables, }); } - delete( + delete( args: DeleteArgs< { id: string; @@ -216,28 +216,28 @@ export class BuilderBindingModel { S > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - deleteBuilderBinding: { - builderBinding: InferSelectResult; + deleteServiceBinding: { + serviceBinding: InferSelectResult; }; }> { const { document, variables } = buildDeleteByPkDocument( - 'BuilderBinding', - 'deleteBuilderBinding', - 'builderBinding', + 'ServiceBinding', + 'deleteServiceBinding', + 'serviceBinding', { id: args.where.id, }, - 'DeleteBuilderBindingInput', + 'DeleteServiceBindingInput', args.select, connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'BuilderBinding', - fieldName: 'deleteBuilderBinding', + operationName: 'ServiceBinding', + fieldName: 'deleteServiceBinding', document, variables, }); diff --git a/sdk/constructive-sdk/src/compute/orm/mutation/index.ts b/sdk/constructive-sdk/src/compute/orm/mutation/index.ts index 48ca756e41..3b03efb8a3 100644 --- a/sdk/constructive-sdk/src/compute/orm/mutation/index.ts +++ b/sdk/constructive-sdk/src/compute/orm/mutation/index.ts @@ -13,6 +13,7 @@ import type { AddNodeAndSaveInput, ApproveNodeInput, CopyGraphInput, + CreateFunctionGraphInput, DatabaseAddEdgeInput, DatabaseAddEdgeAndSaveInput, DatabaseAddNodeInput, @@ -75,6 +76,7 @@ import type { AddNodeAndSavePayload, ApproveNodePayload, CopyGraphPayload, + CreateFunctionGraphPayload, DatabaseAddEdgePayload, DatabaseAddEdgeAndSavePayload, DatabaseAddNodePayload, @@ -137,6 +139,7 @@ import type { AddNodeAndSavePayloadSelect, ApproveNodePayloadSelect, CopyGraphPayloadSelect, + CreateFunctionGraphPayloadSelect, DatabaseAddEdgePayloadSelect, DatabaseAddEdgeAndSavePayloadSelect, DatabaseAddNodePayloadSelect, @@ -213,6 +216,9 @@ export interface ApproveNodeVariables { export interface CopyGraphVariables { input: CopyGraphInput; } +export interface CreateFunctionGraphVariables { + input: CreateFunctionGraphInput; +} export interface DatabaseAddEdgeVariables { input: DatabaseAddEdgeInput; } @@ -566,6 +572,35 @@ export function createMutationOperations(client: OrmClient) { 'CopyGraphPayload' ), }), + createFunctionGraph: ( + args: CreateFunctionGraphVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + createFunctionGraph: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'CreateFunctionGraph', + fieldName: 'createFunctionGraph', + ...buildCustomDocument( + 'mutation', + 'CreateFunctionGraph', + 'createFunctionGraph', + options.select, + args, + [ + { + name: 'input', + type: 'CreateFunctionGraphInput!', + }, + ], + connectionFieldsMap, + 'CreateFunctionGraphPayload' + ), + }), databaseAddEdge: ( args: DatabaseAddEdgeVariables, options: { diff --git a/sdk/constructive-sdk/src/compute/orm/query-builder.ts b/sdk/constructive-sdk/src/compute/orm/query-builder.ts index fd785bbae6..d6c981907f 100644 --- a/sdk/constructive-sdk/src/compute/orm/query-builder.ts +++ b/sdk/constructive-sdk/src/compute/orm/query-builder.ts @@ -140,9 +140,7 @@ export function buildSelections( ); const nestedSelect = nested.select; if (nestedSelect && typeof nestedSelect === 'object') { - const subSelections = Object.entries(nestedSelect) - .filter(([, v]) => v) - .map(([name]) => t.field({ name })); + const subSelections = buildSelections(nestedSelect, connectionFieldsMap); fields.push( t.field({ name: key, diff --git a/sdk/constructive-sdk/src/compute/orm/select-types.ts b/sdk/constructive-sdk/src/compute/orm/select-types.ts index 4b39d7e820..783c4603df 100644 --- a/sdk/constructive-sdk/src/compute/orm/select-types.ts +++ b/sdk/constructive-sdk/src/compute/orm/select-types.ts @@ -159,9 +159,13 @@ export type InferSelectResult = TSelect extends undefined ? K extends keyof TEntity ? NonNullable extends ConnectionResult ? ConnectionResult> - : - | InferSelectResult, NestedSelect> - | (null extends TEntity[K] ? null : never) + : NonNullable extends readonly (infer Item)[] + ? + | InferSelectResult, NestedSelect>[] + | (null extends TEntity[K] ? null : never) + : + | InferSelectResult, NestedSelect> + | (null extends TEntity[K] ? null : never) : never : K extends keyof TEntity ? TEntity[K] diff --git a/sdk/constructive-sdk/src/config/orm/README.md b/sdk/constructive-sdk/src/config/orm/README.md index 8e9c44033d..b52d2f9776 100644 --- a/sdk/constructive-sdk/src/config/orm/README.md +++ b/sdk/constructive-sdk/src/config/orm/README.md @@ -21,15 +21,15 @@ const db = createClient({ | Model | Operations | |-------|------------| -| `appInternalSecret` | findMany, findOne, create, update, delete | +| `appInternalSecret` | findMany, findOne, update, delete | | `config` | findMany, findOne, create, update, delete | | `internalConfig` | findMany, findOne, create, update, delete | -| `internalSecret` | findMany, findOne, create, update, delete | +| `internalSecret` | findMany, findOne, update, delete | | `platformConfig` | findMany, findOne, create, update, delete | | `platformInternalConfig` | findMany, findOne, create, update, delete | -| `platformInternalSecret` | findMany, findOne, create, update, delete | -| `platformSecret` | findMany, findOne, create, update, delete | -| `secret` | findMany, findOne, create, update, delete | +| `platformInternalSecret` | findMany, findOne, update, delete | +| `platformSecret` | findMany, findOne, update, delete | +| `secret` | findMany, findOne, update, delete | ## Table Operations @@ -61,9 +61,6 @@ const items = await db.appInternalSecret.findMany({ select: { annotations: true, // Get one by id const item = await db.appInternalSecret.findOne({ id: '', select: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }).execute(); -// Create -const created = await db.appInternalSecret.create({ data: { annotations: '', description: '', labels: '', name: '', realm: '', retiredAt: '', rotatedAt: '' }, select: { id: true } }).execute(); - // Update const updated = await db.appInternalSecret.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -183,9 +180,6 @@ const items = await db.internalSecret.findMany({ select: { annotations: true, cr // Get one by id const item = await db.internalSecret.findOne({ id: '', select: { annotations: true, createdAt: true, databaseId: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }).execute(); -// Create -const created = await db.internalSecret.create({ data: { annotations: '', databaseId: '', description: '', labels: '', name: '', realm: '', retiredAt: '', rotatedAt: '' }, select: { id: true } }).execute(); - // Update const updated = await db.internalSecret.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -302,9 +296,6 @@ const items = await db.platformInternalSecret.findMany({ select: { annotations: // Get one by id const item = await db.platformInternalSecret.findOne({ id: '', select: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }).execute(); -// Create -const created = await db.platformInternalSecret.create({ data: { annotations: '', description: '', labels: '', name: '', realm: '', retiredAt: '', rotatedAt: '' }, select: { id: true } }).execute(); - // Update const updated = await db.platformInternalSecret.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -342,9 +333,6 @@ const items = await db.platformSecret.findMany({ select: { annotations: true, cr // Get one by id const item = await db.platformSecret.findOne({ id: '', select: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }).execute(); -// Create -const created = await db.platformSecret.create({ data: { annotations: '', description: '', labels: '', name: '', namespaceId: '', provider: '', realm: '', retiredAt: '', rotatedAt: '' }, select: { id: true } }).execute(); - // Update const updated = await db.platformSecret.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -383,9 +371,6 @@ const items = await db.secret.findMany({ select: { annotations: true, createdAt: // Get one by id const item = await db.secret.findOne({ id: '', select: { annotations: true, createdAt: true, databaseId: true, description: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }).execute(); -// Create -const created = await db.secret.create({ data: { annotations: '', databaseId: '', description: '', labels: '', name: '', namespaceId: '', provider: '', realm: '', retiredAt: '', rotatedAt: '' }, select: { id: true } }).execute(); - // Update const updated = await db.secret.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); diff --git a/sdk/constructive-sdk/src/config/orm/input-types.ts b/sdk/constructive-sdk/src/config/orm/input-types.ts index 317d86e5b9..bd666714a5 100644 --- a/sdk/constructive-sdk/src/config/orm/input-types.ts +++ b/sdk/constructive-sdk/src/config/orm/input-types.ts @@ -1095,18 +1095,6 @@ export type SecretOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; // ============ CRUD Input Types ============ -export interface CreateAppInternalSecretInput { - clientMutationId?: string; - appInternalSecret: { - annotations?: Record; - description?: string; - labels?: Record; - name?: string; - realm?: string; - retiredAt?: string; - rotatedAt?: string; - }; -} export interface AppInternalSecretPatch { annotations?: Record | null; description?: string | null; @@ -1199,19 +1187,6 @@ export interface DeleteInternalConfigInput { clientMutationId?: string; id: string; } -export interface CreateInternalSecretInput { - clientMutationId?: string; - internalSecret: { - annotations?: Record; - databaseId: string; - description?: string; - labels?: Record; - name?: string; - realm?: string; - retiredAt?: string; - rotatedAt?: string; - }; -} export interface InternalSecretPatch { annotations?: Record | null; databaseId?: string | null; @@ -1301,18 +1276,6 @@ export interface DeletePlatformInternalConfigInput { clientMutationId?: string; id: string; } -export interface CreatePlatformInternalSecretInput { - clientMutationId?: string; - platformInternalSecret: { - annotations?: Record; - description?: string; - labels?: Record; - name?: string; - realm?: string; - retiredAt?: string; - rotatedAt?: string; - }; -} export interface PlatformInternalSecretPatch { annotations?: Record | null; description?: string | null; @@ -1331,20 +1294,6 @@ export interface DeletePlatformInternalSecretInput { clientMutationId?: string; id: string; } -export interface CreatePlatformSecretInput { - clientMutationId?: string; - platformSecret: { - annotations?: Record; - description?: string; - labels?: Record; - name?: string; - namespaceId: string; - provider?: string; - realm?: string; - retiredAt?: string; - rotatedAt?: string; - }; -} export interface PlatformSecretPatch { annotations?: Record | null; description?: string | null; @@ -1365,21 +1314,6 @@ export interface DeletePlatformSecretInput { clientMutationId?: string; id: string; } -export interface CreateSecretInput { - clientMutationId?: string; - secret: { - annotations?: Record; - databaseId: string; - description?: string; - labels?: Record; - name?: string; - namespaceId: string; - provider?: string; - realm?: string; - retiredAt?: string; - rotatedAt?: string; - }; -} export interface SecretPatch { annotations?: Record | null; databaseId?: string | null; diff --git a/sdk/constructive-sdk/src/config/orm/models/appInternalSecret.ts b/sdk/constructive-sdk/src/config/orm/models/appInternalSecret.ts index 6efc1ad009..d876c61ee7 100644 --- a/sdk/constructive-sdk/src/config/orm/models/appInternalSecret.ts +++ b/sdk/constructive-sdk/src/config/orm/models/appInternalSecret.ts @@ -29,7 +29,6 @@ import type { AppInternalSecretSelect, AppInternalSecretFilter, AppInternalSecretOrderBy, - CreateAppInternalSecretInput, UpdateAppInternalSecretInput, AppInternalSecretPatch, } from '../input-types'; @@ -144,31 +143,4 @@ export class AppInternalSecretModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppInternalSecret: { - appInternalSecret: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppInternalSecret', - 'createAppInternalSecret', - 'appInternalSecret', - args.select, - args.data, - 'CreateAppInternalSecretInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppInternalSecret', - fieldName: 'createAppInternalSecret', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/config/orm/models/internalSecret.ts b/sdk/constructive-sdk/src/config/orm/models/internalSecret.ts index daeef23c68..443924fe70 100644 --- a/sdk/constructive-sdk/src/config/orm/models/internalSecret.ts +++ b/sdk/constructive-sdk/src/config/orm/models/internalSecret.ts @@ -29,7 +29,6 @@ import type { InternalSecretSelect, InternalSecretFilter, InternalSecretOrderBy, - CreateInternalSecretInput, UpdateInternalSecretInput, InternalSecretPatch, } from '../input-types'; @@ -144,31 +143,4 @@ export class InternalSecretModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createInternalSecret: { - internalSecret: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'InternalSecret', - 'createInternalSecret', - 'internalSecret', - args.select, - args.data, - 'CreateInternalSecretInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'InternalSecret', - fieldName: 'createInternalSecret', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/config/orm/models/platformInternalSecret.ts b/sdk/constructive-sdk/src/config/orm/models/platformInternalSecret.ts index 35e0c7b538..0f246265ec 100644 --- a/sdk/constructive-sdk/src/config/orm/models/platformInternalSecret.ts +++ b/sdk/constructive-sdk/src/config/orm/models/platformInternalSecret.ts @@ -29,7 +29,6 @@ import type { PlatformInternalSecretSelect, PlatformInternalSecretFilter, PlatformInternalSecretOrderBy, - CreatePlatformInternalSecretInput, UpdatePlatformInternalSecretInput, PlatformInternalSecretPatch, } from '../input-types'; @@ -146,31 +145,4 @@ export class PlatformInternalSecretModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformInternalSecret: { - platformInternalSecret: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformInternalSecret', - 'createPlatformInternalSecret', - 'platformInternalSecret', - args.select, - args.data, - 'CreatePlatformInternalSecretInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformInternalSecret', - fieldName: 'createPlatformInternalSecret', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/config/orm/models/platformSecret.ts b/sdk/constructive-sdk/src/config/orm/models/platformSecret.ts index 03c0e23540..4c51afe005 100644 --- a/sdk/constructive-sdk/src/config/orm/models/platformSecret.ts +++ b/sdk/constructive-sdk/src/config/orm/models/platformSecret.ts @@ -29,7 +29,6 @@ import type { PlatformSecretSelect, PlatformSecretFilter, PlatformSecretOrderBy, - CreatePlatformSecretInput, UpdatePlatformSecretInput, PlatformSecretPatch, } from '../input-types'; @@ -144,31 +143,4 @@ export class PlatformSecretModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformSecret: { - platformSecret: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformSecret', - 'createPlatformSecret', - 'platformSecret', - args.select, - args.data, - 'CreatePlatformSecretInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformSecret', - fieldName: 'createPlatformSecret', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/config/orm/models/secret.ts b/sdk/constructive-sdk/src/config/orm/models/secret.ts index 37571240d8..580d275fdb 100644 --- a/sdk/constructive-sdk/src/config/orm/models/secret.ts +++ b/sdk/constructive-sdk/src/config/orm/models/secret.ts @@ -29,7 +29,6 @@ import type { SecretSelect, SecretFilter, SecretOrderBy, - CreateSecretInput, UpdateSecretInput, SecretPatch, } from '../input-types'; @@ -144,31 +143,4 @@ export class SecretModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createSecret: { - secret: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'Secret', - 'createSecret', - 'secret', - args.select, - args.data, - 'CreateSecretInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'Secret', - fieldName: 'createSecret', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/config/orm/query-builder.ts b/sdk/constructive-sdk/src/config/orm/query-builder.ts index fd785bbae6..d6c981907f 100644 --- a/sdk/constructive-sdk/src/config/orm/query-builder.ts +++ b/sdk/constructive-sdk/src/config/orm/query-builder.ts @@ -140,9 +140,7 @@ export function buildSelections( ); const nestedSelect = nested.select; if (nestedSelect && typeof nestedSelect === 'object') { - const subSelections = Object.entries(nestedSelect) - .filter(([, v]) => v) - .map(([name]) => t.field({ name })); + const subSelections = buildSelections(nestedSelect, connectionFieldsMap); fields.push( t.field({ name: key, diff --git a/sdk/constructive-sdk/src/config/orm/select-types.ts b/sdk/constructive-sdk/src/config/orm/select-types.ts index 4b39d7e820..783c4603df 100644 --- a/sdk/constructive-sdk/src/config/orm/select-types.ts +++ b/sdk/constructive-sdk/src/config/orm/select-types.ts @@ -159,9 +159,13 @@ export type InferSelectResult = TSelect extends undefined ? K extends keyof TEntity ? NonNullable extends ConnectionResult ? ConnectionResult> - : - | InferSelectResult, NestedSelect> - | (null extends TEntity[K] ? null : never) + : NonNullable extends readonly (infer Item)[] + ? + | InferSelectResult, NestedSelect>[] + | (null extends TEntity[K] ? null : never) + : + | InferSelectResult, NestedSelect> + | (null extends TEntity[K] ? null : never) : never : K extends keyof TEntity ? TEntity[K] diff --git a/sdk/constructive-sdk/src/infra/orm/README.md b/sdk/constructive-sdk/src/infra/orm/README.md index 63c0b0f3e5..82604daf03 100644 --- a/sdk/constructive-sdk/src/infra/orm/README.md +++ b/sdk/constructive-sdk/src/infra/orm/README.md @@ -26,7 +26,7 @@ const db = createClient({ | `namespace` | findMany, findOne, create, update, delete | | `namespaceEvent` | findMany, findOne, create, update, delete | | `platformInfraCommit` | findMany, findOne, create, update, delete | -| `platformInfraGetAllTreeNodesRecord` | findMany, findOne, create, update, delete | +| `platformInfraGetAllTreeNodesRecord` | findMany, findOne, update, delete | | `platformInfraObject` | findMany, findOne, create, update, delete | | `platformInfraRef` | findMany, findOne, create, update, delete | | `platformInfraStore` | findMany, findOne, create, update, delete | @@ -248,9 +248,6 @@ const items = await db.platformInfraGetAllTreeNodesRecord.findMany({ select: { d // Get one by id const item = await db.platformInfraGetAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: true } }).execute(); -// Create -const created = await db.platformInfraGetAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); - // Update const updated = await db.platformInfraGetAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); diff --git a/sdk/constructive-sdk/src/infra/orm/input-types.ts b/sdk/constructive-sdk/src/infra/orm/input-types.ts index 10a6c604ec..498b6592bf 100644 --- a/sdk/constructive-sdk/src/infra/orm/input-types.ts +++ b/sdk/constructive-sdk/src/infra/orm/input-types.ts @@ -1245,13 +1245,6 @@ export interface DeletePlatformInfraCommitInput { clientMutationId?: string; id: string; } -export interface CreatePlatformInfraGetAllTreeNodesRecordInput { - clientMutationId?: string; - platformInfraGetAllTreeNodesRecord: { - data?: Record; - path?: string[]; - }; -} export interface PlatformInfraGetAllTreeNodesRecordPatch { data?: Record | null; path?: string[] | null; diff --git a/sdk/constructive-sdk/src/infra/orm/models/platformInfraGetAllTreeNodesRecord.ts b/sdk/constructive-sdk/src/infra/orm/models/platformInfraGetAllTreeNodesRecord.ts index e0e0a2aeaa..522c666bd3 100644 --- a/sdk/constructive-sdk/src/infra/orm/models/platformInfraGetAllTreeNodesRecord.ts +++ b/sdk/constructive-sdk/src/infra/orm/models/platformInfraGetAllTreeNodesRecord.ts @@ -29,7 +29,6 @@ import type { PlatformInfraGetAllTreeNodesRecordSelect, PlatformInfraGetAllTreeNodesRecordFilter, PlatformInfraGetAllTreeNodesRecordsOrderBy, - CreatePlatformInfraGetAllTreeNodesRecordInput, UpdatePlatformInfraGetAllTreeNodesRecordInput, PlatformInfraGetAllTreeNodesRecordPatch, } from '../input-types'; @@ -117,37 +116,4 @@ export class PlatformInfraGetAllTreeNodesRecordModel { }), }); } - create( - args: CreateArgs< - S, - CreatePlatformInfraGetAllTreeNodesRecordInput['platformInfraGetAllTreeNodesRecord'] - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformInfraGetAllTreeNodesRecord: { - platformInfraGetAllTreeNodesRecord: InferSelectResult< - PlatformInfraGetAllTreeNodesRecordWithRelations, - S - >; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformInfraGetAllTreeNodesRecord', - 'createPlatformInfraGetAllTreeNodesRecord', - 'platformInfraGetAllTreeNodesRecord', - args.select, - args.data, - 'CreatePlatformInfraGetAllTreeNodesRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformInfraGetAllTreeNodesRecord', - fieldName: 'createPlatformInfraGetAllTreeNodesRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/infra/orm/query-builder.ts b/sdk/constructive-sdk/src/infra/orm/query-builder.ts index fd785bbae6..d6c981907f 100644 --- a/sdk/constructive-sdk/src/infra/orm/query-builder.ts +++ b/sdk/constructive-sdk/src/infra/orm/query-builder.ts @@ -140,9 +140,7 @@ export function buildSelections( ); const nestedSelect = nested.select; if (nestedSelect && typeof nestedSelect === 'object') { - const subSelections = Object.entries(nestedSelect) - .filter(([, v]) => v) - .map(([name]) => t.field({ name })); + const subSelections = buildSelections(nestedSelect, connectionFieldsMap); fields.push( t.field({ name: key, diff --git a/sdk/constructive-sdk/src/infra/orm/select-types.ts b/sdk/constructive-sdk/src/infra/orm/select-types.ts index 4b39d7e820..783c4603df 100644 --- a/sdk/constructive-sdk/src/infra/orm/select-types.ts +++ b/sdk/constructive-sdk/src/infra/orm/select-types.ts @@ -159,9 +159,13 @@ export type InferSelectResult = TSelect extends undefined ? K extends keyof TEntity ? NonNullable extends ConnectionResult ? ConnectionResult> - : - | InferSelectResult, NestedSelect> - | (null extends TEntity[K] ? null : never) + : NonNullable extends readonly (infer Item)[] + ? + | InferSelectResult, NestedSelect>[] + | (null extends TEntity[K] ? null : never) + : + | InferSelectResult, NestedSelect> + | (null extends TEntity[K] ? null : never) : never : K extends keyof TEntity ? TEntity[K] diff --git a/sdk/constructive-sdk/src/modules/orm/README.md b/sdk/constructive-sdk/src/modules/orm/README.md index 73e6574eaa..b7b873e859 100644 --- a/sdk/constructive-sdk/src/modules/orm/README.md +++ b/sdk/constructive-sdk/src/modules/orm/README.md @@ -498,6 +498,7 @@ CRUD operations for BlueprintConstruction records. | `constructedDefinition` | JSON | Yes | | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | +| `error` | JSON | Yes | | `id` | UUID | No | | `schemaId` | UUID | Yes | | `status` | String | Yes | @@ -508,13 +509,13 @@ CRUD operations for BlueprintConstruction records. ```typescript // List all blueprintConstruction records -const items = await db.blueprintConstruction.findMany({ select: { blueprintId: true, constructedAt: true, constructedDefinition: true, createdAt: true, databaseId: true, id: true, schemaId: true, status: true, tableMap: true, updatedAt: true } }).execute(); +const items = await db.blueprintConstruction.findMany({ select: { blueprintId: true, constructedAt: true, constructedDefinition: true, createdAt: true, databaseId: true, error: true, id: true, schemaId: true, status: true, tableMap: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.blueprintConstruction.findOne({ id: '', select: { blueprintId: true, constructedAt: true, constructedDefinition: true, createdAt: true, databaseId: true, id: true, schemaId: true, status: true, tableMap: true, updatedAt: true } }).execute(); +const item = await db.blueprintConstruction.findOne({ id: '', select: { blueprintId: true, constructedAt: true, constructedDefinition: true, createdAt: true, databaseId: true, error: true, id: true, schemaId: true, status: true, tableMap: true, updatedAt: true } }).execute(); // Create -const created = await db.blueprintConstruction.create({ data: { blueprintId: '', constructedAt: '', constructedDefinition: '', databaseId: '', schemaId: '', status: '', tableMap: '' }, select: { id: true } }).execute(); +const created = await db.blueprintConstruction.create({ data: { blueprintId: '', constructedAt: '', constructedDefinition: '', databaseId: '', error: '', schemaId: '', status: '', tableMap: '' }, select: { id: true } }).execute(); // Update const updated = await db.blueprintConstruction.update({ where: { id: '' }, data: { blueprintId: '' }, select: { id: true } }).execute(); @@ -1250,6 +1251,8 @@ CRUD operations for DbUsageModule records. | `queryStatsLogTableName` | String | Yes | | `queryStatsSummaryTableId` | UUID | Yes | | `queryStatsSummaryTableName` | String | Yes | +| `readDbQueryStatsUsagePeriodFunction` | String | Yes | +| `readDbTableStatsUsagePeriodFunction` | String | Yes | | `retention` | String | Yes | | `rollupDbQueryStatsUsageSummaryFunction` | String | Yes | | `rollupDbTableStatsUsageSummaryFunction` | String | Yes | @@ -1264,13 +1267,13 @@ CRUD operations for DbUsageModule records. ```typescript // List all dbUsageModule records -const items = await db.dbUsageModule.findMany({ select: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultCapabilities: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } }).execute(); +const items = await db.dbUsageModule.findMany({ select: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultCapabilities: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, readDbQueryStatsUsagePeriodFunction: true, readDbTableStatsUsagePeriodFunction: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } }).execute(); // Get one by id -const item = await db.dbUsageModule.findOne({ id: '', select: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultCapabilities: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } }).execute(); +const item = await db.dbUsageModule.findOne({ id: '', select: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultCapabilities: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, readDbQueryStatsUsagePeriodFunction: true, readDbTableStatsUsagePeriodFunction: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } }).execute(); // Create -const created = await db.dbUsageModule.create({ data: { apiName: '', collectDbQueryStatsFunction: '', collectDbTableStatsFunction: '', databaseId: '', defaultCapabilities: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsSummaryTableId: '', queryStatsSummaryTableName: '', retention: '', rollupDbQueryStatsUsageSummaryFunction: '', rollupDbTableStatsUsageSummaryFunction: '', schemaId: '', scope: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsSummaryTableId: '', tableStatsSummaryTableName: '' }, select: { id: true } }).execute(); +const created = await db.dbUsageModule.create({ data: { apiName: '', collectDbQueryStatsFunction: '', collectDbTableStatsFunction: '', databaseId: '', defaultCapabilities: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsSummaryTableId: '', queryStatsSummaryTableName: '', readDbQueryStatsUsagePeriodFunction: '', readDbTableStatsUsagePeriodFunction: '', retention: '', rollupDbQueryStatsUsageSummaryFunction: '', rollupDbTableStatsUsageSummaryFunction: '', schemaId: '', scope: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsSummaryTableId: '', tableStatsSummaryTableName: '' }, select: { id: true } }).execute(); // Update const updated = await db.dbUsageModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -1396,6 +1399,7 @@ CRUD operations for DomainModule records. | `catalogModuleId` | UUID | Yes | | `databaseId` | UUID | Yes | | `defaultCapabilities` | String | Yes | +| `defaultReservedSubdomains` | JSON | Yes | | `domainEventsTableId` | UUID | Yes | | `domainEventsTableName` | String | Yes | | `domainVerificationsTableId` | UUID | Yes | @@ -1414,20 +1418,23 @@ CRUD operations for DomainModule records. | `privateSchemaName` | String | Yes | | `provisions` | JSON | Yes | | `publicSchemaName` | String | Yes | +| `reservedSubdomainsTableId` | UUID | Yes | +| `reservedSubdomainsTableName` | String | Yes | | `schemaId` | UUID | Yes | | `scope` | String | Yes | +| `sweepUnverifiedDomainsFunction` | String | Yes | **Operations:** ```typescript // List all domainModule records -const items = await db.domainModule.findMany({ select: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); +const items = await db.domainModule.findMany({ select: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, defaultReservedSubdomains: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, reservedSubdomainsTableId: true, reservedSubdomainsTableName: true, schemaId: true, scope: true, sweepUnverifiedDomainsFunction: true } }).execute(); // Get one by id -const item = await db.domainModule.findOne({ id: '', select: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); +const item = await db.domainModule.findOne({ id: '', select: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, defaultReservedSubdomains: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, reservedSubdomainsTableId: true, reservedSubdomainsTableName: true, schemaId: true, scope: true, sweepUnverifiedDomainsFunction: true } }).execute(); // Create -const created = await db.domainModule.create({ data: { apiName: '', catalogModuleId: '', databaseId: '', defaultCapabilities: '', domainEventsTableId: '', domainEventsTableName: '', domainVerificationsTableId: '', domainVerificationsTableName: '', domainsTableId: '', domainsTableName: '', entityField: '', entityTableId: '', managedDomainsTableId: '', managedDomainsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); +const created = await db.domainModule.create({ data: { apiName: '', catalogModuleId: '', databaseId: '', defaultCapabilities: '', defaultReservedSubdomains: '', domainEventsTableId: '', domainEventsTableName: '', domainVerificationsTableId: '', domainVerificationsTableName: '', domainsTableId: '', domainsTableName: '', entityField: '', entityTableId: '', managedDomainsTableId: '', managedDomainsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', reservedSubdomainsTableId: '', reservedSubdomainsTableName: '', schemaId: '', scope: '', sweepUnverifiedDomainsFunction: '' }, select: { id: true } }).execute(); // Update const updated = await db.domainModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -3435,8 +3442,6 @@ CRUD operations for ResourceModule records. | Field | Type | Editable | |-------|------|----------| | `apiName` | String | Yes | -| `builderBindingsTableId` | UUID | Yes | -| `builderBindingsTableName` | String | Yes | | `databaseId` | UUID | Yes | | `defaultCapabilities` | String | Yes | | `entityField` | String | Yes | @@ -3474,18 +3479,20 @@ CRUD operations for ResourceModule records. | `rollupResourceUsageSummaryFunction` | String | Yes | | `schemaId` | UUID | Yes | | `scope` | String | Yes | +| `serviceBindingsTableId` | UUID | Yes | +| `serviceBindingsTableName` | String | Yes | **Operations:** ```typescript // List all resourceModule records -const items = await db.resourceModule.findMany({ select: { apiName: true, builderBindingsTableId: true, builderBindingsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, registryBindingsTableId: true, registryBindingsTableName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true } }).execute(); +const items = await db.resourceModule.findMany({ select: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, registryBindingsTableId: true, registryBindingsTableName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true, serviceBindingsTableId: true, serviceBindingsTableName: true } }).execute(); // Get one by id -const item = await db.resourceModule.findOne({ id: '', select: { apiName: true, builderBindingsTableId: true, builderBindingsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, registryBindingsTableId: true, registryBindingsTableName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true } }).execute(); +const item = await db.resourceModule.findOne({ id: '', select: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, registryBindingsTableId: true, registryBindingsTableName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true, serviceBindingsTableId: true, serviceBindingsTableName: true } }).execute(); // Create -const created = await db.resourceModule.create({ data: { apiName: '', builderBindingsTableId: '', builderBindingsTableName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', installationStoreName: '', merkleStoreModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', registryBindingsTableId: '', registryBindingsTableName: '', requirementsStateViewName: '', resolvedRequirementsViewName: '', resourceBillingRollupFunction: '', resourceDefinitionsTableId: '', resourceDefinitionsTableName: '', resourceEventsTableId: '', resourceEventsTableName: '', resourceInstallationsTableId: '', resourceInstallationsTableName: '', resourceStatusChecksTableId: '', resourceStatusChecksTableName: '', resourceUsageLogTableId: '', resourceUsageLogTableName: '', resourceUsageSummaryTableId: '', resourceUsageSummaryTableName: '', resourcesTableId: '', resourcesTableName: '', rollupResourceUsageSummaryFunction: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); +const created = await db.resourceModule.create({ data: { apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', installationStoreName: '', merkleStoreModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', registryBindingsTableId: '', registryBindingsTableName: '', requirementsStateViewName: '', resolvedRequirementsViewName: '', resourceBillingRollupFunction: '', resourceDefinitionsTableId: '', resourceDefinitionsTableName: '', resourceEventsTableId: '', resourceEventsTableName: '', resourceInstallationsTableId: '', resourceInstallationsTableName: '', resourceStatusChecksTableId: '', resourceStatusChecksTableName: '', resourceUsageLogTableId: '', resourceUsageLogTableName: '', resourceUsageSummaryTableId: '', resourceUsageSummaryTableName: '', resourcesTableId: '', resourcesTableName: '', rollupResourceUsageSummaryFunction: '', schemaId: '', scope: '', serviceBindingsTableId: '', serviceBindingsTableName: '' }, select: { id: true } }).execute(); // Update const updated = await db.resourceModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -3822,6 +3829,7 @@ CRUD operations for StorageLogModule records. | `privateSchemaId` | UUID | Yes | | `privateSchemaName` | String | Yes | | `publicSchemaName` | String | Yes | +| `readStorageUsagePeriodFunction` | String | Yes | | `retention` | String | Yes | | `rollupFunctionName` | String | Yes | | `schemaId` | UUID | Yes | @@ -3835,13 +3843,13 @@ CRUD operations for StorageLogModule records. ```typescript // List all storageLogModule records -const items = await db.storageLogModule.findMany({ select: { apiName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); +const items = await db.storageLogModule.findMany({ select: { apiName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, readStorageUsagePeriodFunction: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); // Get one by id -const item = await db.storageLogModule.findOne({ id: '', select: { apiName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); +const item = await db.storageLogModule.findOne({ id: '', select: { apiName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, readStorageUsagePeriodFunction: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); // Create -const created = await db.storageLogModule.create({ data: { apiName: '', databaseId: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', rollupFunctionName: '', schemaId: '', scope: '', storageLogTableId: '', storageLogTableName: '', usageSummaryTableId: '', usageSummaryTableName: '' }, select: { id: true } }).execute(); +const created = await db.storageLogModule.create({ data: { apiName: '', databaseId: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', readStorageUsagePeriodFunction: '', retention: '', rollupFunctionName: '', schemaId: '', scope: '', storageLogTableId: '', storageLogTableName: '', usageSummaryTableId: '', usageSummaryTableName: '' }, select: { id: true } }).execute(); // Update const updated = await db.storageLogModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -3876,7 +3884,6 @@ CRUD operations for StorageModule records. | `filesTableId` | UUID | Yes | | `filesTableName` | String | Yes | | `hasAuditLog` | Boolean | Yes | -| `hasConfirmUpload` | Boolean | Yes | | `hasContentHash` | Boolean | Yes | | `hasCustomKeys` | Boolean | Yes | | `hasPathShares` | Boolean | Yes | @@ -3906,13 +3913,13 @@ CRUD operations for StorageModule records. ```typescript // List all storageModule records -const items = await db.storageModule.findMany({ select: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, region: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }).execute(); +const items = await db.storageModule.findMany({ select: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, region: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }).execute(); // Get one by id -const item = await db.storageModule.findOne({ id: '', select: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, region: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }).execute(); +const item = await db.storageModule.findOne({ id: '', select: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, region: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }).execute(); // Create -const created = await db.storageModule.create({ data: { allowedOrigins: '', apiName: '', bucketsTableId: '', bucketsTableName: '', cacheTtlSeconds: '', catalogModuleId: '', confirmUploadDelay: '', databaseId: '', defaultCapabilities: '', defaultMaxFileSize: '', downloadUrlExpirySeconds: '', endpoint: '', entityField: '', entityTableId: '', fileEventsTableId: '', filesTableId: '', filesTableName: '', hasAuditLog: '', hasConfirmUpload: '', hasContentHash: '', hasCustomKeys: '', hasPathShares: '', hasVersioning: '', key: '', maxBulkFiles: '', maxBulkTotalSize: '', maxFilenameLength: '', pathSharesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provider: '', provisions: '', publicSchemaName: '', publicUrlPrefix: '', region: '', restrictReads: '', schemaId: '', scope: '', uploadUrlExpirySeconds: '' }, select: { id: true } }).execute(); +const created = await db.storageModule.create({ data: { allowedOrigins: '', apiName: '', bucketsTableId: '', bucketsTableName: '', cacheTtlSeconds: '', catalogModuleId: '', confirmUploadDelay: '', databaseId: '', defaultCapabilities: '', defaultMaxFileSize: '', downloadUrlExpirySeconds: '', endpoint: '', entityField: '', entityTableId: '', fileEventsTableId: '', filesTableId: '', filesTableName: '', hasAuditLog: '', hasContentHash: '', hasCustomKeys: '', hasPathShares: '', hasVersioning: '', key: '', maxBulkFiles: '', maxBulkTotalSize: '', maxFilenameLength: '', pathSharesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provider: '', provisions: '', publicSchemaName: '', publicUrlPrefix: '', region: '', restrictReads: '', schemaId: '', scope: '', uploadUrlExpirySeconds: '' }, select: { id: true } }).execute(); // Update const updated = await db.storageModule.update({ where: { id: '' }, data: { allowedOrigins: '' }, select: { id: true } }).execute(); @@ -4340,7 +4347,7 @@ const deleted = await db.webhookModule.delete({ where: { id: '' } }).execu ### `db.mutation.constructBlueprint` -Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). A table entry either names its table (table_name plus optional schema_name) or references one an installed module generated ("module": {"type": "agent", "scope": "org", "table": "message"}), which resolves through the module row's recorded table ids and raises when it matches nothing instead of creating an empty table. After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID. A failure raises its coded error to the caller and rolls back the whole construction, including the construction record. +Requests a build of a blueprint: snapshots its definition into a pending blueprint_construction row, enqueues the blueprint:construct job that runs metaschema_private.construct_blueprint_run on it, and returns the construction id immediately. Poll the row: pending -> constructing -> constructed (table_map populated) or failed (error holds the coded error). schema_id is the default schema for tables without an explicit schema_name. - **Type:** mutation - **Arguments:** diff --git a/sdk/constructive-sdk/src/modules/orm/input-types.ts b/sdk/constructive-sdk/src/modules/orm/input-types.ts index ca44c2dad1..1e2b8d3965 100644 --- a/sdk/constructive-sdk/src/modules/orm/input-types.ts +++ b/sdk/constructive-sdk/src/modules/orm/input-types.ts @@ -461,7 +461,7 @@ export interface Blueprint { /** Timestamp when this blueprint was last modified. */ updatedAt?: string | null; } -/** Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts. */ +/** Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here as pending and a blueprint:construct job builds it in the background. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts, including failed ones. */ export interface BlueprintConstruction { /** The blueprint that was constructed. */ blueprintId?: string | null; @@ -473,11 +473,13 @@ export interface BlueprintConstruction { createdAt?: string | null; /** The database the blueprint was constructed into. */ databaseId?: string | null; + /** The coded error ({"code", "context", "class"} as raised through errors.raise_error, or {"code": , "message"} for a database error) a failed construction ended with. NULL unless status is failed. */ + error?: Record | null; /** Unique identifier for this construction attempt. */ id: string; /** The default schema used for tables that did not specify an explicit schema_name. NULL if not yet resolved. */ schemaId?: string | null; - /** Execution state of this construction attempt. pending: created but not yet started. constructing: currently executing. constructed: successfully completed. A failed construction raises and rolls back, so it leaves no row. */ + /** Execution state of this construction attempt. pending: enqueued, the blueprint:construct job has not started. constructing: the job is executing. constructed: successfully completed. failed: the job raised; the build rolled back and error carries its coded error. */ status?: string | null; /** Mapping of table names to created table UUIDs, populated after successful construction. Format: {"products": "uuid", "categories": "uuid", ...}. Defaults to empty object. */ tableMap?: Record | null; @@ -866,6 +868,8 @@ export interface DbUsageModule { queryStatsLogTableName?: string | null; queryStatsSummaryTableId?: string | null; queryStatsSummaryTableName?: string | null; + readDbQueryStatsUsagePeriodFunction?: string | null; + readDbTableStatsUsagePeriodFunction?: string | null; retention?: string | null; rollupDbQueryStatsUsageSummaryFunction?: string | null; rollupDbTableStatsUsageSummaryFunction?: string | null; @@ -908,6 +912,7 @@ export interface DomainModule { catalogModuleId?: string | null; databaseId?: string | null; defaultCapabilities?: string[] | null; + defaultReservedSubdomains?: Record | null; domainEventsTableId?: string | null; domainEventsTableName?: string | null; domainVerificationsTableId?: string | null; @@ -926,8 +931,11 @@ export interface DomainModule { privateSchemaName?: string | null; provisions?: Record | null; publicSchemaName?: string | null; + reservedSubdomainsTableId?: string | null; + reservedSubdomainsTableName?: string | null; schemaId?: string | null; scope?: string | null; + sweepUnverifiedDomainsFunction?: string | null; } export interface EmailSenderModule { apiName?: string | null; @@ -1167,7 +1175,6 @@ export interface EntityTypeProvision { * - has_content_hash (boolean) enable content hash for dedup * - has_custom_keys (boolean) allow client-provided S3 keys * - has_audit_log (boolean) enable file events audit table - * - has_confirm_upload (boolean) enable HeadObject confirmation flow * - confirm_upload_delay (interval) delay before first confirmation attempt * - buckets (jsonb[]) array of initial bucket definitions to seed. * Each bucket: { name (required), description, is_public, allowed_mime_types, max_file_size, allowed_origins } @@ -2214,8 +2221,6 @@ export interface RepositoryModule { } export interface ResourceModule { apiName?: string | null; - builderBindingsTableId?: string | null; - builderBindingsTableName?: string | null; databaseId?: string | null; defaultCapabilities?: string[] | null; entityField?: string | null; @@ -2253,6 +2258,8 @@ export interface ResourceModule { rollupResourceUsageSummaryFunction?: string | null; schemaId?: string | null; scope?: string | null; + serviceBindingsTableId?: string | null; + serviceBindingsTableName?: string | null; } export interface RlsModule { apiName?: string | null; @@ -2409,6 +2416,7 @@ export interface StorageLogModule { privateSchemaId?: string | null; privateSchemaName?: string | null; publicSchemaName?: string | null; + readStorageUsagePeriodFunction?: string | null; retention?: string | null; rollupFunctionName?: string | null; schemaId?: string | null; @@ -2437,7 +2445,6 @@ export interface StorageModule { filesTableId?: string | null; filesTableName?: string | null; hasAuditLog?: boolean | null; - hasConfirmUpload?: boolean | null; hasContentHash?: boolean | null; hasCustomKeys?: boolean | null; hasPathShares?: boolean | null; @@ -3158,6 +3165,7 @@ export type BlueprintConstructionSelect = { constructedDefinition?: boolean; createdAt?: boolean; databaseId?: boolean; + error?: boolean; id?: boolean; schemaId?: boolean; status?: boolean; @@ -3557,6 +3565,8 @@ export type DbUsageModuleSelect = { queryStatsLogTableName?: boolean; queryStatsSummaryTableId?: boolean; queryStatsSummaryTableName?: boolean; + readDbQueryStatsUsagePeriodFunction?: boolean; + readDbTableStatsUsagePeriodFunction?: boolean; retention?: boolean; rollupDbQueryStatsUsageSummaryFunction?: boolean; rollupDbTableStatsUsageSummaryFunction?: boolean; @@ -3599,6 +3609,7 @@ export type DomainModuleSelect = { catalogModuleId?: boolean; databaseId?: boolean; defaultCapabilities?: boolean; + defaultReservedSubdomains?: boolean; domainEventsTableId?: boolean; domainEventsTableName?: boolean; domainVerificationsTableId?: boolean; @@ -3617,8 +3628,11 @@ export type DomainModuleSelect = { privateSchemaName?: boolean; provisions?: boolean; publicSchemaName?: boolean; + reservedSubdomainsTableId?: boolean; + reservedSubdomainsTableName?: boolean; schemaId?: boolean; scope?: boolean; + sweepUnverifiedDomainsFunction?: boolean; catalogModule?: { select: CatalogModuleSelect; }; @@ -4666,8 +4680,6 @@ export type RepositoryModuleSelect = { }; export type ResourceModuleSelect = { apiName?: boolean; - builderBindingsTableId?: boolean; - builderBindingsTableName?: boolean; databaseId?: boolean; defaultCapabilities?: boolean; entityField?: boolean; @@ -4705,6 +4717,8 @@ export type ResourceModuleSelect = { rollupResourceUsageSummaryFunction?: boolean; schemaId?: boolean; scope?: boolean; + serviceBindingsTableId?: boolean; + serviceBindingsTableName?: boolean; merkleStoreModule?: { select: MerkleStoreModuleSelect; }; @@ -4872,6 +4886,7 @@ export type StorageLogModuleSelect = { privateSchemaId?: boolean; privateSchemaName?: boolean; publicSchemaName?: boolean; + readStorageUsagePeriodFunction?: boolean; retention?: boolean; rollupFunctionName?: boolean; schemaId?: boolean; @@ -4900,7 +4915,6 @@ export type StorageModuleSelect = { filesTableId?: boolean; filesTableName?: boolean; hasAuditLog?: boolean; - hasConfirmUpload?: boolean; hasContentHash?: boolean; hasCustomKeys?: boolean; hasPathShares?: boolean; @@ -5589,6 +5603,8 @@ export interface BlueprintConstructionFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `error` field. */ + error?: JSONFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Negates the expression. */ @@ -6371,6 +6387,10 @@ export interface DbUsageModuleFilter { queryStatsSummaryTableId?: UUIDFilter; /** Filter by the object’s `queryStatsSummaryTableName` field. */ queryStatsSummaryTableName?: StringFilter; + /** Filter by the object’s `readDbQueryStatsUsagePeriodFunction` field. */ + readDbQueryStatsUsagePeriodFunction?: StringFilter; + /** Filter by the object’s `readDbTableStatsUsagePeriodFunction` field. */ + readDbTableStatsUsagePeriodFunction?: StringFilter; /** Filter by the object’s `retention` field. */ retention?: StringFilter; /** Filter by the object’s `rollupDbQueryStatsUsageSummaryFunction` field. */ @@ -6471,6 +6491,8 @@ export interface DomainModuleFilter { databaseId?: UUIDFilter; /** Filter by the object’s `defaultCapabilities` field. */ defaultCapabilities?: StringListFilter; + /** Filter by the object’s `defaultReservedSubdomains` field. */ + defaultReservedSubdomains?: JSONFilter; /** Filter by the object’s `domainEventsTableId` field. */ domainEventsTableId?: UUIDFilter; /** Filter by the object’s `domainEventsTableName` field. */ @@ -6511,6 +6533,10 @@ export interface DomainModuleFilter { provisions?: JSONFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; + /** Filter by the object’s `reservedSubdomainsTableId` field. */ + reservedSubdomainsTableId?: UUIDFilter; + /** Filter by the object’s `reservedSubdomainsTableName` field. */ + reservedSubdomainsTableName?: StringFilter; /** Filter by the object’s `routeModules` relation. */ routeModules?: DomainModuleToManyRouteModuleFilter; /** `routeModules` exist. */ @@ -6519,6 +6545,8 @@ export interface DomainModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; + /** Filter by the object’s `sweepUnverifiedDomainsFunction` field. */ + sweepUnverifiedDomainsFunction?: StringFilter; } export interface EmailSenderModuleFilter { /** Checks for all expressions in this list. */ @@ -8619,10 +8647,6 @@ export interface ResourceModuleFilter { and?: ResourceModuleFilter[]; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; - /** Filter by the object’s `builderBindingsTableId` field. */ - builderBindingsTableId?: UUIDFilter; - /** Filter by the object’s `builderBindingsTableName` field. */ - builderBindingsTableName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `defaultCapabilities` field. */ @@ -8709,6 +8733,10 @@ export interface ResourceModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; + /** Filter by the object’s `serviceBindingsTableId` field. */ + serviceBindingsTableId?: UUIDFilter; + /** Filter by the object’s `serviceBindingsTableName` field. */ + serviceBindingsTableName?: StringFilter; } export interface RlsModuleFilter { /** Checks for all expressions in this list. */ @@ -9041,6 +9069,8 @@ export interface StorageLogModuleFilter { privateSchemaName?: StringFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; + /** Filter by the object’s `readStorageUsagePeriodFunction` field. */ + readStorageUsagePeriodFunction?: StringFilter; /** Filter by the object’s `retention` field. */ retention?: StringFilter; /** Filter by the object’s `rollupFunctionName` field. */ @@ -9101,8 +9131,6 @@ export interface StorageModuleFilter { filesTableName?: StringFilter; /** Filter by the object’s `hasAuditLog` field. */ hasAuditLog?: BooleanFilter; - /** Filter by the object’s `hasConfirmUpload` field. */ - hasConfirmUpload?: BooleanFilter; /** Filter by the object’s `hasContentHash` field. */ hasContentHash?: BooleanFilter; /** Filter by the object’s `hasCustomKeys` field. */ @@ -9968,6 +9996,8 @@ export type BlueprintConstructionOrderBy = | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ERROR_ASC' + | 'ERROR_DESC' | 'ID_ASC' | 'ID_DESC' | 'NATURAL' @@ -10643,6 +10673,10 @@ export type DbUsageModuleOrderBy = | 'QUERY_STATS_SUMMARY_TABLE_ID_DESC' | 'QUERY_STATS_SUMMARY_TABLE_NAME_ASC' | 'QUERY_STATS_SUMMARY_TABLE_NAME_DESC' + | 'READ_DB_QUERY_STATS_USAGE_PERIOD_FUNCTION_ASC' + | 'READ_DB_QUERY_STATS_USAGE_PERIOD_FUNCTION_DESC' + | 'READ_DB_TABLE_STATS_USAGE_PERIOD_FUNCTION_ASC' + | 'READ_DB_TABLE_STATS_USAGE_PERIOD_FUNCTION_DESC' | 'RETENTION_ASC' | 'RETENTION_DESC' | 'ROLLUP_DB_QUERY_STATS_USAGE_SUMMARY_FUNCTION_ASC' @@ -10724,6 +10758,8 @@ export type DomainModuleOrderBy = | 'DATABASE_ID_DESC' | 'DEFAULT_CAPABILITIES_ASC' | 'DEFAULT_CAPABILITIES_DESC' + | 'DEFAULT_RESERVED_SUBDOMAINS_ASC' + | 'DEFAULT_RESERVED_SUBDOMAINS_DESC' | 'DOMAINS_TABLE_ID_ASC' | 'DOMAINS_TABLE_ID_DESC' | 'DOMAINS_TABLE_NAME_ASC' @@ -10763,10 +10799,16 @@ export type DomainModuleOrderBy = | 'PROVISIONS_DESC' | 'PUBLIC_SCHEMA_NAME_ASC' | 'PUBLIC_SCHEMA_NAME_DESC' + | 'RESERVED_SUBDOMAINS_TABLE_ID_ASC' + | 'RESERVED_SUBDOMAINS_TABLE_ID_DESC' + | 'RESERVED_SUBDOMAINS_TABLE_NAME_ASC' + | 'RESERVED_SUBDOMAINS_TABLE_NAME_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SCOPE_ASC' - | 'SCOPE_DESC'; + | 'SCOPE_DESC' + | 'SWEEP_UNVERIFIED_DOMAINS_FUNCTION_ASC' + | 'SWEEP_UNVERIFIED_DOMAINS_FUNCTION_DESC'; export type EmailSenderModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' @@ -12618,10 +12660,6 @@ export type RepositoryModuleOrderBy = export type ResourceModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' - | 'BUILDER_BINDINGS_TABLE_ID_ASC' - | 'BUILDER_BINDINGS_TABLE_ID_DESC' - | 'BUILDER_BINDINGS_TABLE_NAME_ASC' - | 'BUILDER_BINDINGS_TABLE_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DEFAULT_CAPABILITIES_ASC' @@ -12698,7 +12736,11 @@ export type ResourceModuleOrderBy = | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SCOPE_ASC' - | 'SCOPE_DESC'; + | 'SCOPE_DESC' + | 'SERVICE_BINDINGS_TABLE_ID_ASC' + | 'SERVICE_BINDINGS_TABLE_ID_DESC' + | 'SERVICE_BINDINGS_TABLE_NAME_ASC' + | 'SERVICE_BINDINGS_TABLE_NAME_DESC'; export type RlsModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' @@ -12979,6 +13021,8 @@ export type StorageLogModuleOrderBy = | 'PRIVATE_SCHEMA_NAME_DESC' | 'PUBLIC_SCHEMA_NAME_ASC' | 'PUBLIC_SCHEMA_NAME_DESC' + | 'READ_STORAGE_USAGE_PERIOD_FUNCTION_ASC' + | 'READ_STORAGE_USAGE_PERIOD_FUNCTION_DESC' | 'RETENTION_ASC' | 'RETENTION_DESC' | 'ROLLUP_FUNCTION_NAME_ASC' @@ -13032,8 +13076,6 @@ export type StorageModuleOrderBy = | 'FILE_EVENTS_TABLE_ID_DESC' | 'HAS_AUDIT_LOG_ASC' | 'HAS_AUDIT_LOG_DESC' - | 'HAS_CONFIRM_UPLOAD_ASC' - | 'HAS_CONFIRM_UPLOAD_DESC' | 'HAS_CONTENT_HASH_ASC' | 'HAS_CONTENT_HASH_DESC' | 'HAS_CUSTOM_KEYS_ASC' @@ -13893,6 +13935,7 @@ export interface CreateBlueprintConstructionInput { constructedAt?: string; constructedDefinition?: Record; databaseId: string; + error?: Record; schemaId?: string; status?: string; tableMap?: Record; @@ -13903,6 +13946,7 @@ export interface BlueprintConstructionPatch { constructedAt?: string | null; constructedDefinition?: Record | null; databaseId?: string | null; + error?: Record | null; schemaId?: string | null; status?: string | null; tableMap?: Record | null; @@ -14688,6 +14732,8 @@ export interface CreateDbUsageModuleInput { queryStatsLogTableName?: string; queryStatsSummaryTableId?: string; queryStatsSummaryTableName?: string; + readDbQueryStatsUsagePeriodFunction?: string; + readDbTableStatsUsagePeriodFunction?: string; retention?: string; rollupDbQueryStatsUsageSummaryFunction?: string; rollupDbTableStatsUsageSummaryFunction?: string; @@ -14717,6 +14763,8 @@ export interface DbUsageModulePatch { queryStatsLogTableName?: string | null; queryStatsSummaryTableId?: string | null; queryStatsSummaryTableName?: string | null; + readDbQueryStatsUsagePeriodFunction?: string | null; + readDbTableStatsUsagePeriodFunction?: string | null; retention?: string | null; rollupDbQueryStatsUsageSummaryFunction?: string | null; rollupDbTableStatsUsageSummaryFunction?: string | null; @@ -14827,6 +14875,7 @@ export interface CreateDomainModuleInput { catalogModuleId?: string; databaseId: string; defaultCapabilities?: string[]; + defaultReservedSubdomains?: Record; domainEventsTableId?: string; domainEventsTableName?: string; domainVerificationsTableId?: string; @@ -14844,8 +14893,11 @@ export interface CreateDomainModuleInput { privateSchemaName?: string; provisions?: Record; publicSchemaName?: string; + reservedSubdomainsTableId?: string; + reservedSubdomainsTableName?: string; schemaId?: string; scope: string; + sweepUnverifiedDomainsFunction?: string; }; } export interface DomainModulePatch { @@ -14853,6 +14905,7 @@ export interface DomainModulePatch { catalogModuleId?: string | null; databaseId?: string | null; defaultCapabilities?: string[] | null; + defaultReservedSubdomains?: Record | null; domainEventsTableId?: string | null; domainEventsTableName?: string | null; domainVerificationsTableId?: string | null; @@ -14870,8 +14923,11 @@ export interface DomainModulePatch { privateSchemaName?: string | null; provisions?: Record | null; publicSchemaName?: string | null; + reservedSubdomainsTableId?: string | null; + reservedSubdomainsTableName?: string | null; schemaId?: string | null; scope?: string | null; + sweepUnverifiedDomainsFunction?: string | null; } export interface UpdateDomainModuleInput { clientMutationId?: string; @@ -17132,8 +17188,6 @@ export interface CreateResourceModuleInput { clientMutationId?: string; resourceModule: { apiName?: string; - builderBindingsTableId?: string; - builderBindingsTableName?: string; databaseId: string; defaultCapabilities?: string[]; entityField?: string; @@ -17170,12 +17224,12 @@ export interface CreateResourceModuleInput { rollupResourceUsageSummaryFunction?: string; schemaId?: string; scope: string; + serviceBindingsTableId?: string; + serviceBindingsTableName?: string; }; } export interface ResourceModulePatch { apiName?: string | null; - builderBindingsTableId?: string | null; - builderBindingsTableName?: string | null; databaseId?: string | null; defaultCapabilities?: string[] | null; entityField?: string | null; @@ -17212,6 +17266,8 @@ export interface ResourceModulePatch { rollupResourceUsageSummaryFunction?: string | null; schemaId?: string | null; scope?: string | null; + serviceBindingsTableId?: string | null; + serviceBindingsTableName?: string | null; } export interface UpdateResourceModuleInput { clientMutationId?: string; @@ -17559,6 +17615,7 @@ export interface CreateStorageLogModuleInput { privateSchemaId?: string; privateSchemaName?: string; publicSchemaName?: string; + readStorageUsagePeriodFunction?: string; retention?: string; rollupFunctionName?: string; schemaId?: string; @@ -17580,6 +17637,7 @@ export interface StorageLogModulePatch { privateSchemaId?: string | null; privateSchemaName?: string | null; publicSchemaName?: string | null; + readStorageUsagePeriodFunction?: string | null; retention?: string | null; rollupFunctionName?: string | null; schemaId?: string | null; @@ -17619,7 +17677,6 @@ export interface CreateStorageModuleInput { filesTableId?: string; filesTableName?: string; hasAuditLog?: boolean; - hasConfirmUpload?: boolean; hasContentHash?: boolean; hasCustomKeys?: boolean; hasPathShares?: boolean; @@ -17664,7 +17721,6 @@ export interface StorageModulePatch { filesTableId?: string | null; filesTableName?: string | null; hasAuditLog?: boolean | null; - hasConfirmUpload?: boolean | null; hasContentHash?: boolean | null; hasCustomKeys?: boolean | null; hasPathShares?: boolean | null; @@ -18741,11 +18797,13 @@ export interface BlueprintConstructionInput { createdAt?: string; /** The database the blueprint was constructed into. */ databaseId: string; + /** The coded error ({"code", "context", "class"} as raised through errors.raise_error, or {"code": , "message"} for a database error) a failed construction ended with. NULL unless status is failed. */ + error?: Record; /** Unique identifier for this construction attempt. */ id?: string; /** The default schema used for tables that did not specify an explicit schema_name. NULL if not yet resolved. */ schemaId?: string; - /** Execution state of this construction attempt. pending: created but not yet started. constructing: currently executing. constructed: successfully completed. A failed construction raises and rolls back, so it leaves no row. */ + /** Execution state of this construction attempt. pending: enqueued, the blueprint:construct job has not started. constructing: the job is executing. constructed: successfully completed. failed: the job raised; the build rolled back and error carries its coded error. */ status?: string; /** Mapping of table names to created table UUIDs, populated after successful construction. Format: {"products": "uuid", "categories": "uuid", ...}. Defaults to empty object. */ tableMap?: Record; @@ -19165,6 +19223,8 @@ export interface DbUsageModuleInput { queryStatsLogTableName?: string; queryStatsSummaryTableId?: string; queryStatsSummaryTableName?: string; + readDbQueryStatsUsagePeriodFunction?: string; + readDbTableStatsUsagePeriodFunction?: string; retention?: string; rollupDbQueryStatsUsageSummaryFunction?: string; rollupDbTableStatsUsageSummaryFunction?: string; @@ -19211,6 +19271,7 @@ export interface DomainModuleInput { catalogModuleId?: string; databaseId: string; defaultCapabilities?: string[]; + defaultReservedSubdomains?: Record; domainEventsTableId?: string; domainEventsTableName?: string; domainVerificationsTableId?: string; @@ -19229,8 +19290,11 @@ export interface DomainModuleInput { privateSchemaName?: string; provisions?: Record; publicSchemaName?: string; + reservedSubdomainsTableId?: string; + reservedSubdomainsTableName?: string; schemaId?: string; scope: string; + sweepUnverifiedDomainsFunction?: string; } /** An input for mutations affecting `EmailSenderModule` */ export interface EmailSenderModuleInput { @@ -19463,7 +19527,6 @@ export interface EntityTypeProvisionInput { * - has_content_hash (boolean) enable content hash for dedup * - has_custom_keys (boolean) allow client-provided S3 keys * - has_audit_log (boolean) enable file events audit table - * - has_confirm_upload (boolean) enable HeadObject confirmation flow * - confirm_upload_delay (interval) delay before first confirmation attempt * - buckets (jsonb[]) array of initial bucket definitions to seed. * Each bucket: { name (required), description, is_public, allowed_mime_types, max_file_size, allowed_origins } @@ -20507,8 +20570,6 @@ export interface RepositoryModuleInput { /** An input for mutations affecting `ResourceModule` */ export interface ResourceModuleInput { apiName?: string; - builderBindingsTableId?: string; - builderBindingsTableName?: string; databaseId: string; defaultCapabilities?: string[]; entityField?: string; @@ -20546,6 +20607,8 @@ export interface ResourceModuleInput { rollupResourceUsageSummaryFunction?: string; schemaId?: string; scope: string; + serviceBindingsTableId?: string; + serviceBindingsTableName?: string; } /** An input for mutations affecting `RlsModule` */ export interface RlsModuleInput { @@ -20708,6 +20771,7 @@ export interface StorageLogModuleInput { privateSchemaId?: string; privateSchemaName?: string; publicSchemaName?: string; + readStorageUsagePeriodFunction?: string; retention?: string; rollupFunctionName?: string; schemaId?: string; @@ -20737,7 +20801,6 @@ export interface StorageModuleInput { filesTableId?: string; filesTableName?: string; hasAuditLog?: boolean; - hasConfirmUpload?: boolean; hasContentHash?: boolean; hasCustomKeys?: boolean; hasPathShares?: boolean; @@ -20945,6 +21008,8 @@ export interface BlueprintConstructionFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `error` field. */ + error?: JSONFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Negates the expression. */ @@ -21223,6 +21288,8 @@ export interface DomainModuleFilter { databaseId?: UUIDFilter; /** Filter by the object’s `defaultCapabilities` field. */ defaultCapabilities?: StringListFilter; + /** Filter by the object’s `defaultReservedSubdomains` field. */ + defaultReservedSubdomains?: JSONFilter; /** Filter by the object’s `domainEventsTableId` field. */ domainEventsTableId?: UUIDFilter; /** Filter by the object’s `domainEventsTableName` field. */ @@ -21263,6 +21330,10 @@ export interface DomainModuleFilter { provisions?: JSONFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; + /** Filter by the object’s `reservedSubdomainsTableId` field. */ + reservedSubdomainsTableId?: UUIDFilter; + /** Filter by the object’s `reservedSubdomainsTableName` field. */ + reservedSubdomainsTableName?: StringFilter; /** Filter by the object’s `routeModules` relation. */ routeModules?: DomainModuleToManyRouteModuleFilter; /** `routeModules` exist. */ @@ -21271,6 +21342,8 @@ export interface DomainModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; + /** Filter by the object’s `sweepUnverifiedDomainsFunction` field. */ + sweepUnverifiedDomainsFunction?: StringFilter; } /** A filter to be used against `RouteModule` object types. All fields are combined with a logical ‘and.’ */ export interface RouteModuleFilter { @@ -21884,10 +21957,6 @@ export interface ResourceModuleFilter { and?: ResourceModuleFilter[]; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; - /** Filter by the object’s `builderBindingsTableId` field. */ - builderBindingsTableId?: UUIDFilter; - /** Filter by the object’s `builderBindingsTableName` field. */ - builderBindingsTableName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `defaultCapabilities` field. */ @@ -21974,6 +22043,10 @@ export interface ResourceModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; + /** Filter by the object’s `serviceBindingsTableId` field. */ + serviceBindingsTableId?: UUIDFilter; + /** Filter by the object’s `serviceBindingsTableName` field. */ + serviceBindingsTableName?: StringFilter; } /** A filter to be used against `EmailSenderModule` object types. All fields are combined with a logical ‘and.’ */ export interface EmailSenderModuleFilter { @@ -22833,8 +22906,6 @@ export interface StorageModuleFilter { filesTableName?: StringFilter; /** Filter by the object’s `hasAuditLog` field. */ hasAuditLog?: BooleanFilter; - /** Filter by the object’s `hasConfirmUpload` field. */ - hasConfirmUpload?: BooleanFilter; /** Filter by the object’s `hasContentHash` field. */ hasContentHash?: BooleanFilter; /** Filter by the object’s `hasCustomKeys` field. */ diff --git a/sdk/constructive-sdk/src/modules/orm/mutation/index.ts b/sdk/constructive-sdk/src/modules/orm/mutation/index.ts index e59de99a2e..26ad9b2410 100644 --- a/sdk/constructive-sdk/src/modules/orm/mutation/index.ts +++ b/sdk/constructive-sdk/src/modules/orm/mutation/index.ts @@ -20,7 +20,7 @@ import type { import { connectionFieldsMap } from '../input-types'; /** * Variables for constructBlueprint - * Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). A table entry either names its table (table_name plus optional schema_name) or references one an installed module generated ("module": {"type": "agent", "scope": "org", "table": "message"}), which resolves through the module row's recorded table ids and raises when it matches nothing instead of creating an empty table. After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID. A failure raises its coded error to the caller and rolls back the whole construction, including the construction record. + * Requests a build of a blueprint: snapshots its definition into a pending blueprint_construction row, enqueues the blueprint:construct job that runs metaschema_private.construct_blueprint_run on it, and returns the construction id immediately. Poll the row: pending -> constructing -> constructed (table_map populated) or failed (error holds the coded error). schema_id is the default schema for tables without an explicit schema_name. */ export interface ConstructBlueprintVariables { input: ConstructBlueprintInput; diff --git a/sdk/constructive-sdk/src/modules/orm/query-builder.ts b/sdk/constructive-sdk/src/modules/orm/query-builder.ts index fd785bbae6..d6c981907f 100644 --- a/sdk/constructive-sdk/src/modules/orm/query-builder.ts +++ b/sdk/constructive-sdk/src/modules/orm/query-builder.ts @@ -140,9 +140,7 @@ export function buildSelections( ); const nestedSelect = nested.select; if (nestedSelect && typeof nestedSelect === 'object') { - const subSelections = Object.entries(nestedSelect) - .filter(([, v]) => v) - .map(([name]) => t.field({ name })); + const subSelections = buildSelections(nestedSelect, connectionFieldsMap); fields.push( t.field({ name: key, diff --git a/sdk/constructive-sdk/src/modules/orm/select-types.ts b/sdk/constructive-sdk/src/modules/orm/select-types.ts index 4b39d7e820..783c4603df 100644 --- a/sdk/constructive-sdk/src/modules/orm/select-types.ts +++ b/sdk/constructive-sdk/src/modules/orm/select-types.ts @@ -159,9 +159,13 @@ export type InferSelectResult = TSelect extends undefined ? K extends keyof TEntity ? NonNullable extends ConnectionResult ? ConnectionResult> - : - | InferSelectResult, NestedSelect> - | (null extends TEntity[K] ? null : never) + : NonNullable extends readonly (infer Item)[] + ? + | InferSelectResult, NestedSelect>[] + | (null extends TEntity[K] ? null : never) + : + | InferSelectResult, NestedSelect> + | (null extends TEntity[K] ? null : never) : never : K extends keyof TEntity ? TEntity[K] diff --git a/sdk/constructive-sdk/src/objects/orm/README.md b/sdk/constructive-sdk/src/objects/orm/README.md index 866cd6f1ef..f5b1e0ead1 100644 --- a/sdk/constructive-sdk/src/objects/orm/README.md +++ b/sdk/constructive-sdk/src/objects/orm/README.md @@ -22,7 +22,7 @@ const db = createClient({ | Model | Operations | |-------|------------| | `commit` | findMany, findOne, create, update, delete | -| `getAllTreeNodesRecord` | findMany, findOne, create, update, delete | +| `getAllTreeNodesRecord` | findMany, findOne, update, delete | | `object` | findMany, findOne, create, update, delete | | `ref` | findMany, findOne, create, update, delete | | `store` | findMany, findOne, create, update, delete | @@ -86,9 +86,6 @@ const items = await db.getAllTreeNodesRecord.findMany({ select: { data: true, pa // Get one by id const item = await db.getAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: true } }).execute(); -// Create -const created = await db.getAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); - // Update const updated = await db.getAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); diff --git a/sdk/constructive-sdk/src/objects/orm/input-types.ts b/sdk/constructive-sdk/src/objects/orm/input-types.ts index fbe09b35cb..faa72ecfe0 100644 --- a/sdk/constructive-sdk/src/objects/orm/input-types.ts +++ b/sdk/constructive-sdk/src/objects/orm/input-types.ts @@ -558,13 +558,6 @@ export interface DeleteCommitInput { clientMutationId?: string; id: string; } -export interface CreateGetAllTreeNodesRecordInput { - clientMutationId?: string; - getAllTreeNodesRecord: { - data?: Record; - path?: string[]; - }; -} export interface GetAllTreeNodesRecordPatch { data?: Record | null; path?: string[] | null; diff --git a/sdk/constructive-sdk/src/objects/orm/models/getAllTreeNodesRecord.ts b/sdk/constructive-sdk/src/objects/orm/models/getAllTreeNodesRecord.ts index 00f51d01f7..275a902f66 100644 --- a/sdk/constructive-sdk/src/objects/orm/models/getAllTreeNodesRecord.ts +++ b/sdk/constructive-sdk/src/objects/orm/models/getAllTreeNodesRecord.ts @@ -29,7 +29,6 @@ import type { GetAllTreeNodesRecordSelect, GetAllTreeNodesRecordFilter, GetAllTreeNodesRecordsOrderBy, - CreateGetAllTreeNodesRecordInput, UpdateGetAllTreeNodesRecordInput, GetAllTreeNodesRecordPatch, } from '../input-types'; @@ -104,31 +103,4 @@ export class GetAllTreeNodesRecordModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createGetAllTreeNodesRecord: { - getAllTreeNodesRecord: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'GetAllTreeNodesRecord', - 'createGetAllTreeNodesRecord', - 'getAllTreeNodesRecord', - args.select, - args.data, - 'CreateGetAllTreeNodesRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'GetAllTreeNodesRecord', - fieldName: 'createGetAllTreeNodesRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/objects/orm/query-builder.ts b/sdk/constructive-sdk/src/objects/orm/query-builder.ts index fd785bbae6..d6c981907f 100644 --- a/sdk/constructive-sdk/src/objects/orm/query-builder.ts +++ b/sdk/constructive-sdk/src/objects/orm/query-builder.ts @@ -140,9 +140,7 @@ export function buildSelections( ); const nestedSelect = nested.select; if (nestedSelect && typeof nestedSelect === 'object') { - const subSelections = Object.entries(nestedSelect) - .filter(([, v]) => v) - .map(([name]) => t.field({ name })); + const subSelections = buildSelections(nestedSelect, connectionFieldsMap); fields.push( t.field({ name: key, diff --git a/sdk/constructive-sdk/src/objects/orm/select-types.ts b/sdk/constructive-sdk/src/objects/orm/select-types.ts index 4b39d7e820..783c4603df 100644 --- a/sdk/constructive-sdk/src/objects/orm/select-types.ts +++ b/sdk/constructive-sdk/src/objects/orm/select-types.ts @@ -159,9 +159,13 @@ export type InferSelectResult = TSelect extends undefined ? K extends keyof TEntity ? NonNullable extends ConnectionResult ? ConnectionResult> - : - | InferSelectResult, NestedSelect> - | (null extends TEntity[K] ? null : never) + : NonNullable extends readonly (infer Item)[] + ? + | InferSelectResult, NestedSelect>[] + | (null extends TEntity[K] ? null : never) + : + | InferSelectResult, NestedSelect> + | (null extends TEntity[K] ? null : never) : never : K extends keyof TEntity ? TEntity[K] diff --git a/sdk/constructive-sdk/src/remote/README.md b/sdk/constructive-sdk/src/remote/README.md index ca5555a4bf..e329aef3fc 100644 --- a/sdk/constructive-sdk/src/remote/README.md +++ b/sdk/constructive-sdk/src/remote/README.md @@ -9,7 +9,7 @@ ## Overview - **Tables:** 3 -- **Custom queries:** 0 +- **Custom queries:** 1 - **Custom mutations:** 2 **Generators:** ORM diff --git a/sdk/constructive-sdk/src/remote/orm/README.md b/sdk/constructive-sdk/src/remote/orm/README.md index eb2fdd09aa..b76819b71e 100644 --- a/sdk/constructive-sdk/src/remote/orm/README.md +++ b/sdk/constructive-sdk/src/remote/orm/README.md @@ -169,6 +169,17 @@ const deleted = await db.machineSession.delete({ where: { id: '' } }).exec ## Custom Operations +### `db.query.currentDatabaseId` + +currentDatabaseId + +- **Type:** query +- **Arguments:** none + +```typescript +const result = await db.query.currentDatabaseId().execute(); +``` + ### `db.mutation.machinesEnroll` machinesEnroll diff --git a/sdk/constructive-sdk/src/remote/orm/index.ts b/sdk/constructive-sdk/src/remote/orm/index.ts index e166dd236a..554ce59ad1 100644 --- a/sdk/constructive-sdk/src/remote/orm/index.ts +++ b/sdk/constructive-sdk/src/remote/orm/index.ts @@ -8,12 +8,14 @@ import type { OrmClientConfig } from './client'; import { MachineModel } from './models/machine'; import { MachineMessageModel } from './models/machineMessage'; import { MachineSessionModel } from './models/machineSession'; +import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; export { GraphQLRequestError, FetchAdapter } from './client'; export { QueryBuilder } from './query-builder'; export * from './select-types'; export * from './models'; +export { createQueryOperations } from './query'; export { createMutationOperations } from './mutation'; /** * Create an ORM client instance @@ -44,6 +46,7 @@ export function createClient(config: OrmClientConfig) { machine: new MachineModel(client), machineMessage: new MachineMessageModel(client), machineSession: new MachineSessionModel(client), + query: createQueryOperations(client), mutation: createMutationOperations(client), }; } diff --git a/sdk/constructive-sdk/src/remote/orm/query-builder.ts b/sdk/constructive-sdk/src/remote/orm/query-builder.ts index fd785bbae6..d6c981907f 100644 --- a/sdk/constructive-sdk/src/remote/orm/query-builder.ts +++ b/sdk/constructive-sdk/src/remote/orm/query-builder.ts @@ -140,9 +140,7 @@ export function buildSelections( ); const nestedSelect = nested.select; if (nestedSelect && typeof nestedSelect === 'object') { - const subSelections = Object.entries(nestedSelect) - .filter(([, v]) => v) - .map(([name]) => t.field({ name })); + const subSelections = buildSelections(nestedSelect, connectionFieldsMap); fields.push( t.field({ name: key, diff --git a/sdk/constructive-sdk/src/remote/orm/query/index.ts b/sdk/constructive-sdk/src/remote/orm/query/index.ts new file mode 100644 index 0000000000..901e0de080 --- /dev/null +++ b/sdk/constructive-sdk/src/remote/orm/query/index.ts @@ -0,0 +1,32 @@ +/** + * Custom query operations + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { QueryBuilder, buildCustomDocument } from '../query-builder'; +import type { InferSelectResult, StrictSelect } from '../select-types'; +import { connectionFieldsMap } from '../input-types'; +export function createQueryOperations(client: OrmClient) { + return { + currentDatabaseId: (options?: { select?: Record }) => + new QueryBuilder<{ + currentDatabaseId: string | null; + }>({ + client, + operation: 'query', + operationName: 'CurrentDatabaseId', + fieldName: 'currentDatabaseId', + ...buildCustomDocument( + 'query', + 'CurrentDatabaseId', + 'currentDatabaseId', + options?.select, + undefined, + [], + connectionFieldsMap, + undefined + ), + }), + }; +} diff --git a/sdk/constructive-sdk/src/remote/orm/select-types.ts b/sdk/constructive-sdk/src/remote/orm/select-types.ts index 4b39d7e820..783c4603df 100644 --- a/sdk/constructive-sdk/src/remote/orm/select-types.ts +++ b/sdk/constructive-sdk/src/remote/orm/select-types.ts @@ -159,9 +159,13 @@ export type InferSelectResult = TSelect extends undefined ? K extends keyof TEntity ? NonNullable extends ConnectionResult ? ConnectionResult> - : - | InferSelectResult, NestedSelect> - | (null extends TEntity[K] ? null : never) + : NonNullable extends readonly (infer Item)[] + ? + | InferSelectResult, NestedSelect>[] + | (null extends TEntity[K] ? null : never) + : + | InferSelectResult, NestedSelect> + | (null extends TEntity[K] ? null : never) : never : K extends keyof TEntity ? TEntity[K] diff --git a/sdk/constructive-sdk/src/storage/orm/README.md b/sdk/constructive-sdk/src/storage/orm/README.md index a4e42cc98d..76a3ee3519 100644 --- a/sdk/constructive-sdk/src/storage/orm/README.md +++ b/sdk/constructive-sdk/src/storage/orm/README.md @@ -22,9 +22,9 @@ const db = createClient({ | Model | Operations | |-------|------------| | `bucket` | findMany, findOne, create, update, delete | -| `file` | findMany, findOne, create, update, delete | +| `file` | findMany, findOne, update, delete | | `platformBucket` | findMany, findOne, create, update, delete | -| `platformFile` | findMany, findOne, create, update, delete | +| `platformFile` | findMany, findOne, update, delete | ## Table Operations @@ -47,7 +47,7 @@ CRUD operations for Bucket records. | `id` | UUID | No | | `isPublic` | Boolean | Yes | | `key` | String | Yes | -| `maxBulkFiles` | Int | Yes | +| `maxBulkFiles` | Int | No | | `maxFileSize` | BigInt | Yes | | `physicalName` | String | Yes | | `provisionRequestedAt` | Datetime | Yes | @@ -66,7 +66,7 @@ const items = await db.bucket.findMany({ select: { actorId: true, allowCustomKey const item = await db.bucket.findOne({ id: '', select: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, databaseId: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxBulkFiles: true, maxFileSize: true, physicalName: true, provisionRequestedAt: true, stagingTtl: true, tags: true, type: true, updatedAt: true } }).execute(); // Create -const created = await db.bucket.create({ data: { actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', databaseId: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxBulkFiles: '', maxFileSize: '', physicalName: '', provisionRequestedAt: '', stagingTtl: '', tags: '', type: '' }, select: { id: true } }).execute(); +const created = await db.bucket.create({ data: { actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', databaseId: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxFileSize: '', physicalName: '', provisionRequestedAt: '', stagingTtl: '', tags: '', type: '' }, select: { id: true } }).execute(); // Update const updated = await db.bucket.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -89,32 +89,32 @@ CRUD operations for File records. | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | | `description` | String | Yes | -| `downloadUrl` | String | Yes | +| `downloadUrl` | String | No | | `expiryEnqueuedAt` | Datetime | Yes | -| `filePath` | String | Yes | +| `filePath` | String | No | | `filename` | String | Yes | | `id` | UUID | No | | `isPublic` | Boolean | Yes | | `key` | String | Yes | | `mimeType` | String | Yes | | `promotedAt` | Datetime | Yes | +| `rejectionReason` | String | Yes | | `size` | BigInt | Yes | | `status` | FileStatus | Yes | | `tags` | String | Yes | | `updatedAt` | Datetime | No | | `upload` | ConstructiveInternalTypeUpload | Yes | +| `uploadUrl` | String | No | +| `uploadVersions` | FileVersion | No | **Operations:** ```typescript // List all file records -const items = await db.file.findMany({ select: { actorId: true, bucketId: true, contentHash: true, createdAt: true, databaseId: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }).execute(); +const items = await db.file.findMany({ select: { actorId: true, bucketId: true, contentHash: true, createdAt: true, databaseId: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, rejectionReason: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }).execute(); // Get one by id -const item = await db.file.findOne({ id: '', select: { actorId: true, bucketId: true, contentHash: true, createdAt: true, databaseId: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }).execute(); - -// Create -const created = await db.file.create({ data: { actorId: '', bucketId: '', contentHash: '', databaseId: '', description: '', downloadUrl: '', expiryEnqueuedAt: '', filePath: '', filename: '', isPublic: '', key: '', mimeType: '', promotedAt: '', size: '', status: '', tags: '', upload: '' }, select: { id: true } }).execute(); +const item = await db.file.findOne({ id: '', select: { actorId: true, bucketId: true, contentHash: true, createdAt: true, databaseId: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, rejectionReason: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }).execute(); // Update const updated = await db.file.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -141,7 +141,7 @@ CRUD operations for PlatformBucket records. | `id` | UUID | No | | `isPublic` | Boolean | Yes | | `key` | String | Yes | -| `maxBulkFiles` | Int | Yes | +| `maxBulkFiles` | Int | No | | `maxFileSize` | BigInt | Yes | | `physicalName` | String | Yes | | `provisionRequestedAt` | Datetime | Yes | @@ -160,7 +160,7 @@ const items = await db.platformBucket.findMany({ select: { actorId: true, allowC const item = await db.platformBucket.findOne({ id: '', select: { actorId: true, allowCustomKeys: true, allowedMimeTypes: true, allowedOrigins: true, createdAt: true, description: true, destinationBucketId: true, id: true, isPublic: true, key: true, maxBulkFiles: true, maxFileSize: true, physicalName: true, provisionRequestedAt: true, stagingTtl: true, tags: true, type: true, updatedAt: true } }).execute(); // Create -const created = await db.platformBucket.create({ data: { actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxBulkFiles: '', maxFileSize: '', physicalName: '', provisionRequestedAt: '', stagingTtl: '', tags: '', type: '' }, select: { id: true } }).execute(); +const created = await db.platformBucket.create({ data: { actorId: '', allowCustomKeys: '', allowedMimeTypes: '', allowedOrigins: '', description: '', destinationBucketId: '', isPublic: '', key: '', maxFileSize: '', physicalName: '', provisionRequestedAt: '', stagingTtl: '', tags: '', type: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformBucket.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -182,32 +182,32 @@ CRUD operations for PlatformFile records. | `contentHash` | String | Yes | | `createdAt` | Datetime | No | | `description` | String | Yes | -| `downloadUrl` | String | Yes | +| `downloadUrl` | String | No | | `expiryEnqueuedAt` | Datetime | Yes | -| `filePath` | String | Yes | +| `filePath` | String | No | | `filename` | String | Yes | | `id` | UUID | No | | `isPublic` | Boolean | Yes | | `key` | String | Yes | | `mimeType` | String | Yes | | `promotedAt` | Datetime | Yes | +| `rejectionReason` | String | Yes | | `size` | BigInt | Yes | | `status` | FileStatus | Yes | | `tags` | String | Yes | | `updatedAt` | Datetime | No | | `upload` | ConstructiveInternalTypeUpload | Yes | +| `uploadUrl` | String | No | +| `uploadVersions` | FileVersion | No | **Operations:** ```typescript // List all platformFile records -const items = await db.platformFile.findMany({ select: { actorId: true, bucketId: true, contentHash: true, createdAt: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }).execute(); +const items = await db.platformFile.findMany({ select: { actorId: true, bucketId: true, contentHash: true, createdAt: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, rejectionReason: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }).execute(); // Get one by id -const item = await db.platformFile.findOne({ id: '', select: { actorId: true, bucketId: true, contentHash: true, createdAt: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }).execute(); - -// Create -const created = await db.platformFile.create({ data: { actorId: '', bucketId: '', contentHash: '', description: '', downloadUrl: '', expiryEnqueuedAt: '', filePath: '', filename: '', isPublic: '', key: '', mimeType: '', promotedAt: '', size: '', status: '', tags: '', upload: '' }, select: { id: true } }).execute(); +const item = await db.platformFile.findOne({ id: '', select: { actorId: true, bucketId: true, contentHash: true, createdAt: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, rejectionReason: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }).execute(); // Update const updated = await db.platformFile.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -295,7 +295,7 @@ Upload multiple files: resolves the bucket by key, creates file rows, and return | `input` | UploadFileBulkInput (required) | ```typescript -const result = await db.mutation.uploadFiles({ input: { bucketKey: '', files: '', isPublic: '' } }).execute(); +const result = await db.mutation.uploadFiles({ input: { bucketKey: '', databaseId: '', files: '', isPublic: '' } }).execute(); ``` ### `db.mutation.uploadPlatformFile` diff --git a/sdk/constructive-sdk/src/storage/orm/input-types.ts b/sdk/constructive-sdk/src/storage/orm/input-types.ts index ffb823c7ee..1351860637 100644 --- a/sdk/constructive-sdk/src/storage/orm/input-types.ts +++ b/sdk/constructive-sdk/src/storage/orm/input-types.ts @@ -232,7 +232,7 @@ export interface UUIDListFilter { } // ============ Enum Types ============ export type BucketType = 'PRIVATE' | 'PUBLIC' | 'TEMP'; -export type FileStatus = 'EXPIRED' | 'PROCESSED' | 'REJECTED' | 'REQUESTED' | 'UPLOADED'; +export type FileStatus = 'PROCESSED' | 'REJECTED' | 'REQUESTED' | 'UPLOADED'; // ============ Custom Scalar Types ============ export type ConstructiveInternalTypeUpload = unknown; /** Logical storage containers that group files with shared access policies and CDN behavior */ @@ -287,7 +287,7 @@ export interface File { databaseId?: string | null; /** Human-readable description or alt text for the file (mutable) */ description?: string | null; - /** URL to download this file. For public files, returns the public URL. For private files, returns a time-limited presigned URL. */ + /** URL to download this file. For public files, returns the public URL. For private files, returns a time-limited presigned URL. Null until the upload is confirmed (status uploaded or processed), and for a rejected file. */ downloadUrl?: string | null; /** When the staged-expiry sweep enqueued deletion of this file's object. NULL until it expires; set once so expiry is enqueued exactly once. */ expiryEnqueuedAt?: string | null; @@ -303,15 +303,21 @@ export interface File { mimeType?: string | null; /** When this file was promoted out of its staging bucket into its destination bucket. NULL for a file that was never staged, or is still staged. */ promotedAt?: string | null; + /** Why the upload was rejected (declared MIME, extension and magic bytes disagreed, size mismatch, ...). NULL unless status is rejected. */ + rejectionReason?: string | null; /** File size in bytes. Immutable after INSERT. */ size?: string | null; - /** File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). */ + /** File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes). A requested row whose bytes never arrive within upload_url_expiry_seconds is deleted by the confirm loop. */ status?: FileStatus | null; /** User-defined tags for categorization and search (mutable) */ tags?: string[] | null; updatedAt?: string | null; /** Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. */ upload?: ConstructiveInternalTypeUpload | null; + /** URL to fetch `upload`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + uploadUrl?: string | null; + /** The versions rendered beside `upload`, narrowest first, each with a URL. Empty when there are none. */ + uploadVersions?: FileVersion[] | null; } /** Logical storage containers that group files with shared access policies and CDN behavior */ export interface PlatformBucket { @@ -360,7 +366,7 @@ export interface PlatformFile { createdAt?: string | null; /** Human-readable description or alt text for the file (mutable) */ description?: string | null; - /** URL to download this file. For public files, returns the public URL. For private files, returns a time-limited presigned URL. */ + /** URL to download this file. For public files, returns the public URL. For private files, returns a time-limited presigned URL. Null until the upload is confirmed (status uploaded or processed), and for a rejected file. */ downloadUrl?: string | null; /** When the staged-expiry sweep enqueued deletion of this file's object. NULL until it expires; set once so expiry is enqueued exactly once. */ expiryEnqueuedAt?: string | null; @@ -376,15 +382,21 @@ export interface PlatformFile { mimeType?: string | null; /** When this file was promoted out of its staging bucket into its destination bucket. NULL for a file that was never staged, or is still staged. */ promotedAt?: string | null; + /** Why the upload was rejected (declared MIME, extension and magic bytes disagreed, size mismatch, ...). NULL unless status is rejected. */ + rejectionReason?: string | null; /** File size in bytes. Immutable after INSERT. */ size?: string | null; - /** File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). */ + /** File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes). A requested row whose bytes never arrive within upload_url_expiry_seconds is deleted by the confirm loop. */ status?: FileStatus | null; /** User-defined tags for categorization and search (mutable) */ tags?: string[] | null; updatedAt?: string | null; /** Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. */ upload?: ConstructiveInternalTypeUpload | null; + /** URL to fetch `upload`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + uploadUrl?: string | null; + /** The versions rendered beside `upload`, narrowest first, each with a URL. Empty when there are none. */ + uploadVersions?: FileVersion[] | null; } // ============ Relation Helper Types ============ export interface ConnectionResult { @@ -473,11 +485,21 @@ export type FileSelect = { key?: boolean; mimeType?: boolean; promotedAt?: boolean; + rejectionReason?: boolean; size?: boolean; status?: boolean; tags?: boolean; updatedAt?: boolean; upload?: boolean; + uploadUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + uploadVersions?: { + select: FileVersionSelect; + }; bucket?: { select: BucketSelect; }; @@ -532,11 +554,21 @@ export type PlatformFileSelect = { key?: boolean; mimeType?: boolean; promotedAt?: boolean; + rejectionReason?: boolean; size?: boolean; status?: boolean; tags?: boolean; updatedAt?: boolean; upload?: boolean; + uploadUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + uploadVersions?: { + select: FileVersionSelect; + }; bucket?: { select: PlatformBucketSelect; }; @@ -633,6 +665,8 @@ export interface FileFilter { or?: FileFilter[]; /** Filter by the object’s `promotedAt` field. */ promotedAt?: DatetimeFilter; + /** Filter by the object’s `rejectionReason` field. */ + rejectionReason?: StringFilter; /** Filter by the object’s `size` field. */ size?: BigIntFilter; /** Filter by the object’s `status` field. */ @@ -731,6 +765,8 @@ export interface PlatformFileFilter { or?: PlatformFileFilter[]; /** Filter by the object’s `promotedAt` field. */ promotedAt?: DatetimeFilter; + /** Filter by the object’s `rejectionReason` field. */ + rejectionReason?: StringFilter; /** Filter by the object’s `size` field. */ size?: BigIntFilter; /** Filter by the object’s `status` field. */ @@ -813,6 +849,8 @@ export type FileOrderBy = | 'PRIMARY_KEY_DESC' | 'PROMOTED_AT_ASC' | 'PROMOTED_AT_DESC' + | 'REJECTION_REASON_ASC' + | 'REJECTION_REASON_DESC' | 'SIZE_ASC' | 'SIZE_DESC' | 'STATUS_ASC' @@ -889,6 +927,8 @@ export type PlatformFileOrderBy = | 'PRIMARY_KEY_DESC' | 'PROMOTED_AT_ASC' | 'PROMOTED_AT_DESC' + | 'REJECTION_REASON_ASC' + | 'REJECTION_REASON_DESC' | 'SIZE_ASC' | 'SIZE_DESC' | 'STATUS_ASC' @@ -946,24 +986,6 @@ export interface DeleteBucketInput { clientMutationId?: string; id: string; } -export interface CreateFileInput { - clientMutationId?: string; - file: { - actorId: string; - bucketId: string; - contentHash?: string; - description?: string; - expiryEnqueuedAt?: string; - filename?: string; - key: string; - mimeType: string; - promotedAt?: string; - size: string; - status?: FileStatus; - tags?: string[]; - upload?: ConstructiveInternalTypeUpload; - }; -} export interface FilePatch { actorId?: string | null; bucketId?: string | null; @@ -976,11 +998,11 @@ export interface FilePatch { key?: string | null; mimeType?: string | null; promotedAt?: string | null; + rejectionReason?: string | null; size?: string | null; status?: FileStatus | null; tags?: string[] | null; upload?: ConstructiveInternalTypeUpload | null; - uploadUpload?: File | null; } export interface UpdateFileInput { clientMutationId?: string; @@ -1035,24 +1057,6 @@ export interface DeletePlatformBucketInput { clientMutationId?: string; id: string; } -export interface CreatePlatformFileInput { - clientMutationId?: string; - platformFile: { - actorId: string; - bucketId: string; - contentHash?: string; - description?: string; - expiryEnqueuedAt?: string; - filename?: string; - key: string; - mimeType: string; - promotedAt?: string; - size: string; - status?: FileStatus; - tags?: string[]; - upload?: ConstructiveInternalTypeUpload; - }; -} export interface PlatformFilePatch { actorId?: string | null; bucketId?: string | null; @@ -1064,11 +1068,11 @@ export interface PlatformFilePatch { key?: string | null; mimeType?: string | null; promotedAt?: string | null; + rejectionReason?: string | null; size?: string | null; status?: FileStatus | null; tags?: string[] | null; upload?: ConstructiveInternalTypeUpload | null; - uploadUpload?: File | null; } export interface UpdatePlatformFileInput { clientMutationId?: string; @@ -1117,6 +1121,8 @@ export interface UploadFileInput { contentHash: string; /** MIME type of the file */ contentType: string; + /** Database the file belongs to. Omit for the database of the current session; a caller who is not a member of the named database is refused. */ + databaseId?: string; /** Original filename (optional) */ filename?: string; /** Which default bucket to resolve when bucketKey is omitted: the public one (true) or the private one (default false). Ignored when bucketKey is given. */ @@ -1129,6 +1135,8 @@ export interface UploadFileInput { export interface UploadFileBulkInput { /** Bucket key (e.g., "public", "private"). Omit to use the database's default bucket for the requested access. */ bucketKey?: string; + /** Database the file belongs to. Omit for the database of the current session; a caller who is not a member of the named database is refused. */ + databaseId?: string; /** Array of files to upload */ files: UploadFileBulkFileInput[]; /** Which default bucket to resolve when bucketKey is omitted. Ignored when bucketKey is given. */ @@ -1359,38 +1367,6 @@ export interface IntervalInput { /** A quantity of years. */ years?: number; } -/** An input for mutations affecting `File` */ -export interface FileInput { - /** User who uploaded this file. Forced to current_user_id() on INSERT. Used for UPDATE/DELETE authorization. */ - actorId: string; - /** Bucket this file belongs to. Determines owner_id and is_public via inheritance trigger. */ - bucketId: string; - /** SHA-256 content hash for integrity verification and dedup. In default mode, equals the S3 key. In custom key mode, stored separately. */ - contentHash?: string; - createdAt?: string; - /** Human-readable description or alt text for the file (mutable) */ - description?: string; - /** When the staged-expiry sweep enqueued deletion of this file's object. NULL until it expires; set once so expiry is enqueued exactly once. */ - expiryEnqueuedAt?: string; - /** Original filename provided by the uploader. Used for display and Content-Disposition header on download. */ - filename?: string; - id?: string; - /** S3 object key for this file, unique within its bucket */ - key: string; - /** MIME type of the file (e.g. image/png, application/pdf). Immutable after INSERT. */ - mimeType: string; - /** When this file was promoted out of its staging bucket into its destination bucket. NULL for a file that was never staged, or is still staged. */ - promotedAt?: string; - /** File size in bytes. Immutable after INSERT. */ - size: string; - /** File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). */ - status?: FileStatus; - /** User-defined tags for categorization and search (mutable) */ - tags?: string[]; - updatedAt?: string; - /** Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. */ - upload?: ConstructiveInternalTypeUpload; -} /** An input for mutations affecting `PlatformBucket` */ export interface PlatformBucketInput { /** User who created this bucket. Forced to current_user_id() on INSERT. */ @@ -1425,38 +1401,6 @@ export interface PlatformBucketInput { type?: BucketType; updatedAt?: string; } -/** An input for mutations affecting `PlatformFile` */ -export interface PlatformFileInput { - /** User who uploaded this file. Forced to current_user_id() on INSERT. Used for UPDATE/DELETE authorization. */ - actorId: string; - /** Bucket this file belongs to. Determines owner_id and is_public via inheritance trigger. */ - bucketId: string; - /** SHA-256 content hash for integrity verification and dedup. In default mode, equals the S3 key. In custom key mode, stored separately. */ - contentHash?: string; - createdAt?: string; - /** Human-readable description or alt text for the file (mutable) */ - description?: string; - /** When the staged-expiry sweep enqueued deletion of this file's object. NULL until it expires; set once so expiry is enqueued exactly once. */ - expiryEnqueuedAt?: string; - /** Original filename provided by the uploader. Used for display and Content-Disposition header on download. */ - filename?: string; - id?: string; - /** S3 object key for this file, unique within its bucket */ - key: string; - /** MIME type of the file (e.g. image/png, application/pdf). Immutable after INSERT. */ - mimeType: string; - /** When this file was promoted out of its staging bucket into its destination bucket. NULL for a file that was never staged, or is still staged. */ - promotedAt?: string; - /** File size in bytes. Immutable after INSERT. */ - size: string; - /** File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). */ - status?: FileStatus; - /** User-defined tags for categorization and search (mutable) */ - tags?: string[]; - updatedAt?: string; - /** Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. */ - upload?: ConstructiveInternalTypeUpload; -} export interface UploadFileBulkFileInput { /** SHA-256 content hash (hex-encoded, 64 chars) */ contentHash: string; @@ -1574,6 +1518,8 @@ export interface FileFilter { or?: FileFilter[]; /** Filter by the object’s `promotedAt` field. */ promotedAt?: DatetimeFilter; + /** Filter by the object’s `rejectionReason` field. */ + rejectionReason?: StringFilter; /** Filter by the object’s `size` field. */ size?: BigIntFilter; /** Filter by the object’s `status` field. */ @@ -1674,6 +1620,8 @@ export interface PlatformFileFilter { or?: PlatformFileFilter[]; /** Filter by the object’s `promotedAt` field. */ promotedAt?: DatetimeFilter; + /** Filter by the object’s `rejectionReason` field. */ + rejectionReason?: StringFilter; /** Filter by the object’s `size` field. */ size?: BigIntFilter; /** Filter by the object’s `status` field. */ @@ -1956,6 +1904,8 @@ export interface UploadFilePayload { fileId: string; /** The S3 object key */ key: string; + /** The exact headers the PUT to uploadUrl must send (Content-Type and every header the URL is signed over, e.g. x-amz-checksum-sha256 and x-amz-meta-upload-id). Forward them as-is. Null if deduplicated. */ + uploadHeaders?: Record | null; /** Presigned PUT URL (null if deduplicated) */ uploadUrl?: string | null; } @@ -1965,6 +1915,7 @@ export type UploadFilePayloadSelect = { file?: boolean; fileId?: boolean; key?: boolean; + uploadHeaders?: boolean; uploadUrl?: boolean; }; export interface UploadFileBulkPayload { @@ -1986,6 +1937,8 @@ export interface UploadPlatformFilePayload { fileId: string; /** The S3 object key */ key: string; + /** The exact headers the PUT to uploadUrl must send (Content-Type and every header the URL is signed over, e.g. x-amz-checksum-sha256 and x-amz-meta-upload-id). Forward them as-is. Null if deduplicated. */ + uploadHeaders?: Record | null; /** Presigned PUT URL (null if deduplicated) */ uploadUrl?: string | null; } @@ -1995,6 +1948,7 @@ export type UploadPlatformFilePayloadSelect = { file?: boolean; fileId?: boolean; key?: boolean; + uploadHeaders?: boolean; uploadUrl?: boolean; }; export interface UploadPlatformFileBulkPayload { @@ -2050,21 +2004,6 @@ export type DeleteBucketPayloadSelect = { }; clientMutationId?: boolean; }; -export interface CreateFilePayload { - clientMutationId?: string | null; - /** The `File` that was created by this mutation. */ - file?: File | null; - fileEdge?: FileEdge | null; -} -export type CreateFilePayloadSelect = { - clientMutationId?: boolean; - file?: { - select: FileSelect; - }; - fileEdge?: { - select: FileEdgeSelect; - }; -}; export interface UpdateFilePayload { clientMutationId?: string | null; /** The `File` that was updated by this mutation. */ @@ -2140,21 +2079,6 @@ export type DeletePlatformBucketPayloadSelect = { select: PlatformBucketEdgeSelect; }; }; -export interface CreatePlatformFilePayload { - clientMutationId?: string | null; - /** The `PlatformFile` that was created by this mutation. */ - platformFile?: PlatformFile | null; - platformFileEdge?: PlatformFileEdge | null; -} -export type CreatePlatformFilePayloadSelect = { - clientMutationId?: boolean; - platformFile?: { - select: PlatformFileSelect; - }; - platformFileEdge?: { - select: PlatformFileEdgeSelect; - }; -}; export interface UpdatePlatformFilePayload { clientMutationId?: string | null; /** The `PlatformFile` that was updated by this mutation. */ @@ -2185,6 +2109,25 @@ export type DeletePlatformFilePayloadSelect = { select: PlatformFileEdgeSelect; }; }; +/** One version rendered beside a file, with a URL to fetch it. */ +export interface FileVersion { + format?: string | null; + height?: number | null; + key: string; + name?: string | null; + size?: number | null; + url: string; + width?: number | null; +} +export type FileVersionSelect = { + format?: boolean; + height?: boolean; + key?: boolean; + name?: boolean; + size?: boolean; + url?: boolean; + width?: boolean; +}; /** A `File` edge in the connection. */ export interface FileEdge { cursor?: string | null; @@ -2216,6 +2159,8 @@ export interface UploadFileBulkFilePayload { file?: Record | null; fileId: string; key: string; + /** The exact headers the PUT to uploadUrl must send. */ + uploadHeaders?: Record | null; uploadUrl?: string | null; } export type UploadFileBulkFilePayloadSelect = { @@ -2224,6 +2169,7 @@ export type UploadFileBulkFilePayloadSelect = { file?: boolean; fileId?: boolean; key?: boolean; + uploadHeaders?: boolean; uploadUrl?: boolean; }; export interface UploadPlatformFileBulkFilePayload { @@ -2233,6 +2179,8 @@ export interface UploadPlatformFileBulkFilePayload { file?: Record | null; fileId: string; key: string; + /** The exact headers the PUT to uploadUrl must send. */ + uploadHeaders?: Record | null; uploadUrl?: string | null; } export type UploadPlatformFileBulkFilePayloadSelect = { @@ -2241,6 +2189,7 @@ export type UploadPlatformFileBulkFilePayloadSelect = { file?: boolean; fileId?: boolean; key?: boolean; + uploadHeaders?: boolean; uploadUrl?: boolean; }; /** A `Bucket` edge in the connection. */ diff --git a/sdk/constructive-sdk/src/storage/orm/models/file.ts b/sdk/constructive-sdk/src/storage/orm/models/file.ts index a2d0e48ee3..e702b67170 100644 --- a/sdk/constructive-sdk/src/storage/orm/models/file.ts +++ b/sdk/constructive-sdk/src/storage/orm/models/file.ts @@ -29,7 +29,6 @@ import type { FileSelect, FileFilter, FileOrderBy, - CreateFileInput, UpdateFileInput, FilePatch, } from '../input-types'; @@ -144,33 +143,6 @@ export class FileModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createFile: { - file: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'File', - 'createFile', - 'file', - args.select, - args.data, - 'CreateFileInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'File', - fieldName: 'createFile', - document, - variables, - }); - } update( args: UpdateArgs< S, diff --git a/sdk/constructive-sdk/src/storage/orm/models/platformFile.ts b/sdk/constructive-sdk/src/storage/orm/models/platformFile.ts index bfc7890e99..921d7f3f92 100644 --- a/sdk/constructive-sdk/src/storage/orm/models/platformFile.ts +++ b/sdk/constructive-sdk/src/storage/orm/models/platformFile.ts @@ -29,7 +29,6 @@ import type { PlatformFileSelect, PlatformFileFilter, PlatformFileOrderBy, - CreatePlatformFileInput, UpdatePlatformFileInput, PlatformFilePatch, } from '../input-types'; @@ -144,33 +143,6 @@ export class PlatformFileModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformFile: { - platformFile: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformFile', - 'createPlatformFile', - 'platformFile', - args.select, - args.data, - 'CreatePlatformFileInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformFile', - fieldName: 'createPlatformFile', - document, - variables, - }); - } update( args: UpdateArgs< S, diff --git a/sdk/constructive-sdk/src/storage/orm/query-builder.ts b/sdk/constructive-sdk/src/storage/orm/query-builder.ts index fd785bbae6..d6c981907f 100644 --- a/sdk/constructive-sdk/src/storage/orm/query-builder.ts +++ b/sdk/constructive-sdk/src/storage/orm/query-builder.ts @@ -140,9 +140,7 @@ export function buildSelections( ); const nestedSelect = nested.select; if (nestedSelect && typeof nestedSelect === 'object') { - const subSelections = Object.entries(nestedSelect) - .filter(([, v]) => v) - .map(([name]) => t.field({ name })); + const subSelections = buildSelections(nestedSelect, connectionFieldsMap); fields.push( t.field({ name: key, diff --git a/sdk/constructive-sdk/src/storage/orm/select-types.ts b/sdk/constructive-sdk/src/storage/orm/select-types.ts index 4b39d7e820..783c4603df 100644 --- a/sdk/constructive-sdk/src/storage/orm/select-types.ts +++ b/sdk/constructive-sdk/src/storage/orm/select-types.ts @@ -159,9 +159,13 @@ export type InferSelectResult = TSelect extends undefined ? K extends keyof TEntity ? NonNullable extends ConnectionResult ? ConnectionResult> - : - | InferSelectResult, NestedSelect> - | (null extends TEntity[K] ? null : never) + : NonNullable extends readonly (infer Item)[] + ? + | InferSelectResult, NestedSelect>[] + | (null extends TEntity[K] ? null : never) + : + | InferSelectResult, NestedSelect> + | (null extends TEntity[K] ? null : never) : never : K extends keyof TEntity ? TEntity[K] diff --git a/sdk/constructive-sdk/src/usage/orm/query-builder.ts b/sdk/constructive-sdk/src/usage/orm/query-builder.ts index fd785bbae6..d6c981907f 100644 --- a/sdk/constructive-sdk/src/usage/orm/query-builder.ts +++ b/sdk/constructive-sdk/src/usage/orm/query-builder.ts @@ -140,9 +140,7 @@ export function buildSelections( ); const nestedSelect = nested.select; if (nestedSelect && typeof nestedSelect === 'object') { - const subSelections = Object.entries(nestedSelect) - .filter(([, v]) => v) - .map(([name]) => t.field({ name })); + const subSelections = buildSelections(nestedSelect, connectionFieldsMap); fields.push( t.field({ name: key, diff --git a/sdk/constructive-sdk/src/usage/orm/select-types.ts b/sdk/constructive-sdk/src/usage/orm/select-types.ts index 4b39d7e820..783c4603df 100644 --- a/sdk/constructive-sdk/src/usage/orm/select-types.ts +++ b/sdk/constructive-sdk/src/usage/orm/select-types.ts @@ -159,9 +159,13 @@ export type InferSelectResult = TSelect extends undefined ? K extends keyof TEntity ? NonNullable extends ConnectionResult ? ConnectionResult> - : - | InferSelectResult, NestedSelect> - | (null extends TEntity[K] ? null : never) + : NonNullable extends readonly (infer Item)[] + ? + | InferSelectResult, NestedSelect>[] + | (null extends TEntity[K] ? null : never) + : + | InferSelectResult, NestedSelect> + | (null extends TEntity[K] ? null : never) : never : K extends keyof TEntity ? TEntity[K] diff --git a/sdk/migrate-client/schemas/migrate.graphql b/sdk/migrate-client/schemas/migrate.graphql index 89b7681259..c6e93343fe 100644 --- a/sdk/migrate-client/schemas/migrate.graphql +++ b/sdk/migrate-client/schemas/migrate.graphql @@ -287,6 +287,11 @@ type MetaBelongsToRelation { fieldName: String isUnique: Boolean! keys: [MetaField!]! + + """ + Fields on the referenced table that keys point at, in the same order as keys + """ + refKeys: [MetaField!]! references: MetaRefTable! type: String } @@ -309,22 +314,66 @@ type MetaEnum { """Information about a table field/column""" type MetaField { + """ + Values this field accepts, when the set is fixed; null otherwise. Set on a table's own fields only. + """ + allowedValues: [String!] + """PostgreSQL column name""" columnName: String! description: String """Enum metadata if this field has an enum type""" enumValues: MetaEnum + + """ + Set when the field holds files; null otherwise. Set on a table's own fields only. + """ + file: MetaFileField hasDefault: Boolean! + + """ + Whether the value is always computed and cannot be written, even when a create or update input offers the field. Set on a table's own fields only. + """ + isComputed: Boolean isForeignKey: Boolean! isNotNull: Boolean! isPrimaryKey: Boolean! + """ + Whether a create must provide this field. Set on a table's own fields only. + """ + isRequiredOnCreate: Boolean + + """Whether a create may set this field. Set on a table's own fields only.""" + isWritableOnCreate: Boolean + + """ + Whether an update may change this field. Set on a table's own fields only. + """ + isWritableOnUpdate: Boolean + """Final GraphQL field name""" name: String! type: MetaType! } +"""How a field holds files""" +type MetaFileField { + """ + GraphQL type name of the files table uploads are recorded in, when this API has exactly one; null otherwise + """ + filesType: String + + """Whether the field holds a list of files""" + isMultiple: Boolean! + + """ + image, upload, or attachment. An image or upload holds a file document; an attachment holds a link to a file. + """ + kind: String! +} + """Information about a foreign key constraint""" type MetaForeignKeyConstraint { fields: [MetaField!]! @@ -341,10 +390,15 @@ type MetaHasRelation { isUnique: Boolean! keys: [MetaField!]! referencedBy: MetaRefTable! + + """ + Fields on the related table that point at this table, in the same order as keys + """ + remoteKeys: [MetaField!]! type: String } -"""i18n metadata for a table with @i18n tag""" +"""i18n metadata for a translatable table""" type MetaI18n { """Fields that are translatable""" translatableFields: [MetaI18nField!]! @@ -371,7 +425,7 @@ type MetaIndex { name: String! } -"""Table inflection names""" +"""Type and field names generated for this table""" type MetaInflection { allRows: String! conditionType: String! @@ -416,7 +470,7 @@ type MetaQuery { update: String } -"""Realtime metadata for a table with @realtime tag""" +"""Realtime metadata for a table with change subscriptions""" type MetaRealtime { """The generated subscription field name (e.g. onPostChanged)""" subscriptionFieldName: String! @@ -437,13 +491,15 @@ type MetaRelations { } """ -How a client must serialize/parse a scalar — the one field-type detail standard GraphQL introspection cannot describe. Null for plain scalars whose wire format is obvious from gqlType. +How a client must serialize and parse a scalar whose wire format gqlType alone does not settle. Null for plain scalars whose wire format is obvious from gqlType. """ type MetaScalarEncoding { """For 'vector': declared length, else null.""" dimensions: Int - """For 'ltree': values are dot-separated path strings.""" + """ + For 'ltree': true when values are dot-separated paths ('a.b.c'), false when they are slash-separated paths ('/a/b/c'). + """ dotPath: Boolean """For 'vector': element scalar (e.g. 'float').""" @@ -468,11 +524,11 @@ type MetaSchema { """Provisioning scope metadata for a table""" type MetaScope { - """SQL name of the entity table for entity scopes, else null""" + """Name of the entity table for entity scopes, else null""" entityTable: String """ - Inflected scope key column (e.g. databaseId, orgId), null for global tiers + Field name of the scope key (e.g. databaseId, orgId), null for global tiers """ keyColumn: String @@ -481,7 +537,7 @@ type MetaScope { """ scope: String! - """Provenance of the scope metadata (always 'smartTag')""" + """Where this scope metadata comes from""" source: String! """Coarse bucket: 'global', 'database', or 'entity'""" @@ -512,7 +568,7 @@ type MetaSearchColumn { name: String! } -"""Per-table search configuration from @searchConfig smart tag""" +"""Per-table search configuration""" type MetaSearchConfig { """Exponential decay factor per day""" boostRecencyDecay: Float @@ -529,7 +585,7 @@ type MetaSearchConfig { """Storage metadata for a table""" type MetaStorage { - """GraphQL type name of the plane's buckets table""" + """GraphQL type name of the paired buckets table""" bucketsType: String! """ @@ -537,7 +593,7 @@ type MetaStorage { """ downloadUrlField: String - """GraphQL type name of the plane's files table""" + """GraphQL type name of the paired files table""" filesType: String! """Whether this table is a storage buckets table""" @@ -546,13 +602,11 @@ type MetaStorage { """Whether this table is a storage files table""" isFilesTable: Boolean! - """The plane's GraphQL upload surface""" + """Upload mutations and types for this storage""" upload: MetaStorageUpload! } -""" -The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from -""" +"""The upload mutations and types for a storage table pair""" type MetaStorageUpload { """Per-file input type inside the bulk input""" bulkFileInputType: String! @@ -578,32 +632,45 @@ type MetaStorageUpload { """Payload type of the single upload mutation""" payloadType: String! - """Whether the upload input requires ownerId (entity-keyed plane)""" + """Whether the upload input requires ownerId""" requiresOwnerId: Boolean! } """Information about a database table""" type MetaTable { constraints: MetaConstraints! + + """Description written for this table, or null""" + description: String fields: [MetaField!]! foreignKeyConstraints: [MetaForeignKeyConstraint!]! - """i18n metadata (null if no @i18n tag)""" + """i18n metadata (null if the table is not translatable)""" i18n: MetaI18n indexes: [MetaIndex!]! inflection: MetaInflection! + """ + Whether this table only links rows of two other tables; the link appears in their manyToMany relations + """ + isJunction: Boolean! + + """ + 'table' when rows are stored in this table, 'view' when they come from a view of other tables + """ + kind: String! + """Final GraphQL output type name""" name: String! primaryKeyConstraints: [MetaPrimaryKeyConstraint!]! query: MetaQuery! - """Realtime metadata (null if no @realtime tag)""" + """Realtime metadata (null if the table has no change subscriptions)""" realtime: MetaRealtime relations: MetaRelations! schemaName: String! - """Provisioning scope metadata (null if no @scope tag)""" + """Provisioning scope metadata (null if the table has no scope)""" scope: MetaScope """Search metadata (null if no search configured)""" @@ -625,7 +692,22 @@ type MetaType { hasDefault: Boolean isArray: Boolean! isNotNull: Boolean + + """ + Most characters a text value may hold, or most bits a bit string may hold; for a list, each item. Null when unbounded. + """ + maxLength: Int pgType: String! + + """ + Most significant digits a decimal number may hold. Null when unbounded. + """ + precision: Int + + """ + Digits a decimal number keeps after the decimal point. Null when unbounded. + """ + scale: Int subtype: String } diff --git a/sdk/migrate-client/src/migrate/orm/README.md b/sdk/migrate-client/src/migrate/orm/README.md index 3a8776042f..c1450c7f71 100644 --- a/sdk/migrate-client/src/migrate/orm/README.md +++ b/sdk/migrate-client/src/migrate/orm/README.md @@ -21,8 +21,8 @@ const db = createClient({ | Model | Operations | |-------|------------| -| `astMigration` | findMany, findOne, create, update, delete | -| `sqlAction` | findMany, findOne, create, update, delete | +| `astMigration` | findMany, findOne, update, delete | +| `sqlAction` | findMany, findOne, update, delete | ## Table Operations @@ -57,9 +57,6 @@ const items = await db.astMigration.findMany({ select: { actionId: true, actionN // Get one by id const item = await db.astMigration.findOne({ id: '', select: { actionId: true, actionName: true, actorId: true, createdAt: true, databaseId: true, deploy: true, deploys: true, id: true, name: true, payload: true, requires: true, revert: true, verify: true } }).execute(); -// Create -const created = await db.astMigration.create({ data: { actionId: '', actionName: '', actorId: '', databaseId: '', deploy: '', deploys: '', name: '', payload: '', requires: '', revert: '', verify: '' }, select: { id: true } }).execute(); - // Update const updated = await db.astMigration.update({ where: { id: '' }, data: { actionId: '' }, select: { id: true } }).execute(); @@ -98,9 +95,6 @@ const items = await db.sqlAction.findMany({ select: { actionId: true, actionName // Get one by id const item = await db.sqlAction.findOne({ id: '', select: { actionId: true, actionName: true, actorId: true, content: true, createdAt: true, databaseId: true, deploy: true, deps: true, id: true, name: true, payload: true, revert: true, verify: true } }).execute(); -// Create -const created = await db.sqlAction.create({ data: { actionId: '', actionName: '', actorId: '', content: '', databaseId: '', deploy: '', deps: '', name: '', payload: '', revert: '', verify: '' }, select: { id: true } }).execute(); - // Update const updated = await db.sqlAction.update({ where: { id: '' }, data: { actionId: '' }, select: { id: true } }).execute(); diff --git a/sdk/migrate-client/src/migrate/orm/input-types.ts b/sdk/migrate-client/src/migrate/orm/input-types.ts index 5e0de6561d..1508de1a94 100644 --- a/sdk/migrate-client/src/migrate/orm/input-types.ts +++ b/sdk/migrate-client/src/migrate/orm/input-types.ts @@ -435,22 +435,6 @@ export type SqlActionOrderBy = | 'VERIFY_ASC' | 'VERIFY_DESC'; // ============ CRUD Input Types ============ -export interface CreateAstMigrationInput { - clientMutationId?: string; - astMigration: { - actionId: string; - actionName?: string; - actorId: string; - databaseId: string; - deploy?: Record; - deploys?: string; - name?: string; - payload?: Record; - requires?: string[]; - revert?: Record; - verify?: Record; - }; -} export interface AstMigrationPatch { actionId?: string | null; actionName?: string | null; @@ -473,22 +457,6 @@ export interface DeleteAstMigrationInput { clientMutationId?: string; id: number; } -export interface CreateSqlActionInput { - clientMutationId?: string; - sqlAction: { - actionId: string; - actionName?: string; - actorId: string; - content?: string; - databaseId: string; - deploy?: string; - deps?: string[]; - name?: string; - payload?: Record; - revert?: string; - verify?: string; - }; -} export interface SqlActionPatch { actionId?: string | null; actionName?: string | null; diff --git a/sdk/migrate-client/src/migrate/orm/models/astMigration.ts b/sdk/migrate-client/src/migrate/orm/models/astMigration.ts index bfcc5f455a..ca429d54b2 100644 --- a/sdk/migrate-client/src/migrate/orm/models/astMigration.ts +++ b/sdk/migrate-client/src/migrate/orm/models/astMigration.ts @@ -29,7 +29,6 @@ import type { AstMigrationSelect, AstMigrationFilter, AstMigrationOrderBy, - CreateAstMigrationInput, UpdateAstMigrationInput, AstMigrationPatch, } from '../input-types'; @@ -144,31 +143,4 @@ export class AstMigrationModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAstMigration: { - astMigration: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AstMigration', - 'createAstMigration', - 'astMigration', - args.select, - args.data, - 'CreateAstMigrationInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AstMigration', - fieldName: 'createAstMigration', - document, - variables, - }); - } } diff --git a/sdk/migrate-client/src/migrate/orm/models/sqlAction.ts b/sdk/migrate-client/src/migrate/orm/models/sqlAction.ts index 74b4418688..d9b77d8c06 100644 --- a/sdk/migrate-client/src/migrate/orm/models/sqlAction.ts +++ b/sdk/migrate-client/src/migrate/orm/models/sqlAction.ts @@ -29,7 +29,6 @@ import type { SqlActionSelect, SqlActionFilter, SqlActionOrderBy, - CreateSqlActionInput, UpdateSqlActionInput, SqlActionPatch, } from '../input-types'; @@ -144,31 +143,4 @@ export class SqlActionModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createSqlAction: { - sqlAction: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'SqlAction', - 'createSqlAction', - 'sqlAction', - args.select, - args.data, - 'CreateSqlActionInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'SqlAction', - fieldName: 'createSqlAction', - document, - variables, - }); - } } diff --git a/sdk/migrate-client/src/migrate/orm/query-builder.ts b/sdk/migrate-client/src/migrate/orm/query-builder.ts index fd785bbae6..d6c981907f 100644 --- a/sdk/migrate-client/src/migrate/orm/query-builder.ts +++ b/sdk/migrate-client/src/migrate/orm/query-builder.ts @@ -140,9 +140,7 @@ export function buildSelections( ); const nestedSelect = nested.select; if (nestedSelect && typeof nestedSelect === 'object') { - const subSelections = Object.entries(nestedSelect) - .filter(([, v]) => v) - .map(([name]) => t.field({ name })); + const subSelections = buildSelections(nestedSelect, connectionFieldsMap); fields.push( t.field({ name: key, diff --git a/sdk/migrate-client/src/migrate/orm/select-types.ts b/sdk/migrate-client/src/migrate/orm/select-types.ts index 4b39d7e820..783c4603df 100644 --- a/sdk/migrate-client/src/migrate/orm/select-types.ts +++ b/sdk/migrate-client/src/migrate/orm/select-types.ts @@ -159,9 +159,13 @@ export type InferSelectResult = TSelect extends undefined ? K extends keyof TEntity ? NonNullable extends ConnectionResult ? ConnectionResult> - : - | InferSelectResult, NestedSelect> - | (null extends TEntity[K] ? null : never) + : NonNullable extends readonly (infer Item)[] + ? + | InferSelectResult, NestedSelect>[] + | (null extends TEntity[K] ? null : never) + : + | InferSelectResult, NestedSelect> + | (null extends TEntity[K] ? null : never) : never : K extends keyof TEntity ? TEntity[K]